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 Summary
Modifier and TypeMethodDescriptionaddAllIpRanges(Iterable<String> values) List of either an IPv4 addresses in the format `{octet1}.addAllSecurityFlavors(Iterable<? extends NfsExportOptions.SecurityFlavor> values) The security flavors allowed for mount operations.addAllSecurityFlavorsValue(Iterable<Integer> values) The security flavors allowed for mount operations.addIpRanges(String value) List of either an IPv4 addresses in the format `{octet1}.addIpRangesBytes(com.google.protobuf.ByteString value) List of either an IPv4 addresses in the format `{octet1}.The security flavors allowed for mount operations.addSecurityFlavorsValue(int value) The security flavors allowed for mount operations.build()clear()Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests.An integer representing the anonymous group id with a default value of 65534.An integer representing the anonymous user id with a default value of 65534.List of either an IPv4 addresses in the format `{octet1}.The security flavors allowed for mount operations.Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access.Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests.intEither READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests.longAn integer representing the anonymous group id with a default value of 65534.longAn integer representing the anonymous user id with a default value of 65534.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIpRanges(int index) List of either an IPv4 addresses in the format `{octet1}.com.google.protobuf.ByteStringgetIpRangesBytes(int index) List of either an IPv4 addresses in the format `{octet1}.intList of either an IPv4 addresses in the format `{octet1}.com.google.protobuf.ProtocolStringListList of either an IPv4 addresses in the format `{octet1}.getSecurityFlavors(int index) The security flavors allowed for mount operations.intThe security flavors allowed for mount operations.The security flavors allowed for mount operations.intgetSecurityFlavorsValue(int index) The security flavors allowed for mount operations.The security flavors allowed for mount operations.Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access.intEither NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(NfsExportOptions other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests.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.setAnonGid(long value) An integer representing the anonymous group id with a default value of 65534.setAnonUid(long value) An integer representing the anonymous user id with a default value of 65534.setIpRanges(int index, String value) List of either an IPv4 addresses in the format `{octet1}.setSecurityFlavors(int index, NfsExportOptions.SecurityFlavor value) The security flavors allowed for mount operations.setSecurityFlavorsValue(int index, int value) The security flavors allowed for mount operations.Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access.setSquashModeValue(int value) Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NfsExportOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NfsExportOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<NfsExportOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NfsExportOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getIpRangesListin interfaceNfsExportOptionsOrBuilder- 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:
getIpRangesCountin interfaceNfsExportOptionsOrBuilder- Returns:
- The count of ipRanges.
-
getIpRanges
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:
getIpRangesin interfaceNfsExportOptionsOrBuilder- 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:
getIpRangesBytesin interfaceNfsExportOptionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ipRanges at the given index.
-
setIpRanges
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
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
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
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
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:
getAccessModeValuein interfaceNfsExportOptionsOrBuilder- Returns:
- The enum numeric value on the wire for accessMode.
-
setAccessModeValue
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
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:
getAccessModein interfaceNfsExportOptionsOrBuilder- 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
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:
getSquashModeValuein interfaceNfsExportOptionsOrBuilder- Returns:
- The enum numeric value on the wire for squashMode.
-
setSquashModeValue
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
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:
getSquashModein interfaceNfsExportOptionsOrBuilder- 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
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:
getAnonUidin interfaceNfsExportOptionsOrBuilder- Returns:
- The anonUid.
-
setAnonUid
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
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:
getAnonGidin interfaceNfsExportOptionsOrBuilder- Returns:
- The anonGid.
-
setAnonGid
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
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
The security flavors allowed for mount operations. The default is AUTH_SYS.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;- Specified by:
getSecurityFlavorsListin interfaceNfsExportOptionsOrBuilder- 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:
getSecurityFlavorsCountin interfaceNfsExportOptionsOrBuilder- Returns:
- The count of securityFlavors.
-
getSecurityFlavors
The security flavors allowed for mount operations. The default is AUTH_SYS.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;- Specified by:
getSecurityFlavorsin interfaceNfsExportOptionsOrBuilder- 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
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
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
The security flavors allowed for mount operations. The default is AUTH_SYS.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;- Specified by:
getSecurityFlavorsValueListin interfaceNfsExportOptionsOrBuilder- 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:
getSecurityFlavorsValuein interfaceNfsExportOptionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of securityFlavors at the given index.
-
setSecurityFlavorsValue
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
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
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.
-