Class NfsExportOptions.Builder (1.56.0)

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

NFS export options specifications.

Protobuf type google.cloud.filestore.v1.NfsExportOptions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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
Name Description
values Iterable<String>

The ipRanges to add.

Returns
Type Description
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
Name Description
value String

The ipRanges to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the ipRanges to add.

Returns
Type Description
NfsExportOptions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NfsExportOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NfsExportOptions.Builder
Overrides

build()

public NfsExportOptions build()
Returns
Type Description
NfsExportOptions

buildPartial()

public NfsExportOptions buildPartial()
Returns
Type Description
NfsExportOptions

clear()

public NfsExportOptions.Builder clear()
Returns
Type Description
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.v1.NfsExportOptions.AccessMode access_mode = 2;

Returns
Type Description
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
Type Description
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
Type Description
NfsExportOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NfsExportOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
NfsExportOptions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NfsExportOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NfsExportOptions.Builder
Overrides

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.v1.NfsExportOptions.SquashMode squash_mode = 3;

Returns
Type Description
NfsExportOptions.Builder

This builder for chaining.

clone()

public NfsExportOptions.Builder clone()
Returns
Type Description
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.v1.NfsExportOptions.AccessMode access_mode = 2;

Returns
Type Description
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.v1.NfsExportOptions.AccessMode access_mode = 2;

Returns
Type Description
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
Type Description
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
Type Description
long

The anonUid.

getDefaultInstanceForType()

public NfsExportOptions getDefaultInstanceForType()
Returns
Type Description
NfsExportOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the ipRanges.

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.v1.NfsExportOptions.SquashMode squash_mode = 3;

Returns
Type Description
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.v1.NfsExportOptions.SquashMode squash_mode = 3;

Returns
Type Description
int

The enum numeric value on the wire for squashMode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NfsExportOptions other)

public NfsExportOptions.Builder mergeFrom(NfsExportOptions other)
Parameter
Name Description
other NfsExportOptions
Returns
Type Description
NfsExportOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NfsExportOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NfsExportOptions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NfsExportOptions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NfsExportOptions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NfsExportOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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.v1.NfsExportOptions.AccessMode access_mode = 2;

Parameter
Name Description
value NfsExportOptions.AccessMode

The accessMode to set.

Returns
Type Description
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.v1.NfsExportOptions.AccessMode access_mode = 2;

Parameter
Name Description
value int

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

Returns
Type Description
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
Name Description
value long

The anonGid to set.

Returns
Type Description
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
Name Description
value long

The anonUid to set.

Returns
Type Description
NfsExportOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NfsExportOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The ipRanges to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NfsExportOptions.Builder
Overrides

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.v1.NfsExportOptions.SquashMode squash_mode = 3;

Parameter
Name Description
value NfsExportOptions.SquashMode

The squashMode to set.

Returns
Type Description
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.v1.NfsExportOptions.SquashMode squash_mode = 3;

Parameter
Name Description
value int

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

Returns
Type Description
NfsExportOptions.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NfsExportOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NfsExportOptions.Builder
Overrides