Google Analytics Data V1alpha Client - Class PivotOrderBy (0.13.0)

Reference documentation and code samples for the Google Analytics Data V1alpha Client class PivotOrderBy.

Sorts by a pivot column group.

Generated from protobuf message google.analytics.data.v1alpha.OrderBy.PivotOrderBy

Namespace

Google \ Analytics \ Data \ V1alpha \ OrderBy

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ metric_name string

In the response to order by, order rows by this column. Must be a metric name from the request.

↳ pivot_selections array<Google\Analytics\Data\V1alpha\OrderBy\PivotOrderBy\PivotSelection>

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

getMetricName

In the response to order by, order rows by this column. Must be a metric name from the request.

Returns
TypeDescription
string

setMetricName

In the response to order by, order rows by this column. Must be a metric name from the request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPivotSelections

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPivotSelections

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

Parameter
NameDescription
var array<Google\Analytics\Data\V1alpha\OrderBy\PivotOrderBy\PivotSelection>
Returns
TypeDescription
$this