googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
cloud
/
AnalyticsData
/
src
/
V1alpha
/
Row.php
googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
cloud
/
AnalyticsData
/
src
/
V1alpha
Last commit date
CohortsRange
3 years ago
DimensionExpression
3 years ago
Filter
3 years ago
Gapic
3 years ago
OrderBy
3 years ago
resources
3 years ago
AlphaAnalyticsDataClient.php
3 years ago
AlphaAnalyticsDataGrpcClient.php
3 years ago
BatchRunPivotReportsRequest.php
3 years ago
BatchRunPivotReportsResponse.php
3 years ago
BatchRunReportsRequest.php
3 years ago
BatchRunReportsResponse.php
3 years ago
Cohort.php
3 years ago
CohortReportSettings.php
3 years ago
CohortSpec.php
3 years ago
CohortsRange.php
3 years ago
DateRange.php
3 years ago
Dimension.php
3 years ago
DimensionExpression.php
3 years ago
DimensionHeader.php
3 years ago
DimensionMetadata.php
3 years ago
DimensionValue.php
3 years ago
Entity.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
MetricHeader.php
3 years ago
MetricMetadata.php
3 years ago
MetricType.php
3 years ago
MetricValue.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
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
Row.php
139 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/analytics/data/v1alpha/data.proto |
| 4 | |
| 5 | namespace Google\Analytics\Data\V1alpha; |
| 6 | |
| 7 | use Google\Protobuf\Internal\GPBType; |
| 8 | use Google\Protobuf\Internal\RepeatedField; |
| 9 | use Google\Protobuf\Internal\GPBUtil; |
| 10 | |
| 11 | /** |
| 12 | * Report data for each row. |
| 13 | * For example if RunReportRequest contains: |
| 14 | * ```none |
| 15 | * "dimensions": [ |
| 16 | * { |
| 17 | * "name": "eventName" |
| 18 | * }, |
| 19 | * { |
| 20 | * "name": "countryId" |
| 21 | * } |
| 22 | * ], |
| 23 | * "metrics": [ |
| 24 | * { |
| 25 | * "name": "eventCount" |
| 26 | * } |
| 27 | * ] |
| 28 | * ``` |
| 29 | * One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and |
| 30 | * 15 as the eventCount, would be: |
| 31 | * ```none |
| 32 | * "dimensionValues": [ |
| 33 | * { |
| 34 | * "value": "in_app_purchase" |
| 35 | * }, |
| 36 | * { |
| 37 | * "value": "JP" |
| 38 | * } |
| 39 | * ], |
| 40 | * "metricValues": [ |
| 41 | * { |
| 42 | * "value": "15" |
| 43 | * } |
| 44 | * ] |
| 45 | * ``` |
| 46 | * |
| 47 | * Generated from protobuf message <code>google.analytics.data.v1alpha.Row</code> |
| 48 | */ |
| 49 | class Row extends \Google\Protobuf\Internal\Message |
| 50 | { |
| 51 | /** |
| 52 | * List of requested dimension values. In a PivotReport, dimension_values |
| 53 | * are only listed for dimensions included in a pivot. |
| 54 | * |
| 55 | * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;</code> |
| 56 | */ |
| 57 | private $dimension_values; |
| 58 | /** |
| 59 | * List of requested visible metric values. |
| 60 | * |
| 61 | * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;</code> |
| 62 | */ |
| 63 | private $metric_values; |
| 64 | |
| 65 | /** |
| 66 | * Constructor. |
| 67 | * |
| 68 | * @param array $data { |
| 69 | * Optional. Data for populating the Message object. |
| 70 | * |
| 71 | * @type \Google\Analytics\Data\V1alpha\DimensionValue[]|\Google\Protobuf\Internal\RepeatedField $dimension_values |
| 72 | * List of requested dimension values. In a PivotReport, dimension_values |
| 73 | * are only listed for dimensions included in a pivot. |
| 74 | * @type \Google\Analytics\Data\V1alpha\MetricValue[]|\Google\Protobuf\Internal\RepeatedField $metric_values |
| 75 | * List of requested visible metric values. |
| 76 | * } |
| 77 | */ |
| 78 | public function __construct($data = NULL) { |
| 79 | \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); |
| 80 | parent::__construct($data); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * List of requested dimension values. In a PivotReport, dimension_values |
| 85 | * are only listed for dimensions included in a pivot. |
| 86 | * |
| 87 | * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;</code> |
| 88 | * @return \Google\Protobuf\Internal\RepeatedField |
| 89 | */ |
| 90 | public function getDimensionValues() |
| 91 | { |
| 92 | return $this->dimension_values; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * List of requested dimension values. In a PivotReport, dimension_values |
| 97 | * are only listed for dimensions included in a pivot. |
| 98 | * |
| 99 | * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;</code> |
| 100 | * @param \Google\Analytics\Data\V1alpha\DimensionValue[]|\Google\Protobuf\Internal\RepeatedField $var |
| 101 | * @return $this |
| 102 | */ |
| 103 | public function setDimensionValues($var) |
| 104 | { |
| 105 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\DimensionValue::class); |
| 106 | $this->dimension_values = $arr; |
| 107 | |
| 108 | return $this; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * List of requested visible metric values. |
| 113 | * |
| 114 | * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;</code> |
| 115 | * @return \Google\Protobuf\Internal\RepeatedField |
| 116 | */ |
| 117 | public function getMetricValues() |
| 118 | { |
| 119 | return $this->metric_values; |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * List of requested visible metric values. |
| 124 | * |
| 125 | * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;</code> |
| 126 | * @param \Google\Analytics\Data\V1alpha\MetricValue[]|\Google\Protobuf\Internal\RepeatedField $var |
| 127 | * @return $this |
| 128 | */ |
| 129 | public function setMetricValues($var) |
| 130 | { |
| 131 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\MetricValue::class); |
| 132 | $this->metric_values = $arr; |
| 133 | |
| 134 | return $this; |
| 135 | } |
| 136 | |
| 137 | } |
| 138 | |
| 139 |