<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/beyondcorp/appgateways/v1/app_gateways_service.proto

namespace Google\Cloud\BeyondCorp\AppGateways\V1;

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

/**
 * Request message for BeyondCorp.GetAppGateway.
 *
 * Generated from protobuf message <code>google.cloud.beyondcorp.appgateways.v1.GetAppGatewayRequest</code>
 */
class GetAppGatewayRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. BeyondCorp AppGateway name using the form:
     * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $name = '';

    /**
     * @param string $name Required. BeyondCorp AppGateway name using the form:
     *                     `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}`
     *                     Please see {@see AppGatewaysServiceClient::appGatewayName()} for help formatting this field.
     *
     * @return \Google\Cloud\BeyondCorp\AppGateways\V1\GetAppGatewayRequest
     *
     * @experimental
     */
    public static function build(string $name): self
    {
        return (new self())
            ->setName($name);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Required. BeyondCorp AppGateway name using the form:
     *           `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Beyondcorp\Appgateways\V1\AppGatewaysService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. BeyondCorp AppGateway name using the form:
     * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Required. BeyondCorp AppGateway name using the form:
     * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

}

