common_pack.NotifyPlayerOpt */ class NotifyPlayerOpt extends \Google\Protobuf\Internal\Message { /** * * * Generated from protobuf field .common_pack.roleType color = 1; */ protected $color = 0; /** * * * Generated from protobuf field .common_pack.OptType opt = 2; */ protected $opt = 0; /** * Generated from protobuf field repeated .common_pack.RoleData canMoveRoles = 3; */ private $canMoveRoles; /** * Generated from protobuf field int32 opt_time = 4; */ protected $opt_time = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $color * * @type int $opt * * @type \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $canMoveRoles * @type int $opt_time * } */ 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 .common_pack.OptType opt = 2; * @return int */ public function getOpt() { return $this->opt; } /** * * * Generated from protobuf field .common_pack.OptType opt = 2; * @param int $var * @return $this */ public function setOpt($var) { GPBUtil::checkEnum($var, \Common_pack\OptType::class); $this->opt = $var; return $this; } /** * Generated from protobuf field repeated .common_pack.RoleData canMoveRoles = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getCanMoveRoles() { return $this->canMoveRoles; } /** * Generated from protobuf field repeated .common_pack.RoleData canMoveRoles = 3; * @param \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCanMoveRoles($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\RoleData::class); $this->canMoveRoles = $arr; return $this; } /** * Generated from protobuf field int32 opt_time = 4; * @return int */ public function getOptTime() { return $this->opt_time; } /** * Generated from protobuf field int32 opt_time = 4; * @param int $var * @return $this */ public function setOptTime($var) { GPBUtil::checkInt32($var); $this->opt_time = $var; return $this; } }