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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MetricCompatibility.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public MetricCompatibility build()
buildPartial()
public MetricCompatibility buildPartial()
clear()
public MetricCompatibility.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public MetricCompatibility.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public MetricCompatibility.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public MetricCompatibility.Builder clone()
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;
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(MetricCompatibility other)
public MetricCompatibility.Builder mergeFrom(MetricCompatibility other)
public MetricCompatibility.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public MetricCompatibility.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MetricCompatibility.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public MetricCompatibility.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MetricCompatibility.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MetricCompatibility.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides