forked from googleapis/google-cloud-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPivotHeader.php
More file actions
113 lines (101 loc) · 3.76 KB
/
PivotHeader.php
File metadata and controls
113 lines (101 loc) · 3.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/analytics/data/v1beta/data.proto
namespace Google\Analytics\Data\V1beta;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Dimensions' values in a single pivot.
*
* Generated from protobuf message <code>google.analytics.data.v1beta.PivotHeader</code>
*/
class PivotHeader extends \Google\Protobuf\Internal\Message
{
/**
* The size is the same as the cardinality of the corresponding dimension
* combinations.
*
* Generated from protobuf field <code>repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;</code>
*/
private $pivot_dimension_headers;
/**
* The cardinality of the pivot. The total number of rows for this pivot's
* fields regardless of how the parameters `offset` and `limit` are specified
* in the request.
*
* Generated from protobuf field <code>int32 row_count = 2;</code>
*/
private $row_count = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array<\Google\Analytics\Data\V1beta\PivotDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $pivot_dimension_headers
* The size is the same as the cardinality of the corresponding dimension
* combinations.
* @type int $row_count
* The cardinality of the pivot. The total number of rows for this pivot's
* fields regardless of how the parameters `offset` and `limit` are specified
* in the request.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce();
parent::__construct($data);
}
/**
* The size is the same as the cardinality of the corresponding dimension
* combinations.
*
* Generated from protobuf field <code>repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getPivotDimensionHeaders()
{
return $this->pivot_dimension_headers;
}
/**
* The size is the same as the cardinality of the corresponding dimension
* combinations.
*
* Generated from protobuf field <code>repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;</code>
* @param array<\Google\Analytics\Data\V1beta\PivotDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setPivotDimensionHeaders($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\PivotDimensionHeader::class);
$this->pivot_dimension_headers = $arr;
return $this;
}
/**
* The cardinality of the pivot. The total number of rows for this pivot's
* fields regardless of how the parameters `offset` and `limit` are specified
* in the request.
*
* Generated from protobuf field <code>int32 row_count = 2;</code>
* @return int
*/
public function getRowCount()
{
return $this->row_count;
}
/**
* The cardinality of the pivot. The total number of rows for this pivot's
* fields regardless of how the parameters `offset` and `limit` are specified
* in the request.
*
* Generated from protobuf field <code>int32 row_count = 2;</code>
* @param int $var
* @return $this
*/
public function setRowCount($var)
{
GPBUtil::checkInt32($var);
$this->row_count = $var;
return $this;
}
}