Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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 {
/**
*
*
*
*
* 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_ = "";
/**
*
*
*
*
* 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
*
* 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.
*
* 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_ = "";
/**
*
*
*
*
* 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;
}
/**
*
*
*
*
*
* .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;
}
/**
*
*
*
* 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.
*
* 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.
*