Class AudienceDimensionValue.Builder (0.47.0)

public static final class AudienceDimensionValue.Builder extends GeneratedMessageV3.Builder<AudienceDimensionValue.Builder> implements AudienceDimensionValueOrBuilder

The value of a dimension.

Protobuf type google.analytics.data.v1alpha.AudienceDimensionValue

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AudienceDimensionValue build()
Returns
TypeDescription
AudienceDimensionValue

buildPartial()

public AudienceDimensionValue buildPartial()
Returns
TypeDescription
AudienceDimensionValue

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneValue()

public AudienceDimensionValue.Builder clearOneValue()
Returns
TypeDescription
AudienceDimensionValue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public AudienceDimensionValue.Builder clearValue()

Value as a string if the dimension type is a string.

string value = 1;

Returns
TypeDescription
AudienceDimensionValue.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AudienceDimensionValue getDefaultInstanceForType()
Returns
TypeDescription
AudienceDimensionValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOneValueCase()

public AudienceDimensionValue.OneValueCase getOneValueCase()
Returns
TypeDescription
AudienceDimensionValue.OneValueCase

getValue()

public String getValue()

Value as a string if the dimension type is a string.

string value = 1;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

Value as a string if the dimension type is a string.

string value = 1;

Returns
TypeDescription
ByteString

The bytes for value.

hasValue()

public boolean hasValue()

Value as a string if the dimension type is a string.

string value = 1;

Returns
TypeDescription
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AudienceDimensionValue other)

public AudienceDimensionValue.Builder mergeFrom(AudienceDimensionValue other)
Parameter
NameDescription
otherAudienceDimensionValue
Returns
TypeDescription
AudienceDimensionValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public AudienceDimensionValue.Builder setValue(String value)

Value as a string if the dimension type is a string.

string value = 1;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
AudienceDimensionValue.Builder

This builder for chaining.

setValueBytes(ByteString value)

public AudienceDimensionValue.Builder setValueBytes(ByteString value)

Value as a string if the dimension type is a string.

string value = 1;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
AudienceDimensionValue.Builder

This builder for chaining.