SearchRequest.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: tulip.proto
  4. namespace Mint\Tulip\V1;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * ----------------------------------------------------------------------------
  10. *
  11. * Generated from protobuf message <code>mint.tulip.v1.SearchRequest</code>
  12. */
  13. class SearchRequest extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>repeated string keywords = 1;</code>
  17. */
  18. private $keywords;
  19. /**
  20. * Generated from protobuf field <code>int32 book = 2;</code>
  21. */
  22. protected $book = 0;
  23. /**
  24. * Generated from protobuf field <code>optional .mint.tulip.v1.SearchRequest.Page page = 99;</code>
  25. */
  26. protected $page = null;
  27. /**
  28. * Constructor.
  29. *
  30. * @param array $data {
  31. * Optional. Data for populating the Message object.
  32. *
  33. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $keywords
  34. * @type int $book
  35. * @type \Mint\Tulip\V1\SearchRequest\Page $page
  36. * }
  37. */
  38. public function __construct($data = NULL) {
  39. \GPBMetadata\Tulip::initOnce();
  40. parent::__construct($data);
  41. }
  42. /**
  43. * Generated from protobuf field <code>repeated string keywords = 1;</code>
  44. * @return \Google\Protobuf\Internal\RepeatedField
  45. */
  46. public function getKeywords()
  47. {
  48. return $this->keywords;
  49. }
  50. /**
  51. * Generated from protobuf field <code>repeated string keywords = 1;</code>
  52. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  53. * @return $this
  54. */
  55. public function setKeywords($var)
  56. {
  57. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  58. $this->keywords = $arr;
  59. return $this;
  60. }
  61. /**
  62. * Generated from protobuf field <code>int32 book = 2;</code>
  63. * @return int
  64. */
  65. public function getBook()
  66. {
  67. return $this->book;
  68. }
  69. /**
  70. * Generated from protobuf field <code>int32 book = 2;</code>
  71. * @param int $var
  72. * @return $this
  73. */
  74. public function setBook($var)
  75. {
  76. GPBUtil::checkInt32($var);
  77. $this->book = $var;
  78. return $this;
  79. }
  80. /**
  81. * Generated from protobuf field <code>optional .mint.tulip.v1.SearchRequest.Page page = 99;</code>
  82. * @return \Mint\Tulip\V1\SearchRequest\Page|null
  83. */
  84. public function getPage()
  85. {
  86. return $this->page;
  87. }
  88. public function hasPage()
  89. {
  90. return isset($this->page);
  91. }
  92. public function clearPage()
  93. {
  94. unset($this->page);
  95. }
  96. /**
  97. * Generated from protobuf field <code>optional .mint.tulip.v1.SearchRequest.Page page = 99;</code>
  98. * @param \Mint\Tulip\V1\SearchRequest\Page $var
  99. * @return $this
  100. */
  101. public function setPage($var)
  102. {
  103. GPBUtil::checkMessage($var, \Mint\Tulip\V1\SearchRequest\Page::class);
  104. $this->page = $var;
  105. return $this;
  106. }
  107. }