rv.data.NetworkAPI.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 int32 port = 3;
*/
protected $port = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $local_ip
* @type string $public_ip
* @type int $port
* }
*/
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 int32 port = 3;
* @return int
*/
public function getPort()
{
return $this->port;
}
/**
* Generated from protobuf field int32 port = 3;
* @param int $var
* @return $this
*/
public function setPort($var)
{
GPBUtil::checkInt32($var);
$this->port = $var;
return $this;
}
}