Viewing file: RunRealtimeReportResponse.php (13.93 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/analytics/data/v1beta/analytics_data_api.proto
namespace Google\Analytics\Data\V1beta;
use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil;
/** * The response realtime report table corresponding to a request. * * Generated from protobuf message <code>google.analytics.data.v1beta.RunRealtimeReportResponse</code> */ class RunRealtimeReportResponse extends \Google\Protobuf\Internal\Message { /** * Describes dimension columns. The number of DimensionHeaders and ordering of * DimensionHeaders matches the dimensions present in rows. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1;</code> */ private $dimension_headers; /** * Describes metric columns. The number of MetricHeaders and ordering of * MetricHeaders matches the metrics present in rows. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2;</code> */ private $metric_headers; /** * Rows of dimension value combinations and metric values in the report. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.Row rows = 3;</code> */ private $rows; /** * If requested, the totaled values of metrics. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.Row totals = 4;</code> */ private $totals; /** * If requested, the maximum values of metrics. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.Row maximums = 5;</code> */ private $maximums; /** * If requested, the minimum values of metrics. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.Row minimums = 6;</code> */ private $minimums; /** * The total number of rows in the query result. `rowCount` is independent of * the number of rows returned in the response and the `limit` request * parameter. For example if a query returns 175 rows and includes `limit` * of 50 in the API request, the response will contain `rowCount` of 175 but * only 50 rows. * * Generated from protobuf field <code>int32 row_count = 7;</code> */ private $row_count = 0; /** * This Analytics Property's Realtime quota state including this request. * * Generated from protobuf field <code>.google.analytics.data.v1beta.PropertyQuota property_quota = 8;</code> */ private $property_quota = null; /** * Identifies what kind of resource this message is. This `kind` is always the * fixed string "analyticsData#runRealtimeReport". Useful to distinguish * between response types in JSON. * * Generated from protobuf field <code>string kind = 9;</code> */ private $kind = '';
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers * Describes dimension columns. The number of DimensionHeaders and ordering of * DimensionHeaders matches the dimensions present in rows. * @type array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers * Describes metric columns. The number of MetricHeaders and ordering of * MetricHeaders matches the metrics present in rows. * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $rows * Rows of dimension value combinations and metric values in the report. * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $totals * If requested, the totaled values of metrics. * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $maximums * If requested, the maximum values of metrics. * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $minimums * If requested, the minimum values of metrics. * @type int $row_count * The total number of rows in the query result. `rowCount` is independent of * the number of rows returned in the response and the `limit` request * parameter. For example if a query returns 175 rows and includes `limit` * of 50 in the API request, the response will contain `rowCount` of 175 but * only 50 rows. * @type \Google\Analytics\Data\V1beta\PropertyQuota $property_quota * This Analytics Property's Realtime quota state including this request. * @type string $kind * Identifies what kind of resource this message is. This `kind` is always the * fixed string "analyticsData#runRealtimeReport". Useful to distinguish * between response types in JSON. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); parent::__construct($data); }
/** * Describes dimension columns. The number of DimensionHeaders and ordering of * DimensionHeaders matches the dimensions present in rows. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getDimensionHeaders() { return $this->dimension_headers; }
/** * Describes dimension columns. The number of DimensionHeaders and ordering of * DimensionHeaders matches the dimensions present in rows. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1;</code> * @param array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDimensionHeaders($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionHeader::class); $this->dimension_headers = $arr;
return $this; }
/** * Describes metric columns. The number of MetricHeaders and ordering of * MetricHeaders matches the metrics present in rows. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getMetricHeaders() { return $this->metric_headers; }
/** * Describes metric columns. The number of MetricHeaders and ordering of * MetricHeaders matches the metrics present in rows. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2;</code> * @param array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMetricHeaders($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricHeader::class); $this->metric_headers = $arr;
return $this; }
/** * Rows of dimension value combinations and metric values in the report. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.Row rows = 3;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getRows() { return $this->rows; }
/** * Rows of dimension value combinations and metric values in the report. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.Row rows = 3;</code> * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRows($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); $this->rows = $arr;
return $this; }
/** * If requested, the totaled values of metrics. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.Row totals = 4;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getTotals() { return $this->totals; }
/** * If requested, the totaled values of metrics. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.Row totals = 4;</code> * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTotals($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); $this->totals = $arr;
return $this; }
/** * If requested, the maximum values of metrics. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.Row maximums = 5;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getMaximums() { return $this->maximums; }
/** * If requested, the maximum values of metrics. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.Row maximums = 5;</code> * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMaximums($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); $this->maximums = $arr;
return $this; }
/** * If requested, the minimum values of metrics. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.Row minimums = 6;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getMinimums() { return $this->minimums; }
/** * If requested, the minimum values of metrics. * * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.Row minimums = 6;</code> * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMinimums($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); $this->minimums = $arr;
return $this; }
/** * The total number of rows in the query result. `rowCount` is independent of * the number of rows returned in the response and the `limit` request * parameter. For example if a query returns 175 rows and includes `limit` * of 50 in the API request, the response will contain `rowCount` of 175 but * only 50 rows. * * Generated from protobuf field <code>int32 row_count = 7;</code> * @return int */ public function getRowCount() { return $this->row_count; }
/** * The total number of rows in the query result. `rowCount` is independent of * the number of rows returned in the response and the `limit` request * parameter. For example if a query returns 175 rows and includes `limit` * of 50 in the API request, the response will contain `rowCount` of 175 but * only 50 rows. * * Generated from protobuf field <code>int32 row_count = 7;</code> * @param int $var * @return $this */ public function setRowCount($var) { GPBUtil::checkInt32($var); $this->row_count = $var;
return $this; }
/** * This Analytics Property's Realtime quota state including this request. * * Generated from protobuf field <code>.google.analytics.data.v1beta.PropertyQuota property_quota = 8;</code> * @return \Google\Analytics\Data\V1beta\PropertyQuota|null */ public function getPropertyQuota() { return $this->property_quota; }
public function hasPropertyQuota() { return isset($this->property_quota); }
public function clearPropertyQuota() { unset($this->property_quota); }
/** * This Analytics Property's Realtime quota state including this request. * * Generated from protobuf field <code>.google.analytics.data.v1beta.PropertyQuota property_quota = 8;</code> * @param \Google\Analytics\Data\V1beta\PropertyQuota $var * @return $this */ public function setPropertyQuota($var) { GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\PropertyQuota::class); $this->property_quota = $var;
return $this; }
/** * Identifies what kind of resource this message is. This `kind` is always the * fixed string "analyticsData#runRealtimeReport". Useful to distinguish * between response types in JSON. * * Generated from protobuf field <code>string kind = 9;</code> * @return string */ public function getKind() { return $this->kind; }
/** * Identifies what kind of resource this message is. This `kind` is always the * fixed string "analyticsData#runRealtimeReport". Useful to distinguish * between response types in JSON. * * Generated from protobuf field <code>string kind = 9;</code> * @param string $var * @return $this */ public function setKind($var) { GPBUtil::checkString($var, True); $this->kind = $var;
return $this; }
}
|