Class Instance.Builder

  • All Implemented Interfaces:
    InstanceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Instance

    public static final class Instance.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
    implements InstanceOrBuilder
     A Filestore instance.
     
    Protobuf type google.cloud.filestore.v1.Instance
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • clear

        public Instance.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • getDefaultInstanceForType

        public Instance getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Instance build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Instance buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Instance.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • setField

        public Instance.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • clearField

        public Instance.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • clearOneof

        public Instance.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • setRepeatedField

        public Instance.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • addRepeatedField

        public Instance.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • mergeFrom

        public Instance.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • mergeFrom

        public Instance.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The resource name of the instance, in the format
         `projects/{project}/locations/{location}/instances/{instance}`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface InstanceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The resource name of the instance, in the format
         `projects/{project}/locations/{location}/instances/{instance}`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface InstanceOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Instance.Builder setName​(String value)
         Output only. The resource name of the instance, in the format
         `projects/{project}/locations/{location}/instances/{instance}`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Instance.Builder clearName()
         Output only. The resource name of the instance, in the format
         `projects/{project}/locations/{location}/instances/{instance}`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Instance.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the instance, in the format
         `projects/{project}/locations/{location}/instances/{instance}`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         The description of the instance (2048 characters or less).
         
        string description = 2;
        Specified by:
        getDescription in interface InstanceOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         The description of the instance (2048 characters or less).
         
        string description = 2;
        Specified by:
        getDescriptionBytes in interface InstanceOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Instance.Builder setDescription​(String value)
         The description of the instance (2048 characters or less).
         
        string description = 2;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Instance.Builder clearDescription()
         The description of the instance (2048 characters or less).
         
        string description = 2;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Instance.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         The description of the instance (2048 characters or less).
         
        string description = 2;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         Output only. The instance state.
         
        .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface InstanceOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Instance.Builder setStateValue​(int value)
         Output only. The instance state.
         
        .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Instance.State getState()
         Output only. The instance state.
         
        .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface InstanceOrBuilder
        Returns:
        The state.
      • setState

        public Instance.Builder setState​(Instance.State value)
         Output only. The instance state.
         
        .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Instance.Builder clearState()
         Output only. The instance state.
         
        .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getStatusMessage

        public String getStatusMessage()
         Output only. Additional information about the instance state, if available.
         
        string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusMessage in interface InstanceOrBuilder
        Returns:
        The statusMessage.
      • getStatusMessageBytes

        public com.google.protobuf.ByteString getStatusMessageBytes()
         Output only. Additional information about the instance state, if available.
         
        string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusMessageBytes in interface InstanceOrBuilder
        Returns:
        The bytes for statusMessage.
      • setStatusMessage

        public Instance.Builder setStatusMessage​(String value)
         Output only. Additional information about the instance state, if available.
         
        string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The statusMessage to set.
        Returns:
        This builder for chaining.
      • clearStatusMessage

        public Instance.Builder clearStatusMessage()
         Output only. Additional information about the instance state, if available.
         
        string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setStatusMessageBytes

        public Instance.Builder setStatusMessageBytes​(com.google.protobuf.ByteString value)
         Output only. Additional information about the instance state, if available.
         
        string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for statusMessage to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time when the instance was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface InstanceOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time when the instance was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface InstanceOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Instance.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the instance was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Instance.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the instance was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Instance.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the instance was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Instance.Builder clearCreateTime()
         Output only. The time when the instance was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time when the instance was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time when the instance was created.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface InstanceOrBuilder
      • getTierValue

        public int getTierValue()
         The service tier of the instance.
         
        .google.cloud.filestore.v1.Instance.Tier tier = 8;
        Specified by:
        getTierValue in interface InstanceOrBuilder
        Returns:
        The enum numeric value on the wire for tier.
      • setTierValue

        public Instance.Builder setTierValue​(int value)
         The service tier of the instance.
         
        .google.cloud.filestore.v1.Instance.Tier tier = 8;
        Parameters:
        value - The enum numeric value on the wire for tier to set.
        Returns:
        This builder for chaining.
      • getTier

        public Instance.Tier getTier()
         The service tier of the instance.
         
        .google.cloud.filestore.v1.Instance.Tier tier = 8;
        Specified by:
        getTier in interface InstanceOrBuilder
        Returns:
        The tier.
      • setTier

        public Instance.Builder setTier​(Instance.Tier value)
         The service tier of the instance.
         
        .google.cloud.filestore.v1.Instance.Tier tier = 8;
        Parameters:
        value - The tier to set.
        Returns:
        This builder for chaining.
      • clearTier

        public Instance.Builder clearTier()
         The service tier of the instance.
         
        .google.cloud.filestore.v1.Instance.Tier tier = 8;
        Returns:
        This builder for chaining.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: InstanceOrBuilder
         Resource labels to represent user provided metadata.
         
        map<string, string> labels = 9;
        Specified by:
        getLabelsCount in interface InstanceOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Resource labels to represent user provided metadata.
         
        map<string, string> labels = 9;
        Specified by:
        containsLabels in interface InstanceOrBuilder
      • removeLabels

        public Instance.Builder removeLabels​(String key)
         Resource labels to represent user provided metadata.
         
        map<string, string> labels = 9;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public Instance.Builder putLabels​(String key,
                                          String value)
         Resource labels to represent user provided metadata.
         
        map<string, string> labels = 9;
      • putAllLabels

        public Instance.Builder putAllLabels​(Map<String,​String> values)
         Resource labels to represent user provided metadata.
         
        map<string, string> labels = 9;
      • getFileSharesList

        public List<FileShareConfig> getFileSharesList()
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
        Specified by:
        getFileSharesList in interface InstanceOrBuilder
      • getFileSharesCount

        public int getFileSharesCount()
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
        Specified by:
        getFileSharesCount in interface InstanceOrBuilder
      • getFileShares

        public FileShareConfig getFileShares​(int index)
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
        Specified by:
        getFileShares in interface InstanceOrBuilder
      • setFileShares

        public Instance.Builder setFileShares​(int index,
                                              FileShareConfig value)
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • setFileShares

        public Instance.Builder setFileShares​(int index,
                                              FileShareConfig.Builder builderForValue)
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • addFileShares

        public Instance.Builder addFileShares​(FileShareConfig value)
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • addFileShares

        public Instance.Builder addFileShares​(int index,
                                              FileShareConfig value)
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • addFileShares

        public Instance.Builder addFileShares​(FileShareConfig.Builder builderForValue)
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • addFileShares

        public Instance.Builder addFileShares​(int index,
                                              FileShareConfig.Builder builderForValue)
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • addAllFileShares

        public Instance.Builder addAllFileShares​(Iterable<? extends FileShareConfig> values)
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • clearFileShares

        public Instance.Builder clearFileShares()
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • removeFileShares

        public Instance.Builder removeFileShares​(int index)
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • getFileSharesBuilder

        public FileShareConfig.Builder getFileSharesBuilder​(int index)
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • getFileSharesOrBuilder

        public FileShareConfigOrBuilder getFileSharesOrBuilder​(int index)
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
        Specified by:
        getFileSharesOrBuilder in interface InstanceOrBuilder
      • addFileSharesBuilder

        public FileShareConfig.Builder addFileSharesBuilder()
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • addFileSharesBuilder

        public FileShareConfig.Builder addFileSharesBuilder​(int index)
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • getFileSharesBuilderList

        public List<FileShareConfig.Builder> getFileSharesBuilderList()
         File system shares on the instance.
         For this version, only a single file share is supported.
         
        repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      • getNetworksList

        public List<NetworkConfig> getNetworksList()
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
        Specified by:
        getNetworksList in interface InstanceOrBuilder
      • getNetworksCount

        public int getNetworksCount()
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
        Specified by:
        getNetworksCount in interface InstanceOrBuilder
      • getNetworks

        public NetworkConfig getNetworks​(int index)
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
        Specified by:
        getNetworks in interface InstanceOrBuilder
      • setNetworks

        public Instance.Builder setNetworks​(int index,
                                            NetworkConfig value)
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • setNetworks

        public Instance.Builder setNetworks​(int index,
                                            NetworkConfig.Builder builderForValue)
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • addNetworks

        public Instance.Builder addNetworks​(NetworkConfig value)
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • addNetworks

        public Instance.Builder addNetworks​(int index,
                                            NetworkConfig value)
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • addNetworks

        public Instance.Builder addNetworks​(NetworkConfig.Builder builderForValue)
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • addNetworks

        public Instance.Builder addNetworks​(int index,
                                            NetworkConfig.Builder builderForValue)
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • addAllNetworks

        public Instance.Builder addAllNetworks​(Iterable<? extends NetworkConfig> values)
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • clearNetworks

        public Instance.Builder clearNetworks()
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • removeNetworks

        public Instance.Builder removeNetworks​(int index)
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • getNetworksBuilder

        public NetworkConfig.Builder getNetworksBuilder​(int index)
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • getNetworksOrBuilder

        public NetworkConfigOrBuilder getNetworksOrBuilder​(int index)
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
        Specified by:
        getNetworksOrBuilder in interface InstanceOrBuilder
      • getNetworksOrBuilderList

        public List<? extends NetworkConfigOrBuilder> getNetworksOrBuilderList()
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
        Specified by:
        getNetworksOrBuilderList in interface InstanceOrBuilder
      • addNetworksBuilder

        public NetworkConfig.Builder addNetworksBuilder()
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • addNetworksBuilder

        public NetworkConfig.Builder addNetworksBuilder​(int index)
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • getNetworksBuilderList

        public List<NetworkConfig.Builder> getNetworksBuilderList()
         VPC networks to which the instance is connected.
         For this version, only a single network is supported.
         
        repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      • getEtag

        public String getEtag()
         Server-specified ETag for the instance resource to prevent simultaneous
         updates from overwriting each other.
         
        string etag = 12;
        Specified by:
        getEtag in interface InstanceOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         Server-specified ETag for the instance resource to prevent simultaneous
         updates from overwriting each other.
         
        string etag = 12;
        Specified by:
        getEtagBytes in interface InstanceOrBuilder
        Returns:
        The bytes for etag.
      • setEtag

        public Instance.Builder setEtag​(String value)
         Server-specified ETag for the instance resource to prevent simultaneous
         updates from overwriting each other.
         
        string etag = 12;
        Parameters:
        value - The etag to set.
        Returns:
        This builder for chaining.
      • clearEtag

        public Instance.Builder clearEtag()
         Server-specified ETag for the instance resource to prevent simultaneous
         updates from overwriting each other.
         
        string etag = 12;
        Returns:
        This builder for chaining.
      • setEtagBytes

        public Instance.Builder setEtagBytes​(com.google.protobuf.ByteString value)
         Server-specified ETag for the instance resource to prevent simultaneous
         updates from overwriting each other.
         
        string etag = 12;
        Parameters:
        value - The bytes for etag to set.
        Returns:
        This builder for chaining.
      • hasSatisfiesPzs

        public boolean hasSatisfiesPzs()
         Output only. Reserved for future use.
         
        .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasSatisfiesPzs in interface InstanceOrBuilder
        Returns:
        Whether the satisfiesPzs field is set.
      • getSatisfiesPzs

        public com.google.protobuf.BoolValue getSatisfiesPzs()
         Output only. Reserved for future use.
         
        .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSatisfiesPzs in interface InstanceOrBuilder
        Returns:
        The satisfiesPzs.
      • setSatisfiesPzs

        public Instance.Builder setSatisfiesPzs​(com.google.protobuf.BoolValue value)
         Output only. Reserved for future use.
         
        .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setSatisfiesPzs

        public Instance.Builder setSatisfiesPzs​(com.google.protobuf.BoolValue.Builder builderForValue)
         Output only. Reserved for future use.
         
        .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeSatisfiesPzs

        public Instance.Builder mergeSatisfiesPzs​(com.google.protobuf.BoolValue value)
         Output only. Reserved for future use.
         
        .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearSatisfiesPzs

        public Instance.Builder clearSatisfiesPzs()
         Output only. Reserved for future use.
         
        .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getSatisfiesPzsBuilder

        public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder()
         Output only. Reserved for future use.
         
        .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getSatisfiesPzsOrBuilder

        public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder()
         Output only. Reserved for future use.
         
        .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSatisfiesPzsOrBuilder in interface InstanceOrBuilder
      • getKmsKeyName

        public String getKmsKeyName()
         KMS key name used for data encryption.
         
        string kms_key_name = 14;
        Specified by:
        getKmsKeyName in interface InstanceOrBuilder
        Returns:
        The kmsKeyName.
      • getKmsKeyNameBytes

        public com.google.protobuf.ByteString getKmsKeyNameBytes()
         KMS key name used for data encryption.
         
        string kms_key_name = 14;
        Specified by:
        getKmsKeyNameBytes in interface InstanceOrBuilder
        Returns:
        The bytes for kmsKeyName.
      • setKmsKeyName

        public Instance.Builder setKmsKeyName​(String value)
         KMS key name used for data encryption.
         
        string kms_key_name = 14;
        Parameters:
        value - The kmsKeyName to set.
        Returns:
        This builder for chaining.
      • clearKmsKeyName

        public Instance.Builder clearKmsKeyName()
         KMS key name used for data encryption.
         
        string kms_key_name = 14;
        Returns:
        This builder for chaining.
      • setKmsKeyNameBytes

        public Instance.Builder setKmsKeyNameBytes​(com.google.protobuf.ByteString value)
         KMS key name used for data encryption.
         
        string kms_key_name = 14;
        Parameters:
        value - The bytes for kmsKeyName to set.
        Returns:
        This builder for chaining.
      • getSuspensionReasonsList

        public List<Instance.SuspensionReason> getSuspensionReasonsList()
         Output only. Field indicates all the reasons the instance is in "SUSPENDED"
         state.
         
        repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSuspensionReasonsList in interface InstanceOrBuilder
        Returns:
        A list containing the suspensionReasons.
      • getSuspensionReasonsCount

        public int getSuspensionReasonsCount()
         Output only. Field indicates all the reasons the instance is in "SUSPENDED"
         state.
         
        repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSuspensionReasonsCount in interface InstanceOrBuilder
        Returns:
        The count of suspensionReasons.
      • getSuspensionReasons

        public Instance.SuspensionReason getSuspensionReasons​(int index)
         Output only. Field indicates all the reasons the instance is in "SUSPENDED"
         state.
         
        repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSuspensionReasons in interface InstanceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The suspensionReasons at the given index.
      • setSuspensionReasons

        public Instance.Builder setSuspensionReasons​(int index,
                                                     Instance.SuspensionReason value)
         Output only. Field indicates all the reasons the instance is in "SUSPENDED"
         state.
         
        repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        index - The index to set the value at.
        value - The suspensionReasons to set.
        Returns:
        This builder for chaining.
      • addSuspensionReasons

        public Instance.Builder addSuspensionReasons​(Instance.SuspensionReason value)
         Output only. Field indicates all the reasons the instance is in "SUSPENDED"
         state.
         
        repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The suspensionReasons to add.
        Returns:
        This builder for chaining.
      • addAllSuspensionReasons

        public Instance.Builder addAllSuspensionReasons​(Iterable<? extends Instance.SuspensionReason> values)
         Output only. Field indicates all the reasons the instance is in "SUSPENDED"
         state.
         
        repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        values - The suspensionReasons to add.
        Returns:
        This builder for chaining.
      • clearSuspensionReasons

        public Instance.Builder clearSuspensionReasons()
         Output only. Field indicates all the reasons the instance is in "SUSPENDED"
         state.
         
        repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getSuspensionReasonsValueList

        public List<Integer> getSuspensionReasonsValueList()
         Output only. Field indicates all the reasons the instance is in "SUSPENDED"
         state.
         
        repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSuspensionReasonsValueList in interface InstanceOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for suspensionReasons.
      • getSuspensionReasonsValue

        public int getSuspensionReasonsValue​(int index)
         Output only. Field indicates all the reasons the instance is in "SUSPENDED"
         state.
         
        repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSuspensionReasonsValue in interface InstanceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of suspensionReasons at the given index.
      • setSuspensionReasonsValue

        public Instance.Builder setSuspensionReasonsValue​(int index,
                                                          int value)
         Output only. Field indicates all the reasons the instance is in "SUSPENDED"
         state.
         
        repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for suspensionReasons to set.
        Returns:
        This builder for chaining.
      • addSuspensionReasonsValue

        public Instance.Builder addSuspensionReasonsValue​(int value)
         Output only. Field indicates all the reasons the instance is in "SUSPENDED"
         state.
         
        repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for suspensionReasons to add.
        Returns:
        This builder for chaining.
      • addAllSuspensionReasonsValue

        public Instance.Builder addAllSuspensionReasonsValue​(Iterable<Integer> values)
         Output only. Field indicates all the reasons the instance is in "SUSPENDED"
         state.
         
        repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        values - The enum numeric values on the wire for suspensionReasons to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Instance.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
      • mergeUnknownFields

        public final Instance.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>