Class VolumeConfig.NfsExport.Builder (0.43.0)

public static final class VolumeConfig.NfsExport.Builder extends GeneratedMessageV3.Builder<VolumeConfig.NfsExport.Builder> implements VolumeConfig.NfsExportOrBuilder

A NFS export entry.

Protobuf type google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VolumeConfig.NfsExport build()
Returns
Type Description
VolumeConfig.NfsExport

buildPartial()

public VolumeConfig.NfsExport buildPartial()
Returns
Type Description
VolumeConfig.NfsExport

clear()

public VolumeConfig.NfsExport.Builder clear()
Returns
Type Description
VolumeConfig.NfsExport.Builder
Overrides

clearAllowDev()

public VolumeConfig.NfsExport.Builder clearAllowDev()

Allow dev flag in NfsShare AllowedClientsRequest.

bool allow_dev = 7;

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

clearAllowSuid()

public VolumeConfig.NfsExport.Builder clearAllowSuid()

Allow the setuid flag.

bool allow_suid = 6;

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

clearCidr()

public VolumeConfig.NfsExport.Builder clearCidr()

A CIDR range.

string cidr = 3;

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

clearClient()

public VolumeConfig.NfsExport.Builder clearClient()
Returns
Type Description
VolumeConfig.NfsExport.Builder

clearField(Descriptors.FieldDescriptor field)

public VolumeConfig.NfsExport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VolumeConfig.NfsExport.Builder
Overrides

clearMachineId()

public VolumeConfig.NfsExport.Builder clearMachineId()

Either a single machine, identified by an ID, or a comma-separated list of machine IDs.

string machine_id = 2;

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

clearNetworkId()

public VolumeConfig.NfsExport.Builder clearNetworkId()

Network to use to publish the export.

string network_id = 1;

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

clearNoRootSquash()

public VolumeConfig.NfsExport.Builder clearNoRootSquash()

Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.

bool no_root_squash = 5;

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPermissions()

public VolumeConfig.NfsExport.Builder clearPermissions()

Export permissions.

.google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport.Permissions permissions = 4;

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

clone()

public VolumeConfig.NfsExport.Builder clone()
Returns
Type Description
VolumeConfig.NfsExport.Builder
Overrides

getAllowDev()

public boolean getAllowDev()

Allow dev flag in NfsShare AllowedClientsRequest.

bool allow_dev = 7;

Returns
Type Description
boolean

The allowDev.

getAllowSuid()

public boolean getAllowSuid()

Allow the setuid flag.

bool allow_suid = 6;

Returns
Type Description
boolean

The allowSuid.

getCidr()

public String getCidr()

A CIDR range.

string cidr = 3;

Returns
Type Description
String

The cidr.

getCidrBytes()

public ByteString getCidrBytes()

A CIDR range.

string cidr = 3;

Returns
Type Description
ByteString

The bytes for cidr.

getClientCase()

public VolumeConfig.NfsExport.ClientCase getClientCase()
Returns
Type Description
VolumeConfig.NfsExport.ClientCase

getDefaultInstanceForType()

public VolumeConfig.NfsExport getDefaultInstanceForType()
Returns
Type Description
VolumeConfig.NfsExport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMachineId()

public String getMachineId()

Either a single machine, identified by an ID, or a comma-separated list of machine IDs.

string machine_id = 2;

Returns
Type Description
String

The machineId.

getMachineIdBytes()

public ByteString getMachineIdBytes()

Either a single machine, identified by an ID, or a comma-separated list of machine IDs.

string machine_id = 2;

Returns
Type Description
ByteString

The bytes for machineId.

getNetworkId()

public String getNetworkId()

Network to use to publish the export.

string network_id = 1;

Returns
Type Description
String

The networkId.

getNetworkIdBytes()

public ByteString getNetworkIdBytes()

Network to use to publish the export.

string network_id = 1;

Returns
Type Description
ByteString

The bytes for networkId.

getNoRootSquash()

public boolean getNoRootSquash()

Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.

bool no_root_squash = 5;

Returns
Type Description
boolean

The noRootSquash.

getPermissions()

public VolumeConfig.NfsExport.Permissions getPermissions()

Export permissions.

.google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport.Permissions permissions = 4;

Returns
Type Description
VolumeConfig.NfsExport.Permissions

The permissions.

getPermissionsValue()

public int getPermissionsValue()

Export permissions.

.google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport.Permissions permissions = 4;

Returns
Type Description
int

The enum numeric value on the wire for permissions.

hasCidr()

public boolean hasCidr()

A CIDR range.

string cidr = 3;

Returns
Type Description
boolean

Whether the cidr field is set.

hasMachineId()

public boolean hasMachineId()

Either a single machine, identified by an ID, or a comma-separated list of machine IDs.

string machine_id = 2;

Returns
Type Description
boolean

Whether the machineId field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VolumeConfig.NfsExport other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VolumeConfig.NfsExport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VolumeConfig.NfsExport.Builder
Overrides

setAllowDev(boolean value)

public VolumeConfig.NfsExport.Builder setAllowDev(boolean value)

Allow dev flag in NfsShare AllowedClientsRequest.

bool allow_dev = 7;

Parameter
Name Description
value boolean

The allowDev to set.

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

setAllowSuid(boolean value)

public VolumeConfig.NfsExport.Builder setAllowSuid(boolean value)

Allow the setuid flag.

bool allow_suid = 6;

Parameter
Name Description
value boolean

The allowSuid to set.

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

setCidr(String value)

public VolumeConfig.NfsExport.Builder setCidr(String value)

A CIDR range.

string cidr = 3;

Parameter
Name Description
value String

The cidr to set.

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

setCidrBytes(ByteString value)

public VolumeConfig.NfsExport.Builder setCidrBytes(ByteString value)

A CIDR range.

string cidr = 3;

Parameter
Name Description
value ByteString

The bytes for cidr to set.

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VolumeConfig.NfsExport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VolumeConfig.NfsExport.Builder
Overrides

setMachineId(String value)

public VolumeConfig.NfsExport.Builder setMachineId(String value)

Either a single machine, identified by an ID, or a comma-separated list of machine IDs.

string machine_id = 2;

Parameter
Name Description
value String

The machineId to set.

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

setMachineIdBytes(ByteString value)

public VolumeConfig.NfsExport.Builder setMachineIdBytes(ByteString value)

Either a single machine, identified by an ID, or a comma-separated list of machine IDs.

string machine_id = 2;

Parameter
Name Description
value ByteString

The bytes for machineId to set.

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

setNetworkId(String value)

public VolumeConfig.NfsExport.Builder setNetworkId(String value)

Network to use to publish the export.

string network_id = 1;

Parameter
Name Description
value String

The networkId to set.

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

setNetworkIdBytes(ByteString value)

public VolumeConfig.NfsExport.Builder setNetworkIdBytes(ByteString value)

Network to use to publish the export.

string network_id = 1;

Parameter
Name Description
value ByteString

The bytes for networkId to set.

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

setNoRootSquash(boolean value)

public VolumeConfig.NfsExport.Builder setNoRootSquash(boolean value)

Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.

bool no_root_squash = 5;

Parameter
Name Description
value boolean

The noRootSquash to set.

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

setPermissions(VolumeConfig.NfsExport.Permissions value)

public VolumeConfig.NfsExport.Builder setPermissions(VolumeConfig.NfsExport.Permissions value)

Export permissions.

.google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport.Permissions permissions = 4;

Parameter
Name Description
value VolumeConfig.NfsExport.Permissions

The permissions to set.

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

setPermissionsValue(int value)

public VolumeConfig.NfsExport.Builder setPermissionsValue(int value)

Export permissions.

.google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport.Permissions permissions = 4;

Parameter
Name Description
value int

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

Returns
Type Description
VolumeConfig.NfsExport.Builder

This builder for chaining.

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

public VolumeConfig.NfsExport.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VolumeConfig.NfsExport.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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