Class DimensionExpression.ConcatenateExpression.Builder (0.33.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
TypeDescription
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
NameDescription
valuesIterable<String>

The dimensionNames to add.

Returns
TypeDescription
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
NameDescription
valueString

The dimensionNames to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the dimensionNames to add.

Returns
TypeDescription
DimensionExpression.ConcatenateExpression.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DimensionExpression.ConcatenateExpression build()
Returns
TypeDescription
DimensionExpression.ConcatenateExpression

buildPartial()

public DimensionExpression.ConcatenateExpression buildPartial()
Returns
TypeDescription
DimensionExpression.ConcatenateExpression

clear()

public DimensionExpression.ConcatenateExpression.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DimensionExpression.ConcatenateExpression.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DimensionExpression.ConcatenateExpression.Builder clone()
Returns
TypeDescription
DimensionExpression.ConcatenateExpression.Builder
Overrides

getDefaultInstanceForType()

public DimensionExpression.ConcatenateExpression getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for delimiter.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the dimensionNames.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DimensionExpression.ConcatenateExpression other)

public DimensionExpression.ConcatenateExpression.Builder mergeFrom(DimensionExpression.ConcatenateExpression other)
Parameter
NameDescription
otherDimensionExpression.ConcatenateExpression
Returns
TypeDescription
DimensionExpression.ConcatenateExpression.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DimensionExpression.ConcatenateExpression.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The delimiter to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for delimiter to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The dimensionNames to set.

Returns
TypeDescription
DimensionExpression.ConcatenateExpression.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DimensionExpression.ConcatenateExpression.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DimensionExpression.ConcatenateExpression.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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