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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MetricCompatibility.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public MetricCompatibility build()
Returns
buildPartial()
public MetricCompatibility buildPartial()
Returns
clear()
public MetricCompatibility.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public MetricCompatibility.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
clearOneof(Descriptors.OneofDescriptor oneof)
public MetricCompatibility.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public MetricCompatibility.Builder clone()
Returns
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
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
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
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
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.
|
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(MetricCompatibility other)
public MetricCompatibility.Builder mergeFrom(MetricCompatibility other)
Parameter
Returns
public MetricCompatibility.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MetricCompatibility.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MetricCompatibility.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public MetricCompatibility.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MetricCompatibility.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MetricCompatibility.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides