rv.data.ProLink.HandlerIn.ServerState */ class ServerState extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string local_ip = 1; */ protected $local_ip = ''; /** * Generated from protobuf field string public_ip = 2; */ protected $public_ip = ''; /** * Generated from protobuf field uint32 port = 3; */ protected $port = 0; /** * Generated from protobuf field bool success = 4; */ protected $success = false; /** * Generated from protobuf field uint32 tcp_stream_port = 5; */ protected $tcp_stream_port = 0; /** * Generated from protobuf field bool tcp_stream_success = 6; */ protected $tcp_stream_success = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $local_ip * @type string $public_ip * @type int $port * @type bool $success * @type int $tcp_stream_port * @type bool $tcp_stream_success * } */ public function __construct($data = NULL) { \GPBMetadata\ProApi::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string local_ip = 1; * @return string */ public function getLocalIp() { return $this->local_ip; } /** * Generated from protobuf field string local_ip = 1; * @param string $var * @return $this */ public function setLocalIp($var) { GPBUtil::checkString($var, True); $this->local_ip = $var; return $this; } /** * Generated from protobuf field string public_ip = 2; * @return string */ public function getPublicIp() { return $this->public_ip; } /** * Generated from protobuf field string public_ip = 2; * @param string $var * @return $this */ public function setPublicIp($var) { GPBUtil::checkString($var, True); $this->public_ip = $var; return $this; } /** * Generated from protobuf field uint32 port = 3; * @return int */ public function getPort() { return $this->port; } /** * Generated from protobuf field uint32 port = 3; * @param int $var * @return $this */ public function setPort($var) { GPBUtil::checkUint32($var); $this->port = $var; return $this; } /** * Generated from protobuf field bool success = 4; * @return bool */ public function getSuccess() { return $this->success; } /** * Generated from protobuf field bool success = 4; * @param bool $var * @return $this */ public function setSuccess($var) { GPBUtil::checkBool($var); $this->success = $var; return $this; } /** * Generated from protobuf field uint32 tcp_stream_port = 5; * @return int */ public function getTcpStreamPort() { return $this->tcp_stream_port; } /** * Generated from protobuf field uint32 tcp_stream_port = 5; * @param int $var * @return $this */ public function setTcpStreamPort($var) { GPBUtil::checkUint32($var); $this->tcp_stream_port = $var; return $this; } /** * Generated from protobuf field bool tcp_stream_success = 6; * @return bool */ public function getTcpStreamSuccess() { return $this->tcp_stream_success; } /** * Generated from protobuf field bool tcp_stream_success = 6; * @param bool $var * @return $this */ public function setTcpStreamSuccess($var) { GPBUtil::checkBool($var); $this->tcp_stream_success = $var; return $this; } }