Class NfsExportOptions.Builder (1.37.0)

public static final class NfsExportOptions.Builder extends GeneratedMessageV3.Builder<NfsExportOptions.Builder> implements NfsExportOptionsOrBuilder

NFS export options specifications.

Protobuf type google.cloud.filestore.v1beta1.NfsExportOptions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllIpRanges(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The ipRanges to add.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

addAllSecurityFlavors(Iterable<? extends NfsExportOptions.SecurityFlavor> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor>

The securityFlavors to add.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

addAllSecurityFlavorsValue(Iterable<Integer> values)

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;

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for securityFlavors to add.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

addIpRanges(String value)

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;

Parameter
NameDescription
valueString

The ipRanges to add.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

addIpRangesBytes(ByteString value)

public NfsExportOptions.Builder addIpRangesBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the ipRanges to add.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NfsExportOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NfsExportOptions.Builder
Overrides

addSecurityFlavors(NfsExportOptions.SecurityFlavor value)

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;

Parameter
NameDescription
valueNfsExportOptions.SecurityFlavor

The securityFlavors to add.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

addSecurityFlavorsValue(int value)

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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for securityFlavors to add.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

build()

public NfsExportOptions build()
Returns
TypeDescription
NfsExportOptions

buildPartial()

public NfsExportOptions buildPartial()
Returns
TypeDescription
NfsExportOptions

clear()

public NfsExportOptions.Builder clear()
Returns
TypeDescription
NfsExportOptions.Builder
Overrides

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
TypeDescription
NfsExportOptions.Builder

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
TypeDescription
NfsExportOptions.Builder

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
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NfsExportOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NfsExportOptions.Builder
Overrides

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
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NfsExportOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NfsExportOptions.Builder
Overrides

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
TypeDescription
NfsExportOptions.Builder

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
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

clone()

public NfsExportOptions.Builder clone()
Returns
TypeDescription
NfsExportOptions.Builder
Overrides

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;

Returns
TypeDescription
NfsExportOptions.AccessMode

The accessMode.

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;

Returns
TypeDescription
int

The enum numeric value on the wire for accessMode.

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;

Returns
TypeDescription
long

The anonGid.

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;

Returns
TypeDescription
long

The anonUid.

getDefaultInstanceForType()

public NfsExportOptions getDefaultInstanceForType()
Returns
TypeDescription
NfsExportOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIpRanges(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The ipRanges at the given index.

getIpRangesBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the ipRanges at the given index.

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;

Returns
TypeDescription
int

The count of ipRanges.

getIpRangesList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the ipRanges.

getSecurityFlavors(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
NfsExportOptions.SecurityFlavor

The securityFlavors at the given index.

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;

Returns
TypeDescription
int

The count of securityFlavors.

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;

Returns
TypeDescription
List<SecurityFlavor>

A list containing the securityFlavors.

getSecurityFlavorsValue(int index)

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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of securityFlavors at the given index.

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;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for securityFlavors.

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;

Returns
TypeDescription
NfsExportOptions.SquashMode

The squashMode.

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;

Returns
TypeDescription
int

The enum numeric value on the wire for squashMode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NfsExportOptions other)

public NfsExportOptions.Builder mergeFrom(NfsExportOptions other)
Parameter
NameDescription
otherNfsExportOptions
Returns
TypeDescription
NfsExportOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NfsExportOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NfsExportOptions.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NfsExportOptions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NfsExportOptions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NfsExportOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NfsExportOptions.Builder
Overrides

setAccessMode(NfsExportOptions.AccessMode value)

public NfsExportOptions.Builder setAccessMode(NfsExportOptions.AccessMode 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;

Parameter
NameDescription
valueNfsExportOptions.AccessMode

The accessMode to set.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

setAccessModeValue(int value)

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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for accessMode to set.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

setAnonGid(long value)

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;

Parameter
NameDescription
valuelong

The anonGid to set.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

setAnonUid(long value)

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;

Parameter
NameDescription
valuelong

The anonUid to set.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NfsExportOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NfsExportOptions.Builder
Overrides

setIpRanges(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The ipRanges to set.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NfsExportOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NfsExportOptions.Builder
Overrides

setSecurityFlavors(int index, NfsExportOptions.SecurityFlavor value)

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
NameDescription
indexint

The index to set the value at.

valueNfsExportOptions.SecurityFlavor

The securityFlavors to set.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

setSecurityFlavorsValue(int index, int value)

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
NameDescription
indexint

The index to set the value at.

valueint

The enum numeric value on the wire for securityFlavors to set.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

setSquashMode(NfsExportOptions.SquashMode value)

public NfsExportOptions.Builder setSquashMode(NfsExportOptions.SquashMode 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;

Parameter
NameDescription
valueNfsExportOptions.SquashMode

The squashMode to set.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

setSquashModeValue(int value)

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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for squashMode to set.

Returns
TypeDescription
NfsExportOptions.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NfsExportOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NfsExportOptions.Builder
Overrides