NotifySettlement.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: common.proto
  4. namespace Common_pack;
  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>common_pack.NotifySettlement</code>
  10. */
  11. class NotifySettlement extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. *
  15. *
  16. * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
  17. */
  18. protected $color = 0;
  19. /**
  20. * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 2;</code>
  21. */
  22. private $finish_colors;
  23. /**
  24. * Constructor.
  25. *
  26. * @param array $data {
  27. * Optional. Data for populating the Message object.
  28. *
  29. * @type int $color
  30. *
  31. * @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $finish_colors
  32. * }
  33. */
  34. public function __construct($data = NULL) {
  35. \GPBMetadata\Common::initOnce();
  36. parent::__construct($data);
  37. }
  38. /**
  39. *
  40. *
  41. * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
  42. * @return int
  43. */
  44. public function getColor()
  45. {
  46. return $this->color;
  47. }
  48. /**
  49. *
  50. *
  51. * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
  52. * @param int $var
  53. * @return $this
  54. */
  55. public function setColor($var)
  56. {
  57. GPBUtil::checkEnum($var, \Common_pack\roleType::class);
  58. $this->color = $var;
  59. return $this;
  60. }
  61. /**
  62. * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 2;</code>
  63. * @return \Google\Protobuf\Internal\RepeatedField
  64. */
  65. public function getFinishColors()
  66. {
  67. return $this->finish_colors;
  68. }
  69. /**
  70. * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 2;</code>
  71. * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
  72. * @return $this
  73. */
  74. public function setFinishColors($var)
  75. {
  76. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
  77. $this->finish_colors = $arr;
  78. return $this;
  79. }
  80. }