1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?php
- namespace Ydb;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- class StructMember extends \Google\Protobuf\Internal\Message
- {
-
- protected $name = '';
-
- protected $type = null;
-
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbValue::initOnce();
- parent::__construct($data);
- }
-
- public function getName()
- {
- return $this->name;
- }
-
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
- return $this;
- }
-
- public function getType()
- {
- return $this->type;
- }
- public function hasType()
- {
- return isset($this->type);
- }
- public function clearType()
- {
- unset($this->type);
- }
-
- public function setType($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Type::class);
- $this->type = $var;
- return $this;
- }
- }
|