Class MetricCompatibility (0.17.0)

public final class MetricCompatibility extends GeneratedMessageV3 implements MetricCompatibilityOrBuilder

The compatibility for a single metric.

Protobuf type google.analytics.data.v1beta.MetricCompatibility

Static Fields

COMPATIBILITY_FIELD_NUMBER

public static final int COMPATIBILITY_FIELD_NUMBER
Field Value
TypeDescription
int

METRIC_METADATA_FIELD_NUMBER

public static final int METRIC_METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MetricCompatibility getDefaultInstance()
Returns
TypeDescription
MetricCompatibility

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MetricCompatibility.Builder newBuilder()
Returns
TypeDescription
MetricCompatibility.Builder

newBuilder(MetricCompatibility prototype)

public static MetricCompatibility.Builder newBuilder(MetricCompatibility prototype)
Parameter
NameDescription
prototypeMetricCompatibility
Returns
TypeDescription
MetricCompatibility.Builder

parseDelimitedFrom(InputStream input)

public static MetricCompatibility parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MetricCompatibility
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MetricCompatibility parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricCompatibility
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MetricCompatibility parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MetricCompatibility
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MetricCompatibility parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricCompatibility
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MetricCompatibility parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MetricCompatibility
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MetricCompatibility parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricCompatibility
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MetricCompatibility parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MetricCompatibility
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MetricCompatibility parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricCompatibility
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MetricCompatibility parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MetricCompatibility
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MetricCompatibility parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricCompatibility
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MetricCompatibility parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MetricCompatibility
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MetricCompatibility parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricCompatibility
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MetricCompatibility> parser()
Returns
TypeDescription
Parser<MetricCompatibility>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCompatibility()

public Compatibility getCompatibility()

The compatibility of this metric. If the compatibility is COMPATIBLE, this metric can be successfully added to the report.

optional .google.analytics.data.v1beta.Compatibility compatibility = 2;

Returns
TypeDescription
Compatibility

The compatibility.

getCompatibilityValue()

public int getCompatibilityValue()

The compatibility of this metric. If the compatibility is COMPATIBLE, this metric can be successfully added to the report.

optional .google.analytics.data.v1beta.Compatibility compatibility = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for compatibility.

getDefaultInstanceForType()

public MetricCompatibility getDefaultInstanceForType()
Returns
TypeDescription
MetricCompatibility

getMetricMetadata()

public MetricMetadata getMetricMetadata()

The metric metadata contains the API name for this compatibility information. The metric metadata also contains other helpful information like the UI name and description.

optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1;

Returns
TypeDescription
MetricMetadata

The metricMetadata.

getMetricMetadataOrBuilder()

public MetricMetadataOrBuilder getMetricMetadataOrBuilder()

The metric metadata contains the API name for this compatibility information. The metric metadata also contains other helpful information like the UI name and description.

optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1;

Returns
TypeDescription
MetricMetadataOrBuilder

getParserForType()

public Parser<MetricCompatibility> getParserForType()
Returns
TypeDescription
Parser<MetricCompatibility>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCompatibility()

public boolean hasCompatibility()

The compatibility of this metric. If the compatibility is COMPATIBLE, this metric can be successfully added to the report.

optional .google.analytics.data.v1beta.Compatibility compatibility = 2;

Returns
TypeDescription
boolean

Whether the compatibility field is set.

hasMetricMetadata()

public boolean hasMetricMetadata()

The metric metadata contains the API name for this compatibility information. The metric metadata also contains other helpful information like the UI name and description.

optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1;

Returns
TypeDescription
boolean

Whether the metricMetadata field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MetricCompatibility.Builder newBuilderForType()
Returns
TypeDescription
MetricCompatibility.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MetricCompatibility.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MetricCompatibility.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MetricCompatibility.Builder toBuilder()
Returns
TypeDescription
MetricCompatibility.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException