Ydb.Limit
*/
class Limit extends \Google\Protobuf\Internal\Message
{
protected $kind;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Ydb\Limit\Range $range
* @type int $lt
* @type int $le
* @type int $eq
* @type int $ge
* @type int $gt
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\Annotations\Validation::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .Ydb.Limit.Range range = 1;
* @return \Ydb\Limit\Range|null
*/
public function getRange()
{
return $this->readOneof(1);
}
public function hasRange()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field .Ydb.Limit.Range range = 1;
* @param \Ydb\Limit\Range $var
* @return $this
*/
public function setRange($var)
{
GPBUtil::checkMessage($var, \Ydb\Limit\Range::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field uint32 lt = 2;
* @return int
*/
public function getLt()
{
return $this->readOneof(2);
}
public function hasLt()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field uint32 lt = 2;
* @param int $var
* @return $this
*/
public function setLt($var)
{
GPBUtil::checkUint32($var);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field uint32 le = 3;
* @return int
*/
public function getLe()
{
return $this->readOneof(3);
}
public function hasLe()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field uint32 le = 3;
* @param int $var
* @return $this
*/
public function setLe($var)
{
GPBUtil::checkUint32($var);
$this->writeOneof(3, $var);
return $this;
}
/**
* Generated from protobuf field uint32 eq = 4;
* @return int
*/
public function getEq()
{
return $this->readOneof(4);
}
public function hasEq()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field uint32 eq = 4;
* @param int $var
* @return $this
*/
public function setEq($var)
{
GPBUtil::checkUint32($var);
$this->writeOneof(4, $var);
return $this;
}
/**
* Generated from protobuf field uint32 ge = 5;
* @return int
*/
public function getGe()
{
return $this->readOneof(5);
}
public function hasGe()
{
return $this->hasOneof(5);
}
/**
* Generated from protobuf field uint32 ge = 5;
* @param int $var
* @return $this
*/
public function setGe($var)
{
GPBUtil::checkUint32($var);
$this->writeOneof(5, $var);
return $this;
}
/**
* Generated from protobuf field uint32 gt = 6;
* @return int
*/
public function getGt()
{
return $this->readOneof(6);
}
public function hasGt()
{
return $this->hasOneof(6);
}
/**
* Generated from protobuf field uint32 gt = 6;
* @param int $var
* @return $this
*/
public function setGt($var)
{
GPBUtil::checkUint32($var);
$this->writeOneof(6, $var);
return $this;
}
/**
* @return string
*/
public function getKind()
{
return $this->whichOneof("kind");
}
}