googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
cloud
/
AnalyticsData
/
src
/
V1alpha
/
DimensionValue.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
DimensionValue.php
76 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 | * The value of a dimension. |
| 13 | * |
| 14 | * Generated from protobuf message <code>google.analytics.data.v1alpha.DimensionValue</code> |
| 15 | */ |
| 16 | class DimensionValue extends \Google\Protobuf\Internal\Message |
| 17 | { |
| 18 | protected $one_value; |
| 19 | |
| 20 | /** |
| 21 | * Constructor. |
| 22 | * |
| 23 | * @param array $data { |
| 24 | * Optional. Data for populating the Message object. |
| 25 | * |
| 26 | * @type string $value |
| 27 | * Value as a string if the dimension type is a string. |
| 28 | * } |
| 29 | */ |
| 30 | public function __construct($data = NULL) { |
| 31 | \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); |
| 32 | parent::__construct($data); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Value as a string if the dimension type is a string. |
| 37 | * |
| 38 | * Generated from protobuf field <code>string value = 1;</code> |
| 39 | * @return string |
| 40 | */ |
| 41 | public function getValue() |
| 42 | { |
| 43 | return $this->readOneof(1); |
| 44 | } |
| 45 | |
| 46 | public function hasValue() |
| 47 | { |
| 48 | return $this->hasOneof(1); |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Value as a string if the dimension type is a string. |
| 53 | * |
| 54 | * Generated from protobuf field <code>string value = 1;</code> |
| 55 | * @param string $var |
| 56 | * @return $this |
| 57 | */ |
| 58 | public function setValue($var) |
| 59 | { |
| 60 | GPBUtil::checkString($var, True); |
| 61 | $this->writeOneof(1, $var); |
| 62 | |
| 63 | return $this; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * @return string |
| 68 | */ |
| 69 | public function getOneValue() |
| 70 | { |
| 71 | return $this->whichOneof("one_value"); |
| 72 | } |
| 73 | |
| 74 | } |
| 75 | |
| 76 |