grpc.testing.ServerArgs */ class ServerArgs extends \Google\Protobuf\Internal\Message { protected $argtype; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Grpc\Testing\ServerConfig $setup * @type \Grpc\Testing\Mark $mark * } */ public function __construct($data = NULL) { \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .grpc.testing.ServerConfig setup = 1; * @return \Grpc\Testing\ServerConfig */ public function getSetup() { return $this->readOneof(1); } /** * Generated from protobuf field .grpc.testing.ServerConfig setup = 1; * @param \Grpc\Testing\ServerConfig $var * @return $this */ public function setSetup($var) { GPBUtil::checkMessage($var, \Grpc\Testing\ServerConfig::class); $this->writeOneof(1, $var); return $this; } /** * Generated from protobuf field .grpc.testing.Mark mark = 2; * @return \Grpc\Testing\Mark */ public function getMark() { return $this->readOneof(2); } /** * Generated from protobuf field .grpc.testing.Mark mark = 2; * @param \Grpc\Testing\Mark $var * @return $this */ public function setMark($var) { GPBUtil::checkMessage($var, \Grpc\Testing\Mark::class); $this->writeOneof(2, $var); return $this; } /** * @return string */ public function getArgtype() { return $this->whichOneof("argtype"); } }