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

namespace Google\Cloud\Dataform\V1beta1;

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

/**
 * `MoveFolder` request message.
 *
 * Generated from protobuf message <code>google.cloud.dataform.v1beta1.MoveFolderRequest</code>
 */
class MoveFolderRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The full resource name of the Folder to move.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $name = '';
    /**
     * Optional. The name of the Folder, TeamFolder, or root location to move the
     * Folder to. Can be in the format of: "" to move into the root User folder,
     * `projects/{@*}locations/{@*}folders/*`, `projects/{@*}locations/{@*}teamFolders/*`
     *
     * Generated from protobuf field <code>optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $destination_containing_folder = null;

    /**
     * @param string $name                        Required. The full resource name of the Folder to move. Please see
     *                                            {@see DataformClient::folderName()} for help formatting this field.
     * @param string $destinationContainingFolder Optional. The name of the Folder, TeamFolder, or root location to move the
     *                                            Folder to. Can be in the format of: "" to move into the root User folder,
     *                                            `projects/&#42;/locations/&#42;/folders/*`, `projects/&#42;/locations/&#42;/teamFolders/*`
     *
     * @return \Google\Cloud\Dataform\V1beta1\MoveFolderRequest
     *
     * @experimental
     */
    public static function build(string $name, string $destinationContainingFolder): self
    {
        return (new self())
            ->setName($name)
            ->setDestinationContainingFolder($destinationContainingFolder);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Required. The full resource name of the Folder to move.
     *     @type string $destination_containing_folder
     *           Optional. The name of the Folder, TeamFolder, or root location to move the
     *           Folder to. Can be in the format of: "" to move into the root User folder,
     *           `projects/{@*}locations/{@*}folders/*`, `projects/{@*}locations/{@*}teamFolders/*`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The full resource name of the Folder to move.
     *
     * 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. The full resource name of the Folder to move.
     *
     * 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;
    }

    /**
     * Optional. The name of the Folder, TeamFolder, or root location to move the
     * Folder to. Can be in the format of: "" to move into the root User folder,
     * `projects/{@*}locations/{@*}folders/*`, `projects/{@*}locations/{@*}teamFolders/*`
     *
     * Generated from protobuf field <code>optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getDestinationContainingFolder()
    {
        return isset($this->destination_containing_folder) ? $this->destination_containing_folder : '';
    }

    public function hasDestinationContainingFolder()
    {
        return isset($this->destination_containing_folder);
    }

    public function clearDestinationContainingFolder()
    {
        unset($this->destination_containing_folder);
    }

    /**
     * Optional. The name of the Folder, TeamFolder, or root location to move the
     * Folder to. Can be in the format of: "" to move into the root User folder,
     * `projects/{@*}locations/{@*}folders/*`, `projects/{@*}locations/{@*}teamFolders/*`
     *
     * Generated from protobuf field <code>optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setDestinationContainingFolder($var)
    {
        GPBUtil::checkString($var, True);
        $this->destination_containing_folder = $var;

        return $this;
    }

}

