Class MetricCompatibility.Builder (0.65.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MetricCompatibility.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MetricCompatibility.Builder
Overrides

build()

public MetricCompatibility build()
Returns
Type Description
MetricCompatibility

buildPartial()

public MetricCompatibility buildPartial()
Returns
Type Description
MetricCompatibility

clear()

public MetricCompatibility.Builder clear()
Returns
Type Description
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
Type Description
MetricCompatibility.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MetricCompatibility.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
MetricCompatibility.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MetricCompatibility.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MetricCompatibility.Builder
Overrides

clone()

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

The enum numeric value on the wire for compatibility.

getDefaultInstanceForType()

public MetricCompatibility getDefaultInstanceForType()
Returns
Type Description
MetricCompatibility

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the metricMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MetricCompatibility other)

public MetricCompatibility.Builder mergeFrom(MetricCompatibility other)
Parameter
Name Description
other MetricCompatibility
Returns
Type Description
MetricCompatibility.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MetricCompatibility.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetricCompatibility.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MetricCompatibility.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value MetricMetadata
Returns
Type Description
MetricCompatibility.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MetricCompatibility.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Compatibility

The compatibility to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
MetricCompatibility.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MetricCompatibility.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value MetricMetadata
Returns
Type Description
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
Name Description
builderForValue MetricMetadata.Builder
Returns
Type Description
MetricCompatibility.Builder

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

public MetricCompatibility.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MetricCompatibility.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MetricCompatibility.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MetricCompatibility.Builder
Overrides