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

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

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

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

/**
 *
 *
 * 
 * Volume provides a filesystem that you can mount.
 * 
* * Protobuf type {@code google.cloud.netapp.v1.Volume} */ public final class Volume extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.Volume) VolumeOrBuilder { private static final long serialVersionUID = 0L; // Use Volume.newBuilder() to construct. private Volume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Volume() { name_ = ""; state_ = 0; stateDetails_ = ""; shareName_ = ""; psaRange_ = ""; storagePool_ = ""; network_ = ""; serviceLevel_ = 0; protocols_ = java.util.Collections.emptyList(); smbSettings_ = java.util.Collections.emptyList(); mountOptions_ = java.util.Collections.emptyList(); unixPermissions_ = ""; description_ = ""; securityStyle_ = 0; activeDirectory_ = ""; kmsConfig_ = ""; encryptionType_ = 0; restrictedActions_ = java.util.Collections.emptyList(); replicaZone_ = ""; zone_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Volume(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.netapp.v1.VolumeProto .internal_static_google_cloud_netapp_v1_Volume_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 16: 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.VolumeProto .internal_static_google_cloud_netapp_v1_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.netapp.v1.Volume.class, com.google.cloud.netapp.v1.Volume.Builder.class); } /** * * *
   * The volume states
   * 
* * Protobuf enum {@code google.cloud.netapp.v1.Volume.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified Volume State
     * 
* * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * * *
     * Volume State is Ready
     * 
* * READY = 1; */ READY(1), /** * * *
     * Volume State is Creating
     * 
* * CREATING = 2; */ CREATING(2), /** * * *
     * Volume State is Deleting
     * 
* * DELETING = 3; */ DELETING(3), /** * * *
     * Volume State is Updating
     * 
* * UPDATING = 4; */ UPDATING(4), /** * * *
     * Volume State is Restoring
     * 
* * RESTORING = 5; */ RESTORING(5), /** * * *
     * Volume State is Disabled
     * 
* * DISABLED = 6; */ DISABLED(6), /** * * *
     * Volume State is Error
     * 
* * ERROR = 7; */ ERROR(7), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified Volume State
     * 
* * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * * *
     * Volume State is Ready
     * 
* * READY = 1; */ public static final int READY_VALUE = 1; /** * * *
     * Volume State is Creating
     * 
* * CREATING = 2; */ public static final int CREATING_VALUE = 2; /** * * *
     * Volume State is Deleting
     * 
* * DELETING = 3; */ public static final int DELETING_VALUE = 3; /** * * *
     * Volume State is Updating
     * 
* * UPDATING = 4; */ public static final int UPDATING_VALUE = 4; /** * * *
     * Volume State is Restoring
     * 
* * RESTORING = 5; */ public static final int RESTORING_VALUE = 5; /** * * *
     * Volume State is Disabled
     * 
* * DISABLED = 6; */ public static final int DISABLED_VALUE = 6; /** * * *
     * Volume 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.Volume.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.Volume.State) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Identifier. Name of the volume
   * 
* * 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 volume
   * 
* * 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 STATE_FIELD_NUMBER = 2; private int state_ = 0; /** * * *
   * Output only. State of the volume
   * 
* * * .google.cloud.netapp.v1.Volume.State state = 2 [(.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 volume
   * 
* * * .google.cloud.netapp.v1.Volume.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.netapp.v1.Volume.State getState() { com.google.cloud.netapp.v1.Volume.State result = com.google.cloud.netapp.v1.Volume.State.forNumber(state_); return result == null ? com.google.cloud.netapp.v1.Volume.State.UNRECOGNIZED : result; } public static final int STATE_DETAILS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object stateDetails_ = ""; /** * * *
   * Output only. State details of the volume
   * 
* * string state_details = 3 [(.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 volume
   * 
* * string state_details = 3 [(.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 = 4; private com.google.protobuf.Timestamp createTime_; /** * * *
   * Output only. Create time of the volume
   * 
* * .google.protobuf.Timestamp create_time = 4 [(.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 volume
   * 
* * .google.protobuf.Timestamp create_time = 4 [(.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 volume
   * 
* * .google.protobuf.Timestamp create_time = 4 [(.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 SHARE_NAME_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object shareName_ = ""; /** * * *
   * Required. Share name of the volume
   * 
* * string share_name = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The shareName. */ @java.lang.Override public java.lang.String getShareName() { java.lang.Object ref = shareName_; 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(); shareName_ = s; return s; } } /** * * *
   * Required. Share name of the volume
   * 
* * string share_name = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for shareName. */ @java.lang.Override public com.google.protobuf.ByteString getShareNameBytes() { java.lang.Object ref = shareName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PSA_RANGE_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object psaRange_ = ""; /** * * *
   * Output only. This field is not implemented. The values provided in this
   * field are ignored.
   * 
* * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
   * Output only. This field is not implemented. The values provided in this
   * field are ignored.
   * 
* * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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 STORAGE_POOL_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object storagePool_ = ""; /** * * *
   * Required. StoragePool name of the volume
   * 
* * * string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The storagePool. */ @java.lang.Override public java.lang.String getStoragePool() { java.lang.Object ref = storagePool_; 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(); storagePool_ = s; return s; } } /** * * *
   * Required. StoragePool name of the volume
   * 
* * * string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for storagePool. */ @java.lang.Override public com.google.protobuf.ByteString getStoragePoolBytes() { java.lang.Object ref = storagePool_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storagePool_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NETWORK_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** * * *
   * Output only. VPC Network name.
   * Format: projects/{project}/global/networks/{network}
   * 
* * * string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** * * *
   * Output only. VPC Network name.
   * Format: projects/{project}/global/networks/{network}
   * 
* * * string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 SERVICE_LEVEL_FIELD_NUMBER = 9; private int serviceLevel_ = 0; /** * * *
   * Output only. Service level of the volume
   * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for serviceLevel. */ @java.lang.Override public int getServiceLevelValue() { return serviceLevel_; } /** * * *
   * Output only. Service level of the volume
   * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @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 = 10; private long capacityGib_ = 0L; /** * * *
   * Required. Capacity in GIB of the volume
   * 
* * int64 capacity_gib = 10 [(.google.api.field_behavior) = REQUIRED]; * * @return The capacityGib. */ @java.lang.Override public long getCapacityGib() { return capacityGib_; } public static final int EXPORT_POLICY_FIELD_NUMBER = 11; private com.google.cloud.netapp.v1.ExportPolicy exportPolicy_; /** * * *
   * Optional. Export policy of the volume
   * 
* * * .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the exportPolicy field is set. */ @java.lang.Override public boolean hasExportPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Optional. Export policy of the volume
   * 
* * * .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The exportPolicy. */ @java.lang.Override public com.google.cloud.netapp.v1.ExportPolicy getExportPolicy() { return exportPolicy_ == null ? com.google.cloud.netapp.v1.ExportPolicy.getDefaultInstance() : exportPolicy_; } /** * * *
   * Optional. Export policy of the volume
   * 
* * * .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.netapp.v1.ExportPolicyOrBuilder getExportPolicyOrBuilder() { return exportPolicy_ == null ? com.google.cloud.netapp.v1.ExportPolicy.getDefaultInstance() : exportPolicy_; } public static final int PROTOCOLS_FIELD_NUMBER = 12; @SuppressWarnings("serial") private java.util.List protocols_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.netapp.v1.Protocols> protocols_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.netapp.v1.Protocols>() { public com.google.cloud.netapp.v1.Protocols convert(java.lang.Integer from) { com.google.cloud.netapp.v1.Protocols result = com.google.cloud.netapp.v1.Protocols.forNumber(from); return result == null ? com.google.cloud.netapp.v1.Protocols.UNRECOGNIZED : result; } }; /** * * *
   * Required. Protocols required for the volume
   * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the protocols. */ @java.lang.Override public java.util.List getProtocolsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.cloud.netapp.v1.Protocols>(protocols_, protocols_converter_); } /** * * *
   * Required. Protocols required for the volume
   * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @return The count of protocols. */ @java.lang.Override public int getProtocolsCount() { return protocols_.size(); } /** * * *
   * Required. Protocols required for the volume
   * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the element to return. * @return The protocols at the given index. */ @java.lang.Override public com.google.cloud.netapp.v1.Protocols getProtocols(int index) { return protocols_converter_.convert(protocols_.get(index)); } /** * * *
   * Required. Protocols required for the volume
   * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the enum numeric values on the wire for protocols. */ @java.lang.Override public java.util.List getProtocolsValueList() { return protocols_; } /** * * *
   * Required. Protocols required for the volume
   * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the value to return. * @return The enum numeric value on the wire of protocols at the given index. */ @java.lang.Override public int getProtocolsValue(int index) { return protocols_.get(index); } private int protocolsMemoizedSerializedSize; public static final int SMB_SETTINGS_FIELD_NUMBER = 13; @SuppressWarnings("serial") private java.util.List smbSettings_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.netapp.v1.SMBSettings> smbSettings_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.netapp.v1.SMBSettings>() { public com.google.cloud.netapp.v1.SMBSettings convert(java.lang.Integer from) { com.google.cloud.netapp.v1.SMBSettings result = com.google.cloud.netapp.v1.SMBSettings.forNumber(from); return result == null ? com.google.cloud.netapp.v1.SMBSettings.UNRECOGNIZED : result; } }; /** * * *
   * Optional. SMB share settings for the volume.
   * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the smbSettings. */ @java.lang.Override public java.util.List getSmbSettingsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.cloud.netapp.v1.SMBSettings>( smbSettings_, smbSettings_converter_); } /** * * *
   * Optional. SMB share settings for the volume.
   * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The count of smbSettings. */ @java.lang.Override public int getSmbSettingsCount() { return smbSettings_.size(); } /** * * *
   * Optional. SMB share settings for the volume.
   * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the element to return. * @return The smbSettings at the given index. */ @java.lang.Override public com.google.cloud.netapp.v1.SMBSettings getSmbSettings(int index) { return smbSettings_converter_.convert(smbSettings_.get(index)); } /** * * *
   * Optional. SMB share settings for the volume.
   * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the enum numeric values on the wire for smbSettings. */ @java.lang.Override public java.util.List getSmbSettingsValueList() { return smbSettings_; } /** * * *
   * Optional. SMB share settings for the volume.
   * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the value to return. * @return The enum numeric value on the wire of smbSettings at the given index. */ @java.lang.Override public int getSmbSettingsValue(int index) { return smbSettings_.get(index); } private int smbSettingsMemoizedSerializedSize; public static final int MOUNT_OPTIONS_FIELD_NUMBER = 14; @SuppressWarnings("serial") private java.util.List mountOptions_; /** * * *
   * Output only. Mount options of this volume
   * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getMountOptionsList() { return mountOptions_; } /** * * *
   * Output only. Mount options of this volume
   * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.List getMountOptionsOrBuilderList() { return mountOptions_; } /** * * *
   * Output only. Mount options of this volume
   * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public int getMountOptionsCount() { return mountOptions_.size(); } /** * * *
   * Output only. Mount options of this volume
   * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.netapp.v1.MountOption getMountOptions(int index) { return mountOptions_.get(index); } /** * * *
   * Output only. Mount options of this volume
   * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.netapp.v1.MountOptionOrBuilder getMountOptionsOrBuilder(int index) { return mountOptions_.get(index); } public static final int UNIX_PERMISSIONS_FIELD_NUMBER = 15; @SuppressWarnings("serial") private volatile java.lang.Object unixPermissions_ = ""; /** * * *
   * Optional. Default unix style permission (e.g. 777) the mount point will be
   * created with. Applicable for NFS protocol types only.
   * 
* * string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The unixPermissions. */ @java.lang.Override public java.lang.String getUnixPermissions() { java.lang.Object ref = unixPermissions_; 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(); unixPermissions_ = s; return s; } } /** * * *
   * Optional. Default unix style permission (e.g. 777) the mount point will be
   * created with. Applicable for NFS protocol types only.
   * 
* * string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for unixPermissions. */ @java.lang.Override public com.google.protobuf.ByteString getUnixPermissionsBytes() { java.lang.Object ref = unixPermissions_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unixPermissions_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 16; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.netapp.v1.VolumeProto .internal_static_google_cloud_netapp_v1_Volume_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 = 16 [(.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 = 16 [(.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 = 16 [(.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 = 16 [(.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 DESCRIPTION_FIELD_NUMBER = 17; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * Optional. Description of the volume
   * 
* * string description = 17 [(.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 volume
   * 
* * string description = 17 [(.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 SNAPSHOT_POLICY_FIELD_NUMBER = 18; private com.google.cloud.netapp.v1.SnapshotPolicy snapshotPolicy_; /** * * *
   * Optional. SnapshotPolicy for a volume.
   * 
* * * .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the snapshotPolicy field is set. */ @java.lang.Override public boolean hasSnapshotPolicy() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Optional. SnapshotPolicy for a volume.
   * 
* * * .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The snapshotPolicy. */ @java.lang.Override public com.google.cloud.netapp.v1.SnapshotPolicy getSnapshotPolicy() { return snapshotPolicy_ == null ? com.google.cloud.netapp.v1.SnapshotPolicy.getDefaultInstance() : snapshotPolicy_; } /** * * *
   * Optional. SnapshotPolicy for a volume.
   * 
* * * .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.netapp.v1.SnapshotPolicyOrBuilder getSnapshotPolicyOrBuilder() { return snapshotPolicy_ == null ? com.google.cloud.netapp.v1.SnapshotPolicy.getDefaultInstance() : snapshotPolicy_; } public static final int SNAP_RESERVE_FIELD_NUMBER = 19; private double snapReserve_ = 0D; /** * * *
   * Optional. Snap_reserve specifies percentage of volume storage reserved for
   * snapshot storage. Default is 0 percent.
   * 
* * double snap_reserve = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @return The snapReserve. */ @java.lang.Override public double getSnapReserve() { return snapReserve_; } public static final int SNAPSHOT_DIRECTORY_FIELD_NUMBER = 20; private boolean snapshotDirectory_ = false; /** * * *
   * Optional. Snapshot_directory if enabled (true) the volume will contain a
   * read-only .snapshot directory which provides access to each of the volume's
   * snapshots.
   * 
* * bool snapshot_directory = 20 [(.google.api.field_behavior) = OPTIONAL]; * * @return The snapshotDirectory. */ @java.lang.Override public boolean getSnapshotDirectory() { return snapshotDirectory_; } public static final int USED_GIB_FIELD_NUMBER = 21; private long usedGib_ = 0L; /** * * *
   * Output only. Used capacity in GIB of the volume. This is computed
   * periodically and it does not represent the realtime usage.
   * 
* * int64 used_gib = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The usedGib. */ @java.lang.Override public long getUsedGib() { return usedGib_; } public static final int SECURITY_STYLE_FIELD_NUMBER = 22; private int securityStyle_ = 0; /** * * *
   * Optional. Security Style of the Volume
   * 
* * * .google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for securityStyle. */ @java.lang.Override public int getSecurityStyleValue() { return securityStyle_; } /** * * *
   * Optional. Security Style of the Volume
   * 
* * * .google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The securityStyle. */ @java.lang.Override public com.google.cloud.netapp.v1.SecurityStyle getSecurityStyle() { com.google.cloud.netapp.v1.SecurityStyle result = com.google.cloud.netapp.v1.SecurityStyle.forNumber(securityStyle_); return result == null ? com.google.cloud.netapp.v1.SecurityStyle.UNRECOGNIZED : result; } public static final int KERBEROS_ENABLED_FIELD_NUMBER = 23; private boolean kerberosEnabled_ = false; /** * * *
   * Optional. Flag indicating if the volume is a kerberos volume or not, export
   * policy rules control kerberos security modes (krb5, krb5i, krb5p).
   * 
* * bool kerberos_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kerberosEnabled. */ @java.lang.Override public boolean getKerberosEnabled() { return kerberosEnabled_; } public static final int LDAP_ENABLED_FIELD_NUMBER = 24; private boolean ldapEnabled_ = false; /** * * *
   * Output only. Flag indicating if the volume is NFS LDAP enabled or not.
   * 
* * bool ldap_enabled = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The ldapEnabled. */ @java.lang.Override public boolean getLdapEnabled() { return ldapEnabled_; } public static final int ACTIVE_DIRECTORY_FIELD_NUMBER = 25; @SuppressWarnings("serial") private volatile java.lang.Object activeDirectory_ = ""; /** * * *
   * Output only. Specifies the ActiveDirectory name of a SMB volume.
   * 
* * * string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** * * *
   * Output only. Specifies the ActiveDirectory name of a SMB volume.
   * 
* * * string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 RESTORE_PARAMETERS_FIELD_NUMBER = 26; private com.google.cloud.netapp.v1.RestoreParameters restoreParameters_; /** * * *
   * Optional. Specifies the source of the volume to be created from.
   * 
* * * .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the restoreParameters field is set. */ @java.lang.Override public boolean hasRestoreParameters() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Optional. Specifies the source of the volume to be created from.
   * 
* * * .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The restoreParameters. */ @java.lang.Override public com.google.cloud.netapp.v1.RestoreParameters getRestoreParameters() { return restoreParameters_ == null ? com.google.cloud.netapp.v1.RestoreParameters.getDefaultInstance() : restoreParameters_; } /** * * *
   * Optional. Specifies the source of the volume to be created from.
   * 
* * * .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.netapp.v1.RestoreParametersOrBuilder getRestoreParametersOrBuilder() { return restoreParameters_ == null ? com.google.cloud.netapp.v1.RestoreParameters.getDefaultInstance() : restoreParameters_; } public static final int KMS_CONFIG_FIELD_NUMBER = 27; @SuppressWarnings("serial") private volatile java.lang.Object kmsConfig_ = ""; /** * * *
   * Output only. Specifies the KMS config to be used for volume encryption.
   * 
* * * string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** * * *
   * Output only. Specifies the KMS config to be used for volume encryption.
   * 
* * * string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 ENCRYPTION_TYPE_FIELD_NUMBER = 28; private int encryptionType_ = 0; /** * * *
   * Output only. Specified the current volume encryption key source.
   * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.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. Specified the current volume encryption key source.
   * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.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 HAS_REPLICATION_FIELD_NUMBER = 29; private boolean hasReplication_ = false; /** * * *
   * Output only. Indicates whether the volume is part of a replication
   * relationship.
   * 
* * bool has_replication = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The hasReplication. */ @java.lang.Override public boolean getHasReplication() { return hasReplication_; } public static final int BACKUP_CONFIG_FIELD_NUMBER = 30; private com.google.cloud.netapp.v1.BackupConfig backupConfig_; /** * * *
   * BackupConfig of the volume.
   * 
* * optional .google.cloud.netapp.v1.BackupConfig backup_config = 30; * * @return Whether the backupConfig field is set. */ @java.lang.Override public boolean hasBackupConfig() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * BackupConfig of the volume.
   * 
* * optional .google.cloud.netapp.v1.BackupConfig backup_config = 30; * * @return The backupConfig. */ @java.lang.Override public com.google.cloud.netapp.v1.BackupConfig getBackupConfig() { return backupConfig_ == null ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() : backupConfig_; } /** * * *
   * BackupConfig of the volume.
   * 
* * optional .google.cloud.netapp.v1.BackupConfig backup_config = 30; */ @java.lang.Override public com.google.cloud.netapp.v1.BackupConfigOrBuilder getBackupConfigOrBuilder() { return backupConfig_ == null ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() : backupConfig_; } public static final int RESTRICTED_ACTIONS_FIELD_NUMBER = 31; @SuppressWarnings("serial") private java.util.List restrictedActions_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.netapp.v1.RestrictedAction> restrictedActions_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.netapp.v1.RestrictedAction>() { public com.google.cloud.netapp.v1.RestrictedAction convert(java.lang.Integer from) { com.google.cloud.netapp.v1.RestrictedAction result = com.google.cloud.netapp.v1.RestrictedAction.forNumber(from); return result == null ? com.google.cloud.netapp.v1.RestrictedAction.UNRECOGNIZED : result; } }; /** * * *
   * Optional. List of actions that are restricted on this volume.
   * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the restrictedActions. */ @java.lang.Override public java.util.List getRestrictedActionsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.cloud.netapp.v1.RestrictedAction>( restrictedActions_, restrictedActions_converter_); } /** * * *
   * Optional. List of actions that are restricted on this volume.
   * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The count of restrictedActions. */ @java.lang.Override public int getRestrictedActionsCount() { return restrictedActions_.size(); } /** * * *
   * Optional. List of actions that are restricted on this volume.
   * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the element to return. * @return The restrictedActions at the given index. */ @java.lang.Override public com.google.cloud.netapp.v1.RestrictedAction getRestrictedActions(int index) { return restrictedActions_converter_.convert(restrictedActions_.get(index)); } /** * * *
   * Optional. List of actions that are restricted on this volume.
   * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the enum numeric values on the wire for restrictedActions. */ @java.lang.Override public java.util.List getRestrictedActionsValueList() { return restrictedActions_; } /** * * *
   * Optional. List of actions that are restricted on this volume.
   * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the value to return. * @return The enum numeric value on the wire of restrictedActions at the given index. */ @java.lang.Override public int getRestrictedActionsValue(int index) { return restrictedActions_.get(index); } private int restrictedActionsMemoizedSerializedSize; public static final int LARGE_CAPACITY_FIELD_NUMBER = 32; private boolean largeCapacity_ = false; /** * * *
   * Optional. Flag indicating if the volume will be a large capacity volume or
   * a regular volume.
   * 
* * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; * * @return The largeCapacity. */ @java.lang.Override public boolean getLargeCapacity() { return largeCapacity_; } public static final int MULTIPLE_ENDPOINTS_FIELD_NUMBER = 33; private boolean multipleEndpoints_ = false; /** * * *
   * Optional. Flag indicating if the volume will have an IP address per node
   * for volumes supporting multiple IP endpoints. Only the volume with
   * large_capacity will be allowed to have multiple endpoints.
   * 
* * bool multiple_endpoints = 33 [(.google.api.field_behavior) = OPTIONAL]; * * @return The multipleEndpoints. */ @java.lang.Override public boolean getMultipleEndpoints() { return multipleEndpoints_; } public static final int TIERING_POLICY_FIELD_NUMBER = 34; private com.google.cloud.netapp.v1.TieringPolicy tieringPolicy_; /** * * *
   * Tiering policy for the volume.
   * 
* * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; * * @return Whether the tieringPolicy field is set. */ @java.lang.Override public boolean hasTieringPolicy() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * Tiering policy for the volume.
   * 
* * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; * * @return The tieringPolicy. */ @java.lang.Override public com.google.cloud.netapp.v1.TieringPolicy getTieringPolicy() { return tieringPolicy_ == null ? com.google.cloud.netapp.v1.TieringPolicy.getDefaultInstance() : tieringPolicy_; } /** * * *
   * Tiering policy for the volume.
   * 
* * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; */ @java.lang.Override public com.google.cloud.netapp.v1.TieringPolicyOrBuilder getTieringPolicyOrBuilder() { return tieringPolicy_ == null ? com.google.cloud.netapp.v1.TieringPolicy.getDefaultInstance() : tieringPolicy_; } public static final int REPLICA_ZONE_FIELD_NUMBER = 36; @SuppressWarnings("serial") private volatile java.lang.Object replicaZone_ = ""; /** * * *
   * Output only. Specifies the replica zone for regional volume.
   * 
* * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
   * Output only. Specifies the replica zone for regional volume.
   * 
* * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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 = 37; @SuppressWarnings("serial") private volatile java.lang.Object zone_ = ""; /** * * *
   * Output only. Specifies the active zone for regional volume.
   * 
* * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
   * Output only. Specifies the active zone for regional volume.
   * 
* * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } public static final int COLD_TIER_SIZE_GIB_FIELD_NUMBER = 39; private long coldTierSizeGib_ = 0L; /** * * *
   * Output only. Size of the volume cold tier data in GiB.
   * 
* * int64 cold_tier_size_gib = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The coldTierSizeGib. */ @java.lang.Override public long getColdTierSizeGib() { return coldTierSizeGib_; } 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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (state_ != com.google.cloud.netapp.v1.Volume.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stateDetails_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shareName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, shareName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(psaRange_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, psaRange_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storagePool_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, storagePool_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); } if (serviceLevel_ != com.google.cloud.netapp.v1.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(9, serviceLevel_); } if (capacityGib_ != 0L) { output.writeInt64(10, capacityGib_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(11, getExportPolicy()); } if (getProtocolsList().size() > 0) { output.writeUInt32NoTag(98); output.writeUInt32NoTag(protocolsMemoizedSerializedSize); } for (int i = 0; i < protocols_.size(); i++) { output.writeEnumNoTag(protocols_.get(i)); } if (getSmbSettingsList().size() > 0) { output.writeUInt32NoTag(106); output.writeUInt32NoTag(smbSettingsMemoizedSerializedSize); } for (int i = 0; i < smbSettings_.size(); i++) { output.writeEnumNoTag(smbSettings_.get(i)); } for (int i = 0; i < mountOptions_.size(); i++) { output.writeMessage(14, mountOptions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unixPermissions_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, unixPermissions_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 16); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, description_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(18, getSnapshotPolicy()); } if (java.lang.Double.doubleToRawLongBits(snapReserve_) != 0) { output.writeDouble(19, snapReserve_); } if (snapshotDirectory_ != false) { output.writeBool(20, snapshotDirectory_); } if (usedGib_ != 0L) { output.writeInt64(21, usedGib_); } if (securityStyle_ != com.google.cloud.netapp.v1.SecurityStyle.SECURITY_STYLE_UNSPECIFIED.getNumber()) { output.writeEnum(22, securityStyle_); } if (kerberosEnabled_ != false) { output.writeBool(23, kerberosEnabled_); } if (ldapEnabled_ != false) { output.writeBool(24, ldapEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeDirectory_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, activeDirectory_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(26, getRestoreParameters()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsConfig_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, kmsConfig_); } if (encryptionType_ != com.google.cloud.netapp.v1.EncryptionType.ENCRYPTION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(28, encryptionType_); } if (hasReplication_ != false) { output.writeBool(29, hasReplication_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(30, getBackupConfig()); } if (getRestrictedActionsList().size() > 0) { output.writeUInt32NoTag(250); output.writeUInt32NoTag(restrictedActionsMemoizedSerializedSize); } for (int i = 0; i < restrictedActions_.size(); i++) { output.writeEnumNoTag(restrictedActions_.get(i)); } if (largeCapacity_ != false) { output.writeBool(32, largeCapacity_); } if (multipleEndpoints_ != false) { output.writeBool(33, multipleEndpoints_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(34, getTieringPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicaZone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 36, replicaZone_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 37, zone_); } if (coldTierSizeGib_ != 0L) { output.writeInt64(39, coldTierSizeGib_); } 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 (state_ != com.google.cloud.netapp.v1.Volume.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, stateDetails_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shareName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, shareName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(psaRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, psaRange_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storagePool_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, storagePool_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, network_); } if (serviceLevel_ != com.google.cloud.netapp.v1.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, serviceLevel_); } if (capacityGib_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, capacityGib_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExportPolicy()); } { int dataSize = 0; for (int i = 0; i < protocols_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(protocols_.get(i)); } size += dataSize; if (!getProtocolsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); } protocolsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < smbSettings_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(smbSettings_.get(i)); } size += dataSize; if (!getSmbSettingsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); } smbSettingsMemoizedSerializedSize = dataSize; } for (int i = 0; i < mountOptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, mountOptions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unixPermissions_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, unixPermissions_); } 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(16, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, description_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getSnapshotPolicy()); } if (java.lang.Double.doubleToRawLongBits(snapReserve_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(19, snapReserve_); } if (snapshotDirectory_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, snapshotDirectory_); } if (usedGib_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(21, usedGib_); } if (securityStyle_ != com.google.cloud.netapp.v1.SecurityStyle.SECURITY_STYLE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, securityStyle_); } if (kerberosEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, kerberosEnabled_); } if (ldapEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, ldapEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activeDirectory_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, activeDirectory_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getRestoreParameters()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsConfig_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, kmsConfig_); } if (encryptionType_ != com.google.cloud.netapp.v1.EncryptionType.ENCRYPTION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(28, encryptionType_); } if (hasReplication_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(29, hasReplication_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getBackupConfig()); } { int dataSize = 0; for (int i = 0; i < restrictedActions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(restrictedActions_.get(i)); } size += dataSize; if (!getRestrictedActionsList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); } restrictedActionsMemoizedSerializedSize = dataSize; } if (largeCapacity_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(32, largeCapacity_); } if (multipleEndpoints_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, multipleEndpoints_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, getTieringPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicaZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, replicaZone_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, zone_); } if (coldTierSizeGib_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(39, coldTierSizeGib_); } 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.Volume)) { return super.equals(obj); } com.google.cloud.netapp.v1.Volume other = (com.google.cloud.netapp.v1.Volume) obj; if (!getName().equals(other.getName())) 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 (!getShareName().equals(other.getShareName())) return false; if (!getPsaRange().equals(other.getPsaRange())) return false; if (!getStoragePool().equals(other.getStoragePool())) return false; if (!getNetwork().equals(other.getNetwork())) return false; if (serviceLevel_ != other.serviceLevel_) return false; if (getCapacityGib() != other.getCapacityGib()) return false; if (hasExportPolicy() != other.hasExportPolicy()) return false; if (hasExportPolicy()) { if (!getExportPolicy().equals(other.getExportPolicy())) return false; } if (!protocols_.equals(other.protocols_)) return false; if (!smbSettings_.equals(other.smbSettings_)) return false; if (!getMountOptionsList().equals(other.getMountOptionsList())) return false; if (!getUnixPermissions().equals(other.getUnixPermissions())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getDescription().equals(other.getDescription())) return false; if (hasSnapshotPolicy() != other.hasSnapshotPolicy()) return false; if (hasSnapshotPolicy()) { if (!getSnapshotPolicy().equals(other.getSnapshotPolicy())) return false; } if (java.lang.Double.doubleToLongBits(getSnapReserve()) != java.lang.Double.doubleToLongBits(other.getSnapReserve())) return false; if (getSnapshotDirectory() != other.getSnapshotDirectory()) return false; if (getUsedGib() != other.getUsedGib()) return false; if (securityStyle_ != other.securityStyle_) return false; if (getKerberosEnabled() != other.getKerberosEnabled()) return false; if (getLdapEnabled() != other.getLdapEnabled()) return false; if (!getActiveDirectory().equals(other.getActiveDirectory())) return false; if (hasRestoreParameters() != other.hasRestoreParameters()) return false; if (hasRestoreParameters()) { if (!getRestoreParameters().equals(other.getRestoreParameters())) return false; } if (!getKmsConfig().equals(other.getKmsConfig())) return false; if (encryptionType_ != other.encryptionType_) return false; if (getHasReplication() != other.getHasReplication()) return false; if (hasBackupConfig() != other.hasBackupConfig()) return false; if (hasBackupConfig()) { if (!getBackupConfig().equals(other.getBackupConfig())) return false; } if (!restrictedActions_.equals(other.restrictedActions_)) return false; if (getLargeCapacity() != other.getLargeCapacity()) return false; if (getMultipleEndpoints() != other.getMultipleEndpoints()) return false; if (hasTieringPolicy() != other.hasTieringPolicy()) return false; if (hasTieringPolicy()) { if (!getTieringPolicy().equals(other.getTieringPolicy())) return false; } if (!getReplicaZone().equals(other.getReplicaZone())) return false; if (!getZone().equals(other.getZone())) return false; if (getColdTierSizeGib() != other.getColdTierSizeGib()) 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) + 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) + SHARE_NAME_FIELD_NUMBER; hash = (53 * hash) + getShareName().hashCode(); hash = (37 * hash) + PSA_RANGE_FIELD_NUMBER; hash = (53 * hash) + getPsaRange().hashCode(); hash = (37 * hash) + STORAGE_POOL_FIELD_NUMBER; hash = (53 * hash) + getStoragePool().hashCode(); hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().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()); if (hasExportPolicy()) { hash = (37 * hash) + EXPORT_POLICY_FIELD_NUMBER; hash = (53 * hash) + getExportPolicy().hashCode(); } if (getProtocolsCount() > 0) { hash = (37 * hash) + PROTOCOLS_FIELD_NUMBER; hash = (53 * hash) + protocols_.hashCode(); } if (getSmbSettingsCount() > 0) { hash = (37 * hash) + SMB_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + smbSettings_.hashCode(); } if (getMountOptionsCount() > 0) { hash = (37 * hash) + MOUNT_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getMountOptionsList().hashCode(); } hash = (37 * hash) + UNIX_PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + getUnixPermissions().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasSnapshotPolicy()) { hash = (37 * hash) + SNAPSHOT_POLICY_FIELD_NUMBER; hash = (53 * hash) + getSnapshotPolicy().hashCode(); } hash = (37 * hash) + SNAP_RESERVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSnapReserve())); hash = (37 * hash) + SNAPSHOT_DIRECTORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSnapshotDirectory()); hash = (37 * hash) + USED_GIB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUsedGib()); hash = (37 * hash) + SECURITY_STYLE_FIELD_NUMBER; hash = (53 * hash) + securityStyle_; hash = (37 * hash) + KERBEROS_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKerberosEnabled()); hash = (37 * hash) + LDAP_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLdapEnabled()); hash = (37 * hash) + ACTIVE_DIRECTORY_FIELD_NUMBER; hash = (53 * hash) + getActiveDirectory().hashCode(); if (hasRestoreParameters()) { hash = (37 * hash) + RESTORE_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getRestoreParameters().hashCode(); } hash = (37 * hash) + KMS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getKmsConfig().hashCode(); hash = (37 * hash) + ENCRYPTION_TYPE_FIELD_NUMBER; hash = (53 * hash) + encryptionType_; hash = (37 * hash) + HAS_REPLICATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasReplication()); if (hasBackupConfig()) { hash = (37 * hash) + BACKUP_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getBackupConfig().hashCode(); } if (getRestrictedActionsCount() > 0) { hash = (37 * hash) + RESTRICTED_ACTIONS_FIELD_NUMBER; hash = (53 * hash) + restrictedActions_.hashCode(); } hash = (37 * hash) + LARGE_CAPACITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLargeCapacity()); hash = (37 * hash) + MULTIPLE_ENDPOINTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultipleEndpoints()); if (hasTieringPolicy()) { hash = (37 * hash) + TIERING_POLICY_FIELD_NUMBER; hash = (53 * hash) + getTieringPolicy().hashCode(); } hash = (37 * hash) + REPLICA_ZONE_FIELD_NUMBER; hash = (53 * hash) + getReplicaZone().hashCode(); hash = (37 * hash) + ZONE_FIELD_NUMBER; hash = (53 * hash) + getZone().hashCode(); hash = (37 * hash) + COLD_TIER_SIZE_GIB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getColdTierSizeGib()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.netapp.v1.Volume parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.Volume 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.Volume parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.Volume 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.Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.Volume 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.Volume parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.Volume 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.Volume parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.Volume 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.Volume 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.Volume 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.Volume 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; } /** * * *
   * Volume provides a filesystem that you can mount.
   * 
* * Protobuf type {@code google.cloud.netapp.v1.Volume} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.Volume) com.google.cloud.netapp.v1.VolumeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.netapp.v1.VolumeProto .internal_static_google_cloud_netapp_v1_Volume_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 16: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 16: 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.VolumeProto .internal_static_google_cloud_netapp_v1_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.netapp.v1.Volume.class, com.google.cloud.netapp.v1.Volume.Builder.class); } // Construct using com.google.cloud.netapp.v1.Volume.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(); getExportPolicyFieldBuilder(); getMountOptionsFieldBuilder(); getSnapshotPolicyFieldBuilder(); getRestoreParametersFieldBuilder(); getBackupConfigFieldBuilder(); getTieringPolicyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bitField1_ = 0; name_ = ""; state_ = 0; stateDetails_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } shareName_ = ""; psaRange_ = ""; storagePool_ = ""; network_ = ""; serviceLevel_ = 0; capacityGib_ = 0L; exportPolicy_ = null; if (exportPolicyBuilder_ != null) { exportPolicyBuilder_.dispose(); exportPolicyBuilder_ = null; } protocols_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); smbSettings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); if (mountOptionsBuilder_ == null) { mountOptions_ = java.util.Collections.emptyList(); } else { mountOptions_ = null; mountOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); unixPermissions_ = ""; internalGetMutableLabels().clear(); description_ = ""; snapshotPolicy_ = null; if (snapshotPolicyBuilder_ != null) { snapshotPolicyBuilder_.dispose(); snapshotPolicyBuilder_ = null; } snapReserve_ = 0D; snapshotDirectory_ = false; usedGib_ = 0L; securityStyle_ = 0; kerberosEnabled_ = false; ldapEnabled_ = false; activeDirectory_ = ""; restoreParameters_ = null; if (restoreParametersBuilder_ != null) { restoreParametersBuilder_.dispose(); restoreParametersBuilder_ = null; } kmsConfig_ = ""; encryptionType_ = 0; hasReplication_ = false; backupConfig_ = null; if (backupConfigBuilder_ != null) { backupConfigBuilder_.dispose(); backupConfigBuilder_ = null; } restrictedActions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x40000000); largeCapacity_ = false; multipleEndpoints_ = false; tieringPolicy_ = null; if (tieringPolicyBuilder_ != null) { tieringPolicyBuilder_.dispose(); tieringPolicyBuilder_ = null; } replicaZone_ = ""; zone_ = ""; coldTierSizeGib_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.netapp.v1.VolumeProto .internal_static_google_cloud_netapp_v1_Volume_descriptor; } @java.lang.Override public com.google.cloud.netapp.v1.Volume getDefaultInstanceForType() { return com.google.cloud.netapp.v1.Volume.getDefaultInstance(); } @java.lang.Override public com.google.cloud.netapp.v1.Volume build() { com.google.cloud.netapp.v1.Volume result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.netapp.v1.Volume buildPartial() { com.google.cloud.netapp.v1.Volume result = new com.google.cloud.netapp.v1.Volume(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } if (bitField1_ != 0) { buildPartial1(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.cloud.netapp.v1.Volume result) { if (((bitField0_ & 0x00000800) != 0)) { protocols_ = java.util.Collections.unmodifiableList(protocols_); bitField0_ = (bitField0_ & ~0x00000800); } result.protocols_ = protocols_; if (((bitField0_ & 0x00001000) != 0)) { smbSettings_ = java.util.Collections.unmodifiableList(smbSettings_); bitField0_ = (bitField0_ & ~0x00001000); } result.smbSettings_ = smbSettings_; if (mountOptionsBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0)) { mountOptions_ = java.util.Collections.unmodifiableList(mountOptions_); bitField0_ = (bitField0_ & ~0x00002000); } result.mountOptions_ = mountOptions_; } else { result.mountOptions_ = mountOptionsBuilder_.build(); } if (((bitField0_ & 0x40000000) != 0)) { restrictedActions_ = java.util.Collections.unmodifiableList(restrictedActions_); bitField0_ = (bitField0_ & ~0x40000000); } result.restrictedActions_ = restrictedActions_; } private void buildPartial0(com.google.cloud.netapp.v1.Volume result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.stateDetails_ = stateDetails_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.shareName_ = shareName_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.psaRange_ = psaRange_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.storagePool_ = storagePool_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.network_ = network_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.serviceLevel_ = serviceLevel_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.capacityGib_ = capacityGib_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.exportPolicy_ = exportPolicyBuilder_ == null ? exportPolicy_ : exportPolicyBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00004000) != 0)) { result.unixPermissions_ = unixPermissions_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00010000) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.snapshotPolicy_ = snapshotPolicyBuilder_ == null ? snapshotPolicy_ : snapshotPolicyBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00040000) != 0)) { result.snapReserve_ = snapReserve_; } if (((from_bitField0_ & 0x00080000) != 0)) { result.snapshotDirectory_ = snapshotDirectory_; } if (((from_bitField0_ & 0x00100000) != 0)) { result.usedGib_ = usedGib_; } if (((from_bitField0_ & 0x00200000) != 0)) { result.securityStyle_ = securityStyle_; } if (((from_bitField0_ & 0x00400000) != 0)) { result.kerberosEnabled_ = kerberosEnabled_; } if (((from_bitField0_ & 0x00800000) != 0)) { result.ldapEnabled_ = ldapEnabled_; } if (((from_bitField0_ & 0x01000000) != 0)) { result.activeDirectory_ = activeDirectory_; } if (((from_bitField0_ & 0x02000000) != 0)) { result.restoreParameters_ = restoreParametersBuilder_ == null ? restoreParameters_ : restoreParametersBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x04000000) != 0)) { result.kmsConfig_ = kmsConfig_; } if (((from_bitField0_ & 0x08000000) != 0)) { result.encryptionType_ = encryptionType_; } if (((from_bitField0_ & 0x10000000) != 0)) { result.hasReplication_ = hasReplication_; } if (((from_bitField0_ & 0x20000000) != 0)) { result.backupConfig_ = backupConfigBuilder_ == null ? backupConfig_ : backupConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x80000000) != 0)) { result.largeCapacity_ = largeCapacity_; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.google.cloud.netapp.v1.Volume result) { int from_bitField1_ = bitField1_; if (((from_bitField1_ & 0x00000001) != 0)) { result.multipleEndpoints_ = multipleEndpoints_; } int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000002) != 0)) { result.tieringPolicy_ = tieringPolicyBuilder_ == null ? tieringPolicy_ : tieringPolicyBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField1_ & 0x00000004) != 0)) { result.replicaZone_ = replicaZone_; } if (((from_bitField1_ & 0x00000008) != 0)) { result.zone_ = zone_; } if (((from_bitField1_ & 0x00000010) != 0)) { result.coldTierSizeGib_ = coldTierSizeGib_; } 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.Volume) { return mergeFrom((com.google.cloud.netapp.v1.Volume) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.netapp.v1.Volume other) { if (other == com.google.cloud.netapp.v1.Volume.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (!other.getStateDetails().isEmpty()) { stateDetails_ = other.stateDetails_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (!other.getShareName().isEmpty()) { shareName_ = other.shareName_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getPsaRange().isEmpty()) { psaRange_ = other.psaRange_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getStoragePool().isEmpty()) { storagePool_ = other.storagePool_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getNetwork().isEmpty()) { network_ = other.network_; bitField0_ |= 0x00000080; onChanged(); } if (other.serviceLevel_ != 0) { setServiceLevelValue(other.getServiceLevelValue()); } if (other.getCapacityGib() != 0L) { setCapacityGib(other.getCapacityGib()); } if (other.hasExportPolicy()) { mergeExportPolicy(other.getExportPolicy()); } if (!other.protocols_.isEmpty()) { if (protocols_.isEmpty()) { protocols_ = other.protocols_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureProtocolsIsMutable(); protocols_.addAll(other.protocols_); } onChanged(); } if (!other.smbSettings_.isEmpty()) { if (smbSettings_.isEmpty()) { smbSettings_ = other.smbSettings_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureSmbSettingsIsMutable(); smbSettings_.addAll(other.smbSettings_); } onChanged(); } if (mountOptionsBuilder_ == null) { if (!other.mountOptions_.isEmpty()) { if (mountOptions_.isEmpty()) { mountOptions_ = other.mountOptions_; bitField0_ = (bitField0_ & ~0x00002000); } else { ensureMountOptionsIsMutable(); mountOptions_.addAll(other.mountOptions_); } onChanged(); } } else { if (!other.mountOptions_.isEmpty()) { if (mountOptionsBuilder_.isEmpty()) { mountOptionsBuilder_.dispose(); mountOptionsBuilder_ = null; mountOptions_ = other.mountOptions_; bitField0_ = (bitField0_ & ~0x00002000); mountOptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMountOptionsFieldBuilder() : null; } else { mountOptionsBuilder_.addAllMessages(other.mountOptions_); } } } if (!other.getUnixPermissions().isEmpty()) { unixPermissions_ = other.unixPermissions_; bitField0_ |= 0x00004000; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00008000; if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00010000; onChanged(); } if (other.hasSnapshotPolicy()) { mergeSnapshotPolicy(other.getSnapshotPolicy()); } if (other.getSnapReserve() != 0D) { setSnapReserve(other.getSnapReserve()); } if (other.getSnapshotDirectory() != false) { setSnapshotDirectory(other.getSnapshotDirectory()); } if (other.getUsedGib() != 0L) { setUsedGib(other.getUsedGib()); } if (other.securityStyle_ != 0) { setSecurityStyleValue(other.getSecurityStyleValue()); } if (other.getKerberosEnabled() != false) { setKerberosEnabled(other.getKerberosEnabled()); } if (other.getLdapEnabled() != false) { setLdapEnabled(other.getLdapEnabled()); } if (!other.getActiveDirectory().isEmpty()) { activeDirectory_ = other.activeDirectory_; bitField0_ |= 0x01000000; onChanged(); } if (other.hasRestoreParameters()) { mergeRestoreParameters(other.getRestoreParameters()); } if (!other.getKmsConfig().isEmpty()) { kmsConfig_ = other.kmsConfig_; bitField0_ |= 0x04000000; onChanged(); } if (other.encryptionType_ != 0) { setEncryptionTypeValue(other.getEncryptionTypeValue()); } if (other.getHasReplication() != false) { setHasReplication(other.getHasReplication()); } if (other.hasBackupConfig()) { mergeBackupConfig(other.getBackupConfig()); } if (!other.restrictedActions_.isEmpty()) { if (restrictedActions_.isEmpty()) { restrictedActions_ = other.restrictedActions_; bitField0_ = (bitField0_ & ~0x40000000); } else { ensureRestrictedActionsIsMutable(); restrictedActions_.addAll(other.restrictedActions_); } onChanged(); } if (other.getLargeCapacity() != false) { setLargeCapacity(other.getLargeCapacity()); } if (other.getMultipleEndpoints() != false) { setMultipleEndpoints(other.getMultipleEndpoints()); } if (other.hasTieringPolicy()) { mergeTieringPolicy(other.getTieringPolicy()); } if (!other.getReplicaZone().isEmpty()) { replicaZone_ = other.replicaZone_; bitField1_ |= 0x00000004; onChanged(); } if (!other.getZone().isEmpty()) { zone_ = other.zone_; bitField1_ |= 0x00000008; onChanged(); } if (other.getColdTierSizeGib() != 0L) { setColdTierSizeGib(other.getColdTierSizeGib()); } 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: { state_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { stateDetails_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { shareName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { psaRange_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { storagePool_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { network_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 72: { serviceLevel_ = input.readEnum(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { capacityGib_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 80 case 90: { input.readMessage(getExportPolicyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 90 case 96: { int tmpRaw = input.readEnum(); ensureProtocolsIsMutable(); protocols_.add(tmpRaw); break; } // case 96 case 98: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureProtocolsIsMutable(); protocols_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 98 case 104: { int tmpRaw = input.readEnum(); ensureSmbSettingsIsMutable(); smbSettings_.add(tmpRaw); break; } // case 104 case 106: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureSmbSettingsIsMutable(); smbSettings_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 106 case 114: { com.google.cloud.netapp.v1.MountOption m = input.readMessage( com.google.cloud.netapp.v1.MountOption.parser(), extensionRegistry); if (mountOptionsBuilder_ == null) { ensureMountOptionsIsMutable(); mountOptions_.add(m); } else { mountOptionsBuilder_.addMessage(m); } break; } // case 114 case 122: { unixPermissions_ = input.readStringRequireUtf8(); bitField0_ |= 0x00004000; break; } // case 122 case 130: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00008000; break; } // case 130 case 138: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00010000; break; } // case 138 case 146: { input.readMessage(getSnapshotPolicyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00020000; break; } // case 146 case 153: { snapReserve_ = input.readDouble(); bitField0_ |= 0x00040000; break; } // case 153 case 160: { snapshotDirectory_ = input.readBool(); bitField0_ |= 0x00080000; break; } // case 160 case 168: { usedGib_ = input.readInt64(); bitField0_ |= 0x00100000; break; } // case 168 case 176: { securityStyle_ = input.readEnum(); bitField0_ |= 0x00200000; break; } // case 176 case 184: { kerberosEnabled_ = input.readBool(); bitField0_ |= 0x00400000; break; } // case 184 case 192: { ldapEnabled_ = input.readBool(); bitField0_ |= 0x00800000; break; } // case 192 case 202: { activeDirectory_ = input.readStringRequireUtf8(); bitField0_ |= 0x01000000; break; } // case 202 case 210: { input.readMessage( getRestoreParametersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x02000000; break; } // case 210 case 218: { kmsConfig_ = input.readStringRequireUtf8(); bitField0_ |= 0x04000000; break; } // case 218 case 224: { encryptionType_ = input.readEnum(); bitField0_ |= 0x08000000; break; } // case 224 case 232: { hasReplication_ = input.readBool(); bitField0_ |= 0x10000000; break; } // case 232 case 242: { input.readMessage(getBackupConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x20000000; break; } // case 242 case 248: { int tmpRaw = input.readEnum(); ensureRestrictedActionsIsMutable(); restrictedActions_.add(tmpRaw); break; } // case 248 case 250: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureRestrictedActionsIsMutable(); restrictedActions_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 250 case 256: { largeCapacity_ = input.readBool(); bitField0_ |= 0x80000000; break; } // case 256 case 264: { multipleEndpoints_ = input.readBool(); bitField1_ |= 0x00000001; break; } // case 264 case 274: { input.readMessage(getTieringPolicyFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00000002; break; } // case 274 case 290: { replicaZone_ = input.readStringRequireUtf8(); bitField1_ |= 0x00000004; break; } // case 290 case 298: { zone_ = input.readStringRequireUtf8(); bitField1_ |= 0x00000008; break; } // case 298 case 312: { coldTierSizeGib_ = input.readInt64(); bitField1_ |= 0x00000010; break; } // case 312 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 int bitField1_; private java.lang.Object name_ = ""; /** * * *
     * Identifier. Name of the volume
     * 
* * 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 volume
     * 
* * 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 volume
     * 
* * 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 volume
     * 
* * 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 volume
     * 
* * 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 state_ = 0; /** * * *
     * Output only. State of the volume
     * 
* * * .google.cloud.netapp.v1.Volume.State state = 2 [(.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 volume
     * 
* * * .google.cloud.netapp.v1.Volume.State state = 2 [(.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_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. State of the volume
     * 
* * * .google.cloud.netapp.v1.Volume.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.netapp.v1.Volume.State getState() { com.google.cloud.netapp.v1.Volume.State result = com.google.cloud.netapp.v1.Volume.State.forNumber(state_); return result == null ? com.google.cloud.netapp.v1.Volume.State.UNRECOGNIZED : result; } /** * * *
     * Output only. State of the volume
     * 
* * * .google.cloud.netapp.v1.Volume.State state = 2 [(.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.Volume.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; state_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. State of the volume
     * 
* * * .google.cloud.netapp.v1.Volume.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000002); state_ = 0; onChanged(); return this; } private java.lang.Object stateDetails_ = ""; /** * * *
     * Output only. State details of the volume
     * 
* * string state_details = 3 [(.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 volume
     * 
* * string state_details = 3 [(.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 volume
     * 
* * string state_details = 3 [(.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_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. State details of the volume
     * 
* * string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearStateDetails() { stateDetails_ = getDefaultInstance().getStateDetails(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Output only. State details of the volume
     * 
* * string state_details = 3 [(.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_ |= 0x00000004; 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 volume
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Output only. Create time of the volume
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.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 volume
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. Create time of the volume
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. Create time of the volume
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Output only. Create time of the volume
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000008); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Create time of the volume
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. Create time of the volume
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.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 volume
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.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 shareName_ = ""; /** * * *
     * Required. Share name of the volume
     * 
* * string share_name = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The shareName. */ public java.lang.String getShareName() { java.lang.Object ref = shareName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. Share name of the volume
     * 
* * string share_name = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for shareName. */ public com.google.protobuf.ByteString getShareNameBytes() { java.lang.Object ref = shareName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. Share name of the volume
     * 
* * string share_name = 5 [(.google.api.field_behavior) = REQUIRED]; * * @param value The shareName to set. * @return This builder for chaining. */ public Builder setShareName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } shareName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Required. Share name of the volume
     * 
* * string share_name = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearShareName() { shareName_ = getDefaultInstance().getShareName(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * Required. Share name of the volume
     * 
* * string share_name = 5 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for shareName to set. * @return This builder for chaining. */ public Builder setShareNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shareName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object psaRange_ = ""; /** * * *
     * Output only. This field is not implemented. The values provided in this
     * field are ignored.
     * 
* * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
     * Output only. This field is not implemented. The values provided in this
     * field are ignored.
     * 
* * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
     * Output only. This field is not implemented. The values provided in this
     * field are ignored.
     * 
* * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Output only. This field is not implemented. The values provided in this
     * field are ignored.
     * 
* * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearPsaRange() { psaRange_ = getDefaultInstance().getPsaRange(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * Output only. This field is not implemented. The values provided in this
     * field are ignored.
     * 
* * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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_ |= 0x00000020; onChanged(); return this; } private java.lang.Object storagePool_ = ""; /** * * *
     * Required. StoragePool name of the volume
     * 
* * * string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The storagePool. */ public java.lang.String getStoragePool() { java.lang.Object ref = storagePool_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storagePool_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. StoragePool name of the volume
     * 
* * * string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for storagePool. */ public com.google.protobuf.ByteString getStoragePoolBytes() { java.lang.Object ref = storagePool_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storagePool_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. StoragePool name of the volume
     * 
* * * string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The storagePool to set. * @return This builder for chaining. */ public Builder setStoragePool(java.lang.String value) { if (value == null) { throw new NullPointerException(); } storagePool_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Required. StoragePool name of the volume
     * 
* * * string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearStoragePool() { storagePool_ = getDefaultInstance().getStoragePool(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Required. StoragePool name of the volume
     * 
* * * string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for storagePool to set. * @return This builder for chaining. */ public Builder setStoragePoolBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storagePool_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object network_ = ""; /** * * *
     * Output only. VPC Network name.
     * Format: projects/{project}/global/networks/{network}
     * 
* * * string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** * * *
     * Output only. VPC Network name.
     * Format: projects/{project}/global/networks/{network}
     * 
* * * string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** * * *
     * Output only. VPC Network name.
     * Format: projects/{project}/global/networks/{network}
     * 
* * * string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. VPC Network name.
     * Format: projects/{project}/global/networks/{network}
     * 
* * * string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearNetwork() { network_ = getDefaultInstance().getNetwork(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * * *
     * Output only. VPC Network name.
     * Format: projects/{project}/global/networks/{network}
     * 
* * * string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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_ |= 0x00000080; onChanged(); return this; } private int serviceLevel_ = 0; /** * * *
     * Output only. Service level of the volume
     * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for serviceLevel. */ @java.lang.Override public int getServiceLevelValue() { return serviceLevel_; } /** * * *
     * Output only. Service level of the volume
     * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @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_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Output only. Service level of the volume
     * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @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; } /** * * *
     * Output only. Service level of the volume
     * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @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_ |= 0x00000100; serviceLevel_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. Service level of the volume
     * 
* * * .google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearServiceLevel() { bitField0_ = (bitField0_ & ~0x00000100); serviceLevel_ = 0; onChanged(); return this; } private long capacityGib_; /** * * *
     * Required. Capacity in GIB of the volume
     * 
* * int64 capacity_gib = 10 [(.google.api.field_behavior) = REQUIRED]; * * @return The capacityGib. */ @java.lang.Override public long getCapacityGib() { return capacityGib_; } /** * * *
     * Required. Capacity in GIB of the volume
     * 
* * int64 capacity_gib = 10 [(.google.api.field_behavior) = REQUIRED]; * * @param value The capacityGib to set. * @return This builder for chaining. */ public Builder setCapacityGib(long value) { capacityGib_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Required. Capacity in GIB of the volume
     * 
* * int64 capacity_gib = 10 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearCapacityGib() { bitField0_ = (bitField0_ & ~0x00000200); capacityGib_ = 0L; onChanged(); return this; } private com.google.cloud.netapp.v1.ExportPolicy exportPolicy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.ExportPolicy, com.google.cloud.netapp.v1.ExportPolicy.Builder, com.google.cloud.netapp.v1.ExportPolicyOrBuilder> exportPolicyBuilder_; /** * * *
     * Optional. Export policy of the volume
     * 
* * * .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the exportPolicy field is set. */ public boolean hasExportPolicy() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
     * Optional. Export policy of the volume
     * 
* * * .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The exportPolicy. */ public com.google.cloud.netapp.v1.ExportPolicy getExportPolicy() { if (exportPolicyBuilder_ == null) { return exportPolicy_ == null ? com.google.cloud.netapp.v1.ExportPolicy.getDefaultInstance() : exportPolicy_; } else { return exportPolicyBuilder_.getMessage(); } } /** * * *
     * Optional. Export policy of the volume
     * 
* * * .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setExportPolicy(com.google.cloud.netapp.v1.ExportPolicy value) { if (exportPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exportPolicy_ = value; } else { exportPolicyBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Optional. Export policy of the volume
     * 
* * * .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setExportPolicy( com.google.cloud.netapp.v1.ExportPolicy.Builder builderForValue) { if (exportPolicyBuilder_ == null) { exportPolicy_ = builderForValue.build(); } else { exportPolicyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Optional. Export policy of the volume
     * 
* * * .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeExportPolicy(com.google.cloud.netapp.v1.ExportPolicy value) { if (exportPolicyBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && exportPolicy_ != null && exportPolicy_ != com.google.cloud.netapp.v1.ExportPolicy.getDefaultInstance()) { getExportPolicyBuilder().mergeFrom(value); } else { exportPolicy_ = value; } } else { exportPolicyBuilder_.mergeFrom(value); } if (exportPolicy_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** * * *
     * Optional. Export policy of the volume
     * 
* * * .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearExportPolicy() { bitField0_ = (bitField0_ & ~0x00000400); exportPolicy_ = null; if (exportPolicyBuilder_ != null) { exportPolicyBuilder_.dispose(); exportPolicyBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Export policy of the volume
     * 
* * * .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.netapp.v1.ExportPolicy.Builder getExportPolicyBuilder() { bitField0_ |= 0x00000400; onChanged(); return getExportPolicyFieldBuilder().getBuilder(); } /** * * *
     * Optional. Export policy of the volume
     * 
* * * .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.netapp.v1.ExportPolicyOrBuilder getExportPolicyOrBuilder() { if (exportPolicyBuilder_ != null) { return exportPolicyBuilder_.getMessageOrBuilder(); } else { return exportPolicy_ == null ? com.google.cloud.netapp.v1.ExportPolicy.getDefaultInstance() : exportPolicy_; } } /** * * *
     * Optional. Export policy of the volume
     * 
* * * .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.ExportPolicy, com.google.cloud.netapp.v1.ExportPolicy.Builder, com.google.cloud.netapp.v1.ExportPolicyOrBuilder> getExportPolicyFieldBuilder() { if (exportPolicyBuilder_ == null) { exportPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.ExportPolicy, com.google.cloud.netapp.v1.ExportPolicy.Builder, com.google.cloud.netapp.v1.ExportPolicyOrBuilder>( getExportPolicy(), getParentForChildren(), isClean()); exportPolicy_ = null; } return exportPolicyBuilder_; } private java.util.List protocols_ = java.util.Collections.emptyList(); private void ensureProtocolsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { protocols_ = new java.util.ArrayList(protocols_); bitField0_ |= 0x00000800; } } /** * * *
     * Required. Protocols required for the volume
     * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the protocols. */ public java.util.List getProtocolsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.cloud.netapp.v1.Protocols>( protocols_, protocols_converter_); } /** * * *
     * Required. Protocols required for the volume
     * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @return The count of protocols. */ public int getProtocolsCount() { return protocols_.size(); } /** * * *
     * Required. Protocols required for the volume
     * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the element to return. * @return The protocols at the given index. */ public com.google.cloud.netapp.v1.Protocols getProtocols(int index) { return protocols_converter_.convert(protocols_.get(index)); } /** * * *
     * Required. Protocols required for the volume
     * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index to set the value at. * @param value The protocols to set. * @return This builder for chaining. */ public Builder setProtocols(int index, com.google.cloud.netapp.v1.Protocols value) { if (value == null) { throw new NullPointerException(); } ensureProtocolsIsMutable(); protocols_.set(index, value.getNumber()); onChanged(); return this; } /** * * *
     * Required. Protocols required for the volume
     * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The protocols to add. * @return This builder for chaining. */ public Builder addProtocols(com.google.cloud.netapp.v1.Protocols value) { if (value == null) { throw new NullPointerException(); } ensureProtocolsIsMutable(); protocols_.add(value.getNumber()); onChanged(); return this; } /** * * *
     * Required. Protocols required for the volume
     * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @param values The protocols to add. * @return This builder for chaining. */ public Builder addAllProtocols( java.lang.Iterable values) { ensureProtocolsIsMutable(); for (com.google.cloud.netapp.v1.Protocols value : values) { protocols_.add(value.getNumber()); } onChanged(); return this; } /** * * *
     * Required. Protocols required for the volume
     * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. */ public Builder clearProtocols() { protocols_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * * *
     * Required. Protocols required for the volume
     * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @return A list containing the enum numeric values on the wire for protocols. */ public java.util.List getProtocolsValueList() { return java.util.Collections.unmodifiableList(protocols_); } /** * * *
     * Required. Protocols required for the volume
     * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index of the value to return. * @return The enum numeric value on the wire of protocols at the given index. */ public int getProtocolsValue(int index) { return protocols_.get(index); } /** * * *
     * Required. Protocols required for the volume
     * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @param index The index to set the value at. * @param value The enum numeric value on the wire for protocols to set. * @return This builder for chaining. */ public Builder setProtocolsValue(int index, int value) { ensureProtocolsIsMutable(); protocols_.set(index, value); onChanged(); return this; } /** * * *
     * Required. Protocols required for the volume
     * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for protocols to add. * @return This builder for chaining. */ public Builder addProtocolsValue(int value) { ensureProtocolsIsMutable(); protocols_.add(value); onChanged(); return this; } /** * * *
     * Required. Protocols required for the volume
     * 
* * * repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; * * * @param values The enum numeric values on the wire for protocols to add. * @return This builder for chaining. */ public Builder addAllProtocolsValue(java.lang.Iterable values) { ensureProtocolsIsMutable(); for (int value : values) { protocols_.add(value); } onChanged(); return this; } private java.util.List smbSettings_ = java.util.Collections.emptyList(); private void ensureSmbSettingsIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { smbSettings_ = new java.util.ArrayList(smbSettings_); bitField0_ |= 0x00001000; } } /** * * *
     * Optional. SMB share settings for the volume.
     * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the smbSettings. */ public java.util.List getSmbSettingsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.cloud.netapp.v1.SMBSettings>( smbSettings_, smbSettings_converter_); } /** * * *
     * Optional. SMB share settings for the volume.
     * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The count of smbSettings. */ public int getSmbSettingsCount() { return smbSettings_.size(); } /** * * *
     * Optional. SMB share settings for the volume.
     * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the element to return. * @return The smbSettings at the given index. */ public com.google.cloud.netapp.v1.SMBSettings getSmbSettings(int index) { return smbSettings_converter_.convert(smbSettings_.get(index)); } /** * * *
     * Optional. SMB share settings for the volume.
     * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index to set the value at. * @param value The smbSettings to set. * @return This builder for chaining. */ public Builder setSmbSettings(int index, com.google.cloud.netapp.v1.SMBSettings value) { if (value == null) { throw new NullPointerException(); } ensureSmbSettingsIsMutable(); smbSettings_.set(index, value.getNumber()); onChanged(); return this; } /** * * *
     * Optional. SMB share settings for the volume.
     * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The smbSettings to add. * @return This builder for chaining. */ public Builder addSmbSettings(com.google.cloud.netapp.v1.SMBSettings value) { if (value == null) { throw new NullPointerException(); } ensureSmbSettingsIsMutable(); smbSettings_.add(value.getNumber()); onChanged(); return this; } /** * * *
     * Optional. SMB share settings for the volume.
     * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param values The smbSettings to add. * @return This builder for chaining. */ public Builder addAllSmbSettings( java.lang.Iterable values) { ensureSmbSettingsIsMutable(); for (com.google.cloud.netapp.v1.SMBSettings value : values) { smbSettings_.add(value.getNumber()); } onChanged(); return this; } /** * * *
     * Optional. SMB share settings for the volume.
     * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearSmbSettings() { smbSettings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * * *
     * Optional. SMB share settings for the volume.
     * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the enum numeric values on the wire for smbSettings. */ public java.util.List getSmbSettingsValueList() { return java.util.Collections.unmodifiableList(smbSettings_); } /** * * *
     * Optional. SMB share settings for the volume.
     * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the value to return. * @return The enum numeric value on the wire of smbSettings at the given index. */ public int getSmbSettingsValue(int index) { return smbSettings_.get(index); } /** * * *
     * Optional. SMB share settings for the volume.
     * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index to set the value at. * @param value The enum numeric value on the wire for smbSettings to set. * @return This builder for chaining. */ public Builder setSmbSettingsValue(int index, int value) { ensureSmbSettingsIsMutable(); smbSettings_.set(index, value); onChanged(); return this; } /** * * *
     * Optional. SMB share settings for the volume.
     * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for smbSettings to add. * @return This builder for chaining. */ public Builder addSmbSettingsValue(int value) { ensureSmbSettingsIsMutable(); smbSettings_.add(value); onChanged(); return this; } /** * * *
     * Optional. SMB share settings for the volume.
     * 
* * * repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @param values The enum numeric values on the wire for smbSettings to add. * @return This builder for chaining. */ public Builder addAllSmbSettingsValue(java.lang.Iterable values) { ensureSmbSettingsIsMutable(); for (int value : values) { smbSettings_.add(value); } onChanged(); return this; } private java.util.List mountOptions_ = java.util.Collections.emptyList(); private void ensureMountOptionsIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { mountOptions_ = new java.util.ArrayList(mountOptions_); bitField0_ |= 0x00002000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.netapp.v1.MountOption, com.google.cloud.netapp.v1.MountOption.Builder, com.google.cloud.netapp.v1.MountOptionOrBuilder> mountOptionsBuilder_; /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getMountOptionsList() { if (mountOptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(mountOptions_); } else { return mountOptionsBuilder_.getMessageList(); } } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public int getMountOptionsCount() { if (mountOptionsBuilder_ == null) { return mountOptions_.size(); } else { return mountOptionsBuilder_.getCount(); } } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.netapp.v1.MountOption getMountOptions(int index) { if (mountOptionsBuilder_ == null) { return mountOptions_.get(index); } else { return mountOptionsBuilder_.getMessage(index); } } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setMountOptions(int index, com.google.cloud.netapp.v1.MountOption value) { if (mountOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMountOptionsIsMutable(); mountOptions_.set(index, value); onChanged(); } else { mountOptionsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setMountOptions( int index, com.google.cloud.netapp.v1.MountOption.Builder builderForValue) { if (mountOptionsBuilder_ == null) { ensureMountOptionsIsMutable(); mountOptions_.set(index, builderForValue.build()); onChanged(); } else { mountOptionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addMountOptions(com.google.cloud.netapp.v1.MountOption value) { if (mountOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMountOptionsIsMutable(); mountOptions_.add(value); onChanged(); } else { mountOptionsBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addMountOptions(int index, com.google.cloud.netapp.v1.MountOption value) { if (mountOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMountOptionsIsMutable(); mountOptions_.add(index, value); onChanged(); } else { mountOptionsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addMountOptions(com.google.cloud.netapp.v1.MountOption.Builder builderForValue) { if (mountOptionsBuilder_ == null) { ensureMountOptionsIsMutable(); mountOptions_.add(builderForValue.build()); onChanged(); } else { mountOptionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addMountOptions( int index, com.google.cloud.netapp.v1.MountOption.Builder builderForValue) { if (mountOptionsBuilder_ == null) { ensureMountOptionsIsMutable(); mountOptions_.add(index, builderForValue.build()); onChanged(); } else { mountOptionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder addAllMountOptions( java.lang.Iterable values) { if (mountOptionsBuilder_ == null) { ensureMountOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mountOptions_); onChanged(); } else { mountOptionsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearMountOptions() { if (mountOptionsBuilder_ == null) { mountOptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { mountOptionsBuilder_.clear(); } return this; } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeMountOptions(int index) { if (mountOptionsBuilder_ == null) { ensureMountOptionsIsMutable(); mountOptions_.remove(index); onChanged(); } else { mountOptionsBuilder_.remove(index); } return this; } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.netapp.v1.MountOption.Builder getMountOptionsBuilder(int index) { return getMountOptionsFieldBuilder().getBuilder(index); } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.netapp.v1.MountOptionOrBuilder getMountOptionsOrBuilder(int index) { if (mountOptionsBuilder_ == null) { return mountOptions_.get(index); } else { return mountOptionsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getMountOptionsOrBuilderList() { if (mountOptionsBuilder_ != null) { return mountOptionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(mountOptions_); } } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.netapp.v1.MountOption.Builder addMountOptionsBuilder() { return getMountOptionsFieldBuilder() .addBuilder(com.google.cloud.netapp.v1.MountOption.getDefaultInstance()); } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.netapp.v1.MountOption.Builder addMountOptionsBuilder(int index) { return getMountOptionsFieldBuilder() .addBuilder(index, com.google.cloud.netapp.v1.MountOption.getDefaultInstance()); } /** * * *
     * Output only. Mount options of this volume
     * 
* * * repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public java.util.List getMountOptionsBuilderList() { return getMountOptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.netapp.v1.MountOption, com.google.cloud.netapp.v1.MountOption.Builder, com.google.cloud.netapp.v1.MountOptionOrBuilder> getMountOptionsFieldBuilder() { if (mountOptionsBuilder_ == null) { mountOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.netapp.v1.MountOption, com.google.cloud.netapp.v1.MountOption.Builder, com.google.cloud.netapp.v1.MountOptionOrBuilder>( mountOptions_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); mountOptions_ = null; } return mountOptionsBuilder_; } private java.lang.Object unixPermissions_ = ""; /** * * *
     * Optional. Default unix style permission (e.g. 777) the mount point will be
     * created with. Applicable for NFS protocol types only.
     * 
* * string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The unixPermissions. */ public java.lang.String getUnixPermissions() { java.lang.Object ref = unixPermissions_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unixPermissions_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Default unix style permission (e.g. 777) the mount point will be
     * created with. Applicable for NFS protocol types only.
     * 
* * string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for unixPermissions. */ public com.google.protobuf.ByteString getUnixPermissionsBytes() { java.lang.Object ref = unixPermissions_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unixPermissions_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. Default unix style permission (e.g. 777) the mount point will be
     * created with. Applicable for NFS protocol types only.
     * 
* * string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The unixPermissions to set. * @return This builder for chaining. */ public Builder setUnixPermissions(java.lang.String value) { if (value == null) { throw new NullPointerException(); } unixPermissions_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** * * *
     * Optional. Default unix style permission (e.g. 777) the mount point will be
     * created with. Applicable for NFS protocol types only.
     * 
* * string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearUnixPermissions() { unixPermissions_ = getDefaultInstance().getUnixPermissions(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** * * *
     * Optional. Default unix style permission (e.g. 777) the mount point will be
     * created with. Applicable for NFS protocol types only.
     * 
* * string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for unixPermissions to set. * @return This builder for chaining. */ public Builder setUnixPermissionsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); unixPermissions_ = value; bitField0_ |= 0x00004000; 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_ |= 0x00008000; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * Optional. Labels as key value pairs
     * 
* * map<string, string> labels = 16 [(.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 = 16 [(.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 = 16 [(.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 = 16 [(.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_ & ~0x00008000); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
     * Optional. Labels as key value pairs
     * 
* * map<string, string> labels = 16 [(.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_ |= 0x00008000; return internalGetMutableLabels().getMutableMap(); } /** * * *
     * Optional. Labels as key value pairs
     * 
* * map<string, string> labels = 16 [(.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_ |= 0x00008000; return this; } /** * * *
     * Optional. Labels as key value pairs
     * 
* * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00008000; return this; } private java.lang.Object description_ = ""; /** * * *
     * Optional. Description of the volume
     * 
* * string description = 17 [(.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 volume
     * 
* * string description = 17 [(.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 volume
     * 
* * string description = 17 [(.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_ |= 0x00010000; onChanged(); return this; } /** * * *
     * Optional. Description of the volume
     * 
* * string description = 17 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } /** * * *
     * Optional. Description of the volume
     * 
* * string description = 17 [(.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_ |= 0x00010000; onChanged(); return this; } private com.google.cloud.netapp.v1.SnapshotPolicy snapshotPolicy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.SnapshotPolicy, com.google.cloud.netapp.v1.SnapshotPolicy.Builder, com.google.cloud.netapp.v1.SnapshotPolicyOrBuilder> snapshotPolicyBuilder_; /** * * *
     * Optional. SnapshotPolicy for a volume.
     * 
* * * .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the snapshotPolicy field is set. */ public boolean hasSnapshotPolicy() { return ((bitField0_ & 0x00020000) != 0); } /** * * *
     * Optional. SnapshotPolicy for a volume.
     * 
* * * .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The snapshotPolicy. */ public com.google.cloud.netapp.v1.SnapshotPolicy getSnapshotPolicy() { if (snapshotPolicyBuilder_ == null) { return snapshotPolicy_ == null ? com.google.cloud.netapp.v1.SnapshotPolicy.getDefaultInstance() : snapshotPolicy_; } else { return snapshotPolicyBuilder_.getMessage(); } } /** * * *
     * Optional. SnapshotPolicy for a volume.
     * 
* * * .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSnapshotPolicy(com.google.cloud.netapp.v1.SnapshotPolicy value) { if (snapshotPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } snapshotPolicy_ = value; } else { snapshotPolicyBuilder_.setMessage(value); } bitField0_ |= 0x00020000; onChanged(); return this; } /** * * *
     * Optional. SnapshotPolicy for a volume.
     * 
* * * .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSnapshotPolicy( com.google.cloud.netapp.v1.SnapshotPolicy.Builder builderForValue) { if (snapshotPolicyBuilder_ == null) { snapshotPolicy_ = builderForValue.build(); } else { snapshotPolicyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; onChanged(); return this; } /** * * *
     * Optional. SnapshotPolicy for a volume.
     * 
* * * .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeSnapshotPolicy(com.google.cloud.netapp.v1.SnapshotPolicy value) { if (snapshotPolicyBuilder_ == null) { if (((bitField0_ & 0x00020000) != 0) && snapshotPolicy_ != null && snapshotPolicy_ != com.google.cloud.netapp.v1.SnapshotPolicy.getDefaultInstance()) { getSnapshotPolicyBuilder().mergeFrom(value); } else { snapshotPolicy_ = value; } } else { snapshotPolicyBuilder_.mergeFrom(value); } if (snapshotPolicy_ != null) { bitField0_ |= 0x00020000; onChanged(); } return this; } /** * * *
     * Optional. SnapshotPolicy for a volume.
     * 
* * * .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearSnapshotPolicy() { bitField0_ = (bitField0_ & ~0x00020000); snapshotPolicy_ = null; if (snapshotPolicyBuilder_ != null) { snapshotPolicyBuilder_.dispose(); snapshotPolicyBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. SnapshotPolicy for a volume.
     * 
* * * .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.netapp.v1.SnapshotPolicy.Builder getSnapshotPolicyBuilder() { bitField0_ |= 0x00020000; onChanged(); return getSnapshotPolicyFieldBuilder().getBuilder(); } /** * * *
     * Optional. SnapshotPolicy for a volume.
     * 
* * * .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.netapp.v1.SnapshotPolicyOrBuilder getSnapshotPolicyOrBuilder() { if (snapshotPolicyBuilder_ != null) { return snapshotPolicyBuilder_.getMessageOrBuilder(); } else { return snapshotPolicy_ == null ? com.google.cloud.netapp.v1.SnapshotPolicy.getDefaultInstance() : snapshotPolicy_; } } /** * * *
     * Optional. SnapshotPolicy for a volume.
     * 
* * * .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.SnapshotPolicy, com.google.cloud.netapp.v1.SnapshotPolicy.Builder, com.google.cloud.netapp.v1.SnapshotPolicyOrBuilder> getSnapshotPolicyFieldBuilder() { if (snapshotPolicyBuilder_ == null) { snapshotPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.SnapshotPolicy, com.google.cloud.netapp.v1.SnapshotPolicy.Builder, com.google.cloud.netapp.v1.SnapshotPolicyOrBuilder>( getSnapshotPolicy(), getParentForChildren(), isClean()); snapshotPolicy_ = null; } return snapshotPolicyBuilder_; } private double snapReserve_; /** * * *
     * Optional. Snap_reserve specifies percentage of volume storage reserved for
     * snapshot storage. Default is 0 percent.
     * 
* * double snap_reserve = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @return The snapReserve. */ @java.lang.Override public double getSnapReserve() { return snapReserve_; } /** * * *
     * Optional. Snap_reserve specifies percentage of volume storage reserved for
     * snapshot storage. Default is 0 percent.
     * 
* * double snap_reserve = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The snapReserve to set. * @return This builder for chaining. */ public Builder setSnapReserve(double value) { snapReserve_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** * * *
     * Optional. Snap_reserve specifies percentage of volume storage reserved for
     * snapshot storage. Default is 0 percent.
     * 
* * double snap_reserve = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearSnapReserve() { bitField0_ = (bitField0_ & ~0x00040000); snapReserve_ = 0D; onChanged(); return this; } private boolean snapshotDirectory_; /** * * *
     * Optional. Snapshot_directory if enabled (true) the volume will contain a
     * read-only .snapshot directory which provides access to each of the volume's
     * snapshots.
     * 
* * bool snapshot_directory = 20 [(.google.api.field_behavior) = OPTIONAL]; * * @return The snapshotDirectory. */ @java.lang.Override public boolean getSnapshotDirectory() { return snapshotDirectory_; } /** * * *
     * Optional. Snapshot_directory if enabled (true) the volume will contain a
     * read-only .snapshot directory which provides access to each of the volume's
     * snapshots.
     * 
* * bool snapshot_directory = 20 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The snapshotDirectory to set. * @return This builder for chaining. */ public Builder setSnapshotDirectory(boolean value) { snapshotDirectory_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** * * *
     * Optional. Snapshot_directory if enabled (true) the volume will contain a
     * read-only .snapshot directory which provides access to each of the volume's
     * snapshots.
     * 
* * bool snapshot_directory = 20 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearSnapshotDirectory() { bitField0_ = (bitField0_ & ~0x00080000); snapshotDirectory_ = false; onChanged(); return this; } private long usedGib_; /** * * *
     * Output only. Used capacity in GIB of the volume. This is computed
     * periodically and it does not represent the realtime usage.
     * 
* * int64 used_gib = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The usedGib. */ @java.lang.Override public long getUsedGib() { return usedGib_; } /** * * *
     * Output only. Used capacity in GIB of the volume. This is computed
     * periodically and it does not represent the realtime usage.
     * 
* * int64 used_gib = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The usedGib to set. * @return This builder for chaining. */ public Builder setUsedGib(long value) { usedGib_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** * * *
     * Output only. Used capacity in GIB of the volume. This is computed
     * periodically and it does not represent the realtime usage.
     * 
* * int64 used_gib = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearUsedGib() { bitField0_ = (bitField0_ & ~0x00100000); usedGib_ = 0L; onChanged(); return this; } private int securityStyle_ = 0; /** * * *
     * Optional. Security Style of the Volume
     * 
* * * .google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for securityStyle. */ @java.lang.Override public int getSecurityStyleValue() { return securityStyle_; } /** * * *
     * Optional. Security Style of the Volume
     * 
* * * .google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for securityStyle to set. * @return This builder for chaining. */ public Builder setSecurityStyleValue(int value) { securityStyle_ = value; bitField0_ |= 0x00200000; onChanged(); return this; } /** * * *
     * Optional. Security Style of the Volume
     * 
* * * .google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The securityStyle. */ @java.lang.Override public com.google.cloud.netapp.v1.SecurityStyle getSecurityStyle() { com.google.cloud.netapp.v1.SecurityStyle result = com.google.cloud.netapp.v1.SecurityStyle.forNumber(securityStyle_); return result == null ? com.google.cloud.netapp.v1.SecurityStyle.UNRECOGNIZED : result; } /** * * *
     * Optional. Security Style of the Volume
     * 
* * * .google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The securityStyle to set. * @return This builder for chaining. */ public Builder setSecurityStyle(com.google.cloud.netapp.v1.SecurityStyle value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00200000; securityStyle_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Optional. Security Style of the Volume
     * 
* * * .google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearSecurityStyle() { bitField0_ = (bitField0_ & ~0x00200000); securityStyle_ = 0; onChanged(); return this; } private boolean kerberosEnabled_; /** * * *
     * Optional. Flag indicating if the volume is a kerberos volume or not, export
     * policy rules control kerberos security modes (krb5, krb5i, krb5p).
     * 
* * bool kerberos_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kerberosEnabled. */ @java.lang.Override public boolean getKerberosEnabled() { return kerberosEnabled_; } /** * * *
     * Optional. Flag indicating if the volume is a kerberos volume or not, export
     * policy rules control kerberos security modes (krb5, krb5i, krb5p).
     * 
* * bool kerberos_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The kerberosEnabled to set. * @return This builder for chaining. */ public Builder setKerberosEnabled(boolean value) { kerberosEnabled_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } /** * * *
     * Optional. Flag indicating if the volume is a kerberos volume or not, export
     * policy rules control kerberos security modes (krb5, krb5i, krb5p).
     * 
* * bool kerberos_enabled = 23 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearKerberosEnabled() { bitField0_ = (bitField0_ & ~0x00400000); kerberosEnabled_ = false; onChanged(); return this; } private boolean ldapEnabled_; /** * * *
     * Output only. Flag indicating if the volume is NFS LDAP enabled or not.
     * 
* * bool ldap_enabled = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The ldapEnabled. */ @java.lang.Override public boolean getLdapEnabled() { return ldapEnabled_; } /** * * *
     * Output only. Flag indicating if the volume is NFS LDAP enabled or not.
     * 
* * bool ldap_enabled = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The ldapEnabled to set. * @return This builder for chaining. */ public Builder setLdapEnabled(boolean value) { ldapEnabled_ = value; bitField0_ |= 0x00800000; onChanged(); return this; } /** * * *
     * Output only. Flag indicating if the volume is NFS LDAP enabled or not.
     * 
* * bool ldap_enabled = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearLdapEnabled() { bitField0_ = (bitField0_ & ~0x00800000); ldapEnabled_ = false; onChanged(); return this; } private java.lang.Object activeDirectory_ = ""; /** * * *
     * Output only. Specifies the ActiveDirectory name of a SMB volume.
     * 
* * * string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** * * *
     * Output only. Specifies the ActiveDirectory name of a SMB volume.
     * 
* * * string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** * * *
     * Output only. Specifies the ActiveDirectory name of a SMB volume.
     * 
* * * string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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_ |= 0x01000000; onChanged(); return this; } /** * * *
     * Output only. Specifies the ActiveDirectory name of a SMB volume.
     * 
* * * string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearActiveDirectory() { activeDirectory_ = getDefaultInstance().getActiveDirectory(); bitField0_ = (bitField0_ & ~0x01000000); onChanged(); return this; } /** * * *
     * Output only. Specifies the ActiveDirectory name of a SMB volume.
     * 
* * * string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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_ |= 0x01000000; onChanged(); return this; } private com.google.cloud.netapp.v1.RestoreParameters restoreParameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.RestoreParameters, com.google.cloud.netapp.v1.RestoreParameters.Builder, com.google.cloud.netapp.v1.RestoreParametersOrBuilder> restoreParametersBuilder_; /** * * *
     * Optional. Specifies the source of the volume to be created from.
     * 
* * * .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the restoreParameters field is set. */ public boolean hasRestoreParameters() { return ((bitField0_ & 0x02000000) != 0); } /** * * *
     * Optional. Specifies the source of the volume to be created from.
     * 
* * * .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The restoreParameters. */ public com.google.cloud.netapp.v1.RestoreParameters getRestoreParameters() { if (restoreParametersBuilder_ == null) { return restoreParameters_ == null ? com.google.cloud.netapp.v1.RestoreParameters.getDefaultInstance() : restoreParameters_; } else { return restoreParametersBuilder_.getMessage(); } } /** * * *
     * Optional. Specifies the source of the volume to be created from.
     * 
* * * .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setRestoreParameters(com.google.cloud.netapp.v1.RestoreParameters value) { if (restoreParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } restoreParameters_ = value; } else { restoreParametersBuilder_.setMessage(value); } bitField0_ |= 0x02000000; onChanged(); return this; } /** * * *
     * Optional. Specifies the source of the volume to be created from.
     * 
* * * .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setRestoreParameters( com.google.cloud.netapp.v1.RestoreParameters.Builder builderForValue) { if (restoreParametersBuilder_ == null) { restoreParameters_ = builderForValue.build(); } else { restoreParametersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x02000000; onChanged(); return this; } /** * * *
     * Optional. Specifies the source of the volume to be created from.
     * 
* * * .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeRestoreParameters(com.google.cloud.netapp.v1.RestoreParameters value) { if (restoreParametersBuilder_ == null) { if (((bitField0_ & 0x02000000) != 0) && restoreParameters_ != null && restoreParameters_ != com.google.cloud.netapp.v1.RestoreParameters.getDefaultInstance()) { getRestoreParametersBuilder().mergeFrom(value); } else { restoreParameters_ = value; } } else { restoreParametersBuilder_.mergeFrom(value); } if (restoreParameters_ != null) { bitField0_ |= 0x02000000; onChanged(); } return this; } /** * * *
     * Optional. Specifies the source of the volume to be created from.
     * 
* * * .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearRestoreParameters() { bitField0_ = (bitField0_ & ~0x02000000); restoreParameters_ = null; if (restoreParametersBuilder_ != null) { restoreParametersBuilder_.dispose(); restoreParametersBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Specifies the source of the volume to be created from.
     * 
* * * .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.netapp.v1.RestoreParameters.Builder getRestoreParametersBuilder() { bitField0_ |= 0x02000000; onChanged(); return getRestoreParametersFieldBuilder().getBuilder(); } /** * * *
     * Optional. Specifies the source of the volume to be created from.
     * 
* * * .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.netapp.v1.RestoreParametersOrBuilder getRestoreParametersOrBuilder() { if (restoreParametersBuilder_ != null) { return restoreParametersBuilder_.getMessageOrBuilder(); } else { return restoreParameters_ == null ? com.google.cloud.netapp.v1.RestoreParameters.getDefaultInstance() : restoreParameters_; } } /** * * *
     * Optional. Specifies the source of the volume to be created from.
     * 
* * * .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.RestoreParameters, com.google.cloud.netapp.v1.RestoreParameters.Builder, com.google.cloud.netapp.v1.RestoreParametersOrBuilder> getRestoreParametersFieldBuilder() { if (restoreParametersBuilder_ == null) { restoreParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.RestoreParameters, com.google.cloud.netapp.v1.RestoreParameters.Builder, com.google.cloud.netapp.v1.RestoreParametersOrBuilder>( getRestoreParameters(), getParentForChildren(), isClean()); restoreParameters_ = null; } return restoreParametersBuilder_; } private java.lang.Object kmsConfig_ = ""; /** * * *
     * Output only. Specifies the KMS config to be used for volume encryption.
     * 
* * * string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** * * *
     * Output only. Specifies the KMS config to be used for volume encryption.
     * 
* * * string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } } /** * * *
     * Output only. Specifies the KMS config to be used for volume encryption.
     * 
* * * string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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_ |= 0x04000000; onChanged(); return this; } /** * * *
     * Output only. Specifies the KMS config to be used for volume encryption.
     * 
* * * string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearKmsConfig() { kmsConfig_ = getDefaultInstance().getKmsConfig(); bitField0_ = (bitField0_ & ~0x04000000); onChanged(); return this; } /** * * *
     * Output only. Specifies the KMS config to be used for volume encryption.
     * 
* * * string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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_ |= 0x04000000; onChanged(); return this; } private int encryptionType_ = 0; /** * * *
     * Output only. Specified the current volume encryption key source.
     * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.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. Specified the current volume encryption key source.
     * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.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_ |= 0x08000000; onChanged(); return this; } /** * * *
     * Output only. Specified the current volume encryption key source.
     * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.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. Specified the current volume encryption key source.
     * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.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_ |= 0x08000000; encryptionType_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. Specified the current volume encryption key source.
     * 
* * * .google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearEncryptionType() { bitField0_ = (bitField0_ & ~0x08000000); encryptionType_ = 0; onChanged(); return this; } private boolean hasReplication_; /** * * *
     * Output only. Indicates whether the volume is part of a replication
     * relationship.
     * 
* * bool has_replication = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The hasReplication. */ @java.lang.Override public boolean getHasReplication() { return hasReplication_; } /** * * *
     * Output only. Indicates whether the volume is part of a replication
     * relationship.
     * 
* * bool has_replication = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The hasReplication to set. * @return This builder for chaining. */ public Builder setHasReplication(boolean value) { hasReplication_ = value; bitField0_ |= 0x10000000; onChanged(); return this; } /** * * *
     * Output only. Indicates whether the volume is part of a replication
     * relationship.
     * 
* * bool has_replication = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearHasReplication() { bitField0_ = (bitField0_ & ~0x10000000); hasReplication_ = false; onChanged(); return this; } private com.google.cloud.netapp.v1.BackupConfig backupConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.BackupConfig, com.google.cloud.netapp.v1.BackupConfig.Builder, com.google.cloud.netapp.v1.BackupConfigOrBuilder> backupConfigBuilder_; /** * * *
     * BackupConfig of the volume.
     * 
* * optional .google.cloud.netapp.v1.BackupConfig backup_config = 30; * * @return Whether the backupConfig field is set. */ public boolean hasBackupConfig() { return ((bitField0_ & 0x20000000) != 0); } /** * * *
     * BackupConfig of the volume.
     * 
* * optional .google.cloud.netapp.v1.BackupConfig backup_config = 30; * * @return The backupConfig. */ public com.google.cloud.netapp.v1.BackupConfig getBackupConfig() { if (backupConfigBuilder_ == null) { return backupConfig_ == null ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() : backupConfig_; } else { return backupConfigBuilder_.getMessage(); } } /** * * *
     * BackupConfig of the volume.
     * 
* * optional .google.cloud.netapp.v1.BackupConfig backup_config = 30; */ public Builder setBackupConfig(com.google.cloud.netapp.v1.BackupConfig value) { if (backupConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backupConfig_ = value; } else { backupConfigBuilder_.setMessage(value); } bitField0_ |= 0x20000000; onChanged(); return this; } /** * * *
     * BackupConfig of the volume.
     * 
* * optional .google.cloud.netapp.v1.BackupConfig backup_config = 30; */ public Builder setBackupConfig( com.google.cloud.netapp.v1.BackupConfig.Builder builderForValue) { if (backupConfigBuilder_ == null) { backupConfig_ = builderForValue.build(); } else { backupConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x20000000; onChanged(); return this; } /** * * *
     * BackupConfig of the volume.
     * 
* * optional .google.cloud.netapp.v1.BackupConfig backup_config = 30; */ public Builder mergeBackupConfig(com.google.cloud.netapp.v1.BackupConfig value) { if (backupConfigBuilder_ == null) { if (((bitField0_ & 0x20000000) != 0) && backupConfig_ != null && backupConfig_ != com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance()) { getBackupConfigBuilder().mergeFrom(value); } else { backupConfig_ = value; } } else { backupConfigBuilder_.mergeFrom(value); } if (backupConfig_ != null) { bitField0_ |= 0x20000000; onChanged(); } return this; } /** * * *
     * BackupConfig of the volume.
     * 
* * optional .google.cloud.netapp.v1.BackupConfig backup_config = 30; */ public Builder clearBackupConfig() { bitField0_ = (bitField0_ & ~0x20000000); backupConfig_ = null; if (backupConfigBuilder_ != null) { backupConfigBuilder_.dispose(); backupConfigBuilder_ = null; } onChanged(); return this; } /** * * *
     * BackupConfig of the volume.
     * 
* * optional .google.cloud.netapp.v1.BackupConfig backup_config = 30; */ public com.google.cloud.netapp.v1.BackupConfig.Builder getBackupConfigBuilder() { bitField0_ |= 0x20000000; onChanged(); return getBackupConfigFieldBuilder().getBuilder(); } /** * * *
     * BackupConfig of the volume.
     * 
* * optional .google.cloud.netapp.v1.BackupConfig backup_config = 30; */ public com.google.cloud.netapp.v1.BackupConfigOrBuilder getBackupConfigOrBuilder() { if (backupConfigBuilder_ != null) { return backupConfigBuilder_.getMessageOrBuilder(); } else { return backupConfig_ == null ? com.google.cloud.netapp.v1.BackupConfig.getDefaultInstance() : backupConfig_; } } /** * * *
     * BackupConfig of the volume.
     * 
* * optional .google.cloud.netapp.v1.BackupConfig backup_config = 30; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.BackupConfig, com.google.cloud.netapp.v1.BackupConfig.Builder, com.google.cloud.netapp.v1.BackupConfigOrBuilder> getBackupConfigFieldBuilder() { if (backupConfigBuilder_ == null) { backupConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.BackupConfig, com.google.cloud.netapp.v1.BackupConfig.Builder, com.google.cloud.netapp.v1.BackupConfigOrBuilder>( getBackupConfig(), getParentForChildren(), isClean()); backupConfig_ = null; } return backupConfigBuilder_; } private java.util.List restrictedActions_ = java.util.Collections.emptyList(); private void ensureRestrictedActionsIsMutable() { if (!((bitField0_ & 0x40000000) != 0)) { restrictedActions_ = new java.util.ArrayList(restrictedActions_); bitField0_ |= 0x40000000; } } /** * * *
     * Optional. List of actions that are restricted on this volume.
     * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the restrictedActions. */ public java.util.List getRestrictedActionsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.cloud.netapp.v1.RestrictedAction>( restrictedActions_, restrictedActions_converter_); } /** * * *
     * Optional. List of actions that are restricted on this volume.
     * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The count of restrictedActions. */ public int getRestrictedActionsCount() { return restrictedActions_.size(); } /** * * *
     * Optional. List of actions that are restricted on this volume.
     * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the element to return. * @return The restrictedActions at the given index. */ public com.google.cloud.netapp.v1.RestrictedAction getRestrictedActions(int index) { return restrictedActions_converter_.convert(restrictedActions_.get(index)); } /** * * *
     * Optional. List of actions that are restricted on this volume.
     * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index to set the value at. * @param value The restrictedActions to set. * @return This builder for chaining. */ public Builder setRestrictedActions( int index, com.google.cloud.netapp.v1.RestrictedAction value) { if (value == null) { throw new NullPointerException(); } ensureRestrictedActionsIsMutable(); restrictedActions_.set(index, value.getNumber()); onChanged(); return this; } /** * * *
     * Optional. List of actions that are restricted on this volume.
     * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The restrictedActions to add. * @return This builder for chaining. */ public Builder addRestrictedActions(com.google.cloud.netapp.v1.RestrictedAction value) { if (value == null) { throw new NullPointerException(); } ensureRestrictedActionsIsMutable(); restrictedActions_.add(value.getNumber()); onChanged(); return this; } /** * * *
     * Optional. List of actions that are restricted on this volume.
     * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @param values The restrictedActions to add. * @return This builder for chaining. */ public Builder addAllRestrictedActions( java.lang.Iterable values) { ensureRestrictedActionsIsMutable(); for (com.google.cloud.netapp.v1.RestrictedAction value : values) { restrictedActions_.add(value.getNumber()); } onChanged(); return this; } /** * * *
     * Optional. List of actions that are restricted on this volume.
     * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearRestrictedActions() { restrictedActions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x40000000); onChanged(); return this; } /** * * *
     * Optional. List of actions that are restricted on this volume.
     * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the enum numeric values on the wire for restrictedActions. */ public java.util.List getRestrictedActionsValueList() { return java.util.Collections.unmodifiableList(restrictedActions_); } /** * * *
     * Optional. List of actions that are restricted on this volume.
     * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the value to return. * @return The enum numeric value on the wire of restrictedActions at the given index. */ public int getRestrictedActionsValue(int index) { return restrictedActions_.get(index); } /** * * *
     * Optional. List of actions that are restricted on this volume.
     * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index to set the value at. * @param value The enum numeric value on the wire for restrictedActions to set. * @return This builder for chaining. */ public Builder setRestrictedActionsValue(int index, int value) { ensureRestrictedActionsIsMutable(); restrictedActions_.set(index, value); onChanged(); return this; } /** * * *
     * Optional. List of actions that are restricted on this volume.
     * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for restrictedActions to add. * @return This builder for chaining. */ public Builder addRestrictedActionsValue(int value) { ensureRestrictedActionsIsMutable(); restrictedActions_.add(value); onChanged(); return this; } /** * * *
     * Optional. List of actions that are restricted on this volume.
     * 
* * * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL]; * * * @param values The enum numeric values on the wire for restrictedActions to add. * @return This builder for chaining. */ public Builder addAllRestrictedActionsValue(java.lang.Iterable values) { ensureRestrictedActionsIsMutable(); for (int value : values) { restrictedActions_.add(value); } onChanged(); return this; } private boolean largeCapacity_; /** * * *
     * Optional. Flag indicating if the volume will be a large capacity volume or
     * a regular volume.
     * 
* * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; * * @return The largeCapacity. */ @java.lang.Override public boolean getLargeCapacity() { return largeCapacity_; } /** * * *
     * Optional. Flag indicating if the volume will be a large capacity volume or
     * a regular volume.
     * 
* * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The largeCapacity to set. * @return This builder for chaining. */ public Builder setLargeCapacity(boolean value) { largeCapacity_ = value; bitField0_ |= 0x80000000; onChanged(); return this; } /** * * *
     * Optional. Flag indicating if the volume will be a large capacity volume or
     * a regular volume.
     * 
* * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearLargeCapacity() { bitField0_ = (bitField0_ & ~0x80000000); largeCapacity_ = false; onChanged(); return this; } private boolean multipleEndpoints_; /** * * *
     * Optional. Flag indicating if the volume will have an IP address per node
     * for volumes supporting multiple IP endpoints. Only the volume with
     * large_capacity will be allowed to have multiple endpoints.
     * 
* * bool multiple_endpoints = 33 [(.google.api.field_behavior) = OPTIONAL]; * * @return The multipleEndpoints. */ @java.lang.Override public boolean getMultipleEndpoints() { return multipleEndpoints_; } /** * * *
     * Optional. Flag indicating if the volume will have an IP address per node
     * for volumes supporting multiple IP endpoints. Only the volume with
     * large_capacity will be allowed to have multiple endpoints.
     * 
* * bool multiple_endpoints = 33 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The multipleEndpoints to set. * @return This builder for chaining. */ public Builder setMultipleEndpoints(boolean value) { multipleEndpoints_ = value; bitField1_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Optional. Flag indicating if the volume will have an IP address per node
     * for volumes supporting multiple IP endpoints. Only the volume with
     * large_capacity will be allowed to have multiple endpoints.
     * 
* * bool multiple_endpoints = 33 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearMultipleEndpoints() { bitField1_ = (bitField1_ & ~0x00000001); multipleEndpoints_ = false; onChanged(); return this; } private com.google.cloud.netapp.v1.TieringPolicy tieringPolicy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.TieringPolicy, com.google.cloud.netapp.v1.TieringPolicy.Builder, com.google.cloud.netapp.v1.TieringPolicyOrBuilder> tieringPolicyBuilder_; /** * * *
     * Tiering policy for the volume.
     * 
* * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; * * @return Whether the tieringPolicy field is set. */ public boolean hasTieringPolicy() { return ((bitField1_ & 0x00000002) != 0); } /** * * *
     * Tiering policy for the volume.
     * 
* * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; * * @return The tieringPolicy. */ public com.google.cloud.netapp.v1.TieringPolicy getTieringPolicy() { if (tieringPolicyBuilder_ == null) { return tieringPolicy_ == null ? com.google.cloud.netapp.v1.TieringPolicy.getDefaultInstance() : tieringPolicy_; } else { return tieringPolicyBuilder_.getMessage(); } } /** * * *
     * Tiering policy for the volume.
     * 
* * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; */ public Builder setTieringPolicy(com.google.cloud.netapp.v1.TieringPolicy value) { if (tieringPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tieringPolicy_ = value; } else { tieringPolicyBuilder_.setMessage(value); } bitField1_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Tiering policy for the volume.
     * 
* * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; */ public Builder setTieringPolicy( com.google.cloud.netapp.v1.TieringPolicy.Builder builderForValue) { if (tieringPolicyBuilder_ == null) { tieringPolicy_ = builderForValue.build(); } else { tieringPolicyBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Tiering policy for the volume.
     * 
* * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; */ public Builder mergeTieringPolicy(com.google.cloud.netapp.v1.TieringPolicy value) { if (tieringPolicyBuilder_ == null) { if (((bitField1_ & 0x00000002) != 0) && tieringPolicy_ != null && tieringPolicy_ != com.google.cloud.netapp.v1.TieringPolicy.getDefaultInstance()) { getTieringPolicyBuilder().mergeFrom(value); } else { tieringPolicy_ = value; } } else { tieringPolicyBuilder_.mergeFrom(value); } if (tieringPolicy_ != null) { bitField1_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Tiering policy for the volume.
     * 
* * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; */ public Builder clearTieringPolicy() { bitField1_ = (bitField1_ & ~0x00000002); tieringPolicy_ = null; if (tieringPolicyBuilder_ != null) { tieringPolicyBuilder_.dispose(); tieringPolicyBuilder_ = null; } onChanged(); return this; } /** * * *
     * Tiering policy for the volume.
     * 
* * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; */ public com.google.cloud.netapp.v1.TieringPolicy.Builder getTieringPolicyBuilder() { bitField1_ |= 0x00000002; onChanged(); return getTieringPolicyFieldBuilder().getBuilder(); } /** * * *
     * Tiering policy for the volume.
     * 
* * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; */ public com.google.cloud.netapp.v1.TieringPolicyOrBuilder getTieringPolicyOrBuilder() { if (tieringPolicyBuilder_ != null) { return tieringPolicyBuilder_.getMessageOrBuilder(); } else { return tieringPolicy_ == null ? com.google.cloud.netapp.v1.TieringPolicy.getDefaultInstance() : tieringPolicy_; } } /** * * *
     * Tiering policy for the volume.
     * 
* * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 34; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.TieringPolicy, com.google.cloud.netapp.v1.TieringPolicy.Builder, com.google.cloud.netapp.v1.TieringPolicyOrBuilder> getTieringPolicyFieldBuilder() { if (tieringPolicyBuilder_ == null) { tieringPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.TieringPolicy, com.google.cloud.netapp.v1.TieringPolicy.Builder, com.google.cloud.netapp.v1.TieringPolicyOrBuilder>( getTieringPolicy(), getParentForChildren(), isClean()); tieringPolicy_ = null; } return tieringPolicyBuilder_; } private java.lang.Object replicaZone_ = ""; /** * * *
     * Output only. Specifies the replica zone for regional volume.
     * 
* * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
     * Output only. Specifies the replica zone for regional volume.
     * 
* * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
     * Output only. Specifies the replica zone for regional volume.
     * 
* * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; bitField1_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. Specifies the replica zone for regional volume.
     * 
* * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearReplicaZone() { replicaZone_ = getDefaultInstance().getReplicaZone(); bitField1_ = (bitField1_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Output only. Specifies the replica zone for regional volume.
     * 
* * string replica_zone = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; bitField1_ |= 0x00000004; onChanged(); return this; } private java.lang.Object zone_ = ""; /** * * *
     * Output only. Specifies the active zone for regional volume.
     * 
* * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
     * Output only. Specifies the active zone for regional volume.
     * 
* * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
     * Output only. Specifies the active zone for regional volume.
     * 
* * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; bitField1_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. Specifies the active zone for regional volume.
     * 
* * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearZone() { zone_ = getDefaultInstance().getZone(); bitField1_ = (bitField1_ & ~0x00000008); onChanged(); return this; } /** * * *
     * Output only. Specifies the active zone for regional volume.
     * 
* * string zone = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; bitField1_ |= 0x00000008; onChanged(); return this; } private long coldTierSizeGib_; /** * * *
     * Output only. Size of the volume cold tier data in GiB.
     * 
* * int64 cold_tier_size_gib = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The coldTierSizeGib. */ @java.lang.Override public long getColdTierSizeGib() { return coldTierSizeGib_; } /** * * *
     * Output only. Size of the volume cold tier data in GiB.
     * 
* * int64 cold_tier_size_gib = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The coldTierSizeGib to set. * @return This builder for chaining. */ public Builder setColdTierSizeGib(long value) { coldTierSizeGib_ = value; bitField1_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Output only. Size of the volume cold tier data in GiB.
     * 
* * int64 cold_tier_size_gib = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearColdTierSizeGib() { bitField1_ = (bitField1_ & ~0x00000010); coldTierSizeGib_ = 0L; 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.Volume) } // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.Volume) private static final com.google.cloud.netapp.v1.Volume DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.Volume(); } public static com.google.cloud.netapp.v1.Volume getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Volume 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.Volume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy