Class FileShareConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FileShareConfig.Builder>
com.google.cloud.filestore.v1beta1.FileShareConfig.Builder
All Implemented Interfaces:
FileShareConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FileShareConfig

public static final class FileShareConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<FileShareConfig.Builder> implements FileShareConfigOrBuilder
 File share configuration for the instance.
 
Protobuf type google.cloud.filestore.v1beta1.FileShareConfig
  • 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<FileShareConfig.Builder>
    • clear

      public FileShareConfig.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<FileShareConfig.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<FileShareConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public FileShareConfig.Builder mergeFrom(FileShareConfig other)
    • isInitialized

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

      public FileShareConfig.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<FileShareConfig.Builder>
      Throws:
      IOException
    • getSourceCase

      public FileShareConfig.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface FileShareConfigOrBuilder
    • clearSource

      public FileShareConfig.Builder clearSource()
    • getName

      public String getName()
       Required. The name of the file share. Must use 1-16 characters for the
       basic service tier and 1-63 characters for all other service tiers.
       Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
       start with a letter. Immutable.
       
      string name = 1;
      Specified by:
      getName in interface FileShareConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the file share. Must use 1-16 characters for the
       basic service tier and 1-63 characters for all other service tiers.
       Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
       start with a letter. Immutable.
       
      string name = 1;
      Specified by:
      getNameBytes in interface FileShareConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public FileShareConfig.Builder setName(String value)
       Required. The name of the file share. Must use 1-16 characters for the
       basic service tier and 1-63 characters for all other service tiers.
       Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
       start with a letter. Immutable.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public FileShareConfig.Builder clearName()
       Required. The name of the file share. Must use 1-16 characters for the
       basic service tier and 1-63 characters for all other service tiers.
       Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
       start with a letter. Immutable.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public FileShareConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the file share. Must use 1-16 characters for the
       basic service tier and 1-63 characters for all other service tiers.
       Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
       start with a letter. Immutable.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getCapacityGb

      public long getCapacityGb()
       File share capacity in gigabytes (GB).
       Filestore defines 1 GB as 1024^3 bytes.
       
      int64 capacity_gb = 2;
      Specified by:
      getCapacityGb in interface FileShareConfigOrBuilder
      Returns:
      The capacityGb.
    • setCapacityGb

      public FileShareConfig.Builder setCapacityGb(long value)
       File share capacity in gigabytes (GB).
       Filestore defines 1 GB as 1024^3 bytes.
       
      int64 capacity_gb = 2;
      Parameters:
      value - The capacityGb to set.
      Returns:
      This builder for chaining.
    • clearCapacityGb

      public FileShareConfig.Builder clearCapacityGb()
       File share capacity in gigabytes (GB).
       Filestore defines 1 GB as 1024^3 bytes.
       
      int64 capacity_gb = 2;
      Returns:
      This builder for chaining.
    • hasSourceBackup

      public boolean hasSourceBackup()
       The resource name of the backup, in the format
       `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
       this file share has been restored from.
       
      string source_backup = 9 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasSourceBackup in interface FileShareConfigOrBuilder
      Returns:
      Whether the sourceBackup field is set.
    • getSourceBackup

      public String getSourceBackup()
       The resource name of the backup, in the format
       `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
       this file share has been restored from.
       
      string source_backup = 9 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSourceBackup in interface FileShareConfigOrBuilder
      Returns:
      The sourceBackup.
    • getSourceBackupBytes

      public com.google.protobuf.ByteString getSourceBackupBytes()
       The resource name of the backup, in the format
       `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
       this file share has been restored from.
       
      string source_backup = 9 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSourceBackupBytes in interface FileShareConfigOrBuilder
      Returns:
      The bytes for sourceBackup.
    • setSourceBackup

      public FileShareConfig.Builder setSourceBackup(String value)
       The resource name of the backup, in the format
       `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
       this file share has been restored from.
       
      string source_backup = 9 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The sourceBackup to set.
      Returns:
      This builder for chaining.
    • clearSourceBackup

      public FileShareConfig.Builder clearSourceBackup()
       The resource name of the backup, in the format
       `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
       this file share has been restored from.
       
      string source_backup = 9 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSourceBackupBytes

      public FileShareConfig.Builder setSourceBackupBytes(com.google.protobuf.ByteString value)
       The resource name of the backup, in the format
       `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
       this file share has been restored from.
       
      string source_backup = 9 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for sourceBackup to set.
      Returns:
      This builder for chaining.
    • getNfsExportOptionsList

      public List<NfsExportOptions> getNfsExportOptionsList()
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
      Specified by:
      getNfsExportOptionsList in interface FileShareConfigOrBuilder
    • getNfsExportOptionsCount

      public int getNfsExportOptionsCount()
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
      Specified by:
      getNfsExportOptionsCount in interface FileShareConfigOrBuilder
    • getNfsExportOptions

      public NfsExportOptions getNfsExportOptions(int index)
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
      Specified by:
      getNfsExportOptions in interface FileShareConfigOrBuilder
    • setNfsExportOptions

      public FileShareConfig.Builder setNfsExportOptions(int index, NfsExportOptions value)
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    • setNfsExportOptions

      public FileShareConfig.Builder setNfsExportOptions(int index, NfsExportOptions.Builder builderForValue)
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    • addNfsExportOptions

      public FileShareConfig.Builder addNfsExportOptions(NfsExportOptions value)
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    • addNfsExportOptions

      public FileShareConfig.Builder addNfsExportOptions(int index, NfsExportOptions value)
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    • addNfsExportOptions

      public FileShareConfig.Builder addNfsExportOptions(NfsExportOptions.Builder builderForValue)
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    • addNfsExportOptions

      public FileShareConfig.Builder addNfsExportOptions(int index, NfsExportOptions.Builder builderForValue)
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    • addAllNfsExportOptions

      public FileShareConfig.Builder addAllNfsExportOptions(Iterable<? extends NfsExportOptions> values)
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    • clearNfsExportOptions

      public FileShareConfig.Builder clearNfsExportOptions()
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    • removeNfsExportOptions

      public FileShareConfig.Builder removeNfsExportOptions(int index)
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    • getNfsExportOptionsBuilder

      public NfsExportOptions.Builder getNfsExportOptionsBuilder(int index)
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    • getNfsExportOptionsOrBuilder

      public NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder(int index)
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
      Specified by:
      getNfsExportOptionsOrBuilder in interface FileShareConfigOrBuilder
    • getNfsExportOptionsOrBuilderList

      public List<? extends NfsExportOptionsOrBuilder> getNfsExportOptionsOrBuilderList()
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
      Specified by:
      getNfsExportOptionsOrBuilderList in interface FileShareConfigOrBuilder
    • addNfsExportOptionsBuilder

      public NfsExportOptions.Builder addNfsExportOptionsBuilder()
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    • addNfsExportOptionsBuilder

      public NfsExportOptions.Builder addNfsExportOptionsBuilder(int index)
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    • getNfsExportOptionsBuilderList

      public List<NfsExportOptions.Builder> getNfsExportOptionsBuilderList()
       Nfs Export Options.
       There is a limit of 10 export options per file share.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;