Ydb.MapKey
*/
class MapKey extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .Ydb.Limit length = 1;
*/
protected $length = null;
/**
* Generated from protobuf field string value = 2;
*/
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 .Ydb.Limit length = 1;
* @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 .Ydb.Limit length = 1;
* @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 string value = 2;
* @return string
*/
public function getValue()
{
return $this->value;
}
/**
* Generated from protobuf field string value = 2;
* @param string $var
* @return $this
*/
public function setValue($var)
{
GPBUtil::checkString($var, True);
$this->value = $var;
return $this;
}
}