123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_value.proto
- namespace Ydb;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Column</code>
- */
- class Column extends \Google\Protobuf\Internal\Message
- {
- /**
- * Name of column
- *
- * Generated from protobuf field <code>string name = 1;</code>
- */
- protected $name = '';
- /**
- * Type of column
- *
- * Generated from protobuf field <code>.Ydb.Type type = 2;</code>
- */
- protected $type = null;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Name of column
- * @type \Ydb\Type $type
- * Type of column
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbValue::initOnce();
- parent::__construct($data);
- }
- /**
- * Name of column
- *
- * Generated from protobuf field <code>string name = 1;</code>
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Name of column
- *
- * Generated from protobuf field <code>string name = 1;</code>
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
- return $this;
- }
- /**
- * Type of column
- *
- * Generated from protobuf field <code>.Ydb.Type type = 2;</code>
- * @return \Ydb\Type|null
- */
- public function getType()
- {
- return $this->type;
- }
- public function hasType()
- {
- return isset($this->type);
- }
- public function clearType()
- {
- unset($this->type);
- }
- /**
- * Type of column
- *
- * Generated from protobuf field <code>.Ydb.Type type = 2;</code>
- * @param \Ydb\Type $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Type::class);
- $this->type = $var;
- return $this;
- }
- }
|