Class SimpleExportPolicyRule.Builder (0.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SimpleExportPolicyRule build()
Returns
TypeDescription
SimpleExportPolicyRule

buildPartial()

public SimpleExportPolicyRule buildPartial()
Returns
TypeDescription
SimpleExportPolicyRule

clear()

public SimpleExportPolicyRule.Builder clear()
Returns
TypeDescription
SimpleExportPolicyRule.Builder
Overrides

clearAccessType()

public SimpleExportPolicyRule.Builder clearAccessType()

Access type (ReadWrite, ReadOnly, None)

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

Returns
TypeDescription
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
TypeDescription
SimpleExportPolicyRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SimpleExportPolicyRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SimpleExportPolicyRule.Builder
Overrides

clearHasRootAccess()

public SimpleExportPolicyRule.Builder clearHasRootAccess()

Whether Unix root access will be granted.

optional string has_root_access = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SimpleExportPolicyRule.Builder

This builder for chaining.

clearNfsv3()

public SimpleExportPolicyRule.Builder clearNfsv3()

NFS V3 protocol.

optional bool nfsv3 = 4;

Returns
TypeDescription
SimpleExportPolicyRule.Builder

This builder for chaining.

clearNfsv4()

public SimpleExportPolicyRule.Builder clearNfsv4()

NFS V4 protocol.

optional bool nfsv4 = 5;

Returns
TypeDescription
SimpleExportPolicyRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SimpleExportPolicyRule.Builder clone()
Returns
TypeDescription
SimpleExportPolicyRule.Builder
Overrides

getAccessType()

public AccessType getAccessType()

Access type (ReadWrite, ReadOnly, None)

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

Returns
TypeDescription
AccessType

The accessType.

getAccessTypeValue()

public int getAccessTypeValue()

Access type (ReadWrite, ReadOnly, None)

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

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

The allowedClients.

getAllowedClientsBytes()

public ByteString getAllowedClientsBytes()

Comma separated list of allowed clients IP addresses

optional string allowed_clients = 1;

Returns
TypeDescription
ByteString

The bytes for allowedClients.

getDefaultInstanceForType()

public SimpleExportPolicyRule getDefaultInstanceForType()
Returns
TypeDescription
SimpleExportPolicyRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHasRootAccess()

public String getHasRootAccess()

Whether Unix root access will be granted.

optional string has_root_access = 2;

Returns
TypeDescription
String

The hasRootAccess.

getHasRootAccessBytes()

public ByteString getHasRootAccessBytes()

Whether Unix root access will be granted.

optional string has_root_access = 2;

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

The kerberos5ReadWrite.

getNfsv3()

public boolean getNfsv3()

NFS V3 protocol.

optional bool nfsv3 = 4;

Returns
TypeDescription
boolean

The nfsv3.

getNfsv4()

public boolean getNfsv4()

NFS V4 protocol.

optional bool nfsv4 = 5;

Returns
TypeDescription
boolean

The nfsv4.

hasAccessType()

public boolean hasAccessType()

Access type (ReadWrite, ReadOnly, None)

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

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

Whether the kerberos5ReadWrite field is set.

hasNfsv3()

public boolean hasNfsv3()

NFS V3 protocol.

optional bool nfsv3 = 4;

Returns
TypeDescription
boolean

Whether the nfsv3 field is set.

hasNfsv4()

public boolean hasNfsv4()

NFS V4 protocol.

optional bool nfsv4 = 5;

Returns
TypeDescription
boolean

Whether the nfsv4 field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SimpleExportPolicyRule other)

public SimpleExportPolicyRule.Builder mergeFrom(SimpleExportPolicyRule other)
Parameter
NameDescription
otherSimpleExportPolicyRule
Returns
TypeDescription
SimpleExportPolicyRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The accessType to set.

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

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

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

The allowedClients to set.

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

The bytes for allowedClients to set.

Returns
TypeDescription
SimpleExportPolicyRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The hasRootAccess to set.

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

The bytes for hasRootAccess to set.

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

The kerberos5iReadOnly to set.

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

The kerberos5iReadWrite to set.

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

The kerberos5pReadOnly to set.

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

The kerberos5pReadWrite to set.

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

The kerberos5ReadOnly to set.

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

The kerberos5ReadWrite to set.

Returns
TypeDescription
SimpleExportPolicyRule.Builder

This builder for chaining.

setNfsv3(boolean value)

public SimpleExportPolicyRule.Builder setNfsv3(boolean value)

NFS V3 protocol.

optional bool nfsv3 = 4;

Parameter
NameDescription
valueboolean

The nfsv3 to set.

Returns
TypeDescription
SimpleExportPolicyRule.Builder

This builder for chaining.

setNfsv4(boolean value)

public SimpleExportPolicyRule.Builder setNfsv4(boolean value)

NFS V4 protocol.

optional bool nfsv4 = 5;

Parameter
NameDescription
valueboolean

The nfsv4 to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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