BookListResponse.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. * Generated from protobuf message <code>mint.tulip.v1.BookListResponse</code>
  10. */
  11. class BookListResponse extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>repeated .mint.tulip.v1.BookListResponse.Item items = 1;</code>
  15. */
  16. private $items;
  17. /**
  18. * Constructor.
  19. *
  20. * @param array $data {
  21. * Optional. Data for populating the Message object.
  22. *
  23. * @type array<\Mint\Tulip\V1\BookListResponse\Item>|\Google\Protobuf\Internal\RepeatedField $items
  24. * }
  25. */
  26. public function __construct($data = NULL) {
  27. \GPBMetadata\Tulip::initOnce();
  28. parent::__construct($data);
  29. }
  30. /**
  31. * Generated from protobuf field <code>repeated .mint.tulip.v1.BookListResponse.Item items = 1;</code>
  32. * @return \Google\Protobuf\Internal\RepeatedField
  33. */
  34. public function getItems()
  35. {
  36. return $this->items;
  37. }
  38. /**
  39. * Generated from protobuf field <code>repeated .mint.tulip.v1.BookListResponse.Item items = 1;</code>
  40. * @param array<\Mint\Tulip\V1\BookListResponse\Item>|\Google\Protobuf\Internal\RepeatedField $var
  41. * @return $this
  42. */
  43. public function setItems($var)
  44. {
  45. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Mint\Tulip\V1\BookListResponse\Item::class);
  46. $this->items = $arr;
  47. return $this;
  48. }
  49. }