grpc.testing.ServerStatus */ class ServerStatus extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .grpc.testing.ServerStats stats = 1; */ protected $stats = null; /** * the port bound by the server * * Generated from protobuf field int32 port = 2; */ protected $port = 0; /** * Number of cores available to the server * * Generated from protobuf field int32 cores = 3; */ protected $cores = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Grpc\Testing\ServerStats $stats * @type int $port * the port bound by the server * @type int $cores * Number of cores available to the server * } */ public function __construct($data = NULL) { \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce(); parent::__construct($data); } /** * 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; } }