Class DimensionExpression.ConcatenateExpression.Builder (0.58.0)

public static final class DimensionExpression.ConcatenateExpression.Builder extends GeneratedMessageV3.Builder<DimensionExpression.ConcatenateExpression.Builder> implements DimensionExpression.ConcatenateExpressionOrBuilder

Used to combine dimension values to a single dimension.

Protobuf type google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDimensionNames(Iterable<String> values)

public DimensionExpression.ConcatenateExpression.Builder addAllDimensionNames(Iterable<String> values)

Names of dimensions. The names must refer back to names in the dimensions field of the request.

repeated string dimension_names = 1;

Parameter
Name Description
values Iterable<String>

The dimensionNames to add.

Returns
Type Description
DimensionExpression.ConcatenateExpression.Builder

This builder for chaining.

addDimensionNames(String value)

public DimensionExpression.ConcatenateExpression.Builder addDimensionNames(String value)

Names of dimensions. The names must refer back to names in the dimensions field of the request.

repeated string dimension_names = 1;

Parameter
Name Description
value String

The dimensionNames to add.

Returns
Type Description
DimensionExpression.ConcatenateExpression.Builder

This builder for chaining.

addDimensionNamesBytes(ByteString value)

public DimensionExpression.ConcatenateExpression.Builder addDimensionNamesBytes(ByteString value)

Names of dimensions. The names must refer back to names in the dimensions field of the request.

repeated string dimension_names = 1;

Parameter
Name Description
value ByteString

The bytes of the dimensionNames to add.

Returns
Type Description
DimensionExpression.ConcatenateExpression.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DimensionExpression.ConcatenateExpression build()
Returns
Type Description
DimensionExpression.ConcatenateExpression

buildPartial()

public DimensionExpression.ConcatenateExpression buildPartial()
Returns
Type Description
DimensionExpression.ConcatenateExpression

clear()

public DimensionExpression.ConcatenateExpression.Builder clear()
Returns
Type Description
DimensionExpression.ConcatenateExpression.Builder
Overrides

clearDelimiter()

public DimensionExpression.ConcatenateExpression.Builder clearDelimiter()

The delimiter placed between dimension names.

Delimiters are often single characters such as "|" or "," but can be longer strings. If a dimension value contains the delimiter, both will be present in response with no distinction. For example if dimension 1 value = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the response will contain "US,FR,JP".

string delimiter = 2;

Returns
Type Description
DimensionExpression.ConcatenateExpression.Builder

This builder for chaining.

clearDimensionNames()

public DimensionExpression.ConcatenateExpression.Builder clearDimensionNames()

Names of dimensions. The names must refer back to names in the dimensions field of the request.

repeated string dimension_names = 1;

Returns
Type Description
DimensionExpression.ConcatenateExpression.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DimensionExpression.ConcatenateExpression.Builder clone()
Returns
Type Description
DimensionExpression.ConcatenateExpression.Builder
Overrides

getDefaultInstanceForType()

public DimensionExpression.ConcatenateExpression getDefaultInstanceForType()
Returns
Type Description
DimensionExpression.ConcatenateExpression

getDelimiter()

public String getDelimiter()

The delimiter placed between dimension names.

Delimiters are often single characters such as "|" or "," but can be longer strings. If a dimension value contains the delimiter, both will be present in response with no distinction. For example if dimension 1 value = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the response will contain "US,FR,JP".

string delimiter = 2;

Returns
Type Description
String

The delimiter.

getDelimiterBytes()

public ByteString getDelimiterBytes()

The delimiter placed between dimension names.

Delimiters are often single characters such as "|" or "," but can be longer strings. If a dimension value contains the delimiter, both will be present in response with no distinction. For example if dimension 1 value = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the response will contain "US,FR,JP".

string delimiter = 2;

Returns
Type Description
ByteString

The bytes for delimiter.

getDescriptorForType()

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

getDimensionNames(int index)

public String getDimensionNames(int index)

Names of dimensions. The names must refer back to names in the dimensions field of the request.

repeated string dimension_names = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The dimensionNames at the given index.

getDimensionNamesBytes(int index)

public ByteString getDimensionNamesBytes(int index)

Names of dimensions. The names must refer back to names in the dimensions field of the request.

repeated string dimension_names = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the dimensionNames at the given index.

getDimensionNamesCount()

public int getDimensionNamesCount()

Names of dimensions. The names must refer back to names in the dimensions field of the request.

repeated string dimension_names = 1;

Returns
Type Description
int

The count of dimensionNames.

getDimensionNamesList()

public ProtocolStringList getDimensionNamesList()

Names of dimensions. The names must refer back to names in the dimensions field of the request.

repeated string dimension_names = 1;

Returns
Type Description
ProtocolStringList

A list containing the dimensionNames.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DimensionExpression.ConcatenateExpression other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDelimiter(String value)

public DimensionExpression.ConcatenateExpression.Builder setDelimiter(String value)

The delimiter placed between dimension names.

Delimiters are often single characters such as "|" or "," but can be longer strings. If a dimension value contains the delimiter, both will be present in response with no distinction. For example if dimension 1 value = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the response will contain "US,FR,JP".

string delimiter = 2;

Parameter
Name Description
value String

The delimiter to set.

Returns
Type Description
DimensionExpression.ConcatenateExpression.Builder

This builder for chaining.

setDelimiterBytes(ByteString value)

public DimensionExpression.ConcatenateExpression.Builder setDelimiterBytes(ByteString value)

The delimiter placed between dimension names.

Delimiters are often single characters such as "|" or "," but can be longer strings. If a dimension value contains the delimiter, both will be present in response with no distinction. For example if dimension 1 value = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the response will contain "US,FR,JP".

string delimiter = 2;

Parameter
Name Description
value ByteString

The bytes for delimiter to set.

Returns
Type Description
DimensionExpression.ConcatenateExpression.Builder

This builder for chaining.

setDimensionNames(int index, String value)

public DimensionExpression.ConcatenateExpression.Builder setDimensionNames(int index, String value)

Names of dimensions. The names must refer back to names in the dimensions field of the request.

repeated string dimension_names = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The dimensionNames to set.

Returns
Type Description
DimensionExpression.ConcatenateExpression.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final DimensionExpression.ConcatenateExpression.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DimensionExpression.ConcatenateExpression.Builder
Overrides