Class MetricCompatibility.Builder (0.39.0)

public static final class MetricCompatibility.Builder extends GeneratedMessageV3.Builder<MetricCompatibility.Builder> implements MetricCompatibilityOrBuilder

The compatibility for a single metric.

Protobuf type google.analytics.data.v1beta.MetricCompatibility

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MetricCompatibility.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MetricCompatibility.Builder
Overrides

build()

public MetricCompatibility build()
Returns
TypeDescription
MetricCompatibility

buildPartial()

public MetricCompatibility buildPartial()
Returns
TypeDescription
MetricCompatibility

clear()

public MetricCompatibility.Builder clear()
Returns
TypeDescription
MetricCompatibility.Builder
Overrides

clearCompatibility()

public MetricCompatibility.Builder clearCompatibility()

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
MetricCompatibility.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MetricCompatibility.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MetricCompatibility.Builder
Overrides

clearMetricMetadata()

public MetricCompatibility.Builder clearMetricMetadata()

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
MetricCompatibility.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MetricCompatibility.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MetricCompatibility.Builder
Overrides

clone()

public MetricCompatibility.Builder clone()
Returns
TypeDescription
MetricCompatibility.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getMetricMetadataBuilder()

public MetricMetadata.Builder getMetricMetadataBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MetricCompatibility other)

public MetricCompatibility.Builder mergeFrom(MetricCompatibility other)
Parameter
NameDescription
otherMetricCompatibility
Returns
TypeDescription
MetricCompatibility.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MetricCompatibility.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetricCompatibility.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MetricCompatibility.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MetricCompatibility.Builder
Overrides

mergeMetricMetadata(MetricMetadata value)

public MetricCompatibility.Builder mergeMetricMetadata(MetricMetadata value)

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;

Parameter
NameDescription
valueMetricMetadata
Returns
TypeDescription
MetricCompatibility.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MetricCompatibility.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MetricCompatibility.Builder
Overrides

setCompatibility(Compatibility value)

public MetricCompatibility.Builder setCompatibility(Compatibility value)

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;

Parameter
NameDescription
valueCompatibility

The compatibility to set.

Returns
TypeDescription
MetricCompatibility.Builder

This builder for chaining.

setCompatibilityValue(int value)

public MetricCompatibility.Builder setCompatibilityValue(int value)

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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for compatibility to set.

Returns
TypeDescription
MetricCompatibility.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MetricCompatibility.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MetricCompatibility.Builder
Overrides

setMetricMetadata(MetricMetadata value)

public MetricCompatibility.Builder setMetricMetadata(MetricMetadata value)

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;

Parameter
NameDescription
valueMetricMetadata
Returns
TypeDescription
MetricCompatibility.Builder

setMetricMetadata(MetricMetadata.Builder builderForValue)

public MetricCompatibility.Builder setMetricMetadata(MetricMetadata.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueMetricMetadata.Builder
Returns
TypeDescription
MetricCompatibility.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MetricCompatibility.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MetricCompatibility.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MetricCompatibility.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MetricCompatibility.Builder
Overrides