com.google.cloud.compute.v1.InstanceGroupAggregatedList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-compute-v1 Show documentation
Show all versions of proto-google-cloud-compute-v1 Show documentation
Proto library for google-cloud-compute
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.InstanceGroupAggregatedList}
*/
public final class InstanceGroupAggregatedList extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstanceGroupAggregatedList)
InstanceGroupAggregatedListOrBuilder {
private static final long serialVersionUID = 0L;
// Use InstanceGroupAggregatedList.newBuilder() to construct.
private InstanceGroupAggregatedList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InstanceGroupAggregatedList() {
id_ = "";
kind_ = "";
nextPageToken_ = "";
selfLink_ = "";
unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new InstanceGroupAggregatedList();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 100526016:
return internalGetItems();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.InstanceGroupAggregatedList.class,
com.google.cloud.compute.v1.InstanceGroupAggregatedList.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 3355;
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
*
*
*
* [Output Only] Unique identifier for the resource; 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] Unique identifier for the resource; 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] Unique identifier for the resource; 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;
private static final class ItemsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.compute.v1.InstanceGroupsScopedList>
defaultEntry =
com.google.protobuf.MapEntry
.
newDefaultInstance(
com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_ItemsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.google.cloud.compute.v1.InstanceGroupsScopedList.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, com.google.cloud.compute.v1.InstanceGroupsScopedList>
items_;
private com.google.protobuf.MapField<
java.lang.String, com.google.cloud.compute.v1.InstanceGroupsScopedList>
internalGetItems() {
if (items_ == null) {
return com.google.protobuf.MapField.emptyMapField(ItemsDefaultEntryHolder.defaultEntry);
}
return items_;
}
public int getItemsCount() {
return internalGetItems().getMap().size();
}
/**
*
*
*
* A list of InstanceGroupsScopedList resources.
*
*
* map<string, .google.cloud.compute.v1.InstanceGroupsScopedList> items = 100526016;
*
*/
@java.lang.Override
public boolean containsItems(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetItems().getMap().containsKey(key);
}
/** Use {@link #getItemsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map
getItems() {
return getItemsMap();
}
/**
*
*
*
* A list of InstanceGroupsScopedList resources.
*
*
* map<string, .google.cloud.compute.v1.InstanceGroupsScopedList> items = 100526016;
*
*/
@java.lang.Override
public java.util.Map
getItemsMap() {
return internalGetItems().getMap();
}
/**
*
*
*
* A list of InstanceGroupsScopedList resources.
*
*
* map<string, .google.cloud.compute.v1.InstanceGroupsScopedList> items = 100526016;
*
*/
@java.lang.Override
public /* nullable */ com.google.cloud.compute.v1.InstanceGroupsScopedList getItemsOrDefault(
java.lang.String key,
/* nullable */
com.google.cloud.compute.v1.InstanceGroupsScopedList defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetItems().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* A list of InstanceGroupsScopedList resources.
*
*
* map<string, .google.cloud.compute.v1.InstanceGroupsScopedList> items = 100526016;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupsScopedList getItemsOrThrow(
java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetItems().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int KIND_FIELD_NUMBER = 3292052;
@SuppressWarnings("serial")
private volatile java.lang.Object kind_ = "";
/**
*
*
*
* [Output Only] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups.
*
*
* optional string kind = 3292052;
*
* @return Whether the kind field is set.
*/
@java.lang.Override
public boolean hasKind() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* [Output Only] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups.
*
*
* 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] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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 UNREACHABLES_FIELD_NUMBER = 243372063;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList unreachables_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @return A list containing the unreachables.
*/
public com.google.protobuf.ProtocolStringList getUnreachablesList() {
return unreachables_;
}
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @return The count of unreachables.
*/
public int getUnreachablesCount() {
return unreachables_.size();
}
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @param index The index of the element to return.
* @return The unreachables at the given index.
*/
public java.lang.String getUnreachables(int index) {
return unreachables_.get(index);
}
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @param index The index of the value to return.
* @return The bytes of the unreachables at the given index.
*/
public com.google.protobuf.ByteString getUnreachablesBytes(int index) {
return unreachables_.getByteString(index);
}
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_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetItems(), ItemsDefaultEntryHolder.defaultEntry, 100526016);
for (int i = 0; i < unreachables_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 243372063, unreachables_.getRaw(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 (java.util.Map.Entry
entry : internalGetItems().getMap().entrySet()) {
com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.compute.v1.InstanceGroupsScopedList>
items__ =
ItemsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(100526016, items__);
}
{
int dataSize = 0;
for (int i = 0; i < unreachables_.size(); i++) {
dataSize += computeStringSizeNoTag(unreachables_.getRaw(i));
}
size += dataSize;
size += 5 * getUnreachablesList().size();
}
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.InstanceGroupAggregatedList)) {
return super.equals(obj);
}
com.google.cloud.compute.v1.InstanceGroupAggregatedList other =
(com.google.cloud.compute.v1.InstanceGroupAggregatedList) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (!getId().equals(other.getId())) return false;
}
if (!internalGetItems().equals(other.internalGetItems())) 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 (!getUnreachablesList().equals(other.getUnreachablesList())) 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 (!internalGetItems().getMap().isEmpty()) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + internalGetItems().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 (getUnreachablesCount() > 0) {
hash = (37 * hash) + UNREACHABLES_FIELD_NUMBER;
hash = (53 * hash) + getUnreachablesList().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.InstanceGroupAggregatedList parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.InstanceGroupAggregatedList 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.InstanceGroupAggregatedList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.InstanceGroupAggregatedList 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.InstanceGroupAggregatedList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.InstanceGroupAggregatedList 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.InstanceGroupAggregatedList parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.InstanceGroupAggregatedList 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.InstanceGroupAggregatedList parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.InstanceGroupAggregatedList 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.InstanceGroupAggregatedList 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.InstanceGroupAggregatedList 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.InstanceGroupAggregatedList 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.InstanceGroupAggregatedList}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstanceGroupAggregatedList)
com.google.cloud.compute.v1.InstanceGroupAggregatedListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 100526016:
return internalGetItems();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 100526016:
return internalGetMutableItems();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.InstanceGroupAggregatedList.class,
com.google.cloud.compute.v1.InstanceGroupAggregatedList.Builder.class);
}
// Construct using com.google.cloud.compute.v1.InstanceGroupAggregatedList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getWarningFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = "";
internalGetMutableItems().clear();
kind_ = "";
nextPageToken_ = "";
selfLink_ = "";
unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList();
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_InstanceGroupAggregatedList_descriptor;
}
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupAggregatedList getDefaultInstanceForType() {
return com.google.cloud.compute.v1.InstanceGroupAggregatedList.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupAggregatedList build() {
com.google.cloud.compute.v1.InstanceGroupAggregatedList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupAggregatedList buildPartial() {
com.google.cloud.compute.v1.InstanceGroupAggregatedList result =
new com.google.cloud.compute.v1.InstanceGroupAggregatedList(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.compute.v1.InstanceGroupAggregatedList result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.items_ = internalGetItems().build(ItemsDefaultEntryHolder.defaultEntry);
}
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)) {
unreachables_.makeImmutable();
result.unreachables_ = unreachables_;
}
if (((from_bitField0_ & 0x00000040) != 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.InstanceGroupAggregatedList) {
return mergeFrom((com.google.cloud.compute.v1.InstanceGroupAggregatedList) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupAggregatedList other) {
if (other == com.google.cloud.compute.v1.InstanceGroupAggregatedList.getDefaultInstance())
return this;
if (other.hasId()) {
id_ = other.id_;
bitField0_ |= 0x00000001;
onChanged();
}
internalGetMutableItems().mergeFrom(other.internalGetItems());
bitField0_ |= 0x00000002;
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.unreachables_.isEmpty()) {
if (unreachables_.isEmpty()) {
unreachables_ = other.unreachables_;
bitField0_ |= 0x00000020;
} else {
ensureUnreachablesIsMutable();
unreachables_.addAll(other.unreachables_);
}
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_ |= 0x00000040;
break;
} // case 405634274
case 638380202:
{
nextPageToken_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 638380202
case 804208130:
{
com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.compute.v1.InstanceGroupsScopedList>
items__ =
input.readMessage(
ItemsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableItems()
.ensureBuilderMap()
.put(items__.getKey(), items__.getValue());
bitField0_ |= 0x00000002;
break;
} // case 804208130
case 1946976506:
{
java.lang.String s = input.readStringRequireUtf8();
ensureUnreachablesIsMutable();
unreachables_.add(s);
break;
} // case 1946976506
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] Unique identifier for the resource; defined by the server.
*
*
* optional string id = 3355;
*
* @return Whether the id field is set.
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* [Output Only] Unique identifier for the resource; 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] Unique identifier for the resource; 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] Unique identifier for the resource; 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] Unique identifier for the resource; 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] Unique identifier for the resource; 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 static final class ItemsConverter
implements com.google.protobuf.MapFieldBuilder.Converter<
java.lang.String,
com.google.cloud.compute.v1.InstanceGroupsScopedListOrBuilder,
com.google.cloud.compute.v1.InstanceGroupsScopedList> {
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupsScopedList build(
com.google.cloud.compute.v1.InstanceGroupsScopedListOrBuilder val) {
if (val instanceof com.google.cloud.compute.v1.InstanceGroupsScopedList) {
return (com.google.cloud.compute.v1.InstanceGroupsScopedList) val;
}
return ((com.google.cloud.compute.v1.InstanceGroupsScopedList.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.compute.v1.InstanceGroupsScopedList>
defaultEntry() {
return ItemsDefaultEntryHolder.defaultEntry;
}
};
private static final ItemsConverter itemsConverter = new ItemsConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.compute.v1.InstanceGroupsScopedListOrBuilder,
com.google.cloud.compute.v1.InstanceGroupsScopedList,
com.google.cloud.compute.v1.InstanceGroupsScopedList.Builder>
items_;
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.compute.v1.InstanceGroupsScopedListOrBuilder,
com.google.cloud.compute.v1.InstanceGroupsScopedList,
com.google.cloud.compute.v1.InstanceGroupsScopedList.Builder>
internalGetItems() {
if (items_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(itemsConverter);
}
return items_;
}
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.compute.v1.InstanceGroupsScopedListOrBuilder,
com.google.cloud.compute.v1.InstanceGroupsScopedList,
com.google.cloud.compute.v1.InstanceGroupsScopedList.Builder>
internalGetMutableItems() {
if (items_ == null) {
items_ = new com.google.protobuf.MapFieldBuilder<>(itemsConverter);
}
bitField0_ |= 0x00000002;
onChanged();
return items_;
}
public int getItemsCount() {
return internalGetItems().ensureBuilderMap().size();
}
/**
*
*
*
* A list of InstanceGroupsScopedList resources.
*
*
* map<string, .google.cloud.compute.v1.InstanceGroupsScopedList> items = 100526016;
*
*/
@java.lang.Override
public boolean containsItems(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetItems().ensureBuilderMap().containsKey(key);
}
/** Use {@link #getItemsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map
getItems() {
return getItemsMap();
}
/**
*
*
*
* A list of InstanceGroupsScopedList resources.
*
*
* map<string, .google.cloud.compute.v1.InstanceGroupsScopedList> items = 100526016;
*
*/
@java.lang.Override
public java.util.Map
getItemsMap() {
return internalGetItems().getImmutableMap();
}
/**
*
*
*
* A list of InstanceGroupsScopedList resources.
*
*
* map<string, .google.cloud.compute.v1.InstanceGroupsScopedList> items = 100526016;
*
*/
@java.lang.Override
public /* nullable */ com.google.cloud.compute.v1.InstanceGroupsScopedList getItemsOrDefault(
java.lang.String key,
/* nullable */
com.google.cloud.compute.v1.InstanceGroupsScopedList defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map
map = internalGetMutableItems().ensureBuilderMap();
return map.containsKey(key) ? itemsConverter.build(map.get(key)) : defaultValue;
}
/**
*
*
*
* A list of InstanceGroupsScopedList resources.
*
*
* map<string, .google.cloud.compute.v1.InstanceGroupsScopedList> items = 100526016;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupsScopedList getItemsOrThrow(
java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map
map = internalGetMutableItems().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return itemsConverter.build(map.get(key));
}
public Builder clearItems() {
bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableItems().clear();
return this;
}
/**
*
*
*
* A list of InstanceGroupsScopedList resources.
*
*
* map<string, .google.cloud.compute.v1.InstanceGroupsScopedList> items = 100526016;
*
*/
public Builder removeItems(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableItems().ensureBuilderMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map
getMutableItems() {
bitField0_ |= 0x00000002;
return internalGetMutableItems().ensureMessageMap();
}
/**
*
*
*
* A list of InstanceGroupsScopedList resources.
*
*
* map<string, .google.cloud.compute.v1.InstanceGroupsScopedList> items = 100526016;
*
*/
public Builder putItems(
java.lang.String key, com.google.cloud.compute.v1.InstanceGroupsScopedList value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableItems().ensureBuilderMap().put(key, value);
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* A list of InstanceGroupsScopedList resources.
*
*
* map<string, .google.cloud.compute.v1.InstanceGroupsScopedList> items = 100526016;
*
*/
public Builder putAllItems(
java.util.Map
values) {
for (java.util.Map.Entry<
java.lang.String, com.google.cloud.compute.v1.InstanceGroupsScopedList>
e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableItems().ensureBuilderMap().putAll(values);
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* A list of InstanceGroupsScopedList resources.
*
*
* map<string, .google.cloud.compute.v1.InstanceGroupsScopedList> items = 100526016;
*
*/
public com.google.cloud.compute.v1.InstanceGroupsScopedList.Builder putItemsBuilderIfAbsent(
java.lang.String key) {
java.util.Map
builderMap = internalGetMutableItems().ensureBuilderMap();
com.google.cloud.compute.v1.InstanceGroupsScopedListOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = com.google.cloud.compute.v1.InstanceGroupsScopedList.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof com.google.cloud.compute.v1.InstanceGroupsScopedList) {
entry = ((com.google.cloud.compute.v1.InstanceGroupsScopedList) entry).toBuilder();
builderMap.put(key, entry);
}
return (com.google.cloud.compute.v1.InstanceGroupsScopedList.Builder) entry;
}
private java.lang.Object kind_ = "";
/**
*
*
*
* [Output Only] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups.
*
*
* optional string kind = 3292052;
*
* @return Whether the kind field is set.
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* [Output Only] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups.
*
*
* 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] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups.
*
*
* 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] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups.
*
*
* 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] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups.
*
*
* optional string kind = 3292052;
*
* @return This builder for chaining.
*/
public Builder clearKind() {
kind_ = getDefaultInstance().getKind();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* [Output Only] The resource type, which is always compute#instanceGroupAggregatedList for aggregated lists of instance groups.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.protobuf.LazyStringArrayList unreachables_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureUnreachablesIsMutable() {
if (!unreachables_.isModifiable()) {
unreachables_ = new com.google.protobuf.LazyStringArrayList(unreachables_);
}
bitField0_ |= 0x00000020;
}
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @return A list containing the unreachables.
*/
public com.google.protobuf.ProtocolStringList getUnreachablesList() {
unreachables_.makeImmutable();
return unreachables_;
}
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @return The count of unreachables.
*/
public int getUnreachablesCount() {
return unreachables_.size();
}
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @param index The index of the element to return.
* @return The unreachables at the given index.
*/
public java.lang.String getUnreachables(int index) {
return unreachables_.get(index);
}
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @param index The index of the value to return.
* @return The bytes of the unreachables at the given index.
*/
public com.google.protobuf.ByteString getUnreachablesBytes(int index) {
return unreachables_.getByteString(index);
}
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @param index The index to set the value at.
* @param value The unreachables to set.
* @return This builder for chaining.
*/
public Builder setUnreachables(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUnreachablesIsMutable();
unreachables_.set(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @param value The unreachables to add.
* @return This builder for chaining.
*/
public Builder addUnreachables(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUnreachablesIsMutable();
unreachables_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @param values The unreachables to add.
* @return This builder for chaining.
*/
public Builder addAllUnreachables(java.lang.Iterable values) {
ensureUnreachablesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachables_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @return This builder for chaining.
*/
public Builder clearUnreachables() {
unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Unreachable resources.
*
*
* repeated string unreachables = 243372063;
*
* @param value The bytes of the unreachables to add.
* @return This builder for chaining.
*/
public Builder addUnreachablesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureUnreachablesIsMutable();
unreachables_.add(value);
bitField0_ |= 0x00000020;
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_ & 0x00000040) != 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_ |= 0x00000040;
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_ |= 0x00000040;
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_ & 0x00000040) != 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_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public Builder clearWarning() {
bitField0_ = (bitField0_ & ~0x00000040);
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_ |= 0x00000040;
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.InstanceGroupAggregatedList)
}
// @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstanceGroupAggregatedList)
private static final com.google.cloud.compute.v1.InstanceGroupAggregatedList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InstanceGroupAggregatedList();
}
public static com.google.cloud.compute.v1.InstanceGroupAggregatedList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InstanceGroupAggregatedList 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.InstanceGroupAggregatedList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy