Google Analytics Data V1beta Client - Class DimensionExpression (0.20.1)

Reference documentation and code samples for the Google Analytics Data V1beta Client class DimensionExpression.

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).

Generated from protobuf message google.analytics.data.v1beta.DimensionExpression

Namespace

Google \ Analytics \ Data \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ lower_case DimensionExpression\CaseExpression

Used to convert a dimension value to lower case.

↳ upper_case DimensionExpression\CaseExpression

Used to convert a dimension value to upper case.

↳ concatenate DimensionExpression\ConcatenateExpression

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

getLowerCase

Used to convert a dimension value to lower case.

Returns
Type Description
DimensionExpression\CaseExpression|null

hasLowerCase

setLowerCase

Used to convert a dimension value to lower case.

Parameter
Name Description
var DimensionExpression\CaseExpression
Returns
Type Description
$this

getUpperCase

Used to convert a dimension value to upper case.

Returns
Type Description
DimensionExpression\CaseExpression|null

hasUpperCase

setUpperCase

Used to convert a dimension value to upper case.

Parameter
Name Description
var DimensionExpression\CaseExpression
Returns
Type Description
$this

getConcatenate

Used to combine dimension values to a single dimension.

For example, dimension "country, city": concatenate(country, ", ", city).

Returns
Type Description
DimensionExpression\ConcatenateExpression|null

hasConcatenate

setConcatenate

Used to combine dimension values to a single dimension.

For example, dimension "country, city": concatenate(country, ", ", city).

Parameter
Name Description
var DimensionExpression\ConcatenateExpression
Returns
Type Description
$this

getOneExpression

Returns
Type Description
string