mint.tulip.v1.SearchRequest
*/
class SearchRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field repeated string keywords = 1;
*/
private $keywords;
/**
* Generated from protobuf field int32 book = 2;
*/
protected $book = 0;
/**
* Generated from protobuf field optional .mint.tulip.v1.SearchRequest.Page page = 99;
*/
protected $page = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array|\Google\Protobuf\Internal\RepeatedField $keywords
* @type int $book
* @type \Mint\Tulip\V1\SearchRequest\Page $page
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Tulip::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field repeated string keywords = 1;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getKeywords()
{
return $this->keywords;
}
/**
* Generated from protobuf field repeated string keywords = 1;
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setKeywords($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->keywords = $arr;
return $this;
}
/**
* Generated from protobuf field int32 book = 2;
* @return int
*/
public function getBook()
{
return $this->book;
}
/**
* Generated from protobuf field int32 book = 2;
* @param int $var
* @return $this
*/
public function setBook($var)
{
GPBUtil::checkInt32($var);
$this->book = $var;
return $this;
}
/**
* Generated from protobuf field optional .mint.tulip.v1.SearchRequest.Page page = 99;
* @return \Mint\Tulip\V1\SearchRequest\Page|null
*/
public function getPage()
{
return $this->page;
}
public function hasPage()
{
return isset($this->page);
}
public function clearPage()
{
unset($this->page);
}
/**
* Generated from protobuf field optional .mint.tulip.v1.SearchRequest.Page page = 99;
* @param \Mint\Tulip\V1\SearchRequest\Page $var
* @return $this
*/
public function setPage($var)
{
GPBUtil::checkMessage($var, \Mint\Tulip\V1\SearchRequest\Page::class);
$this->page = $var;
return $this;
}
}