Google Analytics Data V1alpha Client - Class DataTable (0.28.0)

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

A table of data.

Generated from protobuf message google.analytics.data.v1alpha.ResponseBlock.DataTable

Namespace

Google \ Analytics \ Data \ V1alpha \ ResponseBlock

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ headers array<DataTableHeader>

Describes dimension columns. The number of headers and ordering of headers matches the dimensions present in rows.

↳ rows array<DataTableRow>

Rows of dimension value combinations and metric values in the report.

getHeaders

Describes dimension columns. The number of headers and ordering of headers matches the dimensions present in rows.

Returns
Type Description
Google\Protobuf\RepeatedField<DataTableHeader>

setHeaders

Describes dimension columns. The number of headers and ordering of headers matches the dimensions present in rows.

Parameter
Name Description
var array<DataTableHeader>
Returns
Type Description
$this

getRows

Rows of dimension value combinations and metric values in the report.

Returns
Type Description
Google\Protobuf\RepeatedField<DataTableRow>

setRows

Rows of dimension value combinations and metric values in the report.

Parameter
Name Description
var array<DataTableRow>
Returns
Type Description
$this