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

com.google.cloud.compute.v1.UsableSubnetworksAggregatedList 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.UsableSubnetworksAggregatedList} */ public final class UsableSubnetworksAggregatedList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.UsableSubnetworksAggregatedList) UsableSubnetworksAggregatedListOrBuilder { private static final long serialVersionUID = 0L; // Use UsableSubnetworksAggregatedList.newBuilder() to construct. private UsableSubnetworksAggregatedList( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UsableSubnetworksAggregatedList() { id_ = ""; items_ = java.util.Collections.emptyList(); kind_ = ""; nextPageToken_ = ""; selfLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UsableSubnetworksAggregatedList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.UsableSubnetworksAggregatedList.class, com.google.cloud.compute.v1.UsableSubnetworksAggregatedList.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 3355; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * * *
   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
   * 
* * optional string id = 3355; * * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
   * 
* * optional string id = 3355; * * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** * * *
   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
   * 
* * optional string id = 3355; * * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ITEMS_FIELD_NUMBER = 100526016; @SuppressWarnings("serial") private java.util.List items_; /** * * *
   * [Output] A list of usable subnetwork URLs.
   * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ @java.lang.Override public java.util.List getItemsList() { return items_; } /** * * *
   * [Output] A list of usable subnetwork URLs.
   * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ @java.lang.Override public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
   * [Output] A list of usable subnetwork URLs.
   * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ @java.lang.Override public int getItemsCount() { return items_.size(); } /** * * *
   * [Output] A list of usable subnetwork URLs.
   * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ @java.lang.Override public com.google.cloud.compute.v1.UsableSubnetwork getItems(int index) { return items_.get(index); } /** * * *
   * [Output] A list of usable subnetwork URLs.
   * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ @java.lang.Override public com.google.cloud.compute.v1.UsableSubnetworkOrBuilder getItemsOrBuilder(int index) { return items_.get(index); } public static final int KIND_FIELD_NUMBER = 3292052; @SuppressWarnings("serial") private volatile java.lang.Object kind_ = ""; /** * * *
   * [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks.
   * 
* * optional string kind = 3292052; * * @return Whether the kind field is set. */ @java.lang.Override public boolean hasKind() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks.
   * 
* * optional string kind = 3292052; * * @return The kind. */ @java.lang.Override public java.lang.String getKind() { java.lang.Object ref = kind_; 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(); kind_ = s; return s; } } /** * * *
   * [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks.
   * 
* * optional string kind = 3292052; * * @return The bytes for kind. */ @java.lang.Override public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 79797525; @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** * * *
   * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. In special cases listUsable may return 0 subnetworks and nextPageToken which still should be used to get the next page of results.
   * 
* * optional string next_page_token = 79797525; * * @return Whether the nextPageToken field is set. */ @java.lang.Override public boolean hasNextPageToken() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. In special cases listUsable may return 0 subnetworks and nextPageToken which still should be used to get the next page of results.
   * 
* * optional string next_page_token = 79797525; * * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; } } /** * * *
   * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. In special cases listUsable may return 0 subnetworks and nextPageToken which still should be used to get the next page of results.
   * 
* * optional string next_page_token = 79797525; * * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SELF_LINK_FIELD_NUMBER = 456214797; @SuppressWarnings("serial") private volatile java.lang.Object selfLink_ = ""; /** * * *
   * [Output Only] Server-defined URL for this resource.
   * 
* * optional string self_link = 456214797; * * @return Whether the selfLink field is set. */ @java.lang.Override public boolean hasSelfLink() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * [Output Only] Server-defined URL for this resource.
   * 
* * optional string self_link = 456214797; * * @return The selfLink. */ @java.lang.Override public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; 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(); selfLink_ = s; return s; } } /** * * *
   * [Output Only] Server-defined URL for this resource.
   * 
* * optional string self_link = 456214797; * * @return The bytes for selfLink. */ @java.lang.Override public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selfLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WARNING_FIELD_NUMBER = 50704284; private com.google.cloud.compute.v1.Warning warning_; /** * * *
   * [Output Only] Informational warning message.
   * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; * * @return Whether the warning field is set. */ @java.lang.Override public boolean hasWarning() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * [Output Only] Informational warning message.
   * 
* * 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 message.
   * 
* * 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3355, id_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(50704284, getWarning()); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 79797525, nextPageToken_); } for (int i = 0; i < items_.size(); i++) { output.writeMessage(100526016, items_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3355, id_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(79797525, nextPageToken_); } for (int i = 0; i < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(100526016, items_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); } 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.UsableSubnetworksAggregatedList)) { return super.equals(obj); } com.google.cloud.compute.v1.UsableSubnetworksAggregatedList other = (com.google.cloud.compute.v1.UsableSubnetworksAggregatedList) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId().equals(other.getId())) return false; } if (!getItemsList().equals(other.getItemsList())) return false; if (hasKind() != other.hasKind()) return false; if (hasKind()) { if (!getKind().equals(other.getKind())) return false; } if (hasNextPageToken() != other.hasNextPageToken()) return false; if (hasNextPageToken()) { if (!getNextPageToken().equals(other.getNextPageToken())) return false; } if (hasSelfLink() != other.hasSelfLink()) return false; if (hasSelfLink()) { if (!getSelfLink().equals(other.getSelfLink())) 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 (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } if (hasNextPageToken()) { hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); } if (hasSelfLink()) { hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().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.UsableSubnetworksAggregatedList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.UsableSubnetworksAggregatedList 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.UsableSubnetworksAggregatedList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.UsableSubnetworksAggregatedList 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.UsableSubnetworksAggregatedList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.UsableSubnetworksAggregatedList 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.UsableSubnetworksAggregatedList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.UsableSubnetworksAggregatedList 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.UsableSubnetworksAggregatedList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.UsableSubnetworksAggregatedList 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.UsableSubnetworksAggregatedList 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.UsableSubnetworksAggregatedList 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.UsableSubnetworksAggregatedList 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.UsableSubnetworksAggregatedList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.UsableSubnetworksAggregatedList) com.google.cloud.compute.v1.UsableSubnetworksAggregatedListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.UsableSubnetworksAggregatedList.class, com.google.cloud.compute.v1.UsableSubnetworksAggregatedList.Builder.class); } // Construct using com.google.cloud.compute.v1.UsableSubnetworksAggregatedList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getItemsFieldBuilder(); getWarningFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); } else { items_ = null; itemsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); kind_ = ""; nextPageToken_ = ""; selfLink_ = ""; 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_UsableSubnetworksAggregatedList_descriptor; } @java.lang.Override public com.google.cloud.compute.v1.UsableSubnetworksAggregatedList getDefaultInstanceForType() { return com.google.cloud.compute.v1.UsableSubnetworksAggregatedList.getDefaultInstance(); } @java.lang.Override public com.google.cloud.compute.v1.UsableSubnetworksAggregatedList build() { com.google.cloud.compute.v1.UsableSubnetworksAggregatedList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.compute.v1.UsableSubnetworksAggregatedList buildPartial() { com.google.cloud.compute.v1.UsableSubnetworksAggregatedList result = new com.google.cloud.compute.v1.UsableSubnetworksAggregatedList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.compute.v1.UsableSubnetworksAggregatedList result) { if (itemsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { items_ = java.util.Collections.unmodifiableList(items_); bitField0_ = (bitField0_ & ~0x00000002); } result.items_ = items_; } else { result.items_ = itemsBuilder_.build(); } } private void buildPartial0(com.google.cloud.compute.v1.UsableSubnetworksAggregatedList result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.kind_ = kind_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.nextPageToken_ = nextPageToken_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.selfLink_ = selfLink_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build(); to_bitField0_ |= 0x00000010; } 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.UsableSubnetworksAggregatedList) { return mergeFrom((com.google.cloud.compute.v1.UsableSubnetworksAggregatedList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.compute.v1.UsableSubnetworksAggregatedList other) { if (other == com.google.cloud.compute.v1.UsableSubnetworksAggregatedList.getDefaultInstance()) return this; if (other.hasId()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } if (itemsBuilder_ == null) { if (!other.items_.isEmpty()) { if (items_.isEmpty()) { items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureItemsIsMutable(); items_.addAll(other.items_); } onChanged(); } } else { if (!other.items_.isEmpty()) { if (itemsBuilder_.isEmpty()) { itemsBuilder_.dispose(); itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000002); itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getItemsFieldBuilder() : null; } else { itemsBuilder_.addAllMessages(other.items_); } } } if (other.hasKind()) { kind_ = other.kind_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasNextPageToken()) { nextPageToken_ = other.nextPageToken_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; bitField0_ |= 0x00000010; onChanged(); } 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 26842: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 26842 case 26336418: { kind_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26336418 case 405634274: { input.readMessage(getWarningFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 405634274 case 638380202: { nextPageToken_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 638380202 case 804208130: { com.google.cloud.compute.v1.UsableSubnetwork m = input.readMessage( com.google.cloud.compute.v1.UsableSubnetwork.parser(), extensionRegistry); if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(m); } else { itemsBuilder_.addMessage(m); } break; } // case 804208130 case -645248918: { selfLink_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case -645248918 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional string id = 3355; * * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional string id = 3355; * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional string id = 3355; * * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional string id = 3355; * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional string id = 3355; * * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional string id = 3355; * * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.UsableSubnetwork, com.google.cloud.compute.v1.UsableSubnetwork.Builder, com.google.cloud.compute.v1.UsableSubnetworkOrBuilder> itemsBuilder_; /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public com.google.cloud.compute.v1.UsableSubnetwork getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public Builder setItems(int index, com.google.cloud.compute.v1.UsableSubnetwork value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public Builder setItems( int index, com.google.cloud.compute.v1.UsableSubnetwork.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public Builder addItems(com.google.cloud.compute.v1.UsableSubnetwork value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public Builder addItems(int index, com.google.cloud.compute.v1.UsableSubnetwork value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public Builder addItems(com.google.cloud.compute.v1.UsableSubnetwork.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public Builder addItems( int index, com.google.cloud.compute.v1.UsableSubnetwork.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public com.google.cloud.compute.v1.UsableSubnetwork.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public com.google.cloud.compute.v1.UsableSubnetworkOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public com.google.cloud.compute.v1.UsableSubnetwork.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(com.google.cloud.compute.v1.UsableSubnetwork.getDefaultInstance()); } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public com.google.cloud.compute.v1.UsableSubnetwork.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, com.google.cloud.compute.v1.UsableSubnetwork.getDefaultInstance()); } /** * * *
     * [Output] A list of usable subnetwork URLs.
     * 
* * repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.UsableSubnetwork, com.google.cloud.compute.v1.UsableSubnetwork.Builder, com.google.cloud.compute.v1.UsableSubnetworkOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.UsableSubnetwork, com.google.cloud.compute.v1.UsableSubnetwork.Builder, com.google.cloud.compute.v1.UsableSubnetworkOrBuilder>( items_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } private java.lang.Object kind_ = ""; /** * * *
     * [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks.
     * 
* * optional string kind = 3292052; * * @return Whether the kind field is set. */ public boolean hasKind() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks.
     * 
* * optional string kind = 3292052; * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks.
     * 
* * optional string kind = 3292052; * * @return The bytes for kind. */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks.
     * 
* * optional string kind = 3292052; * * @param value The kind to set. * @return This builder for chaining. */ public Builder setKind(java.lang.String value) { if (value == null) { throw new NullPointerException(); } kind_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks.
     * 
* * optional string kind = 3292052; * * @return This builder for chaining. */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks.
     * 
* * optional string kind = 3292052; * * @param value The bytes for kind to set. * @return This builder for chaining. */ public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kind_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object nextPageToken_ = ""; /** * * *
     * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. In special cases listUsable may return 0 subnetworks and nextPageToken which still should be used to get the next page of results.
     * 
* * optional string next_page_token = 79797525; * * @return Whether the nextPageToken field is set. */ public boolean hasNextPageToken() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. In special cases listUsable may return 0 subnetworks and nextPageToken which still should be used to get the next page of results.
     * 
* * optional string next_page_token = 79797525; * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. In special cases listUsable may return 0 subnetworks and nextPageToken which still should be used to get the next page of results.
     * 
* * optional string next_page_token = 79797525; * * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. In special cases listUsable may return 0 subnetworks and nextPageToken which still should be used to get the next page of results.
     * 
* * optional string next_page_token = 79797525; * * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. In special cases listUsable may return 0 subnetworks and nextPageToken which still should be used to get the next page of results.
     * 
* * optional string next_page_token = 79797525; * * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. In special cases listUsable may return 0 subnetworks and nextPageToken which still should be used to get the next page of results.
     * 
* * optional string next_page_token = 79797525; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object selfLink_ = ""; /** * * *
     * [Output Only] Server-defined URL for this resource.
     * 
* * optional string self_link = 456214797; * * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * [Output Only] Server-defined URL for this resource.
     * 
* * optional string self_link = 456214797; * * @return The selfLink. */ public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selfLink_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] Server-defined URL for this resource.
     * 
* * optional string self_link = 456214797; * * @return The bytes for selfLink. */ public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selfLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] Server-defined URL for this resource.
     * 
* * optional string self_link = 456214797; * * @param value The selfLink to set. * @return This builder for chaining. */ public Builder setSelfLink(java.lang.String value) { if (value == null) { throw new NullPointerException(); } selfLink_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * [Output Only] Server-defined URL for this resource.
     * 
* * optional string self_link = 456214797; * * @return This builder for chaining. */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * [Output Only] Server-defined URL for this resource.
     * 
* * optional string self_link = 456214797; * * @param value The bytes for selfLink to set. * @return This builder for chaining. */ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); selfLink_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } 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 message.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; * * @return Whether the warning field is set. */ public boolean hasWarning() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * [Output Only] Informational warning message.
     * 
* * 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 message.
     * 
* * 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_ |= 0x00000020; onChanged(); return this; } /** * * *
     * [Output Only] Informational warning message.
     * 
* * 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_ |= 0x00000020; onChanged(); return this; } /** * * *
     * [Output Only] Informational warning message.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; */ public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) { if (warningBuilder_ == null) { if (((bitField0_ & 0x00000020) != 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_ |= 0x00000020; onChanged(); } return this; } /** * * *
     * [Output Only] Informational warning message.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; */ public Builder clearWarning() { bitField0_ = (bitField0_ & ~0x00000020); warning_ = null; if (warningBuilder_ != null) { warningBuilder_.dispose(); warningBuilder_ = null; } onChanged(); return this; } /** * * *
     * [Output Only] Informational warning message.
     * 
* * optional .google.cloud.compute.v1.Warning warning = 50704284; */ public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() { bitField0_ |= 0x00000020; onChanged(); return getWarningFieldBuilder().getBuilder(); } /** * * *
     * [Output Only] Informational warning message.
     * 
* * 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 message.
     * 
* * 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.UsableSubnetworksAggregatedList) } // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.UsableSubnetworksAggregatedList) private static final com.google.cloud.compute.v1.UsableSubnetworksAggregatedList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.compute.v1.UsableSubnetworksAggregatedList(); } public static com.google.cloud.compute.v1.UsableSubnetworksAggregatedList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UsableSubnetworksAggregatedList 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.UsableSubnetworksAggregatedList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy