Class SimpleExportPolicyRule.Builder (0.26.0)

public static final class SimpleExportPolicyRule.Builder extends GeneratedMessageV3.Builder<SimpleExportPolicyRule.Builder> implements SimpleExportPolicyRuleOrBuilder

An export policy rule describing various export options.

Protobuf type google.cloud.netapp.v1.SimpleExportPolicyRule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SimpleExportPolicyRule build()
Returns
Type Description
SimpleExportPolicyRule

buildPartial()

public SimpleExportPolicyRule buildPartial()
Returns
Type Description
SimpleExportPolicyRule

clear()

public SimpleExportPolicyRule.Builder clear()
Returns
Type Description
SimpleExportPolicyRule.Builder
Overrides

clearAccessType()

public SimpleExportPolicyRule.Builder clearAccessType()

Access type (ReadWrite, ReadOnly, None)

optional .google.cloud.netapp.v1.AccessType access_type = 3;

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

clearAllowedClients()

public SimpleExportPolicyRule.Builder clearAllowedClients()

Comma separated list of allowed clients IP addresses

optional string allowed_clients = 1;

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHasRootAccess()

public SimpleExportPolicyRule.Builder clearHasRootAccess()

Whether Unix root access will be granted.

optional string has_root_access = 2;

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

clearKerberos5IReadOnly()

public SimpleExportPolicyRule.Builder clearKerberos5IReadOnly()

If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'integrity' kerberos security mode.

optional bool kerberos_5i_read_only = 8;

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

clearKerberos5IReadWrite()

public SimpleExportPolicyRule.Builder clearKerberos5IReadWrite()

If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'integrity' kerberos security mode. The 'kerberos5iReadOnly' value be ignored if this is enabled.

optional bool kerberos_5i_read_write = 9;

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

clearKerberos5PReadOnly()

public SimpleExportPolicyRule.Builder clearKerberos5PReadOnly()

If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'privacy' kerberos security mode.

optional bool kerberos_5p_read_only = 10;

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

clearKerberos5PReadWrite()

public SimpleExportPolicyRule.Builder clearKerberos5PReadWrite()

If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'privacy' kerberos security mode. The 'kerberos5pReadOnly' value be ignored if this is enabled.

optional bool kerberos_5p_read_write = 11;

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

clearKerberos5ReadOnly()

public SimpleExportPolicyRule.Builder clearKerberos5ReadOnly()

If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'authentication' kerberos security mode.

optional bool kerberos_5_read_only = 6;

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

clearKerberos5ReadWrite()

public SimpleExportPolicyRule.Builder clearKerberos5ReadWrite()

If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'authentication' kerberos security mode. The 'kerberos5ReadOnly' value be ignored if this is enabled.

optional bool kerberos_5_read_write = 7;

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

clearNfsv3()

public SimpleExportPolicyRule.Builder clearNfsv3()

NFS V3 protocol.

optional bool nfsv3 = 4;

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

clearNfsv4()

public SimpleExportPolicyRule.Builder clearNfsv4()

NFS V4 protocol.

optional bool nfsv4 = 5;

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SimpleExportPolicyRule.Builder clone()
Returns
Type Description
SimpleExportPolicyRule.Builder
Overrides

getAccessType()

public AccessType getAccessType()

Access type (ReadWrite, ReadOnly, None)

optional .google.cloud.netapp.v1.AccessType access_type = 3;

Returns
Type Description
AccessType

The accessType.

getAccessTypeValue()

public int getAccessTypeValue()

Access type (ReadWrite, ReadOnly, None)

optional .google.cloud.netapp.v1.AccessType access_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for accessType.

getAllowedClients()

public String getAllowedClients()

Comma separated list of allowed clients IP addresses

optional string allowed_clients = 1;

Returns
Type Description
String

The allowedClients.

getAllowedClientsBytes()

public ByteString getAllowedClientsBytes()

Comma separated list of allowed clients IP addresses

optional string allowed_clients = 1;

Returns
Type Description
ByteString

The bytes for allowedClients.

getDefaultInstanceForType()

public SimpleExportPolicyRule getDefaultInstanceForType()
Returns
Type Description
SimpleExportPolicyRule

getDescriptorForType()

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

getHasRootAccess()

public String getHasRootAccess()

Whether Unix root access will be granted.

optional string has_root_access = 2;

Returns
Type Description
String

The hasRootAccess.

getHasRootAccessBytes()

public ByteString getHasRootAccessBytes()

Whether Unix root access will be granted.

optional string has_root_access = 2;

Returns
Type Description
ByteString

The bytes for hasRootAccess.

getKerberos5IReadOnly()

public boolean getKerberos5IReadOnly()

If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'integrity' kerberos security mode.

optional bool kerberos_5i_read_only = 8;

Returns
Type Description
boolean

The kerberos5iReadOnly.

getKerberos5IReadWrite()

public boolean getKerberos5IReadWrite()

If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'integrity' kerberos security mode. The 'kerberos5iReadOnly' value be ignored if this is enabled.

optional bool kerberos_5i_read_write = 9;

Returns
Type Description
boolean

The kerberos5iReadWrite.

getKerberos5PReadOnly()

public boolean getKerberos5PReadOnly()

If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'privacy' kerberos security mode.

optional bool kerberos_5p_read_only = 10;

Returns
Type Description
boolean

The kerberos5pReadOnly.

getKerberos5PReadWrite()

public boolean getKerberos5PReadWrite()

If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'privacy' kerberos security mode. The 'kerberos5pReadOnly' value be ignored if this is enabled.

optional bool kerberos_5p_read_write = 11;

Returns
Type Description
boolean

The kerberos5pReadWrite.

getKerberos5ReadOnly()

public boolean getKerberos5ReadOnly()

If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'authentication' kerberos security mode.

optional bool kerberos_5_read_only = 6;

Returns
Type Description
boolean

The kerberos5ReadOnly.

getKerberos5ReadWrite()

public boolean getKerberos5ReadWrite()

If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'authentication' kerberos security mode. The 'kerberos5ReadOnly' value be ignored if this is enabled.

optional bool kerberos_5_read_write = 7;

Returns
Type Description
boolean

The kerberos5ReadWrite.

getNfsv3()

public boolean getNfsv3()

NFS V3 protocol.

optional bool nfsv3 = 4;

Returns
Type Description
boolean

The nfsv3.

getNfsv4()

public boolean getNfsv4()

NFS V4 protocol.

optional bool nfsv4 = 5;

Returns
Type Description
boolean

The nfsv4.

hasAccessType()

public boolean hasAccessType()

Access type (ReadWrite, ReadOnly, None)

optional .google.cloud.netapp.v1.AccessType access_type = 3;

Returns
Type Description
boolean

Whether the accessType field is set.

hasAllowedClients()

public boolean hasAllowedClients()

Comma separated list of allowed clients IP addresses

optional string allowed_clients = 1;

Returns
Type Description
boolean

Whether the allowedClients field is set.

hasHasRootAccess()

public boolean hasHasRootAccess()

Whether Unix root access will be granted.

optional string has_root_access = 2;

Returns
Type Description
boolean

Whether the hasRootAccess field is set.

hasKerberos5IReadOnly()

public boolean hasKerberos5IReadOnly()

If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'integrity' kerberos security mode.

optional bool kerberos_5i_read_only = 8;

Returns
Type Description
boolean

Whether the kerberos5iReadOnly field is set.

hasKerberos5IReadWrite()

public boolean hasKerberos5IReadWrite()

If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'integrity' kerberos security mode. The 'kerberos5iReadOnly' value be ignored if this is enabled.

optional bool kerberos_5i_read_write = 9;

Returns
Type Description
boolean

Whether the kerberos5iReadWrite field is set.

hasKerberos5PReadOnly()

public boolean hasKerberos5PReadOnly()

If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'privacy' kerberos security mode.

optional bool kerberos_5p_read_only = 10;

Returns
Type Description
boolean

Whether the kerberos5pReadOnly field is set.

hasKerberos5PReadWrite()

public boolean hasKerberos5PReadWrite()

If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'privacy' kerberos security mode. The 'kerberos5pReadOnly' value be ignored if this is enabled.

optional bool kerberos_5p_read_write = 11;

Returns
Type Description
boolean

Whether the kerberos5pReadWrite field is set.

hasKerberos5ReadOnly()

public boolean hasKerberos5ReadOnly()

If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'authentication' kerberos security mode.

optional bool kerberos_5_read_only = 6;

Returns
Type Description
boolean

Whether the kerberos5ReadOnly field is set.

hasKerberos5ReadWrite()

public boolean hasKerberos5ReadWrite()

If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'authentication' kerberos security mode. The 'kerberos5ReadOnly' value be ignored if this is enabled.

optional bool kerberos_5_read_write = 7;

Returns
Type Description
boolean

Whether the kerberos5ReadWrite field is set.

hasNfsv3()

public boolean hasNfsv3()

NFS V3 protocol.

optional bool nfsv3 = 4;

Returns
Type Description
boolean

Whether the nfsv3 field is set.

hasNfsv4()

public boolean hasNfsv4()

NFS V4 protocol.

optional bool nfsv4 = 5;

Returns
Type Description
boolean

Whether the nfsv4 field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SimpleExportPolicyRule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccessType(AccessType value)

public SimpleExportPolicyRule.Builder setAccessType(AccessType value)

Access type (ReadWrite, ReadOnly, None)

optional .google.cloud.netapp.v1.AccessType access_type = 3;

Parameter
Name Description
value AccessType

The accessType to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setAccessTypeValue(int value)

public SimpleExportPolicyRule.Builder setAccessTypeValue(int value)

Access type (ReadWrite, ReadOnly, None)

optional .google.cloud.netapp.v1.AccessType access_type = 3;

Parameter
Name Description
value int

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

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setAllowedClients(String value)

public SimpleExportPolicyRule.Builder setAllowedClients(String value)

Comma separated list of allowed clients IP addresses

optional string allowed_clients = 1;

Parameter
Name Description
value String

The allowedClients to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setAllowedClientsBytes(ByteString value)

public SimpleExportPolicyRule.Builder setAllowedClientsBytes(ByteString value)

Comma separated list of allowed clients IP addresses

optional string allowed_clients = 1;

Parameter
Name Description
value ByteString

The bytes for allowedClients to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHasRootAccess(String value)

public SimpleExportPolicyRule.Builder setHasRootAccess(String value)

Whether Unix root access will be granted.

optional string has_root_access = 2;

Parameter
Name Description
value String

The hasRootAccess to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setHasRootAccessBytes(ByteString value)

public SimpleExportPolicyRule.Builder setHasRootAccessBytes(ByteString value)

Whether Unix root access will be granted.

optional string has_root_access = 2;

Parameter
Name Description
value ByteString

The bytes for hasRootAccess to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setKerberos5IReadOnly(boolean value)

public SimpleExportPolicyRule.Builder setKerberos5IReadOnly(boolean value)

If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'integrity' kerberos security mode.

optional bool kerberos_5i_read_only = 8;

Parameter
Name Description
value boolean

The kerberos5iReadOnly to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setKerberos5IReadWrite(boolean value)

public SimpleExportPolicyRule.Builder setKerberos5IReadWrite(boolean value)

If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'integrity' kerberos security mode. The 'kerberos5iReadOnly' value be ignored if this is enabled.

optional bool kerberos_5i_read_write = 9;

Parameter
Name Description
value boolean

The kerberos5iReadWrite to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setKerberos5PReadOnly(boolean value)

public SimpleExportPolicyRule.Builder setKerberos5PReadOnly(boolean value)

If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'privacy' kerberos security mode.

optional bool kerberos_5p_read_only = 10;

Parameter
Name Description
value boolean

The kerberos5pReadOnly to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setKerberos5PReadWrite(boolean value)

public SimpleExportPolicyRule.Builder setKerberos5PReadWrite(boolean value)

If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'privacy' kerberos security mode. The 'kerberos5pReadOnly' value be ignored if this is enabled.

optional bool kerberos_5p_read_write = 11;

Parameter
Name Description
value boolean

The kerberos5pReadWrite to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setKerberos5ReadOnly(boolean value)

public SimpleExportPolicyRule.Builder setKerberos5ReadOnly(boolean value)

If enabled (true) the rule defines a read only access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'authentication' kerberos security mode.

optional bool kerberos_5_read_only = 6;

Parameter
Name Description
value boolean

The kerberos5ReadOnly to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setKerberos5ReadWrite(boolean value)

public SimpleExportPolicyRule.Builder setKerberos5ReadWrite(boolean value)

If enabled (true) the rule defines read and write access for clients matching the 'allowedClients' specification. It enables nfs clients to mount using 'authentication' kerberos security mode. The 'kerberos5ReadOnly' value be ignored if this is enabled.

optional bool kerberos_5_read_write = 7;

Parameter
Name Description
value boolean

The kerberos5ReadWrite to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setNfsv3(boolean value)

public SimpleExportPolicyRule.Builder setNfsv3(boolean value)

NFS V3 protocol.

optional bool nfsv3 = 4;

Parameter
Name Description
value boolean

The nfsv3 to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

setNfsv4(boolean value)

public SimpleExportPolicyRule.Builder setNfsv4(boolean value)

NFS V4 protocol.

optional bool nfsv4 = 5;

Parameter
Name Description
value boolean

The nfsv4 to set.

Returns
Type Description
SimpleExportPolicyRule.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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