grpc.testing.ServerStatus */ class ServerStatus extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .grpc.testing.ServerStats stats = 1; */ private $stats = null; /** * the port bound by the server * * Generated from protobuf field int32 port = 2; */ private $port = 0; /** * Number of cores available to the server * * Generated from protobuf field int32 cores = 3; */ private $cores = 0; public function __construct() { \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce(); parent::__construct(); } /** * Generated from protobuf field .grpc.testing.ServerStats stats = 1; * @return \Grpc\Testing\ServerStats */ public function getStats() { return $this->stats; } /** * Generated from protobuf field .grpc.testing.ServerStats stats = 1; * @param \Grpc\Testing\ServerStats $var * @return $this */ public function setStats($var) { GPBUtil::checkMessage($var, \Grpc\Testing\ServerStats::class); $this->stats = $var; return $this; } /** * the port bound by the server * * Generated from protobuf field int32 port = 2; * @return int */ public function getPort() { return $this->port; } /** * the port bound by the server * * Generated from protobuf field int32 port = 2; * @param int $var * @return $this */ public function setPort($var) { GPBUtil::checkInt32($var); $this->port = $var; return $this; } /** * Number of cores available to the server * * Generated from protobuf field int32 cores = 3; * @return int */ public function getCores() { return $this->cores; } /** * Number of cores available to the server * * Generated from protobuf field int32 cores = 3; * @param int $var * @return $this */ public function setCores($var) { GPBUtil::checkInt32($var); $this->cores = $var; return $this; } }