Class SimpleExportPolicyRule (0.25.0)

public final class SimpleExportPolicyRule extends GeneratedMessageV3 implements SimpleExportPolicyRuleOrBuilder

An export policy rule describing various export options.

Protobuf type google.cloud.netapp.v1.SimpleExportPolicyRule

Static Fields

ACCESS_TYPE_FIELD_NUMBER

public static final int ACCESS_TYPE_FIELD_NUMBER
Field Value
Type Description
int

ALLOWED_CLIENTS_FIELD_NUMBER

public static final int ALLOWED_CLIENTS_FIELD_NUMBER
Field Value
Type Description
int

HAS_ROOT_ACCESS_FIELD_NUMBER

public static final int HAS_ROOT_ACCESS_FIELD_NUMBER
Field Value
Type Description
int

KERBEROS_5I_READ_ONLY_FIELD_NUMBER

public static final int KERBEROS_5I_READ_ONLY_FIELD_NUMBER
Field Value
Type Description
int

KERBEROS_5I_READ_WRITE_FIELD_NUMBER

public static final int KERBEROS_5I_READ_WRITE_FIELD_NUMBER
Field Value
Type Description
int

KERBEROS_5P_READ_ONLY_FIELD_NUMBER

public static final int KERBEROS_5P_READ_ONLY_FIELD_NUMBER
Field Value
Type Description
int

KERBEROS_5P_READ_WRITE_FIELD_NUMBER

public static final int KERBEROS_5P_READ_WRITE_FIELD_NUMBER
Field Value
Type Description
int

KERBEROS_5_READ_ONLY_FIELD_NUMBER

public static final int KERBEROS_5_READ_ONLY_FIELD_NUMBER
Field Value
Type Description
int

KERBEROS_5_READ_WRITE_FIELD_NUMBER

public static final int KERBEROS_5_READ_WRITE_FIELD_NUMBER
Field Value
Type Description
int

NFSV3_FIELD_NUMBER

public static final int NFSV3_FIELD_NUMBER
Field Value
Type Description
int

NFSV4_FIELD_NUMBER

public static final int NFSV4_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SimpleExportPolicyRule getDefaultInstance()
Returns
Type Description
SimpleExportPolicyRule

getDescriptor()

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

newBuilder()

public static SimpleExportPolicyRule.Builder newBuilder()
Returns
Type Description
SimpleExportPolicyRule.Builder

newBuilder(SimpleExportPolicyRule prototype)

public static SimpleExportPolicyRule.Builder newBuilder(SimpleExportPolicyRule prototype)
Parameter
Name Description
prototype SimpleExportPolicyRule
Returns
Type Description
SimpleExportPolicyRule.Builder

parseDelimitedFrom(InputStream input)

public static SimpleExportPolicyRule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SimpleExportPolicyRule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SimpleExportPolicyRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SimpleExportPolicyRule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SimpleExportPolicyRule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SimpleExportPolicyRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SimpleExportPolicyRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SimpleExportPolicyRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SimpleExportPolicyRule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SimpleExportPolicyRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SimpleExportPolicyRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SimpleExportPolicyRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SimpleExportPolicyRule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SimpleExportPolicyRule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SimpleExportPolicyRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SimpleExportPolicyRule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SimpleExportPolicyRule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SimpleExportPolicyRule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SimpleExportPolicyRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SimpleExportPolicyRule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SimpleExportPolicyRule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SimpleExportPolicyRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SimpleExportPolicyRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SimpleExportPolicyRule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SimpleExportPolicyRule> parser()
Returns
Type Description
Parser<SimpleExportPolicyRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<SimpleExportPolicyRule> getParserForType()
Returns
Type Description
Parser<SimpleExportPolicyRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SimpleExportPolicyRule.Builder newBuilderForType()
Returns
Type Description
SimpleExportPolicyRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SimpleExportPolicyRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SimpleExportPolicyRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SimpleExportPolicyRule.Builder toBuilder()
Returns
Type Description
SimpleExportPolicyRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException