Class NfsShare.AllowedClient.Builder (0.46.0)

public static final class NfsShare.AllowedClient.Builder extends GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder> implements NfsShare.AllowedClientOrBuilder

Represents an 'access point' for the share.

Protobuf type google.cloud.baremetalsolution.v2.NfsShare.AllowedClient

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NfsShare.AllowedClient build()
Returns
Type Description
NfsShare.AllowedClient

buildPartial()

public NfsShare.AllowedClient buildPartial()
Returns
Type Description
NfsShare.AllowedClient

clear()

public NfsShare.AllowedClient.Builder clear()
Returns
Type Description
NfsShare.AllowedClient.Builder
Overrides

clearAllowDev()

public NfsShare.AllowedClient.Builder clearAllowDev()

Allow dev flag. Which controls whether to allow creation of devices.

bool allow_dev = 5;

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

clearAllowSuid()

public NfsShare.AllowedClient.Builder clearAllowSuid()

Allow the setuid flag.

bool allow_suid = 6;

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

clearAllowedClientsCidr()

public NfsShare.AllowedClient.Builder clearAllowedClientsCidr()

The subnet of IP addresses permitted to access the share.

string allowed_clients_cidr = 3;

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NfsShare.AllowedClient.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NfsShare.AllowedClient.Builder
Overrides

clearMountPermissions()

public NfsShare.AllowedClient.Builder clearMountPermissions()

Mount permissions.

.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

clearNetwork()

public NfsShare.AllowedClient.Builder clearNetwork()

The network the access point sits on.

string network = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

clearNfsPath()

public NfsShare.AllowedClient.Builder clearNfsPath()

Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"

string nfs_path = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

clearNoRootSquash()

public NfsShare.AllowedClient.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 = 7;

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearShareIp()

public NfsShare.AllowedClient.Builder clearShareIp()

Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.

string share_ip = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

clone()

public NfsShare.AllowedClient.Builder clone()
Returns
Type Description
NfsShare.AllowedClient.Builder
Overrides

getAllowDev()

public boolean getAllowDev()

Allow dev flag. Which controls whether to allow creation of devices.

bool allow_dev = 5;

Returns
Type Description
boolean

The allowDev.

getAllowSuid()

public boolean getAllowSuid()

Allow the setuid flag.

bool allow_suid = 6;

Returns
Type Description
boolean

The allowSuid.

getAllowedClientsCidr()

public String getAllowedClientsCidr()

The subnet of IP addresses permitted to access the share.

string allowed_clients_cidr = 3;

Returns
Type Description
String

The allowedClientsCidr.

getAllowedClientsCidrBytes()

public ByteString getAllowedClientsCidrBytes()

The subnet of IP addresses permitted to access the share.

string allowed_clients_cidr = 3;

Returns
Type Description
ByteString

The bytes for allowedClientsCidr.

getDefaultInstanceForType()

public NfsShare.AllowedClient getDefaultInstanceForType()
Returns
Type Description
NfsShare.AllowedClient

getDescriptorForType()

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

getMountPermissions()

public NfsShare.MountPermissions getMountPermissions()

Mount permissions.

.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;

Returns
Type Description
NfsShare.MountPermissions

The mountPermissions.

getMountPermissionsValue()

public int getMountPermissionsValue()

Mount permissions.

.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;

Returns
Type Description
int

The enum numeric value on the wire for mountPermissions.

getNetwork()

public String getNetwork()

The network the access point sits on.

string network = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

The network the access point sits on.

string network = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for network.

getNfsPath()

public String getNfsPath()

Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"

string nfs_path = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The nfsPath.

getNfsPathBytes()

public ByteString getNfsPathBytes()

Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"

string nfs_path = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for nfsPath.

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

Returns
Type Description
boolean

The noRootSquash.

getShareIp()

public String getShareIp()

Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.

string share_ip = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The shareIp.

getShareIpBytes()

public ByteString getShareIpBytes()

Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.

string share_ip = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for shareIp.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NfsShare.AllowedClient other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NfsShare.AllowedClient.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NfsShare.AllowedClient.Builder
Overrides

setAllowDev(boolean value)

public NfsShare.AllowedClient.Builder setAllowDev(boolean value)

Allow dev flag. Which controls whether to allow creation of devices.

bool allow_dev = 5;

Parameter
Name Description
value boolean

The allowDev to set.

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

setAllowSuid(boolean value)

public NfsShare.AllowedClient.Builder setAllowSuid(boolean value)

Allow the setuid flag.

bool allow_suid = 6;

Parameter
Name Description
value boolean

The allowSuid to set.

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

setAllowedClientsCidr(String value)

public NfsShare.AllowedClient.Builder setAllowedClientsCidr(String value)

The subnet of IP addresses permitted to access the share.

string allowed_clients_cidr = 3;

Parameter
Name Description
value String

The allowedClientsCidr to set.

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

setAllowedClientsCidrBytes(ByteString value)

public NfsShare.AllowedClient.Builder setAllowedClientsCidrBytes(ByteString value)

The subnet of IP addresses permitted to access the share.

string allowed_clients_cidr = 3;

Parameter
Name Description
value ByteString

The bytes for allowedClientsCidr to set.

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMountPermissions(NfsShare.MountPermissions value)

public NfsShare.AllowedClient.Builder setMountPermissions(NfsShare.MountPermissions value)

Mount permissions.

.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;

Parameter
Name Description
value NfsShare.MountPermissions

The mountPermissions to set.

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

setMountPermissionsValue(int value)

public NfsShare.AllowedClient.Builder setMountPermissionsValue(int value)

Mount permissions.

.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;

Parameter
Name Description
value int

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

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

setNetwork(String value)

public NfsShare.AllowedClient.Builder setNetwork(String value)

The network the access point sits on.

string network = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The network to set.

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public NfsShare.AllowedClient.Builder setNetworkBytes(ByteString value)

The network the access point sits on.

string network = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

setNfsPath(String value)

public NfsShare.AllowedClient.Builder setNfsPath(String value)

Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"

string nfs_path = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The nfsPath to set.

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

setNfsPathBytes(ByteString value)

public NfsShare.AllowedClient.Builder setNfsPathBytes(ByteString value)

Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"

string nfs_path = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for nfsPath to set.

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

setNoRootSquash(boolean value)

public NfsShare.AllowedClient.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 = 7;

Parameter
Name Description
value boolean

The noRootSquash to set.

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

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

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

setShareIp(String value)

public NfsShare.AllowedClient.Builder setShareIp(String value)

Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.

string share_ip = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The shareIp to set.

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

setShareIpBytes(ByteString value)

public NfsShare.AllowedClient.Builder setShareIpBytes(ByteString value)

Output only. The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.

string share_ip = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for shareIp to set.

Returns
Type Description
NfsShare.AllowedClient.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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