| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: tulip.proto
- namespace Mint\Tulip\V1;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * ----------------------------------------------------------------------------
- *
- * Generated from protobuf message <code>mint.tulip.v1.SearchRequest</code>
- */
- class SearchRequest extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>repeated string keywords = 1;</code>
- */
- private $keywords;
- /**
- * Generated from protobuf field <code>repeated int32 books = 2;</code>
- */
- private $books;
- /**
- * Generated from protobuf field <code>string match_mode = 3;</code>
- */
- protected $match_mode = '';
- /**
- * Generated from protobuf field <code>optional .mint.tulip.v1.SearchRequest.Page page = 99;</code>
- */
- protected $page = null;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<string>|\Google\Protobuf\Internal\RepeatedField $keywords
- * @type array<int>|\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 <code>repeated string keywords = 1;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getKeywords()
- {
- return $this->keywords;
- }
- /**
- * Generated from protobuf field <code>repeated string keywords = 1;</code>
- * @param array<string>|\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 <code>repeated int32 books = 2;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getBooks()
- {
- return $this->books;
- }
- /**
- * Generated from protobuf field <code>repeated int32 books = 2;</code>
- * @param array<int>|\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 <code>string match_mode = 3;</code>
- * @return string
- */
- public function getMatchMode()
- {
- return $this->match_mode;
- }
- /**
- * Generated from protobuf field <code>string match_mode = 3;</code>
- * @param string $var
- * @return $this
- */
- public function setMatchMode($var)
- {
- GPBUtil::checkString($var, True);
- $this->match_mode = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>optional .mint.tulip.v1.SearchRequest.Page page = 99;</code>
- * @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 <code>optional .mint.tulip.v1.SearchRequest.Page page = 99;</code>
- * @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;
- }
- }
|