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

ALLOWED_CLIENTS_FIELD_NUMBER

public static final int ALLOWED_CLIENTS_FIELD_NUMBER
Field Value
TypeDescription
int

HAS_ROOT_ACCESS_FIELD_NUMBER

public static final int HAS_ROOT_ACCESS_FIELD_NUMBER
Field Value
TypeDescription
int

KERBEROS_5I_READ_ONLY_FIELD_NUMBER

public static final int KERBEROS_5I_READ_ONLY_FIELD_NUMBER
Field Value
TypeDescription
int

KERBEROS_5I_READ_WRITE_FIELD_NUMBER

public static final int KERBEROS_5I_READ_WRITE_FIELD_NUMBER
Field Value
TypeDescription
int

KERBEROS_5P_READ_ONLY_FIELD_NUMBER

public static final int KERBEROS_5P_READ_ONLY_FIELD_NUMBER
Field Value
TypeDescription
int

KERBEROS_5P_READ_WRITE_FIELD_NUMBER

public static final int KERBEROS_5P_READ_WRITE_FIELD_NUMBER
Field Value
TypeDescription
int

KERBEROS_5_READ_ONLY_FIELD_NUMBER

public static final int KERBEROS_5_READ_ONLY_FIELD_NUMBER
Field Value
TypeDescription
int

KERBEROS_5_READ_WRITE_FIELD_NUMBER

public static final int KERBEROS_5_READ_WRITE_FIELD_NUMBER
Field Value
TypeDescription
int

NFSV3_FIELD_NUMBER

public static final int NFSV3_FIELD_NUMBER
Field Value
TypeDescription
int

NFSV4_FIELD_NUMBER

public static final int NFSV4_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SimpleExportPolicyRule getDefaultInstance()
Returns
TypeDescription
SimpleExportPolicyRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SimpleExportPolicyRule.Builder newBuilder()
Returns
TypeDescription
SimpleExportPolicyRule.Builder

newBuilder(SimpleExportPolicyRule prototype)

public static SimpleExportPolicyRule.Builder newBuilder(SimpleExportPolicyRule prototype)
Parameter
NameDescription
prototypeSimpleExportPolicyRule
Returns
TypeDescription
SimpleExportPolicyRule.Builder

parseDelimitedFrom(InputStream input)

public static SimpleExportPolicyRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SimpleExportPolicyRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SimpleExportPolicyRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SimpleExportPolicyRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SimpleExportPolicyRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SimpleExportPolicyRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SimpleExportPolicyRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SimpleExportPolicyRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SimpleExportPolicyRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SimpleExportPolicyRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SimpleExportPolicyRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SimpleExportPolicyRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SimpleExportPolicyRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SimpleExportPolicyRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SimpleExportPolicyRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SimpleExportPolicyRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SimpleExportPolicyRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SimpleExportPolicyRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SimpleExportPolicyRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SimpleExportPolicyRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SimpleExportPolicyRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SimpleExportPolicyRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SimpleExportPolicyRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SimpleExportPolicyRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SimpleExportPolicyRule> parser()
Returns
TypeDescription
Parser<SimpleExportPolicyRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.

getParserForType()

public Parser<SimpleExportPolicyRule> getParserForType()
Returns
TypeDescription
Parser<SimpleExportPolicyRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SimpleExportPolicyRule.Builder newBuilderForType()
Returns
TypeDescription
SimpleExportPolicyRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SimpleExportPolicyRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SimpleExportPolicyRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SimpleExportPolicyRule.Builder toBuilder()
Returns
TypeDescription
SimpleExportPolicyRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException