grpc.testing.ClientArgs
*/
class ClientArgs extends \Google\Protobuf\Internal\Message
{
protected $argtype;
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
parent::__construct();
}
/**
* Generated from protobuf field .grpc.testing.ClientConfig setup = 1;
* @return \Grpc\Testing\ClientConfig
*/
public function getSetup()
{
return $this->readOneof(1);
}
/**
* Generated from protobuf field .grpc.testing.ClientConfig setup = 1;
* @param \Grpc\Testing\ClientConfig $var
* @return $this
*/
public function setSetup($var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\ClientConfig::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");
}
}