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

com.google.cloud.compute.v1.StoragePoolsScopedList Maven / Gradle / Ivy

The newest version!
/*
 * 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/compute/v1/compute.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.compute.v1;

/**
 *
 *
 * 
 * 
* * Protobuf type {@code google.cloud.compute.v1.StoragePoolsScopedList} */ public final class StoragePoolsScopedList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.StoragePoolsScopedList) StoragePoolsScopedListOrBuilder { private static final long serialVersionUID = 0L; // Use StoragePoolsScopedList.newBuilder() to construct. private StoragePoolsScopedList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StoragePoolsScopedList() { storagePools_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StoragePoolsScopedList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_StoragePoolsScopedList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.StoragePoolsScopedList.class, com.google.cloud.compute.v1.StoragePoolsScopedList.Builder.class); } private int bitField0_; public static final int STORAGE_POOLS_FIELD_NUMBER = 437258515; @SuppressWarnings("serial") private java.util.List storagePools_; /** * * *
   * [Output Only] A list of storage pool contained in this scope.
   * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ @java.lang.Override public java.util.List getStoragePoolsList() { return storagePools_; } /** * * *
   * [Output Only] A list of storage pool contained in this scope.
   * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ @java.lang.Override public java.util.List getStoragePoolsOrBuilderList() { return storagePools_; } /** * * *
   * [Output Only] A list of storage pool contained in this scope.
   * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ @java.lang.Override public int getStoragePoolsCount() { return storagePools_.size(); } /** * * *
   * [Output Only] A list of storage pool contained in this scope.
   * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ @java.lang.Override public com.google.cloud.compute.v1.StoragePool getStoragePools(int index) { return storagePools_.get(index); } /** * * *
   * [Output Only] A list of storage pool contained in this scope.
   * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ @java.lang.Override public com.google.cloud.compute.v1.StoragePoolOrBuilder getStoragePoolsOrBuilder(int index) { return storagePools_.get(index); } public static final int WARNING_FIELD_NUMBER = 50704284; private com.google.cloud.compute.v1.Warning warning_; /** * * *
   * [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
   * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; * * @return Whether the warning field is set. */ @java.lang.Override public boolean hasWarning() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
   * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; * * @return The warning. */ @java.lang.Override public com.google.cloud.compute.v1.Warning getWarning() { return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; } /** * * *
   * [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
   * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; */ @java.lang.Override public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(50704284, getWarning()); } for (int i = 0; i < storagePools_.size(); i++) { output.writeMessage(437258515, storagePools_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning()); } for (int i = 0; i < storagePools_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(437258515, storagePools_.get(i)); } 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.compute.v1.StoragePoolsScopedList)) { return super.equals(obj); } com.google.cloud.compute.v1.StoragePoolsScopedList other = (com.google.cloud.compute.v1.StoragePoolsScopedList) obj; if (!getStoragePoolsList().equals(other.getStoragePoolsList())) return false; if (hasWarning() != other.hasWarning()) return false; if (hasWarning()) { if (!getWarning().equals(other.getWarning())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getStoragePoolsCount() > 0) { hash = (37 * hash) + STORAGE_POOLS_FIELD_NUMBER; hash = (53 * hash) + getStoragePoolsList().hashCode(); } if (hasWarning()) { hash = (37 * hash) + WARNING_FIELD_NUMBER; hash = (53 * hash) + getWarning().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.compute.v1.StoragePoolsScopedList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.StoragePoolsScopedList 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.compute.v1.StoragePoolsScopedList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.StoragePoolsScopedList 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.compute.v1.StoragePoolsScopedList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.StoragePoolsScopedList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.compute.v1.StoragePoolsScopedList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.StoragePoolsScopedList 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.compute.v1.StoragePoolsScopedList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.StoragePoolsScopedList 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.compute.v1.StoragePoolsScopedList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.StoragePoolsScopedList 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.compute.v1.StoragePoolsScopedList 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; } /** * * *
   * 
* * Protobuf type {@code google.cloud.compute.v1.StoragePoolsScopedList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.StoragePoolsScopedList) com.google.cloud.compute.v1.StoragePoolsScopedListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_StoragePoolsScopedList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.StoragePoolsScopedList.class, com.google.cloud.compute.v1.StoragePoolsScopedList.Builder.class); } // Construct using com.google.cloud.compute.v1.StoragePoolsScopedList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStoragePoolsFieldBuilder(); getWarningFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (storagePoolsBuilder_ == null) { storagePools_ = java.util.Collections.emptyList(); } else { storagePools_ = null; storagePoolsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); warning_ = null; if (warningBuilder_ != null) { warningBuilder_.dispose(); warningBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor; } @java.lang.Override public com.google.cloud.compute.v1.StoragePoolsScopedList getDefaultInstanceForType() { return com.google.cloud.compute.v1.StoragePoolsScopedList.getDefaultInstance(); } @java.lang.Override public com.google.cloud.compute.v1.StoragePoolsScopedList build() { com.google.cloud.compute.v1.StoragePoolsScopedList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.compute.v1.StoragePoolsScopedList buildPartial() { com.google.cloud.compute.v1.StoragePoolsScopedList result = new com.google.cloud.compute.v1.StoragePoolsScopedList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.compute.v1.StoragePoolsScopedList result) { if (storagePoolsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { storagePools_ = java.util.Collections.unmodifiableList(storagePools_); bitField0_ = (bitField0_ & ~0x00000001); } result.storagePools_ = storagePools_; } else { result.storagePools_ = storagePoolsBuilder_.build(); } } private void buildPartial0(com.google.cloud.compute.v1.StoragePoolsScopedList result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.compute.v1.StoragePoolsScopedList) { return mergeFrom((com.google.cloud.compute.v1.StoragePoolsScopedList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.compute.v1.StoragePoolsScopedList other) { if (other == com.google.cloud.compute.v1.StoragePoolsScopedList.getDefaultInstance()) return this; if (storagePoolsBuilder_ == null) { if (!other.storagePools_.isEmpty()) { if (storagePools_.isEmpty()) { storagePools_ = other.storagePools_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureStoragePoolsIsMutable(); storagePools_.addAll(other.storagePools_); } onChanged(); } } else { if (!other.storagePools_.isEmpty()) { if (storagePoolsBuilder_.isEmpty()) { storagePoolsBuilder_.dispose(); storagePoolsBuilder_ = null; storagePools_ = other.storagePools_; bitField0_ = (bitField0_ & ~0x00000001); storagePoolsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStoragePoolsFieldBuilder() : null; } else { storagePoolsBuilder_.addAllMessages(other.storagePools_); } } } if (other.hasWarning()) { mergeWarning(other.getWarning()); } 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 405634274: { input.readMessage(getWarningFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 405634274 case -796899174: { com.google.cloud.compute.v1.StoragePool m = input.readMessage( com.google.cloud.compute.v1.StoragePool.parser(), extensionRegistry); if (storagePoolsBuilder_ == null) { ensureStoragePoolsIsMutable(); storagePools_.add(m); } else { storagePoolsBuilder_.addMessage(m); } break; } // case -796899174 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List storagePools_ = java.util.Collections.emptyList(); private void ensureStoragePoolsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { storagePools_ = new java.util.ArrayList(storagePools_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.StoragePool, com.google.cloud.compute.v1.StoragePool.Builder, com.google.cloud.compute.v1.StoragePoolOrBuilder> storagePoolsBuilder_; /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public java.util.List getStoragePoolsList() { if (storagePoolsBuilder_ == null) { return java.util.Collections.unmodifiableList(storagePools_); } else { return storagePoolsBuilder_.getMessageList(); } } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public int getStoragePoolsCount() { if (storagePoolsBuilder_ == null) { return storagePools_.size(); } else { return storagePoolsBuilder_.getCount(); } } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public com.google.cloud.compute.v1.StoragePool getStoragePools(int index) { if (storagePoolsBuilder_ == null) { return storagePools_.get(index); } else { return storagePoolsBuilder_.getMessage(index); } } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public Builder setStoragePools(int index, com.google.cloud.compute.v1.StoragePool value) { if (storagePoolsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoragePoolsIsMutable(); storagePools_.set(index, value); onChanged(); } else { storagePoolsBuilder_.setMessage(index, value); } return this; } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public Builder setStoragePools( int index, com.google.cloud.compute.v1.StoragePool.Builder builderForValue) { if (storagePoolsBuilder_ == null) { ensureStoragePoolsIsMutable(); storagePools_.set(index, builderForValue.build()); onChanged(); } else { storagePoolsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public Builder addStoragePools(com.google.cloud.compute.v1.StoragePool value) { if (storagePoolsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoragePoolsIsMutable(); storagePools_.add(value); onChanged(); } else { storagePoolsBuilder_.addMessage(value); } return this; } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public Builder addStoragePools(int index, com.google.cloud.compute.v1.StoragePool value) { if (storagePoolsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoragePoolsIsMutable(); storagePools_.add(index, value); onChanged(); } else { storagePoolsBuilder_.addMessage(index, value); } return this; } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public Builder addStoragePools( com.google.cloud.compute.v1.StoragePool.Builder builderForValue) { if (storagePoolsBuilder_ == null) { ensureStoragePoolsIsMutable(); storagePools_.add(builderForValue.build()); onChanged(); } else { storagePoolsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public Builder addStoragePools( int index, com.google.cloud.compute.v1.StoragePool.Builder builderForValue) { if (storagePoolsBuilder_ == null) { ensureStoragePoolsIsMutable(); storagePools_.add(index, builderForValue.build()); onChanged(); } else { storagePoolsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public Builder addAllStoragePools( java.lang.Iterable values) { if (storagePoolsBuilder_ == null) { ensureStoragePoolsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, storagePools_); onChanged(); } else { storagePoolsBuilder_.addAllMessages(values); } return this; } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public Builder clearStoragePools() { if (storagePoolsBuilder_ == null) { storagePools_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { storagePoolsBuilder_.clear(); } return this; } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public Builder removeStoragePools(int index) { if (storagePoolsBuilder_ == null) { ensureStoragePoolsIsMutable(); storagePools_.remove(index); onChanged(); } else { storagePoolsBuilder_.remove(index); } return this; } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public com.google.cloud.compute.v1.StoragePool.Builder getStoragePoolsBuilder(int index) { return getStoragePoolsFieldBuilder().getBuilder(index); } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public com.google.cloud.compute.v1.StoragePoolOrBuilder getStoragePoolsOrBuilder(int index) { if (storagePoolsBuilder_ == null) { return storagePools_.get(index); } else { return storagePoolsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public java.util.List getStoragePoolsOrBuilderList() { if (storagePoolsBuilder_ != null) { return storagePoolsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(storagePools_); } } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public com.google.cloud.compute.v1.StoragePool.Builder addStoragePoolsBuilder() { return getStoragePoolsFieldBuilder() .addBuilder(com.google.cloud.compute.v1.StoragePool.getDefaultInstance()); } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public com.google.cloud.compute.v1.StoragePool.Builder addStoragePoolsBuilder(int index) { return getStoragePoolsFieldBuilder() .addBuilder(index, com.google.cloud.compute.v1.StoragePool.getDefaultInstance()); } /** * * *
     * [Output Only] A list of storage pool contained in this scope.
     * 
* * repeated .google.cloud.compute.v1.StoragePool storage_pools = 437258515; */ public java.util.List getStoragePoolsBuilderList() { return getStoragePoolsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.StoragePool, com.google.cloud.compute.v1.StoragePool.Builder, com.google.cloud.compute.v1.StoragePoolOrBuilder> getStoragePoolsFieldBuilder() { if (storagePoolsBuilder_ == null) { storagePoolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.StoragePool, com.google.cloud.compute.v1.StoragePool.Builder, com.google.cloud.compute.v1.StoragePoolOrBuilder>( storagePools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); storagePools_ = null; } return storagePoolsBuilder_; } private com.google.cloud.compute.v1.Warning warning_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.Warning, com.google.cloud.compute.v1.Warning.Builder, com.google.cloud.compute.v1.WarningOrBuilder> warningBuilder_; /** * * *
     * [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; * * @return Whether the warning field is set. */ public boolean hasWarning() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; * * @return The warning. */ public com.google.cloud.compute.v1.Warning getWarning() { if (warningBuilder_ == null) { return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; } else { return warningBuilder_.getMessage(); } } /** * * *
     * [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; */ public Builder setWarning(com.google.cloud.compute.v1.Warning value) { if (warningBuilder_ == null) { if (value == null) { throw new NullPointerException(); } warning_ = value; } else { warningBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; */ public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) { if (warningBuilder_ == null) { warning_ = builderForValue.build(); } else { warningBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; */ public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) { if (warningBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && warning_ != null && warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) { getWarningBuilder().mergeFrom(value); } else { warning_ = value; } } else { warningBuilder_.mergeFrom(value); } if (warning_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; */ public Builder clearWarning() { bitField0_ = (bitField0_ & ~0x00000002); warning_ = null; if (warningBuilder_ != null) { warningBuilder_.dispose(); warningBuilder_ = null; } onChanged(); return this; } /** * * *
     * [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; */ public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() { bitField0_ |= 0x00000002; onChanged(); return getWarningFieldBuilder().getBuilder(); } /** * * *
     * [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; */ public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { if (warningBuilder_ != null) { return warningBuilder_.getMessageOrBuilder(); } else { return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; } } /** * * *
     * [Output Only] Informational warning which replaces the list of storage pool when the list is empty.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.Warning, com.google.cloud.compute.v1.Warning.Builder, com.google.cloud.compute.v1.WarningOrBuilder> getWarningFieldBuilder() { if (warningBuilder_ == null) { warningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.Warning, com.google.cloud.compute.v1.Warning.Builder, com.google.cloud.compute.v1.WarningOrBuilder>( getWarning(), getParentForChildren(), isClean()); warning_ = null; } return warningBuilder_; } @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.compute.v1.StoragePoolsScopedList) } // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.StoragePoolsScopedList) private static final com.google.cloud.compute.v1.StoragePoolsScopedList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.compute.v1.StoragePoolsScopedList(); } public static com.google.cloud.compute.v1.StoragePoolsScopedList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StoragePoolsScopedList 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.compute.v1.StoragePoolsScopedList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy