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

com.google.cloud.netapp.v1.StoragePool 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/storage_pool.proto

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

/**
 *
 *
 * 
 * StoragePool is a container for volumes with a service level and capacity.
 * Volumes can be created in a pool of sufficient available capacity.
 * StoragePool capacity is what you are billed for.
 * 
* * Protobuf type {@code google.cloud.netapp.v1.StoragePool} */ public final class StoragePool extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.StoragePool) StoragePoolOrBuilder { private static final long serialVersionUID = 0L; // Use StoragePool.newBuilder() to construct. private StoragePool(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StoragePool() { name_ = ""; serviceLevel_ = 0; state_ = 0; stateDetails_ = ""; description_ = ""; network_ = ""; activeDirectory_ = ""; kmsConfig_ = ""; psaRange_ = ""; encryptionType_ = 0; replicaZone_ = ""; zone_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StoragePool(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.netapp.v1.StoragePoolProto .internal_static_google_cloud_netapp_v1_StoragePool_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 10: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.netapp.v1.StoragePoolProto .internal_static_google_cloud_netapp_v1_StoragePool_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.netapp.v1.StoragePool.class, com.google.cloud.netapp.v1.StoragePool.Builder.class); } /** * * *
   * The Storage Pool States
   * 
* * Protobuf enum {@code google.cloud.netapp.v1.StoragePool.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified Storage Pool State
     * 
* * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * * *
     * Storage Pool State is Ready
     * 
* * READY = 1; */ READY(1), /** * * *
     * Storage Pool State is Creating
     * 
* * CREATING = 2; */ CREATING(2), /** * * *
     * Storage Pool State is Deleting
     * 
* * DELETING = 3; */ DELETING(3), /** * * *
     * Storage Pool State is Updating
     * 
* * UPDATING = 4; */ UPDATING(4), /** * * *
     * Storage Pool State is Restoring
     * 
* * RESTORING = 5; */ RESTORING(5), /** * * *
     * Storage Pool State is Disabled
     * 
* * DISABLED = 6; */ DISABLED(6), /** * * *
     * Storage Pool State is Error
     * 
* * ERROR = 7; */ ERROR(7), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified Storage Pool State
     * 
* * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * * *
     * Storage Pool State is Ready
     * 
* * READY = 1; */ public static final int READY_VALUE = 1; /** * * *
     * Storage Pool State is Creating
     * 
* * CREATING = 2; */ public static final int CREATING_VALUE = 2; /** * * *
     * Storage Pool State is Deleting
     * 
* * DELETING = 3; */ public static final int DELETING_VALUE = 3; /** * * *
     * Storage Pool State is Updating
     * 
* * UPDATING = 4; */ public static final int UPDATING_VALUE = 4; /** * * *
     * Storage Pool State is Restoring
     * 
* * RESTORING = 5; */ public static final int RESTORING_VALUE = 5; /** * * *
     * Storage Pool State is Disabled
     * 
* * DISABLED = 6; */ public static final int DISABLED_VALUE = 6; /** * * *
     * Storage Pool State is Error
     * 
* * ERROR = 7; */ public static final int ERROR_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static State forNumber(int value) { switch (value) { case 0: return STATE_UNSPECIFIED; case 1: return READY; case 2: return CREATING; case 3: return DELETING; case 4: return UPDATING; case 5: return RESTORING; case 6: return DISABLED; case 7: return ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.netapp.v1.StoragePool.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.StoragePool.State) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Identifier. Name of the storage pool
   * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * * *
   * Identifier. Name of the storage pool
   * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICE_LEVEL_FIELD_NUMBER = 2; private int serviceLevel_ = 0; /** * * *
   * Required. Service level of the storage pool
   * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for serviceLevel. */ @java.lang.Override public int getServiceLevelValue() { return serviceLevel_; } /** * * *
   * Required. Service level of the storage pool
   * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The serviceLevel. */ @java.lang.Override public com.google.cloud.netapp.v1.ServiceLevel getServiceLevel() { com.google.cloud.netapp.v1.ServiceLevel result = com.google.cloud.netapp.v1.ServiceLevel.forNumber(serviceLevel_); return result == null ? com.google.cloud.netapp.v1.ServiceLevel.UNRECOGNIZED : result; } public static final int CAPACITY_GIB_FIELD_NUMBER = 3; private long capacityGib_ = 0L; /** * * *
   * Required. Capacity in GIB of the pool
   * 
* * int64 capacity_gib = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The capacityGib. */ @java.lang.Override public long getCapacityGib() { return capacityGib_; } public static final int VOLUME_CAPACITY_GIB_FIELD_NUMBER = 4; private long volumeCapacityGib_ = 0L; /** * * *
   * Output only. Allocated size of all volumes in GIB in the storage pool
   * 
* * int64 volume_capacity_gib = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The volumeCapacityGib. */ @java.lang.Override public long getVolumeCapacityGib() { return volumeCapacityGib_; } public static final int VOLUME_COUNT_FIELD_NUMBER = 5; private int volumeCount_ = 0; /** * * *
   * Output only. Volume count of the storage pool
   * 
* * int32 volume_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The volumeCount. */ @java.lang.Override public int getVolumeCount() { return volumeCount_; } public static final int STATE_FIELD_NUMBER = 6; private int state_ = 0; /** * * *
   * Output only. State of the storage pool
   * 
* * * .google.cloud.netapp.v1.StoragePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
   * Output only. State of the storage pool
   * 
* * * .google.cloud.netapp.v1.StoragePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.netapp.v1.StoragePool.State getState() { com.google.cloud.netapp.v1.StoragePool.State result = com.google.cloud.netapp.v1.StoragePool.State.forNumber(state_); return result == null ? com.google.cloud.netapp.v1.StoragePool.State.UNRECOGNIZED : result; } public static final int STATE_DETAILS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object stateDetails_ = ""; /** * * *
   * Output only. State details of the storage pool
   * 
* * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The stateDetails. */ @java.lang.Override public java.lang.String getStateDetails() { java.lang.Object ref = stateDetails_; 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(); stateDetails_ = s; return s; } } /** * * *
   * Output only. State details of the storage pool
   * 
* * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for stateDetails. */ @java.lang.Override public com.google.protobuf.ByteString getStateDetailsBytes() { java.lang.Object ref = stateDetails_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createTime_; /** * * *
   * Output only. Create time of the storage pool
   * 
* * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. Create time of the storage pool
   * 
* * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * Output only. Create time of the storage pool
   * 
* * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int DESCRIPTION_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * Optional. Description of the storage pool
   * 
* * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * * *
   * Optional. Description of the storage pool
   * 
* * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 10; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.netapp.v1.StoragePoolProto .internal_static_google_cloud_netapp_v1_StoragePool_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
   * Optional. Labels as key value pairs
   * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
   * Optional. Labels as key value pairs
   * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
   * Optional. Labels as key value pairs
   * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * Optional. Labels as key value pairs
   * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int NETWORK_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** * * *
   * Required. VPC Network name.
   * Format: projects/{project}/global/networks/{network}
   * 
* * * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The network. */ @java.lang.Override public java.lang.String getNetwork() { java.lang.Object ref = network_; 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(); network_ = s; return s; } } /** * * *
   * Required. VPC Network name.
   * Format: projects/{project}/global/networks/{network}
   * 
* * * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for network. */ @java.lang.Override public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACTIVE_DIRECTORY_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object activeDirectory_ = ""; /** * * *
   * Optional. Specifies the Active Directory to be used for creating a SMB
   * volume.
   * 
* * * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The activeDirectory. */ @java.lang.Override public java.lang.String getActiveDirectory() { java.lang.Object ref = activeDirectory_; 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(); activeDirectory_ = s; return s; } } /** * * *
   * Optional. Specifies the Active Directory to be used for creating a SMB
   * volume.
   * 
* * * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for activeDirectory. */ @java.lang.Override public com.google.protobuf.ByteString getActiveDirectoryBytes() { java.lang.Object ref = activeDirectory_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); activeDirectory_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KMS_CONFIG_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object kmsConfig_ = ""; /** * * *
   * Optional. Specifies the KMS config to be used for volume encryption.
   * 
* * * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The kmsConfig. */ @java.lang.Override public java.lang.String getKmsConfig() { java.lang.Object ref = kmsConfig_; 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(); kmsConfig_ = s; return s; } } /** * * *
   * Optional. Specifies the KMS config to be used for volume encryption.
   * 
* * * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for kmsConfig. */ @java.lang.Override public com.google.protobuf.ByteString getKmsConfigBytes() { java.lang.Object ref = kmsConfig_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsConfig_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LDAP_ENABLED_FIELD_NUMBER = 14; private boolean ldapEnabled_ = false; /** * * *
   * Optional. Flag indicating if the pool is NFS LDAP enabled or not.
   * 
* * bool ldap_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ldapEnabled. */ @java.lang.Override public boolean getLdapEnabled() { return ldapEnabled_; } public static final int PSA_RANGE_FIELD_NUMBER = 15; @SuppressWarnings("serial") private volatile java.lang.Object psaRange_ = ""; /** * * *
   * Optional. This field is not implemented. The values provided in this field
   * are ignored.
   * 
* * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The psaRange. */ @java.lang.Override public java.lang.String getPsaRange() { java.lang.Object ref = psaRange_; 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(); psaRange_ = s; return s; } } /** * * *
   * Optional. This field is not implemented. The values provided in this field
   * are ignored.
   * 
* * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for psaRange. */ @java.lang.Override public com.google.protobuf.ByteString getPsaRangeBytes() { java.lang.Object ref = psaRange_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); psaRange_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENCRYPTION_TYPE_FIELD_NUMBER = 16; private int encryptionType_ = 0; /** * * *
   * Output only. Specifies the current pool encryption key source.
   * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for encryptionType. */ @java.lang.Override public int getEncryptionTypeValue() { return encryptionType_; } /** * * *
   * Output only. Specifies the current pool encryption key source.
   * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The encryptionType. */ @java.lang.Override public com.google.cloud.netapp.v1.EncryptionType getEncryptionType() { com.google.cloud.netapp.v1.EncryptionType result = com.google.cloud.netapp.v1.EncryptionType.forNumber(encryptionType_); return result == null ? com.google.cloud.netapp.v1.EncryptionType.UNRECOGNIZED : result; } public static final int GLOBAL_ACCESS_ALLOWED_FIELD_NUMBER = 17; private boolean globalAccessAllowed_ = false; /** * * *
   * Deprecated. Used to allow SO pool to access AD or DNS server from other
   * regions.
   * 
* * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See * google/cloud/netapp/v1/storage_pool.proto;l=243 * @return Whether the globalAccessAllowed field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasGlobalAccessAllowed() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Deprecated. Used to allow SO pool to access AD or DNS server from other
   * regions.
   * 
* * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See * google/cloud/netapp/v1/storage_pool.proto;l=243 * @return The globalAccessAllowed. */ @java.lang.Override @java.lang.Deprecated public boolean getGlobalAccessAllowed() { return globalAccessAllowed_; } public static final int ALLOW_AUTO_TIERING_FIELD_NUMBER = 18; private boolean allowAutoTiering_ = false; /** * * *
   * Optional. True if the storage pool supports Auto Tiering enabled volumes.
   * Default is false. Auto-tiering can be enabled after storage pool creation
   * but it can't be disabled once enabled.
   * 
* * bool allow_auto_tiering = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowAutoTiering. */ @java.lang.Override public boolean getAllowAutoTiering() { return allowAutoTiering_; } public static final int REPLICA_ZONE_FIELD_NUMBER = 20; @SuppressWarnings("serial") private volatile java.lang.Object replicaZone_ = ""; /** * * *
   * Optional. Specifies the replica zone for regional storagePool.
   * 
* * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; * * @return The replicaZone. */ @java.lang.Override public java.lang.String getReplicaZone() { java.lang.Object ref = replicaZone_; 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(); replicaZone_ = s; return s; } } /** * * *
   * Optional. Specifies the replica zone for regional storagePool.
   * 
* * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for replicaZone. */ @java.lang.Override public com.google.protobuf.ByteString getReplicaZoneBytes() { java.lang.Object ref = replicaZone_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); replicaZone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ZONE_FIELD_NUMBER = 21; @SuppressWarnings("serial") private volatile java.lang.Object zone_ = ""; /** * * *
   * Optional. Specifies the active zone for regional storagePool.
   * 
* * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; * * @return The zone. */ @java.lang.Override public java.lang.String getZone() { java.lang.Object ref = zone_; 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(); zone_ = s; return s; } } /** * * *
   * Optional. Specifies the active zone for regional storagePool.
   * 
* * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for zone. */ @java.lang.Override public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (serviceLevel_ != com.google.cloud.netapp.v1.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(2, serviceLevel_); } if (capacityGib_ != 0L) { output.writeInt64(3, capacityGib_); } if (volumeCapacityGib_ != 0L) { output.writeInt64(4, volumeCapacityGib_); } if (volumeCount_ != 0) { output.writeInt32(5, volumeCount_); } if (state_ != com.google.cloud.netapp.v1.StoragePool.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, stateDetails_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, description_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, network_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeDirectory_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, activeDirectory_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsConfig_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, kmsConfig_); } if (ldapEnabled_ != false) { output.writeBool(14, ldapEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(psaRange_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, psaRange_); } if (encryptionType_ != com.google.cloud.netapp.v1.EncryptionType.ENCRYPTION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(16, encryptionType_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(17, globalAccessAllowed_); } if (allowAutoTiering_ != false) { output.writeBool(18, allowAutoTiering_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicaZone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, replicaZone_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, zone_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (serviceLevel_ != com.google.cloud.netapp.v1.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, serviceLevel_); } if (capacityGib_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, capacityGib_); } if (volumeCapacityGib_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, volumeCapacityGib_); } if (volumeCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, volumeCount_); } if (state_ != com.google.cloud.netapp.v1.StoragePool.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, stateDetails_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, description_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, network_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeDirectory_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, activeDirectory_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsConfig_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsConfig_); } if (ldapEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, ldapEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(psaRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, psaRange_); } if (encryptionType_ != com.google.cloud.netapp.v1.EncryptionType.ENCRYPTION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, encryptionType_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, globalAccessAllowed_); } if (allowAutoTiering_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, allowAutoTiering_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicaZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, replicaZone_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, zone_); } 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.StoragePool)) { return super.equals(obj); } com.google.cloud.netapp.v1.StoragePool other = (com.google.cloud.netapp.v1.StoragePool) obj; if (!getName().equals(other.getName())) return false; if (serviceLevel_ != other.serviceLevel_) return false; if (getCapacityGib() != other.getCapacityGib()) return false; if (getVolumeCapacityGib() != other.getVolumeCapacityGib()) return false; if (getVolumeCount() != other.getVolumeCount()) return false; if (state_ != other.state_) return false; if (!getStateDetails().equals(other.getStateDetails())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } if (!getDescription().equals(other.getDescription())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getNetwork().equals(other.getNetwork())) return false; if (!getActiveDirectory().equals(other.getActiveDirectory())) return false; if (!getKmsConfig().equals(other.getKmsConfig())) return false; if (getLdapEnabled() != other.getLdapEnabled()) return false; if (!getPsaRange().equals(other.getPsaRange())) return false; if (encryptionType_ != other.encryptionType_) return false; if (hasGlobalAccessAllowed() != other.hasGlobalAccessAllowed()) return false; if (hasGlobalAccessAllowed()) { if (getGlobalAccessAllowed() != other.getGlobalAccessAllowed()) return false; } if (getAllowAutoTiering() != other.getAllowAutoTiering()) return false; if (!getReplicaZone().equals(other.getReplicaZone())) return false; if (!getZone().equals(other.getZone())) 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(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SERVICE_LEVEL_FIELD_NUMBER; hash = (53 * hash) + serviceLevel_; hash = (37 * hash) + CAPACITY_GIB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGib()); hash = (37 * hash) + VOLUME_CAPACITY_GIB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVolumeCapacityGib()); hash = (37 * hash) + VOLUME_COUNT_FIELD_NUMBER; hash = (53 * hash) + getVolumeCount(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + STATE_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getStateDetails().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); hash = (37 * hash) + ACTIVE_DIRECTORY_FIELD_NUMBER; hash = (53 * hash) + getActiveDirectory().hashCode(); hash = (37 * hash) + KMS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getKmsConfig().hashCode(); hash = (37 * hash) + LDAP_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLdapEnabled()); hash = (37 * hash) + PSA_RANGE_FIELD_NUMBER; hash = (53 * hash) + getPsaRange().hashCode(); hash = (37 * hash) + ENCRYPTION_TYPE_FIELD_NUMBER; hash = (53 * hash) + encryptionType_; if (hasGlobalAccessAllowed()) { hash = (37 * hash) + GLOBAL_ACCESS_ALLOWED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGlobalAccessAllowed()); } hash = (37 * hash) + ALLOW_AUTO_TIERING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowAutoTiering()); hash = (37 * hash) + REPLICA_ZONE_FIELD_NUMBER; hash = (53 * hash) + getReplicaZone().hashCode(); hash = (37 * hash) + ZONE_FIELD_NUMBER; hash = (53 * hash) + getZone().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.netapp.v1.StoragePool parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.StoragePool 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.StoragePool parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.StoragePool 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.StoragePool parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.StoragePool 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.StoragePool parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.StoragePool 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.StoragePool parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.StoragePool 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.StoragePool 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.StoragePool 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.StoragePool 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; } /** * * *
   * StoragePool is a container for volumes with a service level and capacity.
   * Volumes can be created in a pool of sufficient available capacity.
   * StoragePool capacity is what you are billed for.
   * 
* * Protobuf type {@code google.cloud.netapp.v1.StoragePool} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.StoragePool) com.google.cloud.netapp.v1.StoragePoolOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.netapp.v1.StoragePoolProto .internal_static_google_cloud_netapp_v1_StoragePool_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 10: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 10: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.netapp.v1.StoragePoolProto .internal_static_google_cloud_netapp_v1_StoragePool_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.netapp.v1.StoragePool.class, com.google.cloud.netapp.v1.StoragePool.Builder.class); } // Construct using com.google.cloud.netapp.v1.StoragePool.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; serviceLevel_ = 0; capacityGib_ = 0L; volumeCapacityGib_ = 0L; volumeCount_ = 0; state_ = 0; stateDetails_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } description_ = ""; internalGetMutableLabels().clear(); network_ = ""; activeDirectory_ = ""; kmsConfig_ = ""; ldapEnabled_ = false; psaRange_ = ""; encryptionType_ = 0; globalAccessAllowed_ = false; allowAutoTiering_ = false; replicaZone_ = ""; zone_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.netapp.v1.StoragePoolProto .internal_static_google_cloud_netapp_v1_StoragePool_descriptor; } @java.lang.Override public com.google.cloud.netapp.v1.StoragePool getDefaultInstanceForType() { return com.google.cloud.netapp.v1.StoragePool.getDefaultInstance(); } @java.lang.Override public com.google.cloud.netapp.v1.StoragePool build() { com.google.cloud.netapp.v1.StoragePool result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.netapp.v1.StoragePool buildPartial() { com.google.cloud.netapp.v1.StoragePool result = new com.google.cloud.netapp.v1.StoragePool(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.netapp.v1.StoragePool result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.serviceLevel_ = serviceLevel_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.capacityGib_ = capacityGib_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.volumeCapacityGib_ = volumeCapacityGib_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.volumeCount_ = volumeCount_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.stateDetails_ = stateDetails_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000100) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.network_ = network_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.activeDirectory_ = activeDirectory_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.kmsConfig_ = kmsConfig_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.ldapEnabled_ = ldapEnabled_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.psaRange_ = psaRange_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.encryptionType_ = encryptionType_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.globalAccessAllowed_ = globalAccessAllowed_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00020000) != 0)) { result.allowAutoTiering_ = allowAutoTiering_; } if (((from_bitField0_ & 0x00040000) != 0)) { result.replicaZone_ = replicaZone_; } if (((from_bitField0_ & 0x00080000) != 0)) { result.zone_ = zone_; } 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.StoragePool) { return mergeFrom((com.google.cloud.netapp.v1.StoragePool) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.netapp.v1.StoragePool other) { if (other == com.google.cloud.netapp.v1.StoragePool.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.serviceLevel_ != 0) { setServiceLevelValue(other.getServiceLevelValue()); } if (other.getCapacityGib() != 0L) { setCapacityGib(other.getCapacityGib()); } if (other.getVolumeCapacityGib() != 0L) { setVolumeCapacityGib(other.getVolumeCapacityGib()); } if (other.getVolumeCount() != 0) { setVolumeCount(other.getVolumeCount()); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (!other.getStateDetails().isEmpty()) { stateDetails_ = other.stateDetails_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000100; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000200; if (!other.getNetwork().isEmpty()) { network_ = other.network_; bitField0_ |= 0x00000400; onChanged(); } if (!other.getActiveDirectory().isEmpty()) { activeDirectory_ = other.activeDirectory_; bitField0_ |= 0x00000800; onChanged(); } if (!other.getKmsConfig().isEmpty()) { kmsConfig_ = other.kmsConfig_; bitField0_ |= 0x00001000; onChanged(); } if (other.getLdapEnabled() != false) { setLdapEnabled(other.getLdapEnabled()); } if (!other.getPsaRange().isEmpty()) { psaRange_ = other.psaRange_; bitField0_ |= 0x00004000; onChanged(); } if (other.encryptionType_ != 0) { setEncryptionTypeValue(other.getEncryptionTypeValue()); } if (other.hasGlobalAccessAllowed()) { setGlobalAccessAllowed(other.getGlobalAccessAllowed()); } if (other.getAllowAutoTiering() != false) { setAllowAutoTiering(other.getAllowAutoTiering()); } if (!other.getReplicaZone().isEmpty()) { replicaZone_ = other.replicaZone_; bitField0_ |= 0x00040000; onChanged(); } if (!other.getZone().isEmpty()) { zone_ = other.zone_; bitField0_ |= 0x00080000; onChanged(); } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { serviceLevel_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { capacityGib_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { volumeCapacityGib_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { volumeCount_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { state_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { stateDetails_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 74 case 82: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000200; break; } // case 82 case 90: { network_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 98: { activeDirectory_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 98 case 106: { kmsConfig_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 106 case 112: { ldapEnabled_ = input.readBool(); bitField0_ |= 0x00002000; break; } // case 112 case 122: { psaRange_ = input.readStringRequireUtf8(); bitField0_ |= 0x00004000; break; } // case 122 case 128: { encryptionType_ = input.readEnum(); bitField0_ |= 0x00008000; break; } // case 128 case 136: { globalAccessAllowed_ = input.readBool(); bitField0_ |= 0x00010000; break; } // case 136 case 144: { allowAutoTiering_ = input.readBool(); bitField0_ |= 0x00020000; break; } // case 144 case 162: { replicaZone_ = input.readStringRequireUtf8(); bitField0_ |= 0x00040000; break; } // case 162 case 170: { zone_ = input.readStringRequireUtf8(); bitField0_ |= 0x00080000; break; } // case 170 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 name_ = ""; /** * * *
     * Identifier. Name of the storage pool
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Identifier. Name of the storage pool
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Identifier. Name of the storage pool
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Identifier. Name of the storage pool
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Identifier. Name of the storage pool
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int serviceLevel_ = 0; /** * * *
     * Required. Service level of the storage pool
     * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for serviceLevel. */ @java.lang.Override public int getServiceLevelValue() { return serviceLevel_; } /** * * *
     * Required. Service level of the storage pool
     * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for serviceLevel to set. * @return This builder for chaining. */ public Builder setServiceLevelValue(int value) { serviceLevel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Required. Service level of the storage pool
     * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The serviceLevel. */ @java.lang.Override public com.google.cloud.netapp.v1.ServiceLevel getServiceLevel() { com.google.cloud.netapp.v1.ServiceLevel result = com.google.cloud.netapp.v1.ServiceLevel.forNumber(serviceLevel_); return result == null ? com.google.cloud.netapp.v1.ServiceLevel.UNRECOGNIZED : result; } /** * * *
     * Required. Service level of the storage pool
     * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The serviceLevel to set. * @return This builder for chaining. */ public Builder setServiceLevel(com.google.cloud.netapp.v1.ServiceLevel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; serviceLevel_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Required. Service level of the storage pool
     * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. */ public Builder clearServiceLevel() { bitField0_ = (bitField0_ & ~0x00000002); serviceLevel_ = 0; onChanged(); return this; } private long capacityGib_; /** * * *
     * Required. Capacity in GIB of the pool
     * 
* * int64 capacity_gib = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The capacityGib. */ @java.lang.Override public long getCapacityGib() { return capacityGib_; } /** * * *
     * Required. Capacity in GIB of the pool
     * 
* * int64 capacity_gib = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The capacityGib to set. * @return This builder for chaining. */ public Builder setCapacityGib(long value) { capacityGib_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Required. Capacity in GIB of the pool
     * 
* * int64 capacity_gib = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearCapacityGib() { bitField0_ = (bitField0_ & ~0x00000004); capacityGib_ = 0L; onChanged(); return this; } private long volumeCapacityGib_; /** * * *
     * Output only. Allocated size of all volumes in GIB in the storage pool
     * 
* * int64 volume_capacity_gib = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The volumeCapacityGib. */ @java.lang.Override public long getVolumeCapacityGib() { return volumeCapacityGib_; } /** * * *
     * Output only. Allocated size of all volumes in GIB in the storage pool
     * 
* * int64 volume_capacity_gib = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The volumeCapacityGib to set. * @return This builder for chaining. */ public Builder setVolumeCapacityGib(long value) { volumeCapacityGib_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. Allocated size of all volumes in GIB in the storage pool
     * 
* * int64 volume_capacity_gib = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearVolumeCapacityGib() { bitField0_ = (bitField0_ & ~0x00000008); volumeCapacityGib_ = 0L; onChanged(); return this; } private int volumeCount_; /** * * *
     * Output only. Volume count of the storage pool
     * 
* * int32 volume_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The volumeCount. */ @java.lang.Override public int getVolumeCount() { return volumeCount_; } /** * * *
     * Output only. Volume count of the storage pool
     * 
* * int32 volume_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The volumeCount to set. * @return This builder for chaining. */ public Builder setVolumeCount(int value) { volumeCount_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Output only. Volume count of the storage pool
     * 
* * int32 volume_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearVolumeCount() { bitField0_ = (bitField0_ & ~0x00000010); volumeCount_ = 0; onChanged(); return this; } private int state_ = 0; /** * * *
     * Output only. State of the storage pool
     * 
* * * .google.cloud.netapp.v1.StoragePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
     * Output only. State of the storage pool
     * 
* * * .google.cloud.netapp.v1.StoragePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Output only. State of the storage pool
     * 
* * * .google.cloud.netapp.v1.StoragePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.netapp.v1.StoragePool.State getState() { com.google.cloud.netapp.v1.StoragePool.State result = com.google.cloud.netapp.v1.StoragePool.State.forNumber(state_); return result == null ? com.google.cloud.netapp.v1.StoragePool.State.UNRECOGNIZED : result; } /** * * *
     * Output only. State of the storage pool
     * 
* * * .google.cloud.netapp.v1.StoragePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The state to set. * @return This builder for chaining. */ public Builder setState(com.google.cloud.netapp.v1.StoragePool.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; state_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. State of the storage pool
     * 
* * * .google.cloud.netapp.v1.StoragePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000020); state_ = 0; onChanged(); return this; } private java.lang.Object stateDetails_ = ""; /** * * *
     * Output only. State details of the storage pool
     * 
* * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The stateDetails. */ public java.lang.String getStateDetails() { java.lang.Object ref = stateDetails_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateDetails_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. State details of the storage pool
     * 
* * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for stateDetails. */ public com.google.protobuf.ByteString getStateDetailsBytes() { java.lang.Object ref = stateDetails_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. State details of the storage pool
     * 
* * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The stateDetails to set. * @return This builder for chaining. */ public Builder setStateDetails(java.lang.String value) { if (value == null) { throw new NullPointerException(); } stateDetails_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Output only. State details of the storage pool
     * 
* * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearStateDetails() { stateDetails_ = getDefaultInstance().getStateDetails(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Output only. State details of the storage pool
     * 
* * string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for stateDetails to set. * @return This builder for chaining. */ public Builder setStateDetailsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); stateDetails_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** * * *
     * Output only. Create time of the storage pool
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * Output only. Create time of the storage pool
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** * * *
     * Output only. Create time of the storage pool
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. Create time of the storage pool
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. Create time of the storage pool
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * * *
     * Output only. Create time of the storage pool
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000080); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Create time of the storage pool
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000080; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. Create time of the storage pool
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * Output only. Create time of the storage pool
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private java.lang.Object description_ = ""; /** * * *
     * Optional. Description of the storage pool
     * 
* * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Description of the storage pool
     * 
* * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. Description of the storage pool
     * 
* * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Optional. Description of the storage pool
     * 
* * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * * *
     * Optional. Description of the storage pool
     * 
* * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000200; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * Optional. Labels as key value pairs
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
     * Optional. Labels as key value pairs
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * Optional. Labels as key value pairs
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Optional. Labels as key value pairs
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
     * Optional. Labels as key value pairs
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000200; return internalGetMutableLabels().getMutableMap(); } /** * * *
     * Optional. Labels as key value pairs
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000200; return this; } /** * * *
     * Optional. Labels as key value pairs
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000200; return this; } private java.lang.Object network_ = ""; /** * * *
     * Required. VPC Network name.
     * Format: projects/{project}/global/networks/{network}
     * 
* * * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. VPC Network name.
     * Format: projects/{project}/global/networks/{network}
     * 
* * * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for network. */ public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. VPC Network name.
     * Format: projects/{project}/global/networks/{network}
     * 
* * * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The network to set. * @return This builder for chaining. */ public Builder setNetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } network_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Required. VPC Network name.
     * Format: projects/{project}/global/networks/{network}
     * 
* * * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearNetwork() { network_ = getDefaultInstance().getNetwork(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * * *
     * Required. VPC Network name.
     * Format: projects/{project}/global/networks/{network}
     * 
* * * string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for network to set. * @return This builder for chaining. */ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); network_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private java.lang.Object activeDirectory_ = ""; /** * * *
     * Optional. Specifies the Active Directory to be used for creating a SMB
     * volume.
     * 
* * * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The activeDirectory. */ public java.lang.String getActiveDirectory() { java.lang.Object ref = activeDirectory_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); activeDirectory_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Specifies the Active Directory to be used for creating a SMB
     * volume.
     * 
* * * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for activeDirectory. */ public com.google.protobuf.ByteString getActiveDirectoryBytes() { java.lang.Object ref = activeDirectory_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); activeDirectory_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. Specifies the Active Directory to be used for creating a SMB
     * volume.
     * 
* * * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The activeDirectory to set. * @return This builder for chaining. */ public Builder setActiveDirectory(java.lang.String value) { if (value == null) { throw new NullPointerException(); } activeDirectory_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Optional. Specifies the Active Directory to be used for creating a SMB
     * volume.
     * 
* * * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearActiveDirectory() { activeDirectory_ = getDefaultInstance().getActiveDirectory(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * * *
     * Optional. Specifies the Active Directory to be used for creating a SMB
     * volume.
     * 
* * * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The bytes for activeDirectory to set. * @return This builder for chaining. */ public Builder setActiveDirectoryBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); activeDirectory_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } private java.lang.Object kmsConfig_ = ""; /** * * *
     * Optional. Specifies the KMS config to be used for volume encryption.
     * 
* * * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The kmsConfig. */ public java.lang.String getKmsConfig() { java.lang.Object ref = kmsConfig_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsConfig_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Specifies the KMS config to be used for volume encryption.
     * 
* * * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for kmsConfig. */ public com.google.protobuf.ByteString getKmsConfigBytes() { java.lang.Object ref = kmsConfig_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsConfig_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. Specifies the KMS config to be used for volume encryption.
     * 
* * * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The kmsConfig to set. * @return This builder for chaining. */ public Builder setKmsConfig(java.lang.String value) { if (value == null) { throw new NullPointerException(); } kmsConfig_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Optional. Specifies the KMS config to be used for volume encryption.
     * 
* * * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearKmsConfig() { kmsConfig_ = getDefaultInstance().getKmsConfig(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * * *
     * Optional. Specifies the KMS config to be used for volume encryption.
     * 
* * * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The bytes for kmsConfig to set. * @return This builder for chaining. */ public Builder setKmsConfigBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsConfig_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } private boolean ldapEnabled_; /** * * *
     * Optional. Flag indicating if the pool is NFS LDAP enabled or not.
     * 
* * bool ldap_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ldapEnabled. */ @java.lang.Override public boolean getLdapEnabled() { return ldapEnabled_; } /** * * *
     * Optional. Flag indicating if the pool is NFS LDAP enabled or not.
     * 
* * bool ldap_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The ldapEnabled to set. * @return This builder for chaining. */ public Builder setLdapEnabled(boolean value) { ldapEnabled_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Optional. Flag indicating if the pool is NFS LDAP enabled or not.
     * 
* * bool ldap_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearLdapEnabled() { bitField0_ = (bitField0_ & ~0x00002000); ldapEnabled_ = false; onChanged(); return this; } private java.lang.Object psaRange_ = ""; /** * * *
     * Optional. This field is not implemented. The values provided in this field
     * are ignored.
     * 
* * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The psaRange. */ public java.lang.String getPsaRange() { java.lang.Object ref = psaRange_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); psaRange_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. This field is not implemented. The values provided in this field
     * are ignored.
     * 
* * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for psaRange. */ public com.google.protobuf.ByteString getPsaRangeBytes() { java.lang.Object ref = psaRange_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); psaRange_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. This field is not implemented. The values provided in this field
     * are ignored.
     * 
* * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The psaRange to set. * @return This builder for chaining. */ public Builder setPsaRange(java.lang.String value) { if (value == null) { throw new NullPointerException(); } psaRange_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** * * *
     * Optional. This field is not implemented. The values provided in this field
     * are ignored.
     * 
* * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearPsaRange() { psaRange_ = getDefaultInstance().getPsaRange(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** * * *
     * Optional. This field is not implemented. The values provided in this field
     * are ignored.
     * 
* * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for psaRange to set. * @return This builder for chaining. */ public Builder setPsaRangeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); psaRange_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } private int encryptionType_ = 0; /** * * *
     * Output only. Specifies the current pool encryption key source.
     * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for encryptionType. */ @java.lang.Override public int getEncryptionTypeValue() { return encryptionType_; } /** * * *
     * Output only. Specifies the current pool encryption key source.
     * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for encryptionType to set. * @return This builder for chaining. */ public Builder setEncryptionTypeValue(int value) { encryptionType_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** * * *
     * Output only. Specifies the current pool encryption key source.
     * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The encryptionType. */ @java.lang.Override public com.google.cloud.netapp.v1.EncryptionType getEncryptionType() { com.google.cloud.netapp.v1.EncryptionType result = com.google.cloud.netapp.v1.EncryptionType.forNumber(encryptionType_); return result == null ? com.google.cloud.netapp.v1.EncryptionType.UNRECOGNIZED : result; } /** * * *
     * Output only. Specifies the current pool encryption key source.
     * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The encryptionType to set. * @return This builder for chaining. */ public Builder setEncryptionType(com.google.cloud.netapp.v1.EncryptionType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; encryptionType_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. Specifies the current pool encryption key source.
     * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearEncryptionType() { bitField0_ = (bitField0_ & ~0x00008000); encryptionType_ = 0; onChanged(); return this; } private boolean globalAccessAllowed_; /** * * *
     * Deprecated. Used to allow SO pool to access AD or DNS server from other
     * regions.
     * 
* * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See * google/cloud/netapp/v1/storage_pool.proto;l=243 * @return Whether the globalAccessAllowed field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasGlobalAccessAllowed() { return ((bitField0_ & 0x00010000) != 0); } /** * * *
     * Deprecated. Used to allow SO pool to access AD or DNS server from other
     * regions.
     * 
* * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See * google/cloud/netapp/v1/storage_pool.proto;l=243 * @return The globalAccessAllowed. */ @java.lang.Override @java.lang.Deprecated public boolean getGlobalAccessAllowed() { return globalAccessAllowed_; } /** * * *
     * Deprecated. Used to allow SO pool to access AD or DNS server from other
     * regions.
     * 
* * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See * google/cloud/netapp/v1/storage_pool.proto;l=243 * @param value The globalAccessAllowed to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setGlobalAccessAllowed(boolean value) { globalAccessAllowed_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** * * *
     * Deprecated. Used to allow SO pool to access AD or DNS server from other
     * regions.
     * 
* * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See * google/cloud/netapp/v1/storage_pool.proto;l=243 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearGlobalAccessAllowed() { bitField0_ = (bitField0_ & ~0x00010000); globalAccessAllowed_ = false; onChanged(); return this; } private boolean allowAutoTiering_; /** * * *
     * Optional. True if the storage pool supports Auto Tiering enabled volumes.
     * Default is false. Auto-tiering can be enabled after storage pool creation
     * but it can't be disabled once enabled.
     * 
* * bool allow_auto_tiering = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowAutoTiering. */ @java.lang.Override public boolean getAllowAutoTiering() { return allowAutoTiering_; } /** * * *
     * Optional. True if the storage pool supports Auto Tiering enabled volumes.
     * Default is false. Auto-tiering can be enabled after storage pool creation
     * but it can't be disabled once enabled.
     * 
* * bool allow_auto_tiering = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The allowAutoTiering to set. * @return This builder for chaining. */ public Builder setAllowAutoTiering(boolean value) { allowAutoTiering_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** * * *
     * Optional. True if the storage pool supports Auto Tiering enabled volumes.
     * Default is false. Auto-tiering can be enabled after storage pool creation
     * but it can't be disabled once enabled.
     * 
* * bool allow_auto_tiering = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearAllowAutoTiering() { bitField0_ = (bitField0_ & ~0x00020000); allowAutoTiering_ = false; onChanged(); return this; } private java.lang.Object replicaZone_ = ""; /** * * *
     * Optional. Specifies the replica zone for regional storagePool.
     * 
* * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; * * @return The replicaZone. */ public java.lang.String getReplicaZone() { java.lang.Object ref = replicaZone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replicaZone_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Specifies the replica zone for regional storagePool.
     * 
* * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for replicaZone. */ public com.google.protobuf.ByteString getReplicaZoneBytes() { java.lang.Object ref = replicaZone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); replicaZone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. Specifies the replica zone for regional storagePool.
     * 
* * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The replicaZone to set. * @return This builder for chaining. */ public Builder setReplicaZone(java.lang.String value) { if (value == null) { throw new NullPointerException(); } replicaZone_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** * * *
     * Optional. Specifies the replica zone for regional storagePool.
     * 
* * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearReplicaZone() { replicaZone_ = getDefaultInstance().getReplicaZone(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } /** * * *
     * Optional. Specifies the replica zone for regional storagePool.
     * 
* * string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for replicaZone to set. * @return This builder for chaining. */ public Builder setReplicaZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); replicaZone_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } private java.lang.Object zone_ = ""; /** * * *
     * Optional. Specifies the active zone for regional storagePool.
     * 
* * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; * * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Specifies the active zone for regional storagePool.
     * 
* * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for zone. */ public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. Specifies the active zone for regional storagePool.
     * 
* * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The zone to set. * @return This builder for chaining. */ public Builder setZone(java.lang.String value) { if (value == null) { throw new NullPointerException(); } zone_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** * * *
     * Optional. Specifies the active zone for regional storagePool.
     * 
* * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearZone() { zone_ = getDefaultInstance().getZone(); bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } /** * * *
     * Optional. Specifies the active zone for regional storagePool.
     * 
* * string zone = 21 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for zone to set. * @return This builder for chaining. */ public Builder setZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); zone_ = value; bitField0_ |= 0x00080000; 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.StoragePool) } // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.StoragePool) private static final com.google.cloud.netapp.v1.StoragePool DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.StoragePool(); } public static com.google.cloud.netapp.v1.StoragePool getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StoragePool 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.StoragePool getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy