Class SimpleExportPolicyRule

  • All Implemented Interfaces:
    SimpleExportPolicyRuleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class SimpleExportPolicyRule
    extends com.google.protobuf.GeneratedMessageV3
    implements SimpleExportPolicyRuleOrBuilder
     An export policy rule describing various export options.
     
    Protobuf type google.cloud.netapp.v1.SimpleExportPolicyRule
    See Also:
    Serialized Form
    • Field Detail

      • ALLOWED_CLIENTS_FIELD_NUMBER

        public static final int ALLOWED_CLIENTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HAS_ROOT_ACCESS_FIELD_NUMBER

        public static final int HAS_ROOT_ACCESS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ACCESS_TYPE_FIELD_NUMBER

        public static final int ACCESS_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KERBEROS_5_READ_ONLY_FIELD_NUMBER

        public static final int KERBEROS_5_READ_ONLY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KERBEROS_5_READ_WRITE_FIELD_NUMBER

        public static final int KERBEROS_5_READ_WRITE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KERBEROS_5I_READ_ONLY_FIELD_NUMBER

        public static final int KERBEROS_5I_READ_ONLY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KERBEROS_5I_READ_WRITE_FIELD_NUMBER

        public static final int KERBEROS_5I_READ_WRITE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KERBEROS_5P_READ_ONLY_FIELD_NUMBER

        public static final int KERBEROS_5P_READ_ONLY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KERBEROS_5P_READ_WRITE_FIELD_NUMBER

        public static final int KERBEROS_5P_READ_WRITE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasAllowedClients

        public boolean hasAllowedClients()
         Comma separated list of allowed clients IP addresses
         
        optional string allowed_clients = 1;
        Specified by:
        hasAllowedClients in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        Whether the allowedClients field is set.
      • getAllowedClientsBytes

        public com.google.protobuf.ByteString getAllowedClientsBytes()
         Comma separated list of allowed clients IP addresses
         
        optional string allowed_clients = 1;
        Specified by:
        getAllowedClientsBytes in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        The bytes for allowedClients.
      • hasHasRootAccess

        public boolean hasHasRootAccess()
         Whether Unix root access will be granted.
         
        optional string has_root_access = 2;
        Specified by:
        hasHasRootAccess in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        Whether the hasRootAccess field is set.
      • getHasRootAccessBytes

        public com.google.protobuf.ByteString getHasRootAccessBytes()
         Whether Unix root access will be granted.
         
        optional string has_root_access = 2;
        Specified by:
        getHasRootAccessBytes in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        The bytes for hasRootAccess.
      • hasAccessType

        public boolean hasAccessType()
         Access type (ReadWrite, ReadOnly, None)
         
        optional .google.cloud.netapp.v1.AccessType access_type = 3;
        Specified by:
        hasAccessType in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        Whether the accessType field is set.
      • getAccessTypeValue

        public int getAccessTypeValue()
         Access type (ReadWrite, ReadOnly, None)
         
        optional .google.cloud.netapp.v1.AccessType access_type = 3;
        Specified by:
        getAccessTypeValue in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        The enum numeric value on the wire for accessType.
      • 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;
        Specified by:
        hasKerberos5ReadOnly in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        Whether the kerberos5ReadOnly field is set.
      • 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;
        Specified by:
        getKerberos5ReadOnly in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        The kerberos5ReadOnly.
      • 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;
        Specified by:
        hasKerberos5ReadWrite in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        Whether the kerberos5ReadWrite field is set.
      • 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;
        Specified by:
        getKerberos5ReadWrite in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        The kerberos5ReadWrite.
      • 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;
        Specified by:
        hasKerberos5IReadOnly in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        Whether the kerberos5iReadOnly field is set.
      • 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;
        Specified by:
        getKerberos5IReadOnly in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        The kerberos5iReadOnly.
      • 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;
        Specified by:
        hasKerberos5IReadWrite in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        Whether the kerberos5iReadWrite field is set.
      • 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;
        Specified by:
        getKerberos5IReadWrite in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        The kerberos5iReadWrite.
      • 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;
        Specified by:
        hasKerberos5PReadOnly in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        Whether the kerberos5pReadOnly field is set.
      • 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;
        Specified by:
        getKerberos5PReadOnly in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        The kerberos5pReadOnly.
      • 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;
        Specified by:
        hasKerberos5PReadWrite in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        Whether the kerberos5pReadWrite field is set.
      • 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;
        Specified by:
        getKerberos5PReadWrite in interface SimpleExportPolicyRuleOrBuilder
        Returns:
        The kerberos5pReadWrite.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static SimpleExportPolicyRule parseFrom​(ByteBuffer data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SimpleExportPolicyRule parseFrom​(ByteBuffer data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SimpleExportPolicyRule parseFrom​(com.google.protobuf.ByteString data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SimpleExportPolicyRule parseFrom​(com.google.protobuf.ByteString data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SimpleExportPolicyRule parseFrom​(byte[] data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SimpleExportPolicyRule parseFrom​(byte[] data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public SimpleExportPolicyRule.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public SimpleExportPolicyRule.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected SimpleExportPolicyRule.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<SimpleExportPolicyRule> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public SimpleExportPolicyRule getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder