grpc.testing.EchoRequest
*/
class EchoRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string message = 1;
*/
private $message = '';
/**
* Generated from protobuf field .grpc.testing.RequestParams param = 2;
*/
private $param = null;
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce();
parent::__construct();
}
/**
* Generated from protobuf field string message = 1;
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Generated from protobuf field string message = 1;
* @param string $var
* @return $this
*/
public function setMessage($var)
{
GPBUtil::checkString($var, True);
$this->message = $var;
return $this;
}
/**
* Generated from protobuf field .grpc.testing.RequestParams param = 2;
* @return \Grpc\Testing\RequestParams
*/
public function getParam()
{
return $this->param;
}
/**
* Generated from protobuf field .grpc.testing.RequestParams param = 2;
* @param \Grpc\Testing\RequestParams $var
* @return $this
*/
public function setParam($var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\RequestParams::class);
$this->param = $var;
return $this;
}
}