<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/cloudcontrolspartner/v1beta/customers.proto

namespace Google\Cloud\CloudControlsPartner\V1beta;

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

/**
 * Message for deleting customer
 *
 * Generated from protobuf message <code>google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest</code>
 */
class DeleteCustomerRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. name of the resource to be deleted
     * format: name=organizations/&#42;&#47;locations/&#42;&#47;customers/&#42;
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $name = '';

    /**
     * @param string $name Required. name of the resource to be deleted
     *                     format: name=organizations/&#42;/locations/&#42;/customers/*
     *                     Please see {@see CloudControlsPartnerCoreClient::customerName()} for help formatting this field.
     *
     * @return \Google\Cloud\CloudControlsPartner\V1beta\DeleteCustomerRequest
     *
     * @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. name of the resource to be deleted
     *           format: name=organizations/&#42;&#47;locations/&#42;&#47;customers/&#42;
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Customers::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. name of the resource to be deleted
     * format: name=organizations/&#42;&#47;locations/&#42;&#47;customers/&#42;
     *
     * 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. name of the resource to be deleted
     * format: name=organizations/&#42;&#47;locations/&#42;&#47;customers/&#42;
     *
     * 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;
    }

}

