<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/appengine/v1/audit_data.proto

namespace Google\Cloud\AppEngine\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Detailed information about UpdateService call.
 *
 * Generated from protobuf message <code>google.appengine.v1.UpdateServiceMethod</code>
 */
class UpdateServiceMethod extends \Google\Protobuf\Internal\Message
{
    /**
     * Update service request.
     *
     * Generated from protobuf field <code>.google.appengine.v1.UpdateServiceRequest request = 1;</code>
     */
    private $request = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AppEngine\V1\UpdateServiceRequest $request
     *           Update service request.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Appengine\V1\AuditData::initOnce();
        parent::__construct($data);
    }

    /**
     * Update service request.
     *
     * Generated from protobuf field <code>.google.appengine.v1.UpdateServiceRequest request = 1;</code>
     * @return \Google\Cloud\AppEngine\V1\UpdateServiceRequest|null
     */
    public function getRequest()
    {
        return isset($this->request) ? $this->request : null;
    }

    public function hasRequest()
    {
        return isset($this->request);
    }

    public function clearRequest()
    {
        unset($this->request);
    }

    /**
     * Update service request.
     *
     * Generated from protobuf field <code>.google.appengine.v1.UpdateServiceRequest request = 1;</code>
     * @param \Google\Cloud\AppEngine\V1\UpdateServiceRequest $var
     * @return $this
     */
    public function setRequest($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\UpdateServiceRequest::class);
        $this->request = $var;

        return $this;
    }

}

