mint.tulip.v1.SearchResponse */ class SearchResponse extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field repeated .mint.tulip.v1.SearchResponse.Item items = 1; */ private $items; /** * Generated from protobuf field .mint.tulip.v1.SearchRequest.Page page = 98; */ protected $page = null; /** * Generated from protobuf field int32 total = 99; */ protected $total = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array<\Mint\Tulip\V1\SearchResponse\Item>|\Google\Protobuf\Internal\RepeatedField $items * @type \Mint\Tulip\V1\SearchRequest\Page $page * @type int $total * } */ public function __construct($data = NULL) { \GPBMetadata\Tulip::initOnce(); parent::__construct($data); } /** * Generated from protobuf field repeated .mint.tulip.v1.SearchResponse.Item items = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getItems() { return $this->items; } /** * Generated from protobuf field repeated .mint.tulip.v1.SearchResponse.Item items = 1; * @param array<\Mint\Tulip\V1\SearchResponse\Item>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Mint\Tulip\V1\SearchResponse\Item::class); $this->items = $arr; return $this; } /** * Generated from protobuf field .mint.tulip.v1.SearchRequest.Page page = 98; * @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 .mint.tulip.v1.SearchRequest.Page page = 98; * @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; } /** * Generated from protobuf field int32 total = 99; * @return int */ public function getTotal() { return $this->total; } /** * Generated from protobuf field int32 total = 99; * @param int $var * @return $this */ public function setTotal($var) { GPBUtil::checkInt32($var); $this->total = $var; return $this; } }