1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- namespace Ydb;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- class OptionalType extends \Google\Protobuf\Internal\Message
- {
-
- protected $item = null;
-
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbValue::initOnce();
- parent::__construct($data);
- }
-
- public function getItem()
- {
- return $this->item;
- }
- public function hasItem()
- {
- return isset($this->item);
- }
- public function clearItem()
- {
- unset($this->item);
- }
-
- public function setItem($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Type::class);
- $this->item = $var;
- return $this;
- }
- }
|