com.google.cloud.compute.v1.ServiceAttachmentsScopedList 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.ServiceAttachmentsScopedList}
*/
public final class ServiceAttachmentsScopedList extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ServiceAttachmentsScopedList)
ServiceAttachmentsScopedListOrBuilder {
private static final long serialVersionUID = 0L;
// Use ServiceAttachmentsScopedList.newBuilder() to construct.
private ServiceAttachmentsScopedList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ServiceAttachmentsScopedList() {
serviceAttachments_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ServiceAttachmentsScopedList();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.ServiceAttachmentsScopedList.class,
com.google.cloud.compute.v1.ServiceAttachmentsScopedList.Builder.class);
}
private int bitField0_;
public static final int SERVICE_ATTACHMENTS_FIELD_NUMBER = 307136806;
@SuppressWarnings("serial")
private java.util.List serviceAttachments_;
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
@java.lang.Override
public java.util.List getServiceAttachmentsList() {
return serviceAttachments_;
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
@java.lang.Override
public java.util.List extends com.google.cloud.compute.v1.ServiceAttachmentOrBuilder>
getServiceAttachmentsOrBuilderList() {
return serviceAttachments_;
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
@java.lang.Override
public int getServiceAttachmentsCount() {
return serviceAttachments_.size();
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.ServiceAttachment getServiceAttachments(int index) {
return serviceAttachments_.get(index);
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.ServiceAttachmentOrBuilder getServiceAttachmentsOrBuilder(
int index) {
return serviceAttachments_.get(index);
}
public static final int WARNING_FIELD_NUMBER = 50704284;
private com.google.cloud.compute.v1.Warning warning_;
/**
*
*
*
* Informational warning which replaces the list of service attachments 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);
}
/**
*
*
*
* Informational warning which replaces the list of service attachments 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_;
}
/**
*
*
*
* Informational warning which replaces the list of service attachments 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 < serviceAttachments_.size(); i++) {
output.writeMessage(307136806, serviceAttachments_.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 < serviceAttachments_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
307136806, serviceAttachments_.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.ServiceAttachmentsScopedList)) {
return super.equals(obj);
}
com.google.cloud.compute.v1.ServiceAttachmentsScopedList other =
(com.google.cloud.compute.v1.ServiceAttachmentsScopedList) obj;
if (!getServiceAttachmentsList().equals(other.getServiceAttachmentsList())) 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 (getServiceAttachmentsCount() > 0) {
hash = (37 * hash) + SERVICE_ATTACHMENTS_FIELD_NUMBER;
hash = (53 * hash) + getServiceAttachmentsList().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.ServiceAttachmentsScopedList parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.ServiceAttachmentsScopedList 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.ServiceAttachmentsScopedList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.ServiceAttachmentsScopedList 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.ServiceAttachmentsScopedList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.ServiceAttachmentsScopedList 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.ServiceAttachmentsScopedList parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.ServiceAttachmentsScopedList 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.ServiceAttachmentsScopedList parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.ServiceAttachmentsScopedList 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.ServiceAttachmentsScopedList 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.ServiceAttachmentsScopedList 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.ServiceAttachmentsScopedList 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.ServiceAttachmentsScopedList}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ServiceAttachmentsScopedList)
com.google.cloud.compute.v1.ServiceAttachmentsScopedListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.ServiceAttachmentsScopedList.class,
com.google.cloud.compute.v1.ServiceAttachmentsScopedList.Builder.class);
}
// Construct using com.google.cloud.compute.v1.ServiceAttachmentsScopedList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getServiceAttachmentsFieldBuilder();
getWarningFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (serviceAttachmentsBuilder_ == null) {
serviceAttachments_ = java.util.Collections.emptyList();
} else {
serviceAttachments_ = null;
serviceAttachmentsBuilder_.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_ServiceAttachmentsScopedList_descriptor;
}
@java.lang.Override
public com.google.cloud.compute.v1.ServiceAttachmentsScopedList getDefaultInstanceForType() {
return com.google.cloud.compute.v1.ServiceAttachmentsScopedList.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.compute.v1.ServiceAttachmentsScopedList build() {
com.google.cloud.compute.v1.ServiceAttachmentsScopedList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.compute.v1.ServiceAttachmentsScopedList buildPartial() {
com.google.cloud.compute.v1.ServiceAttachmentsScopedList result =
new com.google.cloud.compute.v1.ServiceAttachmentsScopedList(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.compute.v1.ServiceAttachmentsScopedList result) {
if (serviceAttachmentsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
serviceAttachments_ = java.util.Collections.unmodifiableList(serviceAttachments_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.serviceAttachments_ = serviceAttachments_;
} else {
result.serviceAttachments_ = serviceAttachmentsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.compute.v1.ServiceAttachmentsScopedList 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.ServiceAttachmentsScopedList) {
return mergeFrom((com.google.cloud.compute.v1.ServiceAttachmentsScopedList) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.compute.v1.ServiceAttachmentsScopedList other) {
if (other == com.google.cloud.compute.v1.ServiceAttachmentsScopedList.getDefaultInstance())
return this;
if (serviceAttachmentsBuilder_ == null) {
if (!other.serviceAttachments_.isEmpty()) {
if (serviceAttachments_.isEmpty()) {
serviceAttachments_ = other.serviceAttachments_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureServiceAttachmentsIsMutable();
serviceAttachments_.addAll(other.serviceAttachments_);
}
onChanged();
}
} else {
if (!other.serviceAttachments_.isEmpty()) {
if (serviceAttachmentsBuilder_.isEmpty()) {
serviceAttachmentsBuilder_.dispose();
serviceAttachmentsBuilder_ = null;
serviceAttachments_ = other.serviceAttachments_;
bitField0_ = (bitField0_ & ~0x00000001);
serviceAttachmentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getServiceAttachmentsFieldBuilder()
: null;
} else {
serviceAttachmentsBuilder_.addAllMessages(other.serviceAttachments_);
}
}
}
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 -1837872846:
{
com.google.cloud.compute.v1.ServiceAttachment m =
input.readMessage(
com.google.cloud.compute.v1.ServiceAttachment.parser(), extensionRegistry);
if (serviceAttachmentsBuilder_ == null) {
ensureServiceAttachmentsIsMutable();
serviceAttachments_.add(m);
} else {
serviceAttachmentsBuilder_.addMessage(m);
}
break;
} // case -1837872846
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 serviceAttachments_ =
java.util.Collections.emptyList();
private void ensureServiceAttachmentsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
serviceAttachments_ =
new java.util.ArrayList(
serviceAttachments_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1.ServiceAttachment,
com.google.cloud.compute.v1.ServiceAttachment.Builder,
com.google.cloud.compute.v1.ServiceAttachmentOrBuilder>
serviceAttachmentsBuilder_;
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public java.util.List
getServiceAttachmentsList() {
if (serviceAttachmentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(serviceAttachments_);
} else {
return serviceAttachmentsBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public int getServiceAttachmentsCount() {
if (serviceAttachmentsBuilder_ == null) {
return serviceAttachments_.size();
} else {
return serviceAttachmentsBuilder_.getCount();
}
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public com.google.cloud.compute.v1.ServiceAttachment getServiceAttachments(int index) {
if (serviceAttachmentsBuilder_ == null) {
return serviceAttachments_.get(index);
} else {
return serviceAttachmentsBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public Builder setServiceAttachments(
int index, com.google.cloud.compute.v1.ServiceAttachment value) {
if (serviceAttachmentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceAttachmentsIsMutable();
serviceAttachments_.set(index, value);
onChanged();
} else {
serviceAttachmentsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public Builder setServiceAttachments(
int index, com.google.cloud.compute.v1.ServiceAttachment.Builder builderForValue) {
if (serviceAttachmentsBuilder_ == null) {
ensureServiceAttachmentsIsMutable();
serviceAttachments_.set(index, builderForValue.build());
onChanged();
} else {
serviceAttachmentsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public Builder addServiceAttachments(com.google.cloud.compute.v1.ServiceAttachment value) {
if (serviceAttachmentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceAttachmentsIsMutable();
serviceAttachments_.add(value);
onChanged();
} else {
serviceAttachmentsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public Builder addServiceAttachments(
int index, com.google.cloud.compute.v1.ServiceAttachment value) {
if (serviceAttachmentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceAttachmentsIsMutable();
serviceAttachments_.add(index, value);
onChanged();
} else {
serviceAttachmentsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public Builder addServiceAttachments(
com.google.cloud.compute.v1.ServiceAttachment.Builder builderForValue) {
if (serviceAttachmentsBuilder_ == null) {
ensureServiceAttachmentsIsMutable();
serviceAttachments_.add(builderForValue.build());
onChanged();
} else {
serviceAttachmentsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public Builder addServiceAttachments(
int index, com.google.cloud.compute.v1.ServiceAttachment.Builder builderForValue) {
if (serviceAttachmentsBuilder_ == null) {
ensureServiceAttachmentsIsMutable();
serviceAttachments_.add(index, builderForValue.build());
onChanged();
} else {
serviceAttachmentsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public Builder addAllServiceAttachments(
java.lang.Iterable extends com.google.cloud.compute.v1.ServiceAttachment> values) {
if (serviceAttachmentsBuilder_ == null) {
ensureServiceAttachmentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAttachments_);
onChanged();
} else {
serviceAttachmentsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public Builder clearServiceAttachments() {
if (serviceAttachmentsBuilder_ == null) {
serviceAttachments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
serviceAttachmentsBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public Builder removeServiceAttachments(int index) {
if (serviceAttachmentsBuilder_ == null) {
ensureServiceAttachmentsIsMutable();
serviceAttachments_.remove(index);
onChanged();
} else {
serviceAttachmentsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public com.google.cloud.compute.v1.ServiceAttachment.Builder getServiceAttachmentsBuilder(
int index) {
return getServiceAttachmentsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public com.google.cloud.compute.v1.ServiceAttachmentOrBuilder getServiceAttachmentsOrBuilder(
int index) {
if (serviceAttachmentsBuilder_ == null) {
return serviceAttachments_.get(index);
} else {
return serviceAttachmentsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public java.util.List extends com.google.cloud.compute.v1.ServiceAttachmentOrBuilder>
getServiceAttachmentsOrBuilderList() {
if (serviceAttachmentsBuilder_ != null) {
return serviceAttachmentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(serviceAttachments_);
}
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public com.google.cloud.compute.v1.ServiceAttachment.Builder addServiceAttachmentsBuilder() {
return getServiceAttachmentsFieldBuilder()
.addBuilder(com.google.cloud.compute.v1.ServiceAttachment.getDefaultInstance());
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public com.google.cloud.compute.v1.ServiceAttachment.Builder addServiceAttachmentsBuilder(
int index) {
return getServiceAttachmentsFieldBuilder()
.addBuilder(index, com.google.cloud.compute.v1.ServiceAttachment.getDefaultInstance());
}
/**
*
*
*
* A list of ServiceAttachments contained in this scope.
*
*
* repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806;
*
*/
public java.util.List
getServiceAttachmentsBuilderList() {
return getServiceAttachmentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1.ServiceAttachment,
com.google.cloud.compute.v1.ServiceAttachment.Builder,
com.google.cloud.compute.v1.ServiceAttachmentOrBuilder>
getServiceAttachmentsFieldBuilder() {
if (serviceAttachmentsBuilder_ == null) {
serviceAttachmentsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1.ServiceAttachment,
com.google.cloud.compute.v1.ServiceAttachment.Builder,
com.google.cloud.compute.v1.ServiceAttachmentOrBuilder>(
serviceAttachments_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
serviceAttachments_ = null;
}
return serviceAttachmentsBuilder_;
}
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_;
/**
*
*
*
* Informational warning which replaces the list of service attachments 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);
}
/**
*
*
*
* Informational warning which replaces the list of service attachments 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();
}
}
/**
*
*
*
* Informational warning which replaces the list of service attachments 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;
}
/**
*
*
*
* Informational warning which replaces the list of service attachments 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;
}
/**
*
*
*
* Informational warning which replaces the list of service attachments 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;
}
/**
*
*
*
* Informational warning which replaces the list of service attachments 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;
}
/**
*
*
*
* Informational warning which replaces the list of service attachments 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();
}
/**
*
*
*
* Informational warning which replaces the list of service attachments 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_;
}
}
/**
*
*
*
* Informational warning which replaces the list of service attachments 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.ServiceAttachmentsScopedList)
}
// @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ServiceAttachmentsScopedList)
private static final com.google.cloud.compute.v1.ServiceAttachmentsScopedList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ServiceAttachmentsScopedList();
}
public static com.google.cloud.compute.v1.ServiceAttachmentsScopedList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServiceAttachmentsScopedList 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.ServiceAttachmentsScopedList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy