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

namespace Google\Cloud\HypercomputeCluster\V1beta;

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

/**
 * When set in a
 * [StorageResourceConfig][google.cloud.hypercomputecluster.v1beta.StorageResourceConfig],
 * indicates that an existing [Filestore](https://cloud.google.com/filestore)
 * instance should be imported.
 *
 * Generated from protobuf message <code>google.cloud.hypercomputecluster.v1beta.ExistingFilestoreConfig</code>
 */
class ExistingFilestoreConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Immutable. Name of the Filestore instance to import, in the
     * format `projects/{project}/locations/{location}/instances/{instance}`
     *
     * Generated from protobuf field <code>string filestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     */
    protected $filestore = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $filestore
     *           Required. Immutable. Name of the Filestore instance to import, in the
     *           format `projects/{project}/locations/{location}/instances/{instance}`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Hypercomputecluster\V1Beta\HypercomputeCluster::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Immutable. Name of the Filestore instance to import, in the
     * format `projects/{project}/locations/{location}/instances/{instance}`
     *
     * Generated from protobuf field <code>string filestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getFilestore()
    {
        return $this->filestore;
    }

    /**
     * Required. Immutable. Name of the Filestore instance to import, in the
     * format `projects/{project}/locations/{location}/instances/{instance}`
     *
     * Generated from protobuf field <code>string filestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setFilestore($var)
    {
        GPBUtil::checkString($var, True);
        $this->filestore = $var;

        return $this;
    }

}

