CityPackageAddReq.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # NO CHECKED-IN PROTOBUF GENCODE
  4. # source: api/CityPackage.proto
  5. namespace Proto\Api;
  6. use Google\Protobuf\Internal\GPBType;
  7. use Google\Protobuf\Internal\RepeatedField;
  8. use Google\Protobuf\Internal\GPBUtil;
  9. /**
  10. * Generated from protobuf message <code>proto.api.CityPackageAddReq</code>
  11. */
  12. class CityPackageAddReq extends \Google\Protobuf\Internal\Message
  13. {
  14. /**
  15. * 门店ID 默认为当前登陆的门店ID
  16. *
  17. * Generated from protobuf field <code>int32 shop_id = 1;</code>
  18. */
  19. protected $shop_id = 0;
  20. /**
  21. * 套餐数组列表
  22. *
  23. * Generated from protobuf field <code>repeated .proto.api.CityPackageAddReq.AddItem package_list = 2;</code>
  24. */
  25. private $package_list;
  26. /**
  27. * 套餐分类 1租电套餐 2车电一体 3租车套餐
  28. *
  29. * Generated from protobuf field <code>.proto.api.DEVICE_USE_TYPE package_category = 3;</code>
  30. */
  31. protected $package_category = 0;
  32. /**
  33. * Constructor.
  34. *
  35. * @param array $data {
  36. * Optional. Data for populating the Message object.
  37. *
  38. * @type int $shop_id
  39. * 门店ID 默认为当前登陆的门店ID
  40. * @type array<\Proto\Api\CityPackageAddReq\AddItem>|\Google\Protobuf\Internal\RepeatedField $package_list
  41. * 套餐数组列表
  42. * @type int $package_category
  43. * 套餐分类 1租电套餐 2车电一体 3租车套餐
  44. * }
  45. */
  46. public function __construct($data = NULL) {
  47. \GPBMetadata\Api\CityPackage::initOnce();
  48. parent::__construct($data);
  49. }
  50. /**
  51. * 门店ID 默认为当前登陆的门店ID
  52. *
  53. * Generated from protobuf field <code>int32 shop_id = 1;</code>
  54. * @return int
  55. */
  56. public function getShopId()
  57. {
  58. return $this->shop_id;
  59. }
  60. /**
  61. * 门店ID 默认为当前登陆的门店ID
  62. *
  63. * Generated from protobuf field <code>int32 shop_id = 1;</code>
  64. * @param int $var
  65. * @return $this
  66. */
  67. public function setShopId($var)
  68. {
  69. GPBUtil::checkInt32($var);
  70. $this->shop_id = $var;
  71. return $this;
  72. }
  73. /**
  74. * 套餐数组列表
  75. *
  76. * Generated from protobuf field <code>repeated .proto.api.CityPackageAddReq.AddItem package_list = 2;</code>
  77. * @return \Google\Protobuf\Internal\RepeatedField
  78. */
  79. public function getPackageList()
  80. {
  81. return $this->package_list;
  82. }
  83. /**
  84. * 套餐数组列表
  85. *
  86. * Generated from protobuf field <code>repeated .proto.api.CityPackageAddReq.AddItem package_list = 2;</code>
  87. * @param array<\Proto\Api\CityPackageAddReq\AddItem>|\Google\Protobuf\Internal\RepeatedField $var
  88. * @return $this
  89. */
  90. public function setPackageList($var)
  91. {
  92. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\CityPackageAddReq\AddItem::class);
  93. $this->package_list = $arr;
  94. return $this;
  95. }
  96. /**
  97. * 套餐分类 1租电套餐 2车电一体 3租车套餐
  98. *
  99. * Generated from protobuf field <code>.proto.api.DEVICE_USE_TYPE package_category = 3;</code>
  100. * @return int
  101. */
  102. public function getPackageCategory()
  103. {
  104. return $this->package_category;
  105. }
  106. /**
  107. * 套餐分类 1租电套餐 2车电一体 3租车套餐
  108. *
  109. * Generated from protobuf field <code>.proto.api.DEVICE_USE_TYPE package_category = 3;</code>
  110. * @param int $var
  111. * @return $this
  112. */
  113. public function setPackageCategory($var)
  114. {
  115. GPBUtil::checkEnum($var, \Proto\Api\DEVICE_USE_TYPE::class);
  116. $this->package_category = $var;
  117. return $this;
  118. }
  119. }