Class NfsExportOptions.Builder

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

public static final class NfsExportOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<NfsExportOptions.Builder> implements NfsExportOptionsOrBuilder
 NFS export options specifications.
 
Protobuf type google.cloud.filestore.v1beta1.NfsExportOptions
  • 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<NfsExportOptions.Builder>
    • clear

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

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

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

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

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

      public NfsExportOptions.Builder mergeFrom(NfsExportOptions other)
    • isInitialized

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

      public NfsExportOptions.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<NfsExportOptions.Builder>
      Throws:
      IOException
    • getIpRangesList

      public com.google.protobuf.ProtocolStringList getIpRangesList()
       List of either an IPv4 addresses in the format
       `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
       `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
       file share.
       Overlapping IP ranges are not allowed, both within and across
       NfsExportOptions. An error will be returned.
       The limit is 64 IP ranges/addresses for each FileShareConfig among all
       NfsExportOptions.
       
      repeated string ip_ranges = 1;
      Specified by:
      getIpRangesList in interface NfsExportOptionsOrBuilder
      Returns:
      A list containing the ipRanges.
    • getIpRangesCount

      public int getIpRangesCount()
       List of either an IPv4 addresses in the format
       `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
       `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
       file share.
       Overlapping IP ranges are not allowed, both within and across
       NfsExportOptions. An error will be returned.
       The limit is 64 IP ranges/addresses for each FileShareConfig among all
       NfsExportOptions.
       
      repeated string ip_ranges = 1;
      Specified by:
      getIpRangesCount in interface NfsExportOptionsOrBuilder
      Returns:
      The count of ipRanges.
    • getIpRanges

      public String getIpRanges(int index)
       List of either an IPv4 addresses in the format
       `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
       `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
       file share.
       Overlapping IP ranges are not allowed, both within and across
       NfsExportOptions. An error will be returned.
       The limit is 64 IP ranges/addresses for each FileShareConfig among all
       NfsExportOptions.
       
      repeated string ip_ranges = 1;
      Specified by:
      getIpRanges in interface NfsExportOptionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ipRanges at the given index.
    • getIpRangesBytes

      public com.google.protobuf.ByteString getIpRangesBytes(int index)
       List of either an IPv4 addresses in the format
       `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
       `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
       file share.
       Overlapping IP ranges are not allowed, both within and across
       NfsExportOptions. An error will be returned.
       The limit is 64 IP ranges/addresses for each FileShareConfig among all
       NfsExportOptions.
       
      repeated string ip_ranges = 1;
      Specified by:
      getIpRangesBytes in interface NfsExportOptionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ipRanges at the given index.
    • setIpRanges

      public NfsExportOptions.Builder setIpRanges(int index, String value)
       List of either an IPv4 addresses in the format
       `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
       `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
       file share.
       Overlapping IP ranges are not allowed, both within and across
       NfsExportOptions. An error will be returned.
       The limit is 64 IP ranges/addresses for each FileShareConfig among all
       NfsExportOptions.
       
      repeated string ip_ranges = 1;
      Parameters:
      index - The index to set the value at.
      value - The ipRanges to set.
      Returns:
      This builder for chaining.
    • addIpRanges

      public NfsExportOptions.Builder addIpRanges(String value)
       List of either an IPv4 addresses in the format
       `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
       `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
       file share.
       Overlapping IP ranges are not allowed, both within and across
       NfsExportOptions. An error will be returned.
       The limit is 64 IP ranges/addresses for each FileShareConfig among all
       NfsExportOptions.
       
      repeated string ip_ranges = 1;
      Parameters:
      value - The ipRanges to add.
      Returns:
      This builder for chaining.
    • addAllIpRanges

      public NfsExportOptions.Builder addAllIpRanges(Iterable<String> values)
       List of either an IPv4 addresses in the format
       `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
       `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
       file share.
       Overlapping IP ranges are not allowed, both within and across
       NfsExportOptions. An error will be returned.
       The limit is 64 IP ranges/addresses for each FileShareConfig among all
       NfsExportOptions.
       
      repeated string ip_ranges = 1;
      Parameters:
      values - The ipRanges to add.
      Returns:
      This builder for chaining.
    • clearIpRanges

      public NfsExportOptions.Builder clearIpRanges()
       List of either an IPv4 addresses in the format
       `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
       `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
       file share.
       Overlapping IP ranges are not allowed, both within and across
       NfsExportOptions. An error will be returned.
       The limit is 64 IP ranges/addresses for each FileShareConfig among all
       NfsExportOptions.
       
      repeated string ip_ranges = 1;
      Returns:
      This builder for chaining.
    • addIpRangesBytes

      public NfsExportOptions.Builder addIpRangesBytes(com.google.protobuf.ByteString value)
       List of either an IPv4 addresses in the format
       `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
       `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
       file share.
       Overlapping IP ranges are not allowed, both within and across
       NfsExportOptions. An error will be returned.
       The limit is 64 IP ranges/addresses for each FileShareConfig among all
       NfsExportOptions.
       
      repeated string ip_ranges = 1;
      Parameters:
      value - The bytes of the ipRanges to add.
      Returns:
      This builder for chaining.
    • getAccessModeValue

      public int getAccessModeValue()
       Either READ_ONLY, for allowing only read requests on the exported
       directory, or READ_WRITE, for allowing both read and write requests.
       The default is READ_WRITE.
       
      .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2;
      Specified by:
      getAccessModeValue in interface NfsExportOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for accessMode.
    • setAccessModeValue

      public NfsExportOptions.Builder setAccessModeValue(int value)
       Either READ_ONLY, for allowing only read requests on the exported
       directory, or READ_WRITE, for allowing both read and write requests.
       The default is READ_WRITE.
       
      .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2;
      Parameters:
      value - The enum numeric value on the wire for accessMode to set.
      Returns:
      This builder for chaining.
    • getAccessMode

      public NfsExportOptions.AccessMode getAccessMode()
       Either READ_ONLY, for allowing only read requests on the exported
       directory, or READ_WRITE, for allowing both read and write requests.
       The default is READ_WRITE.
       
      .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2;
      Specified by:
      getAccessMode in interface NfsExportOptionsOrBuilder
      Returns:
      The accessMode.
    • setAccessMode

       Either READ_ONLY, for allowing only read requests on the exported
       directory, or READ_WRITE, for allowing both read and write requests.
       The default is READ_WRITE.
       
      .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2;
      Parameters:
      value - The accessMode to set.
      Returns:
      This builder for chaining.
    • clearAccessMode

      public NfsExportOptions.Builder clearAccessMode()
       Either READ_ONLY, for allowing only read requests on the exported
       directory, or READ_WRITE, for allowing both read and write requests.
       The default is READ_WRITE.
       
      .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2;
      Returns:
      This builder for chaining.
    • getSquashModeValue

      public int getSquashModeValue()
       Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
       or ROOT_SQUASH, for not allowing root access. The default is
       NO_ROOT_SQUASH.
       
      .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3;
      Specified by:
      getSquashModeValue in interface NfsExportOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for squashMode.
    • setSquashModeValue

      public NfsExportOptions.Builder setSquashModeValue(int value)
       Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
       or ROOT_SQUASH, for not allowing root access. The default is
       NO_ROOT_SQUASH.
       
      .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3;
      Parameters:
      value - The enum numeric value on the wire for squashMode to set.
      Returns:
      This builder for chaining.
    • getSquashMode

      public NfsExportOptions.SquashMode getSquashMode()
       Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
       or ROOT_SQUASH, for not allowing root access. The default is
       NO_ROOT_SQUASH.
       
      .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3;
      Specified by:
      getSquashMode in interface NfsExportOptionsOrBuilder
      Returns:
      The squashMode.
    • setSquashMode

       Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
       or ROOT_SQUASH, for not allowing root access. The default is
       NO_ROOT_SQUASH.
       
      .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3;
      Parameters:
      value - The squashMode to set.
      Returns:
      This builder for chaining.
    • clearSquashMode

      public NfsExportOptions.Builder clearSquashMode()
       Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
       or ROOT_SQUASH, for not allowing root access. The default is
       NO_ROOT_SQUASH.
       
      .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3;
      Returns:
      This builder for chaining.
    • getAnonUid

      public long getAnonUid()
       An integer representing the anonymous user id with a default value of
       65534.
       Anon_uid may only be set with squash_mode of ROOT_SQUASH.  An error will be
       returned if this field is specified for other squash_mode settings.
       
      int64 anon_uid = 4;
      Specified by:
      getAnonUid in interface NfsExportOptionsOrBuilder
      Returns:
      The anonUid.
    • setAnonUid

      public NfsExportOptions.Builder setAnonUid(long value)
       An integer representing the anonymous user id with a default value of
       65534.
       Anon_uid may only be set with squash_mode of ROOT_SQUASH.  An error will be
       returned if this field is specified for other squash_mode settings.
       
      int64 anon_uid = 4;
      Parameters:
      value - The anonUid to set.
      Returns:
      This builder for chaining.
    • clearAnonUid

      public NfsExportOptions.Builder clearAnonUid()
       An integer representing the anonymous user id with a default value of
       65534.
       Anon_uid may only be set with squash_mode of ROOT_SQUASH.  An error will be
       returned if this field is specified for other squash_mode settings.
       
      int64 anon_uid = 4;
      Returns:
      This builder for chaining.
    • getAnonGid

      public long getAnonGid()
       An integer representing the anonymous group id with a default value of
       65534.
       Anon_gid may only be set with squash_mode of ROOT_SQUASH.  An error will be
       returned if this field is specified for other squash_mode settings.
       
      int64 anon_gid = 5;
      Specified by:
      getAnonGid in interface NfsExportOptionsOrBuilder
      Returns:
      The anonGid.
    • setAnonGid

      public NfsExportOptions.Builder setAnonGid(long value)
       An integer representing the anonymous group id with a default value of
       65534.
       Anon_gid may only be set with squash_mode of ROOT_SQUASH.  An error will be
       returned if this field is specified for other squash_mode settings.
       
      int64 anon_gid = 5;
      Parameters:
      value - The anonGid to set.
      Returns:
      This builder for chaining.
    • clearAnonGid

      public NfsExportOptions.Builder clearAnonGid()
       An integer representing the anonymous group id with a default value of
       65534.
       Anon_gid may only be set with squash_mode of ROOT_SQUASH.  An error will be
       returned if this field is specified for other squash_mode settings.
       
      int64 anon_gid = 5;
      Returns:
      This builder for chaining.
    • getSecurityFlavorsList

      public List<NfsExportOptions.SecurityFlavor> getSecurityFlavorsList()
       The security flavors allowed for mount operations.
       The default is AUTH_SYS.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
      Specified by:
      getSecurityFlavorsList in interface NfsExportOptionsOrBuilder
      Returns:
      A list containing the securityFlavors.
    • getSecurityFlavorsCount

      public int getSecurityFlavorsCount()
       The security flavors allowed for mount operations.
       The default is AUTH_SYS.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
      Specified by:
      getSecurityFlavorsCount in interface NfsExportOptionsOrBuilder
      Returns:
      The count of securityFlavors.
    • getSecurityFlavors

      public NfsExportOptions.SecurityFlavor getSecurityFlavors(int index)
       The security flavors allowed for mount operations.
       The default is AUTH_SYS.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
      Specified by:
      getSecurityFlavors in interface NfsExportOptionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The securityFlavors at the given index.
    • setSecurityFlavors

      public NfsExportOptions.Builder setSecurityFlavors(int index, NfsExportOptions.SecurityFlavor value)
       The security flavors allowed for mount operations.
       The default is AUTH_SYS.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
      Parameters:
      index - The index to set the value at.
      value - The securityFlavors to set.
      Returns:
      This builder for chaining.
    • addSecurityFlavors

      public NfsExportOptions.Builder addSecurityFlavors(NfsExportOptions.SecurityFlavor value)
       The security flavors allowed for mount operations.
       The default is AUTH_SYS.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
      Parameters:
      value - The securityFlavors to add.
      Returns:
      This builder for chaining.
    • addAllSecurityFlavors

      public NfsExportOptions.Builder addAllSecurityFlavors(Iterable<? extends NfsExportOptions.SecurityFlavor> values)
       The security flavors allowed for mount operations.
       The default is AUTH_SYS.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
      Parameters:
      values - The securityFlavors to add.
      Returns:
      This builder for chaining.
    • clearSecurityFlavors

      public NfsExportOptions.Builder clearSecurityFlavors()
       The security flavors allowed for mount operations.
       The default is AUTH_SYS.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
      Returns:
      This builder for chaining.
    • getSecurityFlavorsValueList

      public List<Integer> getSecurityFlavorsValueList()
       The security flavors allowed for mount operations.
       The default is AUTH_SYS.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
      Specified by:
      getSecurityFlavorsValueList in interface NfsExportOptionsOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for securityFlavors.
    • getSecurityFlavorsValue

      public int getSecurityFlavorsValue(int index)
       The security flavors allowed for mount operations.
       The default is AUTH_SYS.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
      Specified by:
      getSecurityFlavorsValue in interface NfsExportOptionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of securityFlavors at the given index.
    • setSecurityFlavorsValue

      public NfsExportOptions.Builder setSecurityFlavorsValue(int index, int value)
       The security flavors allowed for mount operations.
       The default is AUTH_SYS.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for securityFlavors to set.
      Returns:
      This builder for chaining.
    • addSecurityFlavorsValue

      public NfsExportOptions.Builder addSecurityFlavorsValue(int value)
       The security flavors allowed for mount operations.
       The default is AUTH_SYS.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
      Parameters:
      value - The enum numeric value on the wire for securityFlavors to add.
      Returns:
      This builder for chaining.
    • addAllSecurityFlavorsValue

      public NfsExportOptions.Builder addAllSecurityFlavorsValue(Iterable<Integer> values)
       The security flavors allowed for mount operations.
       The default is AUTH_SYS.
       
      repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
      Parameters:
      values - The enum numeric values on the wire for securityFlavors to add.
      Returns:
      This builder for chaining.