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

namespace Google\Cloud\Dataform\V1;

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

/**
 * `ResetWorkspaceChanges` request message.
 *
 * Generated from protobuf message <code>google.cloud.dataform.v1.ResetWorkspaceChangesRequest</code>
 */
class ResetWorkspaceChangesRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The workspace's name.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $name = '';
    /**
     * Optional. Full file paths to reset back to their committed state including
     * filename, rooted at workspace root. If left empty, all files will be reset.
     *
     * Generated from protobuf field <code>repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $paths;
    /**
     * Optional. If set to true, untracked files will be deleted.
     *
     * Generated from protobuf field <code>bool clean = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $clean = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Required. The workspace's name.
     *     @type string[] $paths
     *           Optional. Full file paths to reset back to their committed state including
     *           filename, rooted at workspace root. If left empty, all files will be reset.
     *     @type bool $clean
     *           Optional. If set to true, untracked files will be deleted.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The workspace's name.
     *
     * 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 workspace's name.
     *
     * 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. Full file paths to reset back to their committed state including
     * filename, rooted at workspace root. If left empty, all files will be reset.
     *
     * Generated from protobuf field <code>repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return RepeatedField<string>
     */
    public function getPaths()
    {
        return $this->paths;
    }

    /**
     * Optional. Full file paths to reset back to their committed state including
     * filename, rooted at workspace root. If left empty, all files will be reset.
     *
     * Generated from protobuf field <code>repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string[] $var
     * @return $this
     */
    public function setPaths($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->paths = $arr;

        return $this;
    }

    /**
     * Optional. If set to true, untracked files will be deleted.
     *
     * Generated from protobuf field <code>bool clean = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getClean()
    {
        return $this->clean;
    }

    /**
     * Optional. If set to true, untracked files will be deleted.
     *
     * Generated from protobuf field <code>bool clean = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setClean($var)
    {
        GPBUtil::checkBool($var);
        $this->clean = $var;

        return $this;
    }

}

