googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
cloud
/
AnalyticsData
/
src
/
V1beta
/
PivotHeader.php
googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
cloud
/
AnalyticsData
/
src
/
V1beta
Last commit date
CohortsRange
3 years ago
DimensionExpression
3 years ago
Filter
3 years ago
Gapic
3 years ago
MetricMetadata
3 years ago
OrderBy
3 years ago
ResponseMetaData
3 years ago
resources
3 years ago
BatchRunPivotReportsRequest.php
3 years ago
BatchRunPivotReportsResponse.php
3 years ago
BatchRunReportsRequest.php
3 years ago
BatchRunReportsResponse.php
3 years ago
BetaAnalyticsDataClient.php
3 years ago
BetaAnalyticsDataGrpcClient.php
3 years ago
CheckCompatibilityRequest.php
3 years ago
CheckCompatibilityResponse.php
3 years ago
Cohort.php
3 years ago
CohortReportSettings.php
3 years ago
CohortSpec.php
3 years ago
CohortsRange.php
3 years ago
Compatibility.php
3 years ago
DateRange.php
3 years ago
Dimension.php
3 years ago
DimensionCompatibility.php
3 years ago
DimensionExpression.php
3 years ago
DimensionHeader.php
3 years ago
DimensionMetadata.php
3 years ago
DimensionValue.php
3 years ago
Filter.php
3 years ago
FilterExpression.php
3 years ago
FilterExpressionList.php
3 years ago
GetMetadataRequest.php
3 years ago
Metadata.php
3 years ago
Metric.php
3 years ago
MetricAggregation.php
3 years ago
MetricCompatibility.php
3 years ago
MetricHeader.php
3 years ago
MetricMetadata.php
3 years ago
MetricType.php
3 years ago
MetricValue.php
3 years ago
MinuteRange.php
3 years ago
NumericValue.php
3 years ago
OrderBy.php
3 years ago
Pivot.php
3 years ago
PivotDimensionHeader.php
3 years ago
PivotHeader.php
3 years ago
PropertyQuota.php
3 years ago
QuotaStatus.php
3 years ago
ResponseMetaData.php
3 years ago
RestrictedMetricType.php
3 years ago
Row.php
3 years ago
RunPivotReportRequest.php
3 years ago
RunPivotReportResponse.php
3 years ago
RunRealtimeReportRequest.php
3 years ago
RunRealtimeReportResponse.php
3 years ago
RunReportRequest.php
3 years ago
RunReportResponse.php
3 years ago
gapic_metadata.json
3 years ago
PivotHeader.php
114 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/analytics/data/v1beta/data.proto |
| 4 | |
| 5 | namespace Google\Analytics\Data\V1beta; |
| 6 | |
| 7 | use Google\Protobuf\Internal\GPBType; |
| 8 | use Google\Protobuf\Internal\RepeatedField; |
| 9 | use Google\Protobuf\Internal\GPBUtil; |
| 10 | |
| 11 | /** |
| 12 | * Dimensions' values in a single pivot. |
| 13 | * |
| 14 | * Generated from protobuf message <code>google.analytics.data.v1beta.PivotHeader</code> |
| 15 | */ |
| 16 | class PivotHeader extends \Google\Protobuf\Internal\Message |
| 17 | { |
| 18 | /** |
| 19 | * The size is the same as the cardinality of the corresponding dimension |
| 20 | * combinations. |
| 21 | * |
| 22 | * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;</code> |
| 23 | */ |
| 24 | private $pivot_dimension_headers; |
| 25 | /** |
| 26 | * The cardinality of the pivot. The total number of rows for this pivot's |
| 27 | * fields regardless of how the parameters `offset` and `limit` are specified |
| 28 | * in the request. |
| 29 | * |
| 30 | * Generated from protobuf field <code>int32 row_count = 2;</code> |
| 31 | */ |
| 32 | private $row_count = 0; |
| 33 | |
| 34 | /** |
| 35 | * Constructor. |
| 36 | * |
| 37 | * @param array $data { |
| 38 | * Optional. Data for populating the Message object. |
| 39 | * |
| 40 | * @type \Google\Analytics\Data\V1beta\PivotDimensionHeader[]|\Google\Protobuf\Internal\RepeatedField $pivot_dimension_headers |
| 41 | * The size is the same as the cardinality of the corresponding dimension |
| 42 | * combinations. |
| 43 | * @type int $row_count |
| 44 | * The cardinality of the pivot. The total number of rows for this pivot's |
| 45 | * fields regardless of how the parameters `offset` and `limit` are specified |
| 46 | * in the request. |
| 47 | * } |
| 48 | */ |
| 49 | public function __construct($data = NULL) { |
| 50 | \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); |
| 51 | parent::__construct($data); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * The size is the same as the cardinality of the corresponding dimension |
| 56 | * combinations. |
| 57 | * |
| 58 | * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;</code> |
| 59 | * @return \Google\Protobuf\Internal\RepeatedField |
| 60 | */ |
| 61 | public function getPivotDimensionHeaders() |
| 62 | { |
| 63 | return $this->pivot_dimension_headers; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * The size is the same as the cardinality of the corresponding dimension |
| 68 | * combinations. |
| 69 | * |
| 70 | * Generated from protobuf field <code>repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1;</code> |
| 71 | * @param \Google\Analytics\Data\V1beta\PivotDimensionHeader[]|\Google\Protobuf\Internal\RepeatedField $var |
| 72 | * @return $this |
| 73 | */ |
| 74 | public function setPivotDimensionHeaders($var) |
| 75 | { |
| 76 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\PivotDimensionHeader::class); |
| 77 | $this->pivot_dimension_headers = $arr; |
| 78 | |
| 79 | return $this; |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * The cardinality of the pivot. The total number of rows for this pivot's |
| 84 | * fields regardless of how the parameters `offset` and `limit` are specified |
| 85 | * in the request. |
| 86 | * |
| 87 | * Generated from protobuf field <code>int32 row_count = 2;</code> |
| 88 | * @return int |
| 89 | */ |
| 90 | public function getRowCount() |
| 91 | { |
| 92 | return $this->row_count; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * The cardinality of the pivot. The total number of rows for this pivot's |
| 97 | * fields regardless of how the parameters `offset` and `limit` are specified |
| 98 | * in the request. |
| 99 | * |
| 100 | * Generated from protobuf field <code>int32 row_count = 2;</code> |
| 101 | * @param int $var |
| 102 | * @return $this |
| 103 | */ |
| 104 | public function setRowCount($var) |
| 105 | { |
| 106 | GPBUtil::checkInt32($var); |
| 107 | $this->row_count = $var; |
| 108 | |
| 109 | return $this; |
| 110 | } |
| 111 | |
| 112 | } |
| 113 | |
| 114 |