Class DimensionExpression (0.59.0)

public final class DimensionExpression extends GeneratedMessageV3 implements DimensionExpressionOrBuilder

Used to express a dimension which is the result of a formula of multiple dimensions. Example usages: 1) lower_case(dimension) 2) concatenate(dimension1, symbol, dimension2).

Protobuf type google.analytics.data.v1beta.DimensionExpression

Static Fields

CONCATENATE_FIELD_NUMBER

public static final int CONCATENATE_FIELD_NUMBER
Field Value
Type Description
int

LOWER_CASE_FIELD_NUMBER

public static final int LOWER_CASE_FIELD_NUMBER
Field Value
Type Description
int

UPPER_CASE_FIELD_NUMBER

public static final int UPPER_CASE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DimensionExpression getDefaultInstance()
Returns
Type Description
DimensionExpression

getDescriptor()

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

newBuilder()

public static DimensionExpression.Builder newBuilder()
Returns
Type Description
DimensionExpression.Builder

newBuilder(DimensionExpression prototype)

public static DimensionExpression.Builder newBuilder(DimensionExpression prototype)
Parameter
Name Description
prototype DimensionExpression
Returns
Type Description
DimensionExpression.Builder

parseDelimitedFrom(InputStream input)

public static DimensionExpression parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DimensionExpression
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DimensionExpression parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DimensionExpression
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DimensionExpression parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DimensionExpression
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DimensionExpression parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DimensionExpression
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DimensionExpression parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DimensionExpression
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DimensionExpression parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DimensionExpression
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DimensionExpression parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DimensionExpression
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DimensionExpression parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DimensionExpression
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DimensionExpression parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DimensionExpression
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DimensionExpression parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DimensionExpression
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DimensionExpression parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DimensionExpression
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DimensionExpression parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DimensionExpression
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DimensionExpression> parser()
Returns
Type Description
Parser<DimensionExpression>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getConcatenate()

public DimensionExpression.ConcatenateExpression getConcatenate()

Used to combine dimension values to a single dimension. For example, dimension "country, city": concatenate(country, ", ", city).

.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6;

Returns
Type Description
DimensionExpression.ConcatenateExpression

The concatenate.

getConcatenateOrBuilder()

public DimensionExpression.ConcatenateExpressionOrBuilder getConcatenateOrBuilder()

Used to combine dimension values to a single dimension. For example, dimension "country, city": concatenate(country, ", ", city).

.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6;

Returns
Type Description
DimensionExpression.ConcatenateExpressionOrBuilder

getDefaultInstanceForType()

public DimensionExpression getDefaultInstanceForType()
Returns
Type Description
DimensionExpression

getLowerCase()

public DimensionExpression.CaseExpression getLowerCase()

Used to convert a dimension value to lower case.

.google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4;

Returns
Type Description
DimensionExpression.CaseExpression

The lowerCase.

getLowerCaseOrBuilder()

public DimensionExpression.CaseExpressionOrBuilder getLowerCaseOrBuilder()

Used to convert a dimension value to lower case.

.google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4;

Returns
Type Description
DimensionExpression.CaseExpressionOrBuilder

getOneExpressionCase()

public DimensionExpression.OneExpressionCase getOneExpressionCase()
Returns
Type Description
DimensionExpression.OneExpressionCase

getParserForType()

public Parser<DimensionExpression> getParserForType()
Returns
Type Description
Parser<DimensionExpression>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUpperCase()

public DimensionExpression.CaseExpression getUpperCase()

Used to convert a dimension value to upper case.

.google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5;

Returns
Type Description
DimensionExpression.CaseExpression

The upperCase.

getUpperCaseOrBuilder()

public DimensionExpression.CaseExpressionOrBuilder getUpperCaseOrBuilder()

Used to convert a dimension value to upper case.

.google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5;

Returns
Type Description
DimensionExpression.CaseExpressionOrBuilder

hasConcatenate()

public boolean hasConcatenate()

Used to combine dimension values to a single dimension. For example, dimension "country, city": concatenate(country, ", ", city).

.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6;

Returns
Type Description
boolean

Whether the concatenate field is set.

hasLowerCase()

public boolean hasLowerCase()

Used to convert a dimension value to lower case.

.google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4;

Returns
Type Description
boolean

Whether the lowerCase field is set.

hasUpperCase()

public boolean hasUpperCase()

Used to convert a dimension value to upper case.

.google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5;

Returns
Type Description
boolean

Whether the upperCase field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DimensionExpression.Builder newBuilderForType()
Returns
Type Description
DimensionExpression.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DimensionExpression.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DimensionExpression.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DimensionExpression.Builder toBuilder()
Returns
Type Description
DimensionExpression.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException