1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: common.proto
- namespace Common_pack;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>common_pack.NotifySettlement</code>
- */
- class NotifySettlement extends \Google\Protobuf\Internal\Message
- {
- /**
- *
- *
- * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
- */
- protected $color = 0;
- /**
- * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 2;</code>
- */
- private $finish_colors;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $color
- *
- * @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $finish_colors
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Common::initOnce();
- parent::__construct($data);
- }
- /**
- *
- *
- * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
- * @return int
- */
- public function getColor()
- {
- return $this->color;
- }
- /**
- *
- *
- * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
- * @param int $var
- * @return $this
- */
- public function setColor($var)
- {
- GPBUtil::checkEnum($var, \Common_pack\roleType::class);
- $this->color = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 2;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFinishColors()
- {
- return $this->finish_colors;
- }
- /**
- * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 2;</code>
- * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFinishColors($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
- $this->finish_colors = $arr;
- return $this;
- }
- }
|