Class NewFilestoreConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NewFilestoreConfig.Builder>
com.google.cloud.hypercomputecluster.v1.NewFilestoreConfig.Builder
All Implemented Interfaces:
NewFilestoreConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
NewFilestoreConfig

public static final class NewFilestoreConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<NewFilestoreConfig.Builder> implements NewFilestoreConfigOrBuilder
 When set in a
 [StorageResourceConfig][google.cloud.hypercomputecluster.v1.StorageResourceConfig],
 indicates that a new [Filestore](https://cloud.google.com/filestore) instance
 should be created.
 
Protobuf type google.cloud.hypercomputecluster.v1.NewFilestoreConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<NewFilestoreConfig.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.GeneratedMessage.Builder<NewFilestoreConfig.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.GeneratedMessage.Builder<NewFilestoreConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public NewFilestoreConfig.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<NewFilestoreConfig.Builder>
    • mergeFrom

    • isInitialized

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

      public NewFilestoreConfig.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<NewFilestoreConfig.Builder>
      Throws:
      IOException
    • getFilestore

      public String getFilestore()
       Required. Immutable. Name of the Filestore instance to create, in the
       format `projects/{project}/locations/{location}/instances/{instance}`
       
      string filestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getFilestore in interface NewFilestoreConfigOrBuilder
      Returns:
      The filestore.
    • getFilestoreBytes

      public com.google.protobuf.ByteString getFilestoreBytes()
       Required. Immutable. Name of the Filestore instance to create, in the
       format `projects/{project}/locations/{location}/instances/{instance}`
       
      string filestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getFilestoreBytes in interface NewFilestoreConfigOrBuilder
      Returns:
      The bytes for filestore.
    • setFilestore

      public NewFilestoreConfig.Builder setFilestore(String value)
       Required. Immutable. Name of the Filestore instance to create, in the
       format `projects/{project}/locations/{location}/instances/{instance}`
       
      string filestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The filestore to set.
      Returns:
      This builder for chaining.
    • clearFilestore

      public NewFilestoreConfig.Builder clearFilestore()
       Required. Immutable. Name of the Filestore instance to create, in the
       format `projects/{project}/locations/{location}/instances/{instance}`
       
      string filestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setFilestoreBytes

      public NewFilestoreConfig.Builder setFilestoreBytes(com.google.protobuf.ByteString value)
       Required. Immutable. Name of the Filestore instance to create, in the
       format `projects/{project}/locations/{location}/instances/{instance}`
       
      string filestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for filestore to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. Immutable. Description of the instance. Maximum of 2048
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDescription in interface NewFilestoreConfigOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Immutable. Description of the instance. Maximum of 2048
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDescriptionBytes in interface NewFilestoreConfigOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public NewFilestoreConfig.Builder setDescription(String value)
       Optional. Immutable. Description of the instance. Maximum of 2048
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public NewFilestoreConfig.Builder clearDescription()
       Optional. Immutable. Description of the instance. Maximum of 2048
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public NewFilestoreConfig.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Immutable. Description of the instance. Maximum of 2048
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getFileSharesList

      public List<FileShareConfig> getFileSharesList()
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getFileSharesList in interface NewFilestoreConfigOrBuilder
    • getFileSharesCount

      public int getFileSharesCount()
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getFileSharesCount in interface NewFilestoreConfigOrBuilder
    • getFileShares

      public FileShareConfig getFileShares(int index)
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getFileShares in interface NewFilestoreConfigOrBuilder
    • setFileShares

      public NewFilestoreConfig.Builder setFileShares(int index, FileShareConfig value)
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • setFileShares

      public NewFilestoreConfig.Builder setFileShares(int index, FileShareConfig.Builder builderForValue)
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • addFileShares

      public NewFilestoreConfig.Builder addFileShares(FileShareConfig value)
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • addFileShares

      public NewFilestoreConfig.Builder addFileShares(int index, FileShareConfig value)
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • addFileShares

      public NewFilestoreConfig.Builder addFileShares(FileShareConfig.Builder builderForValue)
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • addFileShares

      public NewFilestoreConfig.Builder addFileShares(int index, FileShareConfig.Builder builderForValue)
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • addAllFileShares

      public NewFilestoreConfig.Builder addAllFileShares(Iterable<? extends FileShareConfig> values)
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • clearFileShares

      public NewFilestoreConfig.Builder clearFileShares()
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • removeFileShares

      public NewFilestoreConfig.Builder removeFileShares(int index)
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • getFileSharesBuilder

      public FileShareConfig.Builder getFileSharesBuilder(int index)
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • getFileSharesOrBuilder

      public FileShareConfigOrBuilder getFileSharesOrBuilder(int index)
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getFileSharesOrBuilder in interface NewFilestoreConfigOrBuilder
    • getFileSharesOrBuilderList

      public List<? extends FileShareConfigOrBuilder> getFileSharesOrBuilderList()
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getFileSharesOrBuilderList in interface NewFilestoreConfigOrBuilder
    • addFileSharesBuilder

      public FileShareConfig.Builder addFileSharesBuilder()
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • addFileSharesBuilder

      public FileShareConfig.Builder addFileSharesBuilder(int index)
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • getFileSharesBuilderList

      public List<FileShareConfig.Builder> getFileSharesBuilderList()
       Required. Immutable. File system shares on the instance. Exactly one file
       share must be specified.
       
      repeated .google.cloud.hypercomputecluster.v1.FileShareConfig file_shares = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • getTierValue

      public int getTierValue()
       Required. Immutable. Service tier to use for the instance.
       
      .google.cloud.hypercomputecluster.v1.NewFilestoreConfig.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getTierValue in interface NewFilestoreConfigOrBuilder
      Returns:
      The enum numeric value on the wire for tier.
    • setTierValue

      public NewFilestoreConfig.Builder setTierValue(int value)
       Required. Immutable. Service tier to use for the instance.
       
      .google.cloud.hypercomputecluster.v1.NewFilestoreConfig.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The enum numeric value on the wire for tier to set.
      Returns:
      This builder for chaining.
    • getTier

      public NewFilestoreConfig.Tier getTier()
       Required. Immutable. Service tier to use for the instance.
       
      .google.cloud.hypercomputecluster.v1.NewFilestoreConfig.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getTier in interface NewFilestoreConfigOrBuilder
      Returns:
      The tier.
    • setTier

       Required. Immutable. Service tier to use for the instance.
       
      .google.cloud.hypercomputecluster.v1.NewFilestoreConfig.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The tier to set.
      Returns:
      This builder for chaining.
    • clearTier

      public NewFilestoreConfig.Builder clearTier()
       Required. Immutable. Service tier to use for the instance.
       
      .google.cloud.hypercomputecluster.v1.NewFilestoreConfig.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • getProtocolValue

      public int getProtocolValue()
       Optional. Immutable. Access protocol to use for all file shares in the
       instance. Defaults to NFS V3 if not set.
       
      .google.cloud.hypercomputecluster.v1.NewFilestoreConfig.Protocol protocol = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getProtocolValue in interface NewFilestoreConfigOrBuilder
      Returns:
      The enum numeric value on the wire for protocol.
    • setProtocolValue

      public NewFilestoreConfig.Builder setProtocolValue(int value)
       Optional. Immutable. Access protocol to use for all file shares in the
       instance. Defaults to NFS V3 if not set.
       
      .google.cloud.hypercomputecluster.v1.NewFilestoreConfig.Protocol protocol = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The enum numeric value on the wire for protocol to set.
      Returns:
      This builder for chaining.
    • getProtocol

      public NewFilestoreConfig.Protocol getProtocol()
       Optional. Immutable. Access protocol to use for all file shares in the
       instance. Defaults to NFS V3 if not set.
       
      .google.cloud.hypercomputecluster.v1.NewFilestoreConfig.Protocol protocol = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getProtocol in interface NewFilestoreConfigOrBuilder
      Returns:
      The protocol.
    • setProtocol

       Optional. Immutable. Access protocol to use for all file shares in the
       instance. Defaults to NFS V3 if not set.
       
      .google.cloud.hypercomputecluster.v1.NewFilestoreConfig.Protocol protocol = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The protocol to set.
      Returns:
      This builder for chaining.
    • clearProtocol

      public NewFilestoreConfig.Builder clearProtocol()
       Optional. Immutable. Access protocol to use for all file shares in the
       instance. Defaults to NFS V3 if not set.
       
      .google.cloud.hypercomputecluster.v1.NewFilestoreConfig.Protocol protocol = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.