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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Dimension.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Dimension buildPartial()
clear()
public Dimension.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public Dimension.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public Dimension.Builder clearName()
The name of the dimension. See the API
Dimensions
for the list of dimension names supported by core reporting methods such
as runReport
and batchRunReports
. See
Realtime
Dimensions
for the list of dimension names supported by the runRealtimeReport
method. See
Funnel
Dimensions
for the list of dimension names supported by the runFunnelReport
method.
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public Dimension.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Dimension.Builder clone()
Overrides
getDefaultInstanceForType()
public Dimension getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
getName()
The name of the dimension. See the API
Dimensions
for the list of dimension names supported by core reporting methods such
as runReport
and batchRunReports
. See
Realtime
Dimensions
for the list of dimension names supported by the runRealtimeReport
method. See
Funnel
Dimensions
for the list of dimension names supported by the runFunnelReport
method.
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 supported by core reporting methods such
as runReport
and batchRunReports
. See
Realtime
Dimensions
for the list of dimension names supported by the runRealtimeReport
method. See
Funnel
Dimensions
for the list of dimension names supported by the runFunnelReport
method.
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 |
ByteString |
The bytes for name.
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(Dimension other)
public Dimension.Builder mergeFrom(Dimension other)
public Dimension.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Dimension.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Dimension.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public Dimension.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 supported by core reporting methods such
as runReport
and batchRunReports
. See
Realtime
Dimensions
for the list of dimension names supported by the runRealtimeReport
method. See
Funnel
Dimensions
for the list of dimension names supported by the runFunnelReport
method.
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.
|
setNameBytes(ByteString value)
public Dimension.Builder setNameBytes(ByteString value)
The name of the dimension. See the API
Dimensions
for the list of dimension names supported by core reporting methods such
as runReport
and batchRunReports
. See
Realtime
Dimensions
for the list of dimension names supported by the runRealtimeReport
method. See
Funnel
Dimensions
for the list of dimension names supported by the runFunnelReport
method.
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Dimension.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Dimension.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides