googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
cloud
/
AnalyticsData
/
src
/
V1alpha
/
Metadata.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
Metadata.php
136 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/analytics/data/v1alpha/analytics_data_api.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 | * The dimensions and metrics currently accepted in reporting methods. |
| 13 | * |
| 14 | * Generated from protobuf message <code>google.analytics.data.v1alpha.Metadata</code> |
| 15 | */ |
| 16 | class Metadata extends \Google\Protobuf\Internal\Message |
| 17 | { |
| 18 | /** |
| 19 | * Resource name of this metadata. |
| 20 | * |
| 21 | * Generated from protobuf field <code>string name = 3;</code> |
| 22 | */ |
| 23 | private $name = ''; |
| 24 | /** |
| 25 | * The dimension descriptions. |
| 26 | * |
| 27 | * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;</code> |
| 28 | */ |
| 29 | private $dimensions; |
| 30 | /** |
| 31 | * The metric descriptions. |
| 32 | * |
| 33 | * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;</code> |
| 34 | */ |
| 35 | private $metrics; |
| 36 | |
| 37 | /** |
| 38 | * Constructor. |
| 39 | * |
| 40 | * @param array $data { |
| 41 | * Optional. Data for populating the Message object. |
| 42 | * |
| 43 | * @type string $name |
| 44 | * Resource name of this metadata. |
| 45 | * @type \Google\Analytics\Data\V1alpha\DimensionMetadata[]|\Google\Protobuf\Internal\RepeatedField $dimensions |
| 46 | * The dimension descriptions. |
| 47 | * @type \Google\Analytics\Data\V1alpha\MetricMetadata[]|\Google\Protobuf\Internal\RepeatedField $metrics |
| 48 | * The metric descriptions. |
| 49 | * } |
| 50 | */ |
| 51 | public function __construct($data = NULL) { |
| 52 | \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); |
| 53 | parent::__construct($data); |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Resource name of this metadata. |
| 58 | * |
| 59 | * Generated from protobuf field <code>string name = 3;</code> |
| 60 | * @return string |
| 61 | */ |
| 62 | public function getName() |
| 63 | { |
| 64 | return $this->name; |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Resource name of this metadata. |
| 69 | * |
| 70 | * Generated from protobuf field <code>string name = 3;</code> |
| 71 | * @param string $var |
| 72 | * @return $this |
| 73 | */ |
| 74 | public function setName($var) |
| 75 | { |
| 76 | GPBUtil::checkString($var, True); |
| 77 | $this->name = $var; |
| 78 | |
| 79 | return $this; |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * The dimension descriptions. |
| 84 | * |
| 85 | * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;</code> |
| 86 | * @return \Google\Protobuf\Internal\RepeatedField |
| 87 | */ |
| 88 | public function getDimensions() |
| 89 | { |
| 90 | return $this->dimensions; |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * The dimension descriptions. |
| 95 | * |
| 96 | * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;</code> |
| 97 | * @param \Google\Analytics\Data\V1alpha\DimensionMetadata[]|\Google\Protobuf\Internal\RepeatedField $var |
| 98 | * @return $this |
| 99 | */ |
| 100 | public function setDimensions($var) |
| 101 | { |
| 102 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\DimensionMetadata::class); |
| 103 | $this->dimensions = $arr; |
| 104 | |
| 105 | return $this; |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * The metric descriptions. |
| 110 | * |
| 111 | * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;</code> |
| 112 | * @return \Google\Protobuf\Internal\RepeatedField |
| 113 | */ |
| 114 | public function getMetrics() |
| 115 | { |
| 116 | return $this->metrics; |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * The metric descriptions. |
| 121 | * |
| 122 | * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;</code> |
| 123 | * @param \Google\Analytics\Data\V1alpha\MetricMetadata[]|\Google\Protobuf\Internal\RepeatedField $var |
| 124 | * @return $this |
| 125 | */ |
| 126 | public function setMetrics($var) |
| 127 | { |
| 128 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\MetricMetadata::class); |
| 129 | $this->metrics = $arr; |
| 130 | |
| 131 | return $this; |
| 132 | } |
| 133 | |
| 134 | } |
| 135 | |
| 136 |