common_pack.SendRoleMove */ class SendRoleMove extends \Google\Protobuf\Internal\Message { /** * * * Generated from protobuf field .common_pack.roleType color = 1; */ protected $color = 0; /** * Generated from protobuf field string roleId = 2; */ protected $roleId = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $color * * @type string $roleId * } */ public function __construct($data = NULL) { \GPBMetadata\Common::initOnce(); parent::__construct($data); } /** * * * Generated from protobuf field .common_pack.roleType color = 1; * @return int */ public function getColor() { return $this->color; } /** * * * Generated from protobuf field .common_pack.roleType color = 1; * @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 string roleId = 2; * @return string */ public function getRoleId() { return $this->roleId; } /** * Generated from protobuf field string roleId = 2; * @param string $var * @return $this */ public function setRoleId($var) { GPBUtil::checkString($var, True); $this->roleId = $var; return $this; } }