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 repeated int32 books = 2;
*/
private $books;
/**
* Generated from protobuf field string match_mode = 3;
*/
protected $match_mode = '';
/**
* 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 array|\Google\Protobuf\Internal\RepeatedField $books
* @type string $match_mode
* @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 repeated int32 books = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getBooks()
{
return $this->books;
}
/**
* Generated from protobuf field repeated int32 books = 2;
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setBooks($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
$this->books = $arr;
return $this;
}
/**
* Generated from protobuf field string match_mode = 3;
* @return string
*/
public function getMatchMode()
{
return $this->match_mode;
}
/**
* Generated from protobuf field string match_mode = 3;
* @param string $var
* @return $this
*/
public function setMatchMode($var)
{
GPBUtil::checkString($var, True);
$this->match_mode = $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;
}
}