All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.netapp.v1.SimpleExportPolicyRule Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/netapp/v1/volume.proto

// Protobuf Java Version: 3.25.4
package com.google.cloud.netapp.v1;

/**
 *
 *
 * 
 * An export policy rule describing various export options.
 * 
* * Protobuf type {@code google.cloud.netapp.v1.SimpleExportPolicyRule} */ public final class SimpleExportPolicyRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.SimpleExportPolicyRule) SimpleExportPolicyRuleOrBuilder { private static final long serialVersionUID = 0L; // Use SimpleExportPolicyRule.newBuilder() to construct. private SimpleExportPolicyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SimpleExportPolicyRule() { allowedClients_ = ""; hasRootAccess_ = ""; accessType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SimpleExportPolicyRule(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.netapp.v1.VolumeProto .internal_static_google_cloud_netapp_v1_SimpleExportPolicyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.netapp.v1.VolumeProto .internal_static_google_cloud_netapp_v1_SimpleExportPolicyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.netapp.v1.SimpleExportPolicyRule.class, com.google.cloud.netapp.v1.SimpleExportPolicyRule.Builder.class); } private int bitField0_; public static final int ALLOWED_CLIENTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object allowedClients_ = ""; /** * * *
   * Comma separated list of allowed clients IP addresses
   * 
* * optional string allowed_clients = 1; * * @return Whether the allowedClients field is set. */ @java.lang.Override public boolean hasAllowedClients() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Comma separated list of allowed clients IP addresses
   * 
* * optional string allowed_clients = 1; * * @return The allowedClients. */ @java.lang.Override public java.lang.String getAllowedClients() { java.lang.Object ref = allowedClients_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedClients_ = s; return s; } } /** * * *
   * Comma separated list of allowed clients IP addresses
   * 
* * optional string allowed_clients = 1; * * @return The bytes for allowedClients. */ @java.lang.Override public com.google.protobuf.ByteString getAllowedClientsBytes() { java.lang.Object ref = allowedClients_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); allowedClients_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HAS_ROOT_ACCESS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object hasRootAccess_ = ""; /** * * *
   * Whether Unix root access will be granted.
   * 
* * optional string has_root_access = 2; * * @return Whether the hasRootAccess field is set. */ @java.lang.Override public boolean hasHasRootAccess() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Whether Unix root access will be granted.
   * 
* * optional string has_root_access = 2; * * @return The hasRootAccess. */ @java.lang.Override public java.lang.String getHasRootAccess() { java.lang.Object ref = hasRootAccess_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hasRootAccess_ = s; return s; } } /** * * *
   * Whether Unix root access will be granted.
   * 
* * optional string has_root_access = 2; * * @return The bytes for hasRootAccess. */ @java.lang.Override public com.google.protobuf.ByteString getHasRootAccessBytes() { java.lang.Object ref = hasRootAccess_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hasRootAccess_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACCESS_TYPE_FIELD_NUMBER = 3; private int accessType_ = 0; /** * * *
   * Access type (ReadWrite, ReadOnly, None)
   * 
* * optional .google.cloud.netapp.v1.AccessType access_type = 3; * * @return Whether the accessType field is set. */ @java.lang.Override public boolean hasAccessType() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Access type (ReadWrite, ReadOnly, None)
   * 
* * optional .google.cloud.netapp.v1.AccessType access_type = 3; * * @return The enum numeric value on the wire for accessType. */ @java.lang.Override public int getAccessTypeValue() { return accessType_; } /** * * *
   * Access type (ReadWrite, ReadOnly, None)
   * 
* * optional .google.cloud.netapp.v1.AccessType access_type = 3; * * @return The accessType. */ @java.lang.Override public com.google.cloud.netapp.v1.AccessType getAccessType() { com.google.cloud.netapp.v1.AccessType result = com.google.cloud.netapp.v1.AccessType.forNumber(accessType_); return result == null ? com.google.cloud.netapp.v1.AccessType.UNRECOGNIZED : result; } public static final int NFSV3_FIELD_NUMBER = 4; private boolean nfsv3_ = false; /** * * *
   * NFS V3 protocol.
   * 
* * optional bool nfsv3 = 4; * * @return Whether the nfsv3 field is set. */ @java.lang.Override public boolean hasNfsv3() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * NFS V3 protocol.
   * 
* * optional bool nfsv3 = 4; * * @return The nfsv3. */ @java.lang.Override public boolean getNfsv3() { return nfsv3_; } public static final int NFSV4_FIELD_NUMBER = 5; private boolean nfsv4_ = false; /** * * *
   * NFS V4 protocol.
   * 
* * optional bool nfsv4 = 5; * * @return Whether the nfsv4 field is set. */ @java.lang.Override public boolean hasNfsv4() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * NFS V4 protocol.
   * 
* * optional bool nfsv4 = 5; * * @return The nfsv4. */ @java.lang.Override public boolean getNfsv4() { return nfsv4_; } public static final int KERBEROS_5_READ_ONLY_FIELD_NUMBER = 6; private boolean kerberos5ReadOnly_ = false; /** * * *
   * 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; * * @return Whether the kerberos5ReadOnly field is set. */ @java.lang.Override public boolean hasKerberos5ReadOnly() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * 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; * * @return The kerberos5ReadOnly. */ @java.lang.Override public boolean getKerberos5ReadOnly() { return kerberos5ReadOnly_; } public static final int KERBEROS_5_READ_WRITE_FIELD_NUMBER = 7; private boolean kerberos5ReadWrite_ = false; /** * * *
   * 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; * * @return Whether the kerberos5ReadWrite field is set. */ @java.lang.Override public boolean hasKerberos5ReadWrite() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
   * 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; * * @return The kerberos5ReadWrite. */ @java.lang.Override public boolean getKerberos5ReadWrite() { return kerberos5ReadWrite_; } public static final int KERBEROS_5I_READ_ONLY_FIELD_NUMBER = 8; private boolean kerberos5IReadOnly_ = false; /** * * *
   * 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; * * @return Whether the kerberos5iReadOnly field is set. */ @java.lang.Override public boolean hasKerberos5IReadOnly() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
   * 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; * * @return The kerberos5iReadOnly. */ @java.lang.Override public boolean getKerberos5IReadOnly() { return kerberos5IReadOnly_; } public static final int KERBEROS_5I_READ_WRITE_FIELD_NUMBER = 9; private boolean kerberos5IReadWrite_ = false; /** * * *
   * 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; * * @return Whether the kerberos5iReadWrite field is set. */ @java.lang.Override public boolean hasKerberos5IReadWrite() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
   * 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; * * @return The kerberos5iReadWrite. */ @java.lang.Override public boolean getKerberos5IReadWrite() { return kerberos5IReadWrite_; } public static final int KERBEROS_5P_READ_ONLY_FIELD_NUMBER = 10; private boolean kerberos5PReadOnly_ = false; /** * * *
   * 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; * * @return Whether the kerberos5pReadOnly field is set. */ @java.lang.Override public boolean hasKerberos5PReadOnly() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
   * 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; * * @return The kerberos5pReadOnly. */ @java.lang.Override public boolean getKerberos5PReadOnly() { return kerberos5PReadOnly_; } public static final int KERBEROS_5P_READ_WRITE_FIELD_NUMBER = 11; private boolean kerberos5PReadWrite_ = false; /** * * *
   * 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; * * @return Whether the kerberos5pReadWrite field is set. */ @java.lang.Override public boolean hasKerberos5PReadWrite() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
   * 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; * * @return The kerberos5pReadWrite. */ @java.lang.Override public boolean getKerberos5PReadWrite() { return kerberos5PReadWrite_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedClients_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hasRootAccess_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(3, accessType_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, nfsv3_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, nfsv4_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(6, kerberos5ReadOnly_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(7, kerberos5ReadWrite_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(8, kerberos5IReadOnly_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeBool(9, kerberos5IReadWrite_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeBool(10, kerberos5PReadOnly_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeBool(11, kerberos5PReadWrite_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, allowedClients_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hasRootAccess_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, accessType_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, nfsv3_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, nfsv4_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, kerberos5ReadOnly_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, kerberos5ReadWrite_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, kerberos5IReadOnly_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, kerberos5IReadWrite_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, kerberos5PReadOnly_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, kerberos5PReadWrite_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.netapp.v1.SimpleExportPolicyRule)) { return super.equals(obj); } com.google.cloud.netapp.v1.SimpleExportPolicyRule other = (com.google.cloud.netapp.v1.SimpleExportPolicyRule) obj; if (hasAllowedClients() != other.hasAllowedClients()) return false; if (hasAllowedClients()) { if (!getAllowedClients().equals(other.getAllowedClients())) return false; } if (hasHasRootAccess() != other.hasHasRootAccess()) return false; if (hasHasRootAccess()) { if (!getHasRootAccess().equals(other.getHasRootAccess())) return false; } if (hasAccessType() != other.hasAccessType()) return false; if (hasAccessType()) { if (accessType_ != other.accessType_) return false; } if (hasNfsv3() != other.hasNfsv3()) return false; if (hasNfsv3()) { if (getNfsv3() != other.getNfsv3()) return false; } if (hasNfsv4() != other.hasNfsv4()) return false; if (hasNfsv4()) { if (getNfsv4() != other.getNfsv4()) return false; } if (hasKerberos5ReadOnly() != other.hasKerberos5ReadOnly()) return false; if (hasKerberos5ReadOnly()) { if (getKerberos5ReadOnly() != other.getKerberos5ReadOnly()) return false; } if (hasKerberos5ReadWrite() != other.hasKerberos5ReadWrite()) return false; if (hasKerberos5ReadWrite()) { if (getKerberos5ReadWrite() != other.getKerberos5ReadWrite()) return false; } if (hasKerberos5IReadOnly() != other.hasKerberos5IReadOnly()) return false; if (hasKerberos5IReadOnly()) { if (getKerberos5IReadOnly() != other.getKerberos5IReadOnly()) return false; } if (hasKerberos5IReadWrite() != other.hasKerberos5IReadWrite()) return false; if (hasKerberos5IReadWrite()) { if (getKerberos5IReadWrite() != other.getKerberos5IReadWrite()) return false; } if (hasKerberos5PReadOnly() != other.hasKerberos5PReadOnly()) return false; if (hasKerberos5PReadOnly()) { if (getKerberos5PReadOnly() != other.getKerberos5PReadOnly()) return false; } if (hasKerberos5PReadWrite() != other.hasKerberos5PReadWrite()) return false; if (hasKerberos5PReadWrite()) { if (getKerberos5PReadWrite() != other.getKerberos5PReadWrite()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAllowedClients()) { hash = (37 * hash) + ALLOWED_CLIENTS_FIELD_NUMBER; hash = (53 * hash) + getAllowedClients().hashCode(); } if (hasHasRootAccess()) { hash = (37 * hash) + HAS_ROOT_ACCESS_FIELD_NUMBER; hash = (53 * hash) + getHasRootAccess().hashCode(); } if (hasAccessType()) { hash = (37 * hash) + ACCESS_TYPE_FIELD_NUMBER; hash = (53 * hash) + accessType_; } if (hasNfsv3()) { hash = (37 * hash) + NFSV3_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNfsv3()); } if (hasNfsv4()) { hash = (37 * hash) + NFSV4_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNfsv4()); } if (hasKerberos5ReadOnly()) { hash = (37 * hash) + KERBEROS_5_READ_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKerberos5ReadOnly()); } if (hasKerberos5ReadWrite()) { hash = (37 * hash) + KERBEROS_5_READ_WRITE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKerberos5ReadWrite()); } if (hasKerberos5IReadOnly()) { hash = (37 * hash) + KERBEROS_5I_READ_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKerberos5IReadOnly()); } if (hasKerberos5IReadWrite()) { hash = (37 * hash) + KERBEROS_5I_READ_WRITE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKerberos5IReadWrite()); } if (hasKerberos5PReadOnly()) { hash = (37 * hash) + KERBEROS_5P_READ_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKerberos5PReadOnly()); } if (hasKerberos5PReadWrite()) { hash = (37 * hash) + KERBEROS_5P_READ_WRITE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKerberos5PReadWrite()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.netapp.v1.SimpleExportPolicyRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * An export policy rule describing various export options.
   * 
* * Protobuf type {@code google.cloud.netapp.v1.SimpleExportPolicyRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.SimpleExportPolicyRule) com.google.cloud.netapp.v1.SimpleExportPolicyRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.netapp.v1.VolumeProto .internal_static_google_cloud_netapp_v1_SimpleExportPolicyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.netapp.v1.VolumeProto .internal_static_google_cloud_netapp_v1_SimpleExportPolicyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.netapp.v1.SimpleExportPolicyRule.class, com.google.cloud.netapp.v1.SimpleExportPolicyRule.Builder.class); } // Construct using com.google.cloud.netapp.v1.SimpleExportPolicyRule.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; allowedClients_ = ""; hasRootAccess_ = ""; accessType_ = 0; nfsv3_ = false; nfsv4_ = false; kerberos5ReadOnly_ = false; kerberos5ReadWrite_ = false; kerberos5IReadOnly_ = false; kerberos5IReadWrite_ = false; kerberos5PReadOnly_ = false; kerberos5PReadWrite_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.netapp.v1.VolumeProto .internal_static_google_cloud_netapp_v1_SimpleExportPolicyRule_descriptor; } @java.lang.Override public com.google.cloud.netapp.v1.SimpleExportPolicyRule getDefaultInstanceForType() { return com.google.cloud.netapp.v1.SimpleExportPolicyRule.getDefaultInstance(); } @java.lang.Override public com.google.cloud.netapp.v1.SimpleExportPolicyRule build() { com.google.cloud.netapp.v1.SimpleExportPolicyRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.netapp.v1.SimpleExportPolicyRule buildPartial() { com.google.cloud.netapp.v1.SimpleExportPolicyRule result = new com.google.cloud.netapp.v1.SimpleExportPolicyRule(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.netapp.v1.SimpleExportPolicyRule result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.allowedClients_ = allowedClients_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.hasRootAccess_ = hasRootAccess_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.accessType_ = accessType_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.nfsv3_ = nfsv3_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.nfsv4_ = nfsv4_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.kerberos5ReadOnly_ = kerberos5ReadOnly_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.kerberos5ReadWrite_ = kerberos5ReadWrite_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.kerberos5IReadOnly_ = kerberos5IReadOnly_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.kerberos5IReadWrite_ = kerberos5IReadWrite_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { result.kerberos5PReadOnly_ = kerberos5PReadOnly_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { result.kerberos5PReadWrite_ = kerberos5PReadWrite_; to_bitField0_ |= 0x00000400; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.netapp.v1.SimpleExportPolicyRule) { return mergeFrom((com.google.cloud.netapp.v1.SimpleExportPolicyRule) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.netapp.v1.SimpleExportPolicyRule other) { if (other == com.google.cloud.netapp.v1.SimpleExportPolicyRule.getDefaultInstance()) return this; if (other.hasAllowedClients()) { allowedClients_ = other.allowedClients_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasHasRootAccess()) { hasRootAccess_ = other.hasRootAccess_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasAccessType()) { setAccessType(other.getAccessType()); } if (other.hasNfsv3()) { setNfsv3(other.getNfsv3()); } if (other.hasNfsv4()) { setNfsv4(other.getNfsv4()); } if (other.hasKerberos5ReadOnly()) { setKerberos5ReadOnly(other.getKerberos5ReadOnly()); } if (other.hasKerberos5ReadWrite()) { setKerberos5ReadWrite(other.getKerberos5ReadWrite()); } if (other.hasKerberos5IReadOnly()) { setKerberos5IReadOnly(other.getKerberos5IReadOnly()); } if (other.hasKerberos5IReadWrite()) { setKerberos5IReadWrite(other.getKerberos5IReadWrite()); } if (other.hasKerberos5PReadOnly()) { setKerberos5PReadOnly(other.getKerberos5PReadOnly()); } if (other.hasKerberos5PReadWrite()) { setKerberos5PReadWrite(other.getKerberos5PReadWrite()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { allowedClients_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { hasRootAccess_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { accessType_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { nfsv3_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { nfsv4_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { kerberos5ReadOnly_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { kerberos5ReadWrite_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { kerberos5IReadOnly_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { kerberos5IReadWrite_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { kerberos5PReadOnly_ = input.readBool(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { kerberos5PReadWrite_ = input.readBool(); bitField0_ |= 0x00000400; break; } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object allowedClients_ = ""; /** * * *
     * Comma separated list of allowed clients IP addresses
     * 
* * optional string allowed_clients = 1; * * @return Whether the allowedClients field is set. */ public boolean hasAllowedClients() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Comma separated list of allowed clients IP addresses
     * 
* * optional string allowed_clients = 1; * * @return The allowedClients. */ public java.lang.String getAllowedClients() { java.lang.Object ref = allowedClients_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedClients_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Comma separated list of allowed clients IP addresses
     * 
* * optional string allowed_clients = 1; * * @return The bytes for allowedClients. */ public com.google.protobuf.ByteString getAllowedClientsBytes() { java.lang.Object ref = allowedClients_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); allowedClients_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Comma separated list of allowed clients IP addresses
     * 
* * optional string allowed_clients = 1; * * @param value The allowedClients to set. * @return This builder for chaining. */ public Builder setAllowedClients(java.lang.String value) { if (value == null) { throw new NullPointerException(); } allowedClients_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Comma separated list of allowed clients IP addresses
     * 
* * optional string allowed_clients = 1; * * @return This builder for chaining. */ public Builder clearAllowedClients() { allowedClients_ = getDefaultInstance().getAllowedClients(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Comma separated list of allowed clients IP addresses
     * 
* * optional string allowed_clients = 1; * * @param value The bytes for allowedClients to set. * @return This builder for chaining. */ public Builder setAllowedClientsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); allowedClients_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object hasRootAccess_ = ""; /** * * *
     * Whether Unix root access will be granted.
     * 
* * optional string has_root_access = 2; * * @return Whether the hasRootAccess field is set. */ public boolean hasHasRootAccess() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Whether Unix root access will be granted.
     * 
* * optional string has_root_access = 2; * * @return The hasRootAccess. */ public java.lang.String getHasRootAccess() { java.lang.Object ref = hasRootAccess_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hasRootAccess_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Whether Unix root access will be granted.
     * 
* * optional string has_root_access = 2; * * @return The bytes for hasRootAccess. */ public com.google.protobuf.ByteString getHasRootAccessBytes() { java.lang.Object ref = hasRootAccess_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hasRootAccess_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Whether Unix root access will be granted.
     * 
* * optional string has_root_access = 2; * * @param value The hasRootAccess to set. * @return This builder for chaining. */ public Builder setHasRootAccess(java.lang.String value) { if (value == null) { throw new NullPointerException(); } hasRootAccess_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Whether Unix root access will be granted.
     * 
* * optional string has_root_access = 2; * * @return This builder for chaining. */ public Builder clearHasRootAccess() { hasRootAccess_ = getDefaultInstance().getHasRootAccess(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Whether Unix root access will be granted.
     * 
* * optional string has_root_access = 2; * * @param value The bytes for hasRootAccess to set. * @return This builder for chaining. */ public Builder setHasRootAccessBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hasRootAccess_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int accessType_ = 0; /** * * *
     * Access type (ReadWrite, ReadOnly, None)
     * 
* * optional .google.cloud.netapp.v1.AccessType access_type = 3; * * @return Whether the accessType field is set. */ @java.lang.Override public boolean hasAccessType() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Access type (ReadWrite, ReadOnly, None)
     * 
* * optional .google.cloud.netapp.v1.AccessType access_type = 3; * * @return The enum numeric value on the wire for accessType. */ @java.lang.Override public int getAccessTypeValue() { return accessType_; } /** * * *
     * Access type (ReadWrite, ReadOnly, None)
     * 
* * optional .google.cloud.netapp.v1.AccessType access_type = 3; * * @param value The enum numeric value on the wire for accessType to set. * @return This builder for chaining. */ public Builder setAccessTypeValue(int value) { accessType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Access type (ReadWrite, ReadOnly, None)
     * 
* * optional .google.cloud.netapp.v1.AccessType access_type = 3; * * @return The accessType. */ @java.lang.Override public com.google.cloud.netapp.v1.AccessType getAccessType() { com.google.cloud.netapp.v1.AccessType result = com.google.cloud.netapp.v1.AccessType.forNumber(accessType_); return result == null ? com.google.cloud.netapp.v1.AccessType.UNRECOGNIZED : result; } /** * * *
     * Access type (ReadWrite, ReadOnly, None)
     * 
* * optional .google.cloud.netapp.v1.AccessType access_type = 3; * * @param value The accessType to set. * @return This builder for chaining. */ public Builder setAccessType(com.google.cloud.netapp.v1.AccessType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; accessType_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Access type (ReadWrite, ReadOnly, None)
     * 
* * optional .google.cloud.netapp.v1.AccessType access_type = 3; * * @return This builder for chaining. */ public Builder clearAccessType() { bitField0_ = (bitField0_ & ~0x00000004); accessType_ = 0; onChanged(); return this; } private boolean nfsv3_; /** * * *
     * NFS V3 protocol.
     * 
* * optional bool nfsv3 = 4; * * @return Whether the nfsv3 field is set. */ @java.lang.Override public boolean hasNfsv3() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * NFS V3 protocol.
     * 
* * optional bool nfsv3 = 4; * * @return The nfsv3. */ @java.lang.Override public boolean getNfsv3() { return nfsv3_; } /** * * *
     * NFS V3 protocol.
     * 
* * optional bool nfsv3 = 4; * * @param value The nfsv3 to set. * @return This builder for chaining. */ public Builder setNfsv3(boolean value) { nfsv3_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * NFS V3 protocol.
     * 
* * optional bool nfsv3 = 4; * * @return This builder for chaining. */ public Builder clearNfsv3() { bitField0_ = (bitField0_ & ~0x00000008); nfsv3_ = false; onChanged(); return this; } private boolean nfsv4_; /** * * *
     * NFS V4 protocol.
     * 
* * optional bool nfsv4 = 5; * * @return Whether the nfsv4 field is set. */ @java.lang.Override public boolean hasNfsv4() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * NFS V4 protocol.
     * 
* * optional bool nfsv4 = 5; * * @return The nfsv4. */ @java.lang.Override public boolean getNfsv4() { return nfsv4_; } /** * * *
     * NFS V4 protocol.
     * 
* * optional bool nfsv4 = 5; * * @param value The nfsv4 to set. * @return This builder for chaining. */ public Builder setNfsv4(boolean value) { nfsv4_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * NFS V4 protocol.
     * 
* * optional bool nfsv4 = 5; * * @return This builder for chaining. */ public Builder clearNfsv4() { bitField0_ = (bitField0_ & ~0x00000010); nfsv4_ = false; onChanged(); return this; } private boolean kerberos5ReadOnly_; /** * * *
     * 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; * * @return Whether the kerberos5ReadOnly field is set. */ @java.lang.Override public boolean hasKerberos5ReadOnly() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * 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; * * @return The kerberos5ReadOnly. */ @java.lang.Override public boolean getKerberos5ReadOnly() { return kerberos5ReadOnly_; } /** * * *
     * 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; * * @param value The kerberos5ReadOnly to set. * @return This builder for chaining. */ public Builder setKerberos5ReadOnly(boolean value) { kerberos5ReadOnly_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearKerberos5ReadOnly() { bitField0_ = (bitField0_ & ~0x00000020); kerberos5ReadOnly_ = false; onChanged(); return this; } private boolean kerberos5ReadWrite_; /** * * *
     * 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; * * @return Whether the kerberos5ReadWrite field is set. */ @java.lang.Override public boolean hasKerberos5ReadWrite() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * 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; * * @return The kerberos5ReadWrite. */ @java.lang.Override public boolean getKerberos5ReadWrite() { return kerberos5ReadWrite_; } /** * * *
     * 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; * * @param value The kerberos5ReadWrite to set. * @return This builder for chaining. */ public Builder setKerberos5ReadWrite(boolean value) { kerberos5ReadWrite_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearKerberos5ReadWrite() { bitField0_ = (bitField0_ & ~0x00000040); kerberos5ReadWrite_ = false; onChanged(); return this; } private boolean kerberos5IReadOnly_; /** * * *
     * 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; * * @return Whether the kerberos5iReadOnly field is set. */ @java.lang.Override public boolean hasKerberos5IReadOnly() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * 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; * * @return The kerberos5iReadOnly. */ @java.lang.Override public boolean getKerberos5IReadOnly() { return kerberos5IReadOnly_; } /** * * *
     * 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; * * @param value The kerberos5iReadOnly to set. * @return This builder for chaining. */ public Builder setKerberos5IReadOnly(boolean value) { kerberos5IReadOnly_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearKerberos5IReadOnly() { bitField0_ = (bitField0_ & ~0x00000080); kerberos5IReadOnly_ = false; onChanged(); return this; } private boolean kerberos5IReadWrite_; /** * * *
     * 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; * * @return Whether the kerberos5iReadWrite field is set. */ @java.lang.Override public boolean hasKerberos5IReadWrite() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * 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; * * @return The kerberos5iReadWrite. */ @java.lang.Override public boolean getKerberos5IReadWrite() { return kerberos5IReadWrite_; } /** * * *
     * 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; * * @param value The kerberos5iReadWrite to set. * @return This builder for chaining. */ public Builder setKerberos5IReadWrite(boolean value) { kerberos5IReadWrite_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearKerberos5IReadWrite() { bitField0_ = (bitField0_ & ~0x00000100); kerberos5IReadWrite_ = false; onChanged(); return this; } private boolean kerberos5PReadOnly_; /** * * *
     * 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; * * @return Whether the kerberos5pReadOnly field is set. */ @java.lang.Override public boolean hasKerberos5PReadOnly() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * 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; * * @return The kerberos5pReadOnly. */ @java.lang.Override public boolean getKerberos5PReadOnly() { return kerberos5PReadOnly_; } /** * * *
     * 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; * * @param value The kerberos5pReadOnly to set. * @return This builder for chaining. */ public Builder setKerberos5PReadOnly(boolean value) { kerberos5PReadOnly_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearKerberos5PReadOnly() { bitField0_ = (bitField0_ & ~0x00000200); kerberos5PReadOnly_ = false; onChanged(); return this; } private boolean kerberos5PReadWrite_; /** * * *
     * 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; * * @return Whether the kerberos5pReadWrite field is set. */ @java.lang.Override public boolean hasKerberos5PReadWrite() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
     * 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; * * @return The kerberos5pReadWrite. */ @java.lang.Override public boolean getKerberos5PReadWrite() { return kerberos5PReadWrite_; } /** * * *
     * 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; * * @param value The kerberos5pReadWrite to set. * @return This builder for chaining. */ public Builder setKerberos5PReadWrite(boolean value) { kerberos5PReadWrite_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearKerberos5PReadWrite() { bitField0_ = (bitField0_ & ~0x00000400); kerberos5PReadWrite_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.SimpleExportPolicyRule) } // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.SimpleExportPolicyRule) private static final com.google.cloud.netapp.v1.SimpleExportPolicyRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.SimpleExportPolicyRule(); } public static com.google.cloud.netapp.v1.SimpleExportPolicyRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SimpleExportPolicyRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.netapp.v1.SimpleExportPolicyRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy