com.google.cloud.compute.v1.InstantSnapshotsScopedList 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.InstantSnapshotsScopedList}
*/
public final class InstantSnapshotsScopedList extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstantSnapshotsScopedList)
InstantSnapshotsScopedListOrBuilder {
private static final long serialVersionUID = 0L;
// Use InstantSnapshotsScopedList.newBuilder() to construct.
private InstantSnapshotsScopedList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InstantSnapshotsScopedList() {
instantSnapshots_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new InstantSnapshotsScopedList();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.InstantSnapshotsScopedList.class,
com.google.cloud.compute.v1.InstantSnapshotsScopedList.Builder.class);
}
private int bitField0_;
public static final int INSTANT_SNAPSHOTS_FIELD_NUMBER = 329637457;
@SuppressWarnings("serial")
private java.util.List instantSnapshots_;
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
@java.lang.Override
public java.util.List getInstantSnapshotsList() {
return instantSnapshots_;
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
@java.lang.Override
public java.util.List extends com.google.cloud.compute.v1.InstantSnapshotOrBuilder>
getInstantSnapshotsOrBuilderList() {
return instantSnapshots_;
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
@java.lang.Override
public int getInstantSnapshotsCount() {
return instantSnapshots_.size();
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
@java.lang.Override
public com.google.cloud.compute.v1.InstantSnapshot getInstantSnapshots(int index) {
return instantSnapshots_.get(index);
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
@java.lang.Override
public com.google.cloud.compute.v1.InstantSnapshotOrBuilder getInstantSnapshotsOrBuilder(
int index) {
return instantSnapshots_.get(index);
}
public static final int WARNING_FIELD_NUMBER = 50704284;
private com.google.cloud.compute.v1.Warning warning_;
/**
*
*
*
* [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*
* @return Whether the warning field is set.
*/
@java.lang.Override
public boolean hasWarning() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*
* @return The warning.
*/
@java.lang.Override
public com.google.cloud.compute.v1.Warning getWarning() {
return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_;
}
/**
*
*
*
* [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
@java.lang.Override
public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() {
return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(50704284, getWarning());
}
for (int i = 0; i < instantSnapshots_.size(); i++) {
output.writeMessage(329637457, instantSnapshots_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning());
}
for (int i = 0; i < instantSnapshots_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
329637457, instantSnapshots_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.compute.v1.InstantSnapshotsScopedList)) {
return super.equals(obj);
}
com.google.cloud.compute.v1.InstantSnapshotsScopedList other =
(com.google.cloud.compute.v1.InstantSnapshotsScopedList) obj;
if (!getInstantSnapshotsList().equals(other.getInstantSnapshotsList())) 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 (getInstantSnapshotsCount() > 0) {
hash = (37 * hash) + INSTANT_SNAPSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getInstantSnapshotsList().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.InstantSnapshotsScopedList parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.InstantSnapshotsScopedList 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.InstantSnapshotsScopedList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.InstantSnapshotsScopedList 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.InstantSnapshotsScopedList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.InstantSnapshotsScopedList 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.InstantSnapshotsScopedList parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.InstantSnapshotsScopedList 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.InstantSnapshotsScopedList parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.InstantSnapshotsScopedList 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.InstantSnapshotsScopedList 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.InstantSnapshotsScopedList 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.InstantSnapshotsScopedList 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.InstantSnapshotsScopedList}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstantSnapshotsScopedList)
com.google.cloud.compute.v1.InstantSnapshotsScopedListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.InstantSnapshotsScopedList.class,
com.google.cloud.compute.v1.InstantSnapshotsScopedList.Builder.class);
}
// Construct using com.google.cloud.compute.v1.InstantSnapshotsScopedList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getInstantSnapshotsFieldBuilder();
getWarningFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (instantSnapshotsBuilder_ == null) {
instantSnapshots_ = java.util.Collections.emptyList();
} else {
instantSnapshots_ = null;
instantSnapshotsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
warning_ = null;
if (warningBuilder_ != null) {
warningBuilder_.dispose();
warningBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_descriptor;
}
@java.lang.Override
public com.google.cloud.compute.v1.InstantSnapshotsScopedList getDefaultInstanceForType() {
return com.google.cloud.compute.v1.InstantSnapshotsScopedList.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.compute.v1.InstantSnapshotsScopedList build() {
com.google.cloud.compute.v1.InstantSnapshotsScopedList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.compute.v1.InstantSnapshotsScopedList buildPartial() {
com.google.cloud.compute.v1.InstantSnapshotsScopedList result =
new com.google.cloud.compute.v1.InstantSnapshotsScopedList(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.compute.v1.InstantSnapshotsScopedList result) {
if (instantSnapshotsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
instantSnapshots_ = java.util.Collections.unmodifiableList(instantSnapshots_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.instantSnapshots_ = instantSnapshots_;
} else {
result.instantSnapshots_ = instantSnapshotsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.compute.v1.InstantSnapshotsScopedList result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.compute.v1.InstantSnapshotsScopedList) {
return mergeFrom((com.google.cloud.compute.v1.InstantSnapshotsScopedList) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.compute.v1.InstantSnapshotsScopedList other) {
if (other == com.google.cloud.compute.v1.InstantSnapshotsScopedList.getDefaultInstance())
return this;
if (instantSnapshotsBuilder_ == null) {
if (!other.instantSnapshots_.isEmpty()) {
if (instantSnapshots_.isEmpty()) {
instantSnapshots_ = other.instantSnapshots_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInstantSnapshotsIsMutable();
instantSnapshots_.addAll(other.instantSnapshots_);
}
onChanged();
}
} else {
if (!other.instantSnapshots_.isEmpty()) {
if (instantSnapshotsBuilder_.isEmpty()) {
instantSnapshotsBuilder_.dispose();
instantSnapshotsBuilder_ = null;
instantSnapshots_ = other.instantSnapshots_;
bitField0_ = (bitField0_ & ~0x00000001);
instantSnapshotsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getInstantSnapshotsFieldBuilder()
: null;
} else {
instantSnapshotsBuilder_.addAllMessages(other.instantSnapshots_);
}
}
}
if (other.hasWarning()) {
mergeWarning(other.getWarning());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 405634274:
{
input.readMessage(getWarningFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 405634274
case -1657867638:
{
com.google.cloud.compute.v1.InstantSnapshot m =
input.readMessage(
com.google.cloud.compute.v1.InstantSnapshot.parser(), extensionRegistry);
if (instantSnapshotsBuilder_ == null) {
ensureInstantSnapshotsIsMutable();
instantSnapshots_.add(m);
} else {
instantSnapshotsBuilder_.addMessage(m);
}
break;
} // case -1657867638
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List instantSnapshots_ =
java.util.Collections.emptyList();
private void ensureInstantSnapshotsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
instantSnapshots_ =
new java.util.ArrayList(instantSnapshots_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1.InstantSnapshot,
com.google.cloud.compute.v1.InstantSnapshot.Builder,
com.google.cloud.compute.v1.InstantSnapshotOrBuilder>
instantSnapshotsBuilder_;
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public java.util.List getInstantSnapshotsList() {
if (instantSnapshotsBuilder_ == null) {
return java.util.Collections.unmodifiableList(instantSnapshots_);
} else {
return instantSnapshotsBuilder_.getMessageList();
}
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public int getInstantSnapshotsCount() {
if (instantSnapshotsBuilder_ == null) {
return instantSnapshots_.size();
} else {
return instantSnapshotsBuilder_.getCount();
}
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public com.google.cloud.compute.v1.InstantSnapshot getInstantSnapshots(int index) {
if (instantSnapshotsBuilder_ == null) {
return instantSnapshots_.get(index);
} else {
return instantSnapshotsBuilder_.getMessage(index);
}
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public Builder setInstantSnapshots(
int index, com.google.cloud.compute.v1.InstantSnapshot value) {
if (instantSnapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstantSnapshotsIsMutable();
instantSnapshots_.set(index, value);
onChanged();
} else {
instantSnapshotsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public Builder setInstantSnapshots(
int index, com.google.cloud.compute.v1.InstantSnapshot.Builder builderForValue) {
if (instantSnapshotsBuilder_ == null) {
ensureInstantSnapshotsIsMutable();
instantSnapshots_.set(index, builderForValue.build());
onChanged();
} else {
instantSnapshotsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public Builder addInstantSnapshots(com.google.cloud.compute.v1.InstantSnapshot value) {
if (instantSnapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstantSnapshotsIsMutable();
instantSnapshots_.add(value);
onChanged();
} else {
instantSnapshotsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public Builder addInstantSnapshots(
int index, com.google.cloud.compute.v1.InstantSnapshot value) {
if (instantSnapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstantSnapshotsIsMutable();
instantSnapshots_.add(index, value);
onChanged();
} else {
instantSnapshotsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public Builder addInstantSnapshots(
com.google.cloud.compute.v1.InstantSnapshot.Builder builderForValue) {
if (instantSnapshotsBuilder_ == null) {
ensureInstantSnapshotsIsMutable();
instantSnapshots_.add(builderForValue.build());
onChanged();
} else {
instantSnapshotsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public Builder addInstantSnapshots(
int index, com.google.cloud.compute.v1.InstantSnapshot.Builder builderForValue) {
if (instantSnapshotsBuilder_ == null) {
ensureInstantSnapshotsIsMutable();
instantSnapshots_.add(index, builderForValue.build());
onChanged();
} else {
instantSnapshotsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public Builder addAllInstantSnapshots(
java.lang.Iterable extends com.google.cloud.compute.v1.InstantSnapshot> values) {
if (instantSnapshotsBuilder_ == null) {
ensureInstantSnapshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instantSnapshots_);
onChanged();
} else {
instantSnapshotsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public Builder clearInstantSnapshots() {
if (instantSnapshotsBuilder_ == null) {
instantSnapshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
instantSnapshotsBuilder_.clear();
}
return this;
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public Builder removeInstantSnapshots(int index) {
if (instantSnapshotsBuilder_ == null) {
ensureInstantSnapshotsIsMutable();
instantSnapshots_.remove(index);
onChanged();
} else {
instantSnapshotsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public com.google.cloud.compute.v1.InstantSnapshot.Builder getInstantSnapshotsBuilder(
int index) {
return getInstantSnapshotsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public com.google.cloud.compute.v1.InstantSnapshotOrBuilder getInstantSnapshotsOrBuilder(
int index) {
if (instantSnapshotsBuilder_ == null) {
return instantSnapshots_.get(index);
} else {
return instantSnapshotsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public java.util.List extends com.google.cloud.compute.v1.InstantSnapshotOrBuilder>
getInstantSnapshotsOrBuilderList() {
if (instantSnapshotsBuilder_ != null) {
return instantSnapshotsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(instantSnapshots_);
}
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public com.google.cloud.compute.v1.InstantSnapshot.Builder addInstantSnapshotsBuilder() {
return getInstantSnapshotsFieldBuilder()
.addBuilder(com.google.cloud.compute.v1.InstantSnapshot.getDefaultInstance());
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public com.google.cloud.compute.v1.InstantSnapshot.Builder addInstantSnapshotsBuilder(
int index) {
return getInstantSnapshotsFieldBuilder()
.addBuilder(index, com.google.cloud.compute.v1.InstantSnapshot.getDefaultInstance());
}
/**
*
*
*
* [Output Only] A list of instantSnapshots contained in this scope.
*
*
* repeated .google.cloud.compute.v1.InstantSnapshot instant_snapshots = 329637457;
*/
public java.util.List
getInstantSnapshotsBuilderList() {
return getInstantSnapshotsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1.InstantSnapshot,
com.google.cloud.compute.v1.InstantSnapshot.Builder,
com.google.cloud.compute.v1.InstantSnapshotOrBuilder>
getInstantSnapshotsFieldBuilder() {
if (instantSnapshotsBuilder_ == null) {
instantSnapshotsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1.InstantSnapshot,
com.google.cloud.compute.v1.InstantSnapshot.Builder,
com.google.cloud.compute.v1.InstantSnapshotOrBuilder>(
instantSnapshots_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
instantSnapshots_ = null;
}
return instantSnapshotsBuilder_;
}
private com.google.cloud.compute.v1.Warning warning_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.Warning,
com.google.cloud.compute.v1.Warning.Builder,
com.google.cloud.compute.v1.WarningOrBuilder>
warningBuilder_;
/**
*
*
*
* [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*
* @return Whether the warning field is set.
*/
public boolean hasWarning() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*
* @return The warning.
*/
public com.google.cloud.compute.v1.Warning getWarning() {
if (warningBuilder_ == null) {
return warning_ == null
? com.google.cloud.compute.v1.Warning.getDefaultInstance()
: warning_;
} else {
return warningBuilder_.getMessage();
}
}
/**
*
*
*
* [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public Builder setWarning(com.google.cloud.compute.v1.Warning value) {
if (warningBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
warning_ = value;
} else {
warningBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) {
if (warningBuilder_ == null) {
warning_ = builderForValue.build();
} else {
warningBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) {
if (warningBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& warning_ != null
&& warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) {
getWarningBuilder().mergeFrom(value);
} else {
warning_ = value;
}
} else {
warningBuilder_.mergeFrom(value);
}
if (warning_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public Builder clearWarning() {
bitField0_ = (bitField0_ & ~0x00000002);
warning_ = null;
if (warningBuilder_ != null) {
warningBuilder_.dispose();
warningBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getWarningFieldBuilder().getBuilder();
}
/**
*
*
*
* [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() {
if (warningBuilder_ != null) {
return warningBuilder_.getMessageOrBuilder();
} else {
return warning_ == null
? com.google.cloud.compute.v1.Warning.getDefaultInstance()
: warning_;
}
}
/**
*
*
*
* [Output Only] Informational warning which replaces the list of instantSnapshots when the list is empty.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.Warning,
com.google.cloud.compute.v1.Warning.Builder,
com.google.cloud.compute.v1.WarningOrBuilder>
getWarningFieldBuilder() {
if (warningBuilder_ == null) {
warningBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.Warning,
com.google.cloud.compute.v1.Warning.Builder,
com.google.cloud.compute.v1.WarningOrBuilder>(
getWarning(), getParentForChildren(), isClean());
warning_ = null;
}
return warningBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InstantSnapshotsScopedList)
}
// @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstantSnapshotsScopedList)
private static final com.google.cloud.compute.v1.InstantSnapshotsScopedList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InstantSnapshotsScopedList();
}
public static com.google.cloud.compute.v1.InstantSnapshotsScopedList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InstantSnapshotsScopedList 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.InstantSnapshotsScopedList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy