123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <?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.RoleData</code>
- */
- class RoleData extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>.common_pack.roleType m_color = 1;</code>
- */
- protected $m_color = 0;
- /**
- * Generated from protobuf field <code>int32 m_seat = 2;</code>
- */
- protected $m_seat = 0;
- /**
- * Generated from protobuf field <code>string m_id = 3;</code>
- */
- protected $m_id = '';
- /**
- * Generated from protobuf field <code>.common_pack.roadType m_cur_road = 4;</code>
- */
- protected $m_cur_road = 0;
- /**
- * Generated from protobuf field <code>int32 step = 5;</code>
- */
- protected $step = 0;
- /**
- * Generated from protobuf field <code>int32 old_setp = 6;</code>
- */
- protected $old_setp = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $m_color
- * @type int $m_seat
- * @type string $m_id
- * @type int $m_cur_road
- * @type int $step
- * @type int $old_setp
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Common::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>.common_pack.roleType m_color = 1;</code>
- * @return int
- */
- public function getMColor()
- {
- return $this->m_color;
- }
- /**
- * Generated from protobuf field <code>.common_pack.roleType m_color = 1;</code>
- * @param int $var
- * @return $this
- */
- public function setMColor($var)
- {
- GPBUtil::checkEnum($var, \Common_pack\roleType::class);
- $this->m_color = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>int32 m_seat = 2;</code>
- * @return int
- */
- public function getMSeat()
- {
- return $this->m_seat;
- }
- /**
- * Generated from protobuf field <code>int32 m_seat = 2;</code>
- * @param int $var
- * @return $this
- */
- public function setMSeat($var)
- {
- GPBUtil::checkInt32($var);
- $this->m_seat = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string m_id = 3;</code>
- * @return string
- */
- public function getMId()
- {
- return $this->m_id;
- }
- /**
- * Generated from protobuf field <code>string m_id = 3;</code>
- * @param string $var
- * @return $this
- */
- public function setMId($var)
- {
- GPBUtil::checkString($var, True);
- $this->m_id = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.common_pack.roadType m_cur_road = 4;</code>
- * @return int
- */
- public function getMCurRoad()
- {
- return $this->m_cur_road;
- }
- /**
- * Generated from protobuf field <code>.common_pack.roadType m_cur_road = 4;</code>
- * @param int $var
- * @return $this
- */
- public function setMCurRoad($var)
- {
- GPBUtil::checkEnum($var, \Common_pack\roadType::class);
- $this->m_cur_road = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>int32 step = 5;</code>
- * @return int
- */
- public function getStep()
- {
- return $this->step;
- }
- /**
- * Generated from protobuf field <code>int32 step = 5;</code>
- * @param int $var
- * @return $this
- */
- public function setStep($var)
- {
- GPBUtil::checkInt32($var);
- $this->step = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>int32 old_setp = 6;</code>
- * @return int
- */
- public function getOldSetp()
- {
- return $this->old_setp;
- }
- /**
- * Generated from protobuf field <code>int32 old_setp = 6;</code>
- * @param int $var
- * @return $this
- */
- public function setOldSetp($var)
- {
- GPBUtil::checkInt32($var);
- $this->old_setp = $var;
- return $this;
- }
- }
|