rv.data.ProLink.MemberStatus */ class MemberStatus extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string ip = 1; */ protected $ip = ''; /** * Generated from protobuf field uint32 port = 2; */ protected $port = 0; /** * Generated from protobuf field string name = 3; */ protected $name = ''; /** * Generated from protobuf field .rv.data.ApplicationInfo.Platform platform = 4; */ protected $platform = 0; /** * Generated from protobuf field string os_version = 5; */ protected $os_version = ''; /** * Generated from protobuf field string host_description = 6; */ protected $host_description = ''; /** * Generated from protobuf field string api_version = 7; */ protected $api_version = ''; /** * Generated from protobuf field .rv.data.ProLink.MemberStatus.ConnectionStatus connection_status = 8; */ protected $connection_status = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $ip * @type int $port * @type string $name * @type int $platform * @type string $os_version * @type string $host_description * @type string $api_version * @type int $connection_status * } */ public function __construct($data = NULL) { \GPBMetadata\ProApi::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string ip = 1; * @return string */ public function getIp() { return $this->ip; } /** * Generated from protobuf field string ip = 1; * @param string $var * @return $this */ public function setIp($var) { GPBUtil::checkString($var, True); $this->ip = $var; return $this; } /** * Generated from protobuf field uint32 port = 2; * @return int */ public function getPort() { return $this->port; } /** * Generated from protobuf field uint32 port = 2; * @param int $var * @return $this */ public function setPort($var) { GPBUtil::checkUint32($var); $this->port = $var; return $this; } /** * Generated from protobuf field string name = 3; * @return string */ public function getName() { return $this->name; } /** * Generated from protobuf field string name = 3; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field .rv.data.ApplicationInfo.Platform platform = 4; * @return int */ public function getPlatform() { return $this->platform; } /** * Generated from protobuf field .rv.data.ApplicationInfo.Platform platform = 4; * @param int $var * @return $this */ public function setPlatform($var) { GPBUtil::checkEnum($var, \Rv\Data\ApplicationInfo\Platform::class); $this->platform = $var; return $this; } /** * Generated from protobuf field string os_version = 5; * @return string */ public function getOsVersion() { return $this->os_version; } /** * Generated from protobuf field string os_version = 5; * @param string $var * @return $this */ public function setOsVersion($var) { GPBUtil::checkString($var, True); $this->os_version = $var; return $this; } /** * Generated from protobuf field string host_description = 6; * @return string */ public function getHostDescription() { return $this->host_description; } /** * Generated from protobuf field string host_description = 6; * @param string $var * @return $this */ public function setHostDescription($var) { GPBUtil::checkString($var, True); $this->host_description = $var; return $this; } /** * Generated from protobuf field string api_version = 7; * @return string */ public function getApiVersion() { return $this->api_version; } /** * Generated from protobuf field string api_version = 7; * @param string $var * @return $this */ public function setApiVersion($var) { GPBUtil::checkString($var, True); $this->api_version = $var; return $this; } /** * Generated from protobuf field .rv.data.ProLink.MemberStatus.ConnectionStatus connection_status = 8; * @return int */ public function getConnectionStatus() { return $this->connection_status; } /** * Generated from protobuf field .rv.data.ProLink.MemberStatus.ConnectionStatus connection_status = 8; * @param int $var * @return $this */ public function setConnectionStatus($var) { GPBUtil::checkEnum($var, \Rv\Data\ProLink\MemberStatus\ConnectionStatus::class); $this->connection_status = $var; return $this; } }