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

namespace Google\Cloud\Redis\Cluster\V1\Cluster;

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

/**
 * Backups stored in Cloud Storage buckets.
 * The Cloud Storage buckets need to be the same region as the clusters.
 *
 * Generated from protobuf message <code>google.cloud.redis.cluster.v1.Cluster.GcsBackupSource</code>
 */
class GcsBackupSource extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. URIs of the GCS objects to import.
     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
     *
     * Generated from protobuf field <code>repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $uris;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $uris
     *           Optional. URIs of the GCS objects to import.
     *           Example: gs://bucket1/object1, gs://bucket2/folder2/object2
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Redis\Cluster\V1\CloudRedisCluster::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. URIs of the GCS objects to import.
     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
     *
     * Generated from protobuf field <code>repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getUris()
    {
        return $this->uris;
    }

    /**
     * Optional. URIs of the GCS objects to import.
     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
     *
     * Generated from protobuf field <code>repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setUris($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->uris = $arr;

        return $this;
    }

}


