Class VolumeConfig.NfsExport.Builder (0.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VolumeConfig.NfsExport build()
Returns
TypeDescription
VolumeConfig.NfsExport

buildPartial()

public VolumeConfig.NfsExport buildPartial()
Returns
TypeDescription
VolumeConfig.NfsExport

clear()

public VolumeConfig.NfsExport.Builder clear()
Returns
TypeDescription
VolumeConfig.NfsExport.Builder
Overrides

clearAllowDev()

public VolumeConfig.NfsExport.Builder clearAllowDev()

Allow dev flag in NfsShare AllowedClientsRequest.

bool allow_dev = 7;

Returns
TypeDescription
VolumeConfig.NfsExport.Builder

This builder for chaining.

clearAllowSuid()

public VolumeConfig.NfsExport.Builder clearAllowSuid()

Allow the setuid flag.

bool allow_suid = 6;

Returns
TypeDescription
VolumeConfig.NfsExport.Builder

This builder for chaining.

clearCidr()

public VolumeConfig.NfsExport.Builder clearCidr()

A CIDR range.

string cidr = 3;

Returns
TypeDescription
VolumeConfig.NfsExport.Builder

This builder for chaining.

clearClient()

public VolumeConfig.NfsExport.Builder clearClient()
Returns
TypeDescription
VolumeConfig.NfsExport.Builder

clearField(Descriptors.FieldDescriptor field)

public VolumeConfig.NfsExport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
VolumeConfig.NfsExport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPermissions()

public VolumeConfig.NfsExport.Builder clearPermissions()

Export permissions.

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

Returns
TypeDescription
VolumeConfig.NfsExport.Builder

This builder for chaining.

clone()

public VolumeConfig.NfsExport.Builder clone()
Returns
TypeDescription
VolumeConfig.NfsExport.Builder
Overrides

getAllowDev()

public boolean getAllowDev()

Allow dev flag in NfsShare AllowedClientsRequest.

bool allow_dev = 7;

Returns
TypeDescription
boolean

The allowDev.

getAllowSuid()

public boolean getAllowSuid()

Allow the setuid flag.

bool allow_suid = 6;

Returns
TypeDescription
boolean

The allowSuid.

getCidr()

public String getCidr()

A CIDR range.

string cidr = 3;

Returns
TypeDescription
String

The cidr.

getCidrBytes()

public ByteString getCidrBytes()

A CIDR range.

string cidr = 3;

Returns
TypeDescription
ByteString

The bytes for cidr.

getClientCase()

public VolumeConfig.NfsExport.ClientCase getClientCase()
Returns
TypeDescription
VolumeConfig.NfsExport.ClientCase

getDefaultInstanceForType()

public VolumeConfig.NfsExport getDefaultInstanceForType()
Returns
TypeDescription
VolumeConfig.NfsExport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for machineId.

getNetworkId()

public String getNetworkId()

Network to use to publish the export.

string network_id = 1;

Returns
TypeDescription
String

The networkId.

getNetworkIdBytes()

public ByteString getNetworkIdBytes()

Network to use to publish the export.

string network_id = 1;

Returns
TypeDescription
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
TypeDescription
boolean

The noRootSquash.

getPermissions()

public VolumeConfig.NfsExport.Permissions getPermissions()

Export permissions.

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

Returns
TypeDescription
VolumeConfig.NfsExport.Permissions

The permissions.

getPermissionsValue()

public int getPermissionsValue()

Export permissions.

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

Returns
TypeDescription
int

The enum numeric value on the wire for permissions.

hasCidr()

public boolean hasCidr()

A CIDR range.

string cidr = 3;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the machineId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VolumeConfig.NfsExport other)

public VolumeConfig.NfsExport.Builder mergeFrom(VolumeConfig.NfsExport other)
Parameter
NameDescription
otherVolumeConfig.NfsExport
Returns
TypeDescription
VolumeConfig.NfsExport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VolumeConfig.NfsExport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The allowDev to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The allowSuid to set.

Returns
TypeDescription
VolumeConfig.NfsExport.Builder

This builder for chaining.

setCidr(String value)

public VolumeConfig.NfsExport.Builder setCidr(String value)

A CIDR range.

string cidr = 3;

Parameter
NameDescription
valueString

The cidr to set.

Returns
TypeDescription
VolumeConfig.NfsExport.Builder

This builder for chaining.

setCidrBytes(ByteString value)

public VolumeConfig.NfsExport.Builder setCidrBytes(ByteString value)

A CIDR range.

string cidr = 3;

Parameter
NameDescription
valueByteString

The bytes for cidr to set.

Returns
TypeDescription
VolumeConfig.NfsExport.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VolumeConfig.NfsExport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The machineId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for machineId to set.

Returns
TypeDescription
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
NameDescription
valueString

The networkId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for networkId to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The noRootSquash to set.

Returns
TypeDescription
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
NameDescription
valueVolumeConfig.NfsExport.Permissions

The permissions to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VolumeConfig.NfsExport.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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