Class DimensionCompatibility.Builder (0.24.0)

public static final class DimensionCompatibility.Builder extends GeneratedMessageV3.Builder<DimensionCompatibility.Builder> implements DimensionCompatibilityOrBuilder

The compatibility for a single dimension.

Protobuf type google.analytics.data.v1beta.DimensionCompatibility

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DimensionCompatibility build()
Returns
TypeDescription
DimensionCompatibility

buildPartial()

public DimensionCompatibility buildPartial()
Returns
TypeDescription
DimensionCompatibility

clear()

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

clearCompatibility()

public DimensionCompatibility.Builder clearCompatibility()

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

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

Returns
TypeDescription
DimensionCompatibility.Builder

This builder for chaining.

clearDimensionMetadata()

public DimensionCompatibility.Builder clearDimensionMetadata()

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

optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1;

Returns
TypeDescription
DimensionCompatibility.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DimensionCompatibility.Builder clone()
Returns
TypeDescription
DimensionCompatibility.Builder
Overrides

getCompatibility()

public Compatibility getCompatibility()

The compatibility of this dimension. If the compatibility is COMPATIBLE, this dimension 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 dimension. If the compatibility is COMPATIBLE, this dimension 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 DimensionCompatibility getDefaultInstanceForType()
Returns
TypeDescription
DimensionCompatibility

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDimensionMetadata()

public DimensionMetadata getDimensionMetadata()

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

optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1;

Returns
TypeDescription
DimensionMetadata

The dimensionMetadata.

getDimensionMetadataBuilder()

public DimensionMetadata.Builder getDimensionMetadataBuilder()

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

optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1;

Returns
TypeDescription
DimensionMetadata.Builder

getDimensionMetadataOrBuilder()

public DimensionMetadataOrBuilder getDimensionMetadataOrBuilder()

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

optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1;

Returns
TypeDescription
DimensionMetadataOrBuilder

hasCompatibility()

public boolean hasCompatibility()

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

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

Returns
TypeDescription
boolean

Whether the compatibility field is set.

hasDimensionMetadata()

public boolean hasDimensionMetadata()

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

optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1;

Returns
TypeDescription
boolean

Whether the dimensionMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDimensionMetadata(DimensionMetadata value)

public DimensionCompatibility.Builder mergeDimensionMetadata(DimensionMetadata value)

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

optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1;

Parameter
NameDescription
valueDimensionMetadata
Returns
TypeDescription
DimensionCompatibility.Builder

mergeFrom(DimensionCompatibility other)

public DimensionCompatibility.Builder mergeFrom(DimensionCompatibility other)
Parameter
NameDescription
otherDimensionCompatibility
Returns
TypeDescription
DimensionCompatibility.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCompatibility(Compatibility value)

public DimensionCompatibility.Builder setCompatibility(Compatibility value)

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

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

Parameter
NameDescription
valueCompatibility

The compatibility to set.

Returns
TypeDescription
DimensionCompatibility.Builder

This builder for chaining.

setCompatibilityValue(int value)

public DimensionCompatibility.Builder setCompatibilityValue(int value)

The compatibility of this dimension. If the compatibility is COMPATIBLE, this dimension 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
DimensionCompatibility.Builder

This builder for chaining.

setDimensionMetadata(DimensionMetadata value)

public DimensionCompatibility.Builder setDimensionMetadata(DimensionMetadata value)

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

optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1;

Parameter
NameDescription
valueDimensionMetadata
Returns
TypeDescription
DimensionCompatibility.Builder

setDimensionMetadata(DimensionMetadata.Builder builderForValue)

public DimensionCompatibility.Builder setDimensionMetadata(DimensionMetadata.Builder builderForValue)

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

optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1;

Parameter
NameDescription
builderForValueDimensionMetadata.Builder
Returns
TypeDescription
DimensionCompatibility.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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