mint.tulip.v1.UpdateRequest
*/
class UpdateRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field int32 book = 1;
*/
protected $book = 0;
/**
* Generated from protobuf field int32 paragraph = 2;
*/
protected $paragraph = 0;
/**
* Generated from protobuf field int32 level = 3;
*/
protected $level = 0;
/**
* Generated from protobuf field string bold1 = 4;
*/
protected $bold1 = '';
/**
* Generated from protobuf field string bold2 = 5;
*/
protected $bold2 = '';
/**
* Generated from protobuf field string bold3 = 6;
*/
protected $bold3 = '';
/**
* Generated from protobuf field string content = 7;
*/
protected $content = '';
/**
* Generated from protobuf field int32 pcd_book_id = 8;
*/
protected $pcd_book_id = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $book
* @type int $paragraph
* @type int $level
* @type string $bold1
* @type string $bold2
* @type string $bold3
* @type string $content
* @type int $pcd_book_id
* }
*/
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 int32 paragraph = 2;
* @return int
*/
public function getParagraph()
{
return $this->paragraph;
}
/**
* Generated from protobuf field int32 paragraph = 2;
* @param int $var
* @return $this
*/
public function setParagraph($var)
{
GPBUtil::checkInt32($var);
$this->paragraph = $var;
return $this;
}
/**
* Generated from protobuf field int32 level = 3;
* @return int
*/
public function getLevel()
{
return $this->level;
}
/**
* Generated from protobuf field int32 level = 3;
* @param int $var
* @return $this
*/
public function setLevel($var)
{
GPBUtil::checkInt32($var);
$this->level = $var;
return $this;
}
/**
* Generated from protobuf field string bold1 = 4;
* @return string
*/
public function getBold1()
{
return $this->bold1;
}
/**
* Generated from protobuf field string bold1 = 4;
* @param string $var
* @return $this
*/
public function setBold1($var)
{
GPBUtil::checkString($var, True);
$this->bold1 = $var;
return $this;
}
/**
* Generated from protobuf field string bold2 = 5;
* @return string
*/
public function getBold2()
{
return $this->bold2;
}
/**
* Generated from protobuf field string bold2 = 5;
* @param string $var
* @return $this
*/
public function setBold2($var)
{
GPBUtil::checkString($var, True);
$this->bold2 = $var;
return $this;
}
/**
* Generated from protobuf field string bold3 = 6;
* @return string
*/
public function getBold3()
{
return $this->bold3;
}
/**
* Generated from protobuf field string bold3 = 6;
* @param string $var
* @return $this
*/
public function setBold3($var)
{
GPBUtil::checkString($var, True);
$this->bold3 = $var;
return $this;
}
/**
* Generated from protobuf field string content = 7;
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* Generated from protobuf field string content = 7;
* @param string $var
* @return $this
*/
public function setContent($var)
{
GPBUtil::checkString($var, True);
$this->content = $var;
return $this;
}
/**
* Generated from protobuf field int32 pcd_book_id = 8;
* @return int
*/
public function getPcdBookId()
{
return $this->pcd_book_id;
}
/**
* Generated from protobuf field int32 pcd_book_id = 8;
* @param int $var
* @return $this
*/
public function setPcdBookId($var)
{
GPBUtil::checkInt32($var);
$this->pcd_book_id = $var;
return $this;
}
}