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