1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/annotations/validation.proto
- namespace Ydb;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.MapKey</code>
- */
- class MapKey extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>.Ydb.Limit length = 1;</code>
- */
- protected $length = null;
- /**
- * Generated from protobuf field <code>string value = 2;</code>
- */
- protected $value = '';
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Ydb\Limit $length
- * @type string $value
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\Annotations\Validation::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>.Ydb.Limit length = 1;</code>
- * @return \Ydb\Limit|null
- */
- public function getLength()
- {
- return $this->length;
- }
- public function hasLength()
- {
- return isset($this->length);
- }
- public function clearLength()
- {
- unset($this->length);
- }
- /**
- * Generated from protobuf field <code>.Ydb.Limit length = 1;</code>
- * @param \Ydb\Limit $var
- * @return $this
- */
- public function setLength($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Limit::class);
- $this->length = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string value = 2;</code>
- * @return string
- */
- public function getValue()
- {
- return $this->value;
- }
- /**
- * Generated from protobuf field <code>string value = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setValue($var)
- {
- GPBUtil::checkString($var, True);
- $this->value = $var;
- return $this;
- }
- }
|