mint.tulip.v1.UpdateIndexRequest
*/
class UpdateIndexRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field int32 book = 1;
*/
protected $book = 0;
/**
* Generated from protobuf field optional int32 paragraph = 2;
*/
protected $paragraph = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $book
* @type int $paragraph
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Tulip::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field int32 book = 1;
* @return int
*/
public function getBook()
{
return $this->book;
}
/**
* Generated from protobuf field int32 book = 1;
* @param int $var
* @return $this
*/
public function setBook($var)
{
GPBUtil::checkInt32($var);
$this->book = $var;
return $this;
}
/**
* Generated from protobuf field optional int32 paragraph = 2;
* @return int
*/
public function getParagraph()
{
return isset($this->paragraph) ? $this->paragraph : 0;
}
public function hasParagraph()
{
return isset($this->paragraph);
}
public function clearParagraph()
{
unset($this->paragraph);
}
/**
* Generated from protobuf field optional int32 paragraph = 2;
* @param int $var
* @return $this
*/
public function setParagraph($var)
{
GPBUtil::checkInt32($var);
$this->paragraph = $var;
return $this;
}
}