googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
cloud
/
AnalyticsData
/
src
/
V1alpha
/
NumericValue.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
NumericValue.php
109 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 | * To represent a number. |
| 13 | * |
| 14 | * Generated from protobuf message <code>google.analytics.data.v1alpha.NumericValue</code> |
| 15 | */ |
| 16 | class NumericValue 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 int|string $int64_value |
| 27 | * Integer value |
| 28 | * @type float $double_value |
| 29 | * Double value |
| 30 | * } |
| 31 | */ |
| 32 | public function __construct($data = NULL) { |
| 33 | \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); |
| 34 | parent::__construct($data); |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Integer value |
| 39 | * |
| 40 | * Generated from protobuf field <code>int64 int64_value = 1;</code> |
| 41 | * @return int|string |
| 42 | */ |
| 43 | public function getInt64Value() |
| 44 | { |
| 45 | return $this->readOneof(1); |
| 46 | } |
| 47 | |
| 48 | public function hasInt64Value() |
| 49 | { |
| 50 | return $this->hasOneof(1); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Integer value |
| 55 | * |
| 56 | * Generated from protobuf field <code>int64 int64_value = 1;</code> |
| 57 | * @param int|string $var |
| 58 | * @return $this |
| 59 | */ |
| 60 | public function setInt64Value($var) |
| 61 | { |
| 62 | GPBUtil::checkInt64($var); |
| 63 | $this->writeOneof(1, $var); |
| 64 | |
| 65 | return $this; |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Double value |
| 70 | * |
| 71 | * Generated from protobuf field <code>double double_value = 2;</code> |
| 72 | * @return float |
| 73 | */ |
| 74 | public function getDoubleValue() |
| 75 | { |
| 76 | return $this->readOneof(2); |
| 77 | } |
| 78 | |
| 79 | public function hasDoubleValue() |
| 80 | { |
| 81 | return $this->hasOneof(2); |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Double value |
| 86 | * |
| 87 | * Generated from protobuf field <code>double double_value = 2;</code> |
| 88 | * @param float $var |
| 89 | * @return $this |
| 90 | */ |
| 91 | public function setDoubleValue($var) |
| 92 | { |
| 93 | GPBUtil::checkDouble($var); |
| 94 | $this->writeOneof(2, $var); |
| 95 | |
| 96 | return $this; |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * @return string |
| 101 | */ |
| 102 | public function getOneValue() |
| 103 | { |
| 104 | return $this->whichOneof("one_value"); |
| 105 | } |
| 106 | |
| 107 | } |
| 108 | |
| 109 |