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