public static final class Dimension.Builder extends GeneratedMessageV3.Builder<Dimension.Builder> implements DimensionOrBuilder
Dimensions are attributes of your data. For example, the dimension city
indicates the city from which an event originates. Dimension values in report
responses are strings; for example, the city could be "Paris" or "New York".
Requests are allowed up to 9 dimensions.
Protobuf type google.analytics.data.v1beta.Dimension
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Dimension.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Dimension buildPartial()
Returns
clear()
public Dimension.Builder clear()
Returns
Overrides
clearDimensionExpression()
public Dimension.Builder clearDimensionExpression()
One dimension can be the result of an expression of multiple dimensions.
For example, dimension "country, city": concatenate(country, ", ", city).
.google.analytics.data.v1beta.DimensionExpression dimension_expression = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public Dimension.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public Dimension.Builder clearName()
The name of the dimension. See the API
Dimensions
for the list of dimension names.
If dimensionExpression
is specified, name
can be any string that you
would like within the allowed character set. For example if a
dimensionExpression
concatenates country
and city
, you could call
that dimension countryAndCity
. Dimension names that you choose must match
the regular expression ^[a-zA-Z0-9_]$
.
Dimensions are referenced by name
in dimensionFilter
, orderBys
,
dimensionExpression
, and pivots
.
string name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Dimension.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Dimension.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Dimension getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDimensionExpression()
public DimensionExpression getDimensionExpression()
One dimension can be the result of an expression of multiple dimensions.
For example, dimension "country, city": concatenate(country, ", ", city).
.google.analytics.data.v1beta.DimensionExpression dimension_expression = 2;
Returns
getDimensionExpressionBuilder()
public DimensionExpression.Builder getDimensionExpressionBuilder()
One dimension can be the result of an expression of multiple dimensions.
For example, dimension "country, city": concatenate(country, ", ", city).
.google.analytics.data.v1beta.DimensionExpression dimension_expression = 2;
Returns
getDimensionExpressionOrBuilder()
public DimensionExpressionOrBuilder getDimensionExpressionOrBuilder()
One dimension can be the result of an expression of multiple dimensions.
For example, dimension "country, city": concatenate(country, ", ", city).
.google.analytics.data.v1beta.DimensionExpression dimension_expression = 2;
Returns
getName()
The name of the dimension. See the API
Dimensions
for the list of dimension names.
If dimensionExpression
is specified, name
can be any string that you
would like within the allowed character set. For example if a
dimensionExpression
concatenates country
and city
, you could call
that dimension countryAndCity
. Dimension names that you choose must match
the regular expression ^[a-zA-Z0-9_]$
.
Dimensions are referenced by name
in dimensionFilter
, orderBys
,
dimensionExpression
, and pivots
.
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The name of the dimension. See the API
Dimensions
for the list of dimension names.
If dimensionExpression
is specified, name
can be any string that you
would like within the allowed character set. For example if a
dimensionExpression
concatenates country
and city
, you could call
that dimension countryAndCity
. Dimension names that you choose must match
the regular expression ^[a-zA-Z0-9_]$
.
Dimensions are referenced by name
in dimensionFilter
, orderBys
,
dimensionExpression
, and pivots
.
string name = 1;
Returns
hasDimensionExpression()
public boolean hasDimensionExpression()
One dimension can be the result of an expression of multiple dimensions.
For example, dimension "country, city": concatenate(country, ", ", city).
.google.analytics.data.v1beta.DimensionExpression dimension_expression = 2;
Returns
Type | Description |
boolean | Whether the dimensionExpression field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeDimensionExpression(DimensionExpression value)
public Dimension.Builder mergeDimensionExpression(DimensionExpression value)
One dimension can be the result of an expression of multiple dimensions.
For example, dimension "country, city": concatenate(country, ", ", city).
.google.analytics.data.v1beta.DimensionExpression dimension_expression = 2;
Parameter
Returns
mergeFrom(Dimension other)
public Dimension.Builder mergeFrom(Dimension other)
Parameter
Returns
public Dimension.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Dimension.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Dimension.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setDimensionExpression(DimensionExpression value)
public Dimension.Builder setDimensionExpression(DimensionExpression value)
One dimension can be the result of an expression of multiple dimensions.
For example, dimension "country, city": concatenate(country, ", ", city).
.google.analytics.data.v1beta.DimensionExpression dimension_expression = 2;
Parameter
Returns
setDimensionExpression(DimensionExpression.Builder builderForValue)
public Dimension.Builder setDimensionExpression(DimensionExpression.Builder builderForValue)
One dimension can be the result of an expression of multiple dimensions.
For example, dimension "country, city": concatenate(country, ", ", city).
.google.analytics.data.v1beta.DimensionExpression dimension_expression = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Dimension.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public Dimension.Builder setName(String value)
The name of the dimension. See the API
Dimensions
for the list of dimension names.
If dimensionExpression
is specified, name
can be any string that you
would like within the allowed character set. For example if a
dimensionExpression
concatenates country
and city
, you could call
that dimension countryAndCity
. Dimension names that you choose must match
the regular expression ^[a-zA-Z0-9_]$
.
Dimensions are referenced by name
in dimensionFilter
, orderBys
,
dimensionExpression
, and pivots
.
string name = 1;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public Dimension.Builder setNameBytes(ByteString value)
The name of the dimension. See the API
Dimensions
for the list of dimension names.
If dimensionExpression
is specified, name
can be any string that you
would like within the allowed character set. For example if a
dimensionExpression
concatenates country
and city
, you could call
that dimension countryAndCity
. Dimension names that you choose must match
the regular expression ^[a-zA-Z0-9_]$
.
Dimensions are referenced by name
in dimensionFilter
, orderBys
,
dimensionExpression
, and pivots
.
string name = 1;
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Dimension.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Dimension.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides