* Unary response, as configured by the request.
*
*
* Protobuf type grpc.testing.SimpleResponse
*/
class SimpleResponse extends \Google\Protobuf\Internal\Message
{
/**
*
* Payload to increase message size. ** *
.grpc.testing.Payload payload = 1;
*/
private $payload = null;
/**
* * The user the request came from, for verifying authentication was * successful when the client expected it. ** *
string username = 2;
*/
private $username = '';
/**
* * OAuth scope. ** *
string oauth_scope = 3;
*/
private $oauth_scope = '';
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
parent::__construct();
}
/**
* * Payload to increase message size. ** *
.grpc.testing.Payload payload = 1;
*/
public function getPayload()
{
return $this->payload;
}
/**
* * Payload to increase message size. ** *
.grpc.testing.Payload payload = 1;
*/
public function setPayload(&$var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\Payload::class);
$this->payload = $var;
}
/**
* * The user the request came from, for verifying authentication was * successful when the client expected it. ** *
string username = 2;
*/
public function getUsername()
{
return $this->username;
}
/**
* * The user the request came from, for verifying authentication was * successful when the client expected it. ** *
string username = 2;
*/
public function setUsername($var)
{
GPBUtil::checkString($var, True);
$this->username = $var;
}
/**
* * OAuth scope. ** *
string oauth_scope = 3;
*/
public function getOauthScope()
{
return $this->oauth_scope;
}
/**
* * OAuth scope. ** *
string oauth_scope = 3;
*/
public function setOauthScope($var)
{
GPBUtil::checkString($var, True);
$this->oauth_scope = $var;
}
}