Class AudienceDimensionValue.Builder (0.54.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AudienceDimensionValue build()
Returns
Type Description
AudienceDimensionValue

buildPartial()

public AudienceDimensionValue buildPartial()
Returns
Type Description
AudienceDimensionValue

clear()

public AudienceDimensionValue.Builder clear()
Returns
Type Description
AudienceDimensionValue.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AudienceDimensionValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AudienceDimensionValue.Builder
Overrides

clearOneValue()

public AudienceDimensionValue.Builder clearOneValue()
Returns
Type Description
AudienceDimensionValue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public AudienceDimensionValue.Builder clearValue()

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

string value = 1;

Returns
Type Description
AudienceDimensionValue.Builder

This builder for chaining.

clone()

public AudienceDimensionValue.Builder clone()
Returns
Type Description
AudienceDimensionValue.Builder
Overrides

getDefaultInstanceForType()

public AudienceDimensionValue getDefaultInstanceForType()
Returns
Type Description
AudienceDimensionValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOneValueCase()

public AudienceDimensionValue.OneValueCase getOneValueCase()
Returns
Type Description
AudienceDimensionValue.OneValueCase

getValue()

public String getValue()

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

string value = 1;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

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

string value = 1;

Returns
Type Description
ByteString

The bytes for value.

hasValue()

public boolean hasValue()

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

string value = 1;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AudienceDimensionValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AudienceDimensionValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AudienceDimensionValue.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AudienceDimensionValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AudienceDimensionValue.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final AudienceDimensionValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The value to set.

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

The bytes for value to set.

Returns
Type Description
AudienceDimensionValue.Builder

This builder for chaining.