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

namespace Google\Cloud\Build\V1;

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

/**
 * Request to delete a `WorkerPool`.
 *
 * Generated from protobuf message <code>google.devtools.cloudbuild.v1.DeleteWorkerPoolRequest</code>
 */
class DeleteWorkerPoolRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The field will contain name of the resource requested, for example:
     * "projects/project-1/workerPools/workerpool-name"
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    private $name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           The field will contain name of the resource requested, for example:
     *           "projects/project-1/workerPools/workerpool-name"
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Devtools\Cloudbuild\V1\Cloudbuild::initOnce();
        parent::__construct($data);
    }

    /**
     * The field will contain name of the resource requested, for example:
     * "projects/project-1/workerPools/workerpool-name"
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * The field will contain name of the resource requested, for example:
     * "projects/project-1/workerPools/workerpool-name"
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

}

