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

namespace Google\Cloud\Firestore\Admin\V1;

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

/**
 * The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
 *
 * Generated from protobuf message <code>google.firestore.admin.v1.ImportDocumentsRequest</code>
 */
class ImportDocumentsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Database to import into. Should be of the form:
     * `projects/{project_id}/databases/{database_id}`.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    private $name = '';
    /**
     * Which collection ids to import. Unspecified means all collections included
     * in the import.
     *
     * Generated from protobuf field <code>repeated string collection_ids = 2;</code>
     */
    private $collection_ids;
    /**
     * Location of the exported files.
     * This must match the output_uri_prefix of an ExportDocumentsResponse from
     * an export that has completed successfully.
     * See:
     * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
     *
     * Generated from protobuf field <code>string input_uri_prefix = 3;</code>
     */
    private $input_uri_prefix = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Database to import into. Should be of the form:
     *           `projects/{project_id}/databases/{database_id}`.
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $collection_ids
     *           Which collection ids to import. Unspecified means all collections included
     *           in the import.
     *     @type string $input_uri_prefix
     *           Location of the exported files.
     *           This must match the output_uri_prefix of an ExportDocumentsResponse from
     *           an export that has completed successfully.
     *           See:
     *           [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
        parent::__construct($data);
    }

    /**
     * Database to import into. Should be of the form:
     * `projects/{project_id}/databases/{database_id}`.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Database to import into. Should be of the form:
     * `projects/{project_id}/databases/{database_id}`.
     *
     * 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;
    }

    /**
     * Which collection ids to import. Unspecified means all collections included
     * in the import.
     *
     * Generated from protobuf field <code>repeated string collection_ids = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCollectionIds()
    {
        return $this->collection_ids;
    }

    /**
     * Which collection ids to import. Unspecified means all collections included
     * in the import.
     *
     * Generated from protobuf field <code>repeated string collection_ids = 2;</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCollectionIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->collection_ids = $arr;

        return $this;
    }

    /**
     * Location of the exported files.
     * This must match the output_uri_prefix of an ExportDocumentsResponse from
     * an export that has completed successfully.
     * See:
     * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
     *
     * Generated from protobuf field <code>string input_uri_prefix = 3;</code>
     * @return string
     */
    public function getInputUriPrefix()
    {
        return $this->input_uri_prefix;
    }

    /**
     * Location of the exported files.
     * This must match the output_uri_prefix of an ExportDocumentsResponse from
     * an export that has completed successfully.
     * See:
     * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
     *
     * Generated from protobuf field <code>string input_uri_prefix = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setInputUriPrefix($var)
    {
        GPBUtil::checkString($var, True);
        $this->input_uri_prefix = $var;

        return $this;
    }

}

