Class DimensionExpression (0.44.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
TypeDescription
int

LOWER_CASE_FIELD_NUMBER

public static final int LOWER_CASE_FIELD_NUMBER
Field Value
TypeDescription
int

UPPER_CASE_FIELD_NUMBER

public static final int UPPER_CASE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DimensionExpression getDefaultInstance()
Returns
TypeDescription
DimensionExpression

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DimensionExpression.Builder newBuilder()
Returns
TypeDescription
DimensionExpression.Builder

newBuilder(DimensionExpression prototype)

public static DimensionExpression.Builder newBuilder(DimensionExpression prototype)
Parameter
NameDescription
prototypeDimensionExpression
Returns
TypeDescription
DimensionExpression.Builder

parseDelimitedFrom(InputStream input)

public static DimensionExpression parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DimensionExpression
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DimensionExpression parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DimensionExpression
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DimensionExpression parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DimensionExpression
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DimensionExpression parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DimensionExpression
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DimensionExpression parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DimensionExpression
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DimensionExpression parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DimensionExpression
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DimensionExpression parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DimensionExpression
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DimensionExpression parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DimensionExpression
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DimensionExpression parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DimensionExpression
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DimensionExpression parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DimensionExpression
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DimensionExpression parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DimensionExpression
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DimensionExpression parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DimensionExpression
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DimensionExpression> parser()
Returns
TypeDescription
Parser<DimensionExpression>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DimensionExpression.ConcatenateExpressionOrBuilder

getDefaultInstanceForType()

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

getOneExpressionCase()

public DimensionExpression.OneExpressionCase getOneExpressionCase()
Returns
TypeDescription
DimensionExpression.OneExpressionCase

getParserForType()

public Parser<DimensionExpression> getParserForType()
Returns
TypeDescription
Parser<DimensionExpression>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the upperCase field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DimensionExpression.Builder newBuilderForType()
Returns
TypeDescription
DimensionExpression.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DimensionExpression.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DimensionExpression.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DimensionExpression.Builder toBuilder()
Returns
TypeDescription
DimensionExpression.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException