grpc.testing.EchoRequest
*/
class EchoRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string message = 1;
*/
protected $message = '';
/**
* Generated from protobuf field .grpc.testing.RequestParams param = 2;
*/
protected $param = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $message
* @type \Grpc\Testing\RequestParams $param
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce();
parent::__construct($data);
}
/**
* 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;
}
}