-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathNumericValue.php
More file actions
108 lines (93 loc) · 2.27 KB
/
NumericValue.php
File metadata and controls
108 lines (93 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/analytics/data/v1alpha/data.proto
namespace Google\Analytics\Data\V1alpha;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* To represent a number.
*
* Generated from protobuf message <code>google.analytics.data.v1alpha.NumericValue</code>
*/
class NumericValue extends \Google\Protobuf\Internal\Message
{
protected $one_value;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int|string $int64_value
* Integer value
* @type float $double_value
* Double value
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce();
parent::__construct($data);
}
/**
* Integer value
*
* Generated from protobuf field <code>int64 int64_value = 1;</code>
* @return int|string
*/
public function getInt64Value()
{
return $this->readOneof(1);
}
public function hasInt64Value()
{
return $this->hasOneof(1);
}
/**
* Integer value
*
* Generated from protobuf field <code>int64 int64_value = 1;</code>
* @param int|string $var
* @return $this
*/
public function setInt64Value($var)
{
GPBUtil::checkInt64($var);
$this->writeOneof(1, $var);
return $this;
}
/**
* Double value
*
* Generated from protobuf field <code>double double_value = 2;</code>
* @return float
*/
public function getDoubleValue()
{
return $this->readOneof(2);
}
public function hasDoubleValue()
{
return $this->hasOneof(2);
}
/**
* Double value
*
* Generated from protobuf field <code>double double_value = 2;</code>
* @param float $var
* @return $this
*/
public function setDoubleValue($var)
{
GPBUtil::checkDouble($var);
$this->writeOneof(2, $var);
return $this;
}
/**
* @return string
*/
public function getOneValue()
{
return $this->whichOneof("one_value");
}
}