| 1 |
<?php |
| 2 |
# Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 |
# source: google/protobuf/wrappers.proto |
| 4 |
|
| 5 |
namespace Google\Protobuf; |
| 6 |
|
| 7 |
use Google\Protobuf\Internal\GPBType; |
| 8 |
use Google\Protobuf\Internal\RepeatedField; |
| 9 |
use Google\Protobuf\Internal\GPBUtil; |
| 10 |
|
| 11 |
/** |
| 12 |
* Wrapper message for `int64`. |
| 13 |
* The JSON representation for `Int64Value` is JSON string. |
| 14 |
* |
| 15 |
* Generated from protobuf message <code>google.protobuf.Int64Value</code> |
| 16 |
*/ |
| 17 |
class Int64Value extends \Google\Protobuf\Internal\Message |
| 18 |
{ |
| 19 |
/** |
| 20 |
* The int64 value. |
| 21 |
* |
| 22 |
* Generated from protobuf field <code>int64 value = 1;</code> |
| 23 |
*/ |
| 24 |
protected $value = 0; |
| 25 |
|
| 26 |
/** |
| 27 |
* Constructor. |
| 28 |
* |
| 29 |
* @param array $data { |
| 30 |
* Optional. Data for populating the Message object. |
| 31 |
* |
| 32 |
* @type int|string $value |
| 33 |
* The int64 value. |
| 34 |
* } |
| 35 |
*/ |
| 36 |
public function __construct($data = NULL) { |
| 37 |
\GPBMetadata\Google\Protobuf\Wrappers::initOnce(); |
| 38 |
parent::__construct($data); |
| 39 |
} |
| 40 |
|
| 41 |
/** |
| 42 |
* The int64 value. |
| 43 |
* |
| 44 |
* Generated from protobuf field <code>int64 value = 1;</code> |
| 45 |
* @return int|string |
| 46 |
*/ |
| 47 |
public function getValue() |
| 48 |
{ |
| 49 |
return $this->value; |
| 50 |
} |
| 51 |
|
| 52 |
/** |
| 53 |
* The int64 value. |
| 54 |
* |
| 55 |
* Generated from protobuf field <code>int64 value = 1;</code> |
| 56 |
* @param int|string $var |
| 57 |
* @return $this |
| 58 |
*/ |
| 59 |
public function setValue($var) |
| 60 |
{ |
| 61 |
GPBUtil::checkInt64($var); |
| 62 |
$this->value = $var; |
| 63 |
|
| 64 |
return $this; |
| 65 |
} |
| 66 |
|
| 67 |
} |
| 68 |
|