CityPackageOrderEnt.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # NO CHECKED-IN PROTOBUF GENCODE
  4. # source: api/EntCityPackage.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. * 城市套餐订单实体
  11. *
  12. * Generated from protobuf message <code>proto.api.CityPackageOrderEnt</code>
  13. */
  14. class CityPackageOrderEnt extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * 订单信息
  18. *
  19. * Generated from protobuf field <code>.proto.api.CityPackageOrderEnt.OrderInfoItem order_info = 1;</code>
  20. */
  21. protected $order_info = null;
  22. /**
  23. * 保险信息
  24. *
  25. * Generated from protobuf field <code>string insurance_info = 2;</code>
  26. */
  27. protected $insurance_info = '';
  28. /**
  29. * 城市套餐信息
  30. *
  31. * Generated from protobuf field <code>.proto.api.CityPackageEnt city_package_info = 3;</code>
  32. */
  33. protected $city_package_info = null;
  34. /**
  35. * Constructor.
  36. *
  37. * @param array $data {
  38. * Optional. Data for populating the Message object.
  39. *
  40. * @type \Proto\Api\CityPackageOrderEnt\OrderInfoItem $order_info
  41. * 订单信息
  42. * @type string $insurance_info
  43. * 保险信息
  44. * @type \Proto\Api\CityPackageEnt $city_package_info
  45. * 城市套餐信息
  46. * }
  47. */
  48. public function __construct($data = NULL) {
  49. \GPBMetadata\Api\EntCityPackage::initOnce();
  50. parent::__construct($data);
  51. }
  52. /**
  53. * 订单信息
  54. *
  55. * Generated from protobuf field <code>.proto.api.CityPackageOrderEnt.OrderInfoItem order_info = 1;</code>
  56. * @return \Proto\Api\CityPackageOrderEnt\OrderInfoItem|null
  57. */
  58. public function getOrderInfo()
  59. {
  60. return $this->order_info;
  61. }
  62. public function hasOrderInfo()
  63. {
  64. return isset($this->order_info);
  65. }
  66. public function clearOrderInfo()
  67. {
  68. unset($this->order_info);
  69. }
  70. /**
  71. * 订单信息
  72. *
  73. * Generated from protobuf field <code>.proto.api.CityPackageOrderEnt.OrderInfoItem order_info = 1;</code>
  74. * @param \Proto\Api\CityPackageOrderEnt\OrderInfoItem $var
  75. * @return $this
  76. */
  77. public function setOrderInfo($var)
  78. {
  79. GPBUtil::checkMessage($var, \Proto\Api\CityPackageOrderEnt\OrderInfoItem::class);
  80. $this->order_info = $var;
  81. return $this;
  82. }
  83. /**
  84. * 保险信息
  85. *
  86. * Generated from protobuf field <code>string insurance_info = 2;</code>
  87. * @return string
  88. */
  89. public function getInsuranceInfo()
  90. {
  91. return $this->insurance_info;
  92. }
  93. /**
  94. * 保险信息
  95. *
  96. * Generated from protobuf field <code>string insurance_info = 2;</code>
  97. * @param string $var
  98. * @return $this
  99. */
  100. public function setInsuranceInfo($var)
  101. {
  102. GPBUtil::checkString($var, True);
  103. $this->insurance_info = $var;
  104. return $this;
  105. }
  106. /**
  107. * 城市套餐信息
  108. *
  109. * Generated from protobuf field <code>.proto.api.CityPackageEnt city_package_info = 3;</code>
  110. * @return \Proto\Api\CityPackageEnt|null
  111. */
  112. public function getCityPackageInfo()
  113. {
  114. return $this->city_package_info;
  115. }
  116. public function hasCityPackageInfo()
  117. {
  118. return isset($this->city_package_info);
  119. }
  120. public function clearCityPackageInfo()
  121. {
  122. unset($this->city_package_info);
  123. }
  124. /**
  125. * 城市套餐信息
  126. *
  127. * Generated from protobuf field <code>.proto.api.CityPackageEnt city_package_info = 3;</code>
  128. * @param \Proto\Api\CityPackageEnt $var
  129. * @return $this
  130. */
  131. public function setCityPackageInfo($var)
  132. {
  133. GPBUtil::checkMessage($var, \Proto\Api\CityPackageEnt::class);
  134. $this->city_package_info = $var;
  135. return $this;
  136. }
  137. }