• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * </pre>
26  *
27  * Protobuf type {@code google.cloud.compute.v1.AutoscalersScopedList}
28  */
29 public final class AutoscalersScopedList extends com.google.protobuf.GeneratedMessageV3
30     implements
31     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.AutoscalersScopedList)
32     AutoscalersScopedListOrBuilder {
33   private static final long serialVersionUID = 0L;
34   // Use AutoscalersScopedList.newBuilder() to construct.
AutoscalersScopedList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)35   private AutoscalersScopedList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
36     super(builder);
37   }
38 
AutoscalersScopedList()39   private AutoscalersScopedList() {
40     autoscalers_ = java.util.Collections.emptyList();
41   }
42 
43   @java.lang.Override
44   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)45   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
46     return new AutoscalersScopedList();
47   }
48 
49   @java.lang.Override
getUnknownFields()50   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
51     return this.unknownFields;
52   }
53 
getDescriptor()54   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
55     return com.google.cloud.compute.v1.Compute
56         .internal_static_google_cloud_compute_v1_AutoscalersScopedList_descriptor;
57   }
58 
59   @java.lang.Override
60   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()61       internalGetFieldAccessorTable() {
62     return com.google.cloud.compute.v1.Compute
63         .internal_static_google_cloud_compute_v1_AutoscalersScopedList_fieldAccessorTable
64         .ensureFieldAccessorsInitialized(
65             com.google.cloud.compute.v1.AutoscalersScopedList.class,
66             com.google.cloud.compute.v1.AutoscalersScopedList.Builder.class);
67   }
68 
69   private int bitField0_;
70   public static final int AUTOSCALERS_FIELD_NUMBER = 465771644;
71 
72   @SuppressWarnings("serial")
73   private java.util.List<com.google.cloud.compute.v1.Autoscaler> autoscalers_;
74   /**
75    *
76    *
77    * <pre>
78    * [Output Only] A list of autoscalers contained in this scope.
79    * </pre>
80    *
81    * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
82    */
83   @java.lang.Override
getAutoscalersList()84   public java.util.List<com.google.cloud.compute.v1.Autoscaler> getAutoscalersList() {
85     return autoscalers_;
86   }
87   /**
88    *
89    *
90    * <pre>
91    * [Output Only] A list of autoscalers contained in this scope.
92    * </pre>
93    *
94    * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
95    */
96   @java.lang.Override
97   public java.util.List<? extends com.google.cloud.compute.v1.AutoscalerOrBuilder>
getAutoscalersOrBuilderList()98       getAutoscalersOrBuilderList() {
99     return autoscalers_;
100   }
101   /**
102    *
103    *
104    * <pre>
105    * [Output Only] A list of autoscalers contained in this scope.
106    * </pre>
107    *
108    * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
109    */
110   @java.lang.Override
getAutoscalersCount()111   public int getAutoscalersCount() {
112     return autoscalers_.size();
113   }
114   /**
115    *
116    *
117    * <pre>
118    * [Output Only] A list of autoscalers contained in this scope.
119    * </pre>
120    *
121    * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
122    */
123   @java.lang.Override
getAutoscalers(int index)124   public com.google.cloud.compute.v1.Autoscaler getAutoscalers(int index) {
125     return autoscalers_.get(index);
126   }
127   /**
128    *
129    *
130    * <pre>
131    * [Output Only] A list of autoscalers contained in this scope.
132    * </pre>
133    *
134    * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
135    */
136   @java.lang.Override
getAutoscalersOrBuilder(int index)137   public com.google.cloud.compute.v1.AutoscalerOrBuilder getAutoscalersOrBuilder(int index) {
138     return autoscalers_.get(index);
139   }
140 
141   public static final int WARNING_FIELD_NUMBER = 50704284;
142   private com.google.cloud.compute.v1.Warning warning_;
143   /**
144    *
145    *
146    * <pre>
147    * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
148    * </pre>
149    *
150    * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
151    *
152    * @return Whether the warning field is set.
153    */
154   @java.lang.Override
hasWarning()155   public boolean hasWarning() {
156     return ((bitField0_ & 0x00000001) != 0);
157   }
158   /**
159    *
160    *
161    * <pre>
162    * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
163    * </pre>
164    *
165    * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
166    *
167    * @return The warning.
168    */
169   @java.lang.Override
getWarning()170   public com.google.cloud.compute.v1.Warning getWarning() {
171     return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_;
172   }
173   /**
174    *
175    *
176    * <pre>
177    * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
178    * </pre>
179    *
180    * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
181    */
182   @java.lang.Override
getWarningOrBuilder()183   public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() {
184     return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_;
185   }
186 
187   private byte memoizedIsInitialized = -1;
188 
189   @java.lang.Override
isInitialized()190   public final boolean isInitialized() {
191     byte isInitialized = memoizedIsInitialized;
192     if (isInitialized == 1) return true;
193     if (isInitialized == 0) return false;
194 
195     memoizedIsInitialized = 1;
196     return true;
197   }
198 
199   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)200   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
201     if (((bitField0_ & 0x00000001) != 0)) {
202       output.writeMessage(50704284, getWarning());
203     }
204     for (int i = 0; i < autoscalers_.size(); i++) {
205       output.writeMessage(465771644, autoscalers_.get(i));
206     }
207     getUnknownFields().writeTo(output);
208   }
209 
210   @java.lang.Override
getSerializedSize()211   public int getSerializedSize() {
212     int size = memoizedSize;
213     if (size != -1) return size;
214 
215     size = 0;
216     if (((bitField0_ & 0x00000001) != 0)) {
217       size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning());
218     }
219     for (int i = 0; i < autoscalers_.size(); i++) {
220       size +=
221           com.google.protobuf.CodedOutputStream.computeMessageSize(465771644, autoscalers_.get(i));
222     }
223     size += getUnknownFields().getSerializedSize();
224     memoizedSize = size;
225     return size;
226   }
227 
228   @java.lang.Override
equals(final java.lang.Object obj)229   public boolean equals(final java.lang.Object obj) {
230     if (obj == this) {
231       return true;
232     }
233     if (!(obj instanceof com.google.cloud.compute.v1.AutoscalersScopedList)) {
234       return super.equals(obj);
235     }
236     com.google.cloud.compute.v1.AutoscalersScopedList other =
237         (com.google.cloud.compute.v1.AutoscalersScopedList) obj;
238 
239     if (!getAutoscalersList().equals(other.getAutoscalersList())) return false;
240     if (hasWarning() != other.hasWarning()) return false;
241     if (hasWarning()) {
242       if (!getWarning().equals(other.getWarning())) return false;
243     }
244     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
245     return true;
246   }
247 
248   @java.lang.Override
hashCode()249   public int hashCode() {
250     if (memoizedHashCode != 0) {
251       return memoizedHashCode;
252     }
253     int hash = 41;
254     hash = (19 * hash) + getDescriptor().hashCode();
255     if (getAutoscalersCount() > 0) {
256       hash = (37 * hash) + AUTOSCALERS_FIELD_NUMBER;
257       hash = (53 * hash) + getAutoscalersList().hashCode();
258     }
259     if (hasWarning()) {
260       hash = (37 * hash) + WARNING_FIELD_NUMBER;
261       hash = (53 * hash) + getWarning().hashCode();
262     }
263     hash = (29 * hash) + getUnknownFields().hashCode();
264     memoizedHashCode = hash;
265     return hash;
266   }
267 
parseFrom( java.nio.ByteBuffer data)268   public static com.google.cloud.compute.v1.AutoscalersScopedList parseFrom(
269       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
270     return PARSER.parseFrom(data);
271   }
272 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)273   public static com.google.cloud.compute.v1.AutoscalersScopedList parseFrom(
274       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
275       throws com.google.protobuf.InvalidProtocolBufferException {
276     return PARSER.parseFrom(data, extensionRegistry);
277   }
278 
parseFrom( com.google.protobuf.ByteString data)279   public static com.google.cloud.compute.v1.AutoscalersScopedList parseFrom(
280       com.google.protobuf.ByteString data)
281       throws com.google.protobuf.InvalidProtocolBufferException {
282     return PARSER.parseFrom(data);
283   }
284 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)285   public static com.google.cloud.compute.v1.AutoscalersScopedList parseFrom(
286       com.google.protobuf.ByteString data,
287       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
288       throws com.google.protobuf.InvalidProtocolBufferException {
289     return PARSER.parseFrom(data, extensionRegistry);
290   }
291 
parseFrom(byte[] data)292   public static com.google.cloud.compute.v1.AutoscalersScopedList parseFrom(byte[] data)
293       throws com.google.protobuf.InvalidProtocolBufferException {
294     return PARSER.parseFrom(data);
295   }
296 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)297   public static com.google.cloud.compute.v1.AutoscalersScopedList parseFrom(
298       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
299       throws com.google.protobuf.InvalidProtocolBufferException {
300     return PARSER.parseFrom(data, extensionRegistry);
301   }
302 
parseFrom( java.io.InputStream input)303   public static com.google.cloud.compute.v1.AutoscalersScopedList parseFrom(
304       java.io.InputStream input) throws java.io.IOException {
305     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
306   }
307 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)308   public static com.google.cloud.compute.v1.AutoscalersScopedList parseFrom(
309       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
310       throws java.io.IOException {
311     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
312         PARSER, input, extensionRegistry);
313   }
314 
parseDelimitedFrom( java.io.InputStream input)315   public static com.google.cloud.compute.v1.AutoscalersScopedList parseDelimitedFrom(
316       java.io.InputStream input) throws java.io.IOException {
317     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
318   }
319 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)320   public static com.google.cloud.compute.v1.AutoscalersScopedList parseDelimitedFrom(
321       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
322       throws java.io.IOException {
323     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
324         PARSER, input, extensionRegistry);
325   }
326 
parseFrom( com.google.protobuf.CodedInputStream input)327   public static com.google.cloud.compute.v1.AutoscalersScopedList parseFrom(
328       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
329     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
330   }
331 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)332   public static com.google.cloud.compute.v1.AutoscalersScopedList parseFrom(
333       com.google.protobuf.CodedInputStream input,
334       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
335       throws java.io.IOException {
336     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
337         PARSER, input, extensionRegistry);
338   }
339 
340   @java.lang.Override
newBuilderForType()341   public Builder newBuilderForType() {
342     return newBuilder();
343   }
344 
newBuilder()345   public static Builder newBuilder() {
346     return DEFAULT_INSTANCE.toBuilder();
347   }
348 
newBuilder(com.google.cloud.compute.v1.AutoscalersScopedList prototype)349   public static Builder newBuilder(com.google.cloud.compute.v1.AutoscalersScopedList prototype) {
350     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
351   }
352 
353   @java.lang.Override
toBuilder()354   public Builder toBuilder() {
355     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
356   }
357 
358   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)359   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
360     Builder builder = new Builder(parent);
361     return builder;
362   }
363   /**
364    *
365    *
366    * <pre>
367    * </pre>
368    *
369    * Protobuf type {@code google.cloud.compute.v1.AutoscalersScopedList}
370    */
371   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
372       implements
373       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.AutoscalersScopedList)
374       com.google.cloud.compute.v1.AutoscalersScopedListOrBuilder {
getDescriptor()375     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
376       return com.google.cloud.compute.v1.Compute
377           .internal_static_google_cloud_compute_v1_AutoscalersScopedList_descriptor;
378     }
379 
380     @java.lang.Override
381     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()382         internalGetFieldAccessorTable() {
383       return com.google.cloud.compute.v1.Compute
384           .internal_static_google_cloud_compute_v1_AutoscalersScopedList_fieldAccessorTable
385           .ensureFieldAccessorsInitialized(
386               com.google.cloud.compute.v1.AutoscalersScopedList.class,
387               com.google.cloud.compute.v1.AutoscalersScopedList.Builder.class);
388     }
389 
390     // Construct using com.google.cloud.compute.v1.AutoscalersScopedList.newBuilder()
Builder()391     private Builder() {
392       maybeForceBuilderInitialization();
393     }
394 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)395     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
396       super(parent);
397       maybeForceBuilderInitialization();
398     }
399 
maybeForceBuilderInitialization()400     private void maybeForceBuilderInitialization() {
401       if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
402         getAutoscalersFieldBuilder();
403         getWarningFieldBuilder();
404       }
405     }
406 
407     @java.lang.Override
clear()408     public Builder clear() {
409       super.clear();
410       bitField0_ = 0;
411       if (autoscalersBuilder_ == null) {
412         autoscalers_ = java.util.Collections.emptyList();
413       } else {
414         autoscalers_ = null;
415         autoscalersBuilder_.clear();
416       }
417       bitField0_ = (bitField0_ & ~0x00000001);
418       warning_ = null;
419       if (warningBuilder_ != null) {
420         warningBuilder_.dispose();
421         warningBuilder_ = null;
422       }
423       return this;
424     }
425 
426     @java.lang.Override
getDescriptorForType()427     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
428       return com.google.cloud.compute.v1.Compute
429           .internal_static_google_cloud_compute_v1_AutoscalersScopedList_descriptor;
430     }
431 
432     @java.lang.Override
getDefaultInstanceForType()433     public com.google.cloud.compute.v1.AutoscalersScopedList getDefaultInstanceForType() {
434       return com.google.cloud.compute.v1.AutoscalersScopedList.getDefaultInstance();
435     }
436 
437     @java.lang.Override
build()438     public com.google.cloud.compute.v1.AutoscalersScopedList build() {
439       com.google.cloud.compute.v1.AutoscalersScopedList result = buildPartial();
440       if (!result.isInitialized()) {
441         throw newUninitializedMessageException(result);
442       }
443       return result;
444     }
445 
446     @java.lang.Override
buildPartial()447     public com.google.cloud.compute.v1.AutoscalersScopedList buildPartial() {
448       com.google.cloud.compute.v1.AutoscalersScopedList result =
449           new com.google.cloud.compute.v1.AutoscalersScopedList(this);
450       buildPartialRepeatedFields(result);
451       if (bitField0_ != 0) {
452         buildPartial0(result);
453       }
454       onBuilt();
455       return result;
456     }
457 
buildPartialRepeatedFields( com.google.cloud.compute.v1.AutoscalersScopedList result)458     private void buildPartialRepeatedFields(
459         com.google.cloud.compute.v1.AutoscalersScopedList result) {
460       if (autoscalersBuilder_ == null) {
461         if (((bitField0_ & 0x00000001) != 0)) {
462           autoscalers_ = java.util.Collections.unmodifiableList(autoscalers_);
463           bitField0_ = (bitField0_ & ~0x00000001);
464         }
465         result.autoscalers_ = autoscalers_;
466       } else {
467         result.autoscalers_ = autoscalersBuilder_.build();
468       }
469     }
470 
buildPartial0(com.google.cloud.compute.v1.AutoscalersScopedList result)471     private void buildPartial0(com.google.cloud.compute.v1.AutoscalersScopedList result) {
472       int from_bitField0_ = bitField0_;
473       int to_bitField0_ = 0;
474       if (((from_bitField0_ & 0x00000002) != 0)) {
475         result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build();
476         to_bitField0_ |= 0x00000001;
477       }
478       result.bitField0_ |= to_bitField0_;
479     }
480 
481     @java.lang.Override
clone()482     public Builder clone() {
483       return super.clone();
484     }
485 
486     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)487     public Builder setField(
488         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
489       return super.setField(field, value);
490     }
491 
492     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)493     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
494       return super.clearField(field);
495     }
496 
497     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)498     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
499       return super.clearOneof(oneof);
500     }
501 
502     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)503     public Builder setRepeatedField(
504         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
505       return super.setRepeatedField(field, index, value);
506     }
507 
508     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)509     public Builder addRepeatedField(
510         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
511       return super.addRepeatedField(field, value);
512     }
513 
514     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)515     public Builder mergeFrom(com.google.protobuf.Message other) {
516       if (other instanceof com.google.cloud.compute.v1.AutoscalersScopedList) {
517         return mergeFrom((com.google.cloud.compute.v1.AutoscalersScopedList) other);
518       } else {
519         super.mergeFrom(other);
520         return this;
521       }
522     }
523 
mergeFrom(com.google.cloud.compute.v1.AutoscalersScopedList other)524     public Builder mergeFrom(com.google.cloud.compute.v1.AutoscalersScopedList other) {
525       if (other == com.google.cloud.compute.v1.AutoscalersScopedList.getDefaultInstance())
526         return this;
527       if (autoscalersBuilder_ == null) {
528         if (!other.autoscalers_.isEmpty()) {
529           if (autoscalers_.isEmpty()) {
530             autoscalers_ = other.autoscalers_;
531             bitField0_ = (bitField0_ & ~0x00000001);
532           } else {
533             ensureAutoscalersIsMutable();
534             autoscalers_.addAll(other.autoscalers_);
535           }
536           onChanged();
537         }
538       } else {
539         if (!other.autoscalers_.isEmpty()) {
540           if (autoscalersBuilder_.isEmpty()) {
541             autoscalersBuilder_.dispose();
542             autoscalersBuilder_ = null;
543             autoscalers_ = other.autoscalers_;
544             bitField0_ = (bitField0_ & ~0x00000001);
545             autoscalersBuilder_ =
546                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
547                     ? getAutoscalersFieldBuilder()
548                     : null;
549           } else {
550             autoscalersBuilder_.addAllMessages(other.autoscalers_);
551           }
552         }
553       }
554       if (other.hasWarning()) {
555         mergeWarning(other.getWarning());
556       }
557       this.mergeUnknownFields(other.getUnknownFields());
558       onChanged();
559       return this;
560     }
561 
562     @java.lang.Override
isInitialized()563     public final boolean isInitialized() {
564       return true;
565     }
566 
567     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)568     public Builder mergeFrom(
569         com.google.protobuf.CodedInputStream input,
570         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
571         throws java.io.IOException {
572       if (extensionRegistry == null) {
573         throw new java.lang.NullPointerException();
574       }
575       try {
576         boolean done = false;
577         while (!done) {
578           int tag = input.readTag();
579           switch (tag) {
580             case 0:
581               done = true;
582               break;
583             case 405634274:
584               {
585                 input.readMessage(getWarningFieldBuilder().getBuilder(), extensionRegistry);
586                 bitField0_ |= 0x00000002;
587                 break;
588               } // case 405634274
589             case -568794142:
590               {
591                 com.google.cloud.compute.v1.Autoscaler m =
592                     input.readMessage(
593                         com.google.cloud.compute.v1.Autoscaler.parser(), extensionRegistry);
594                 if (autoscalersBuilder_ == null) {
595                   ensureAutoscalersIsMutable();
596                   autoscalers_.add(m);
597                 } else {
598                   autoscalersBuilder_.addMessage(m);
599                 }
600                 break;
601               } // case -568794142
602             default:
603               {
604                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
605                   done = true; // was an endgroup tag
606                 }
607                 break;
608               } // default:
609           } // switch (tag)
610         } // while (!done)
611       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
612         throw e.unwrapIOException();
613       } finally {
614         onChanged();
615       } // finally
616       return this;
617     }
618 
619     private int bitField0_;
620 
621     private java.util.List<com.google.cloud.compute.v1.Autoscaler> autoscalers_ =
622         java.util.Collections.emptyList();
623 
ensureAutoscalersIsMutable()624     private void ensureAutoscalersIsMutable() {
625       if (!((bitField0_ & 0x00000001) != 0)) {
626         autoscalers_ =
627             new java.util.ArrayList<com.google.cloud.compute.v1.Autoscaler>(autoscalers_);
628         bitField0_ |= 0x00000001;
629       }
630     }
631 
632     private com.google.protobuf.RepeatedFieldBuilderV3<
633             com.google.cloud.compute.v1.Autoscaler,
634             com.google.cloud.compute.v1.Autoscaler.Builder,
635             com.google.cloud.compute.v1.AutoscalerOrBuilder>
636         autoscalersBuilder_;
637 
638     /**
639      *
640      *
641      * <pre>
642      * [Output Only] A list of autoscalers contained in this scope.
643      * </pre>
644      *
645      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
646      */
getAutoscalersList()647     public java.util.List<com.google.cloud.compute.v1.Autoscaler> getAutoscalersList() {
648       if (autoscalersBuilder_ == null) {
649         return java.util.Collections.unmodifiableList(autoscalers_);
650       } else {
651         return autoscalersBuilder_.getMessageList();
652       }
653     }
654     /**
655      *
656      *
657      * <pre>
658      * [Output Only] A list of autoscalers contained in this scope.
659      * </pre>
660      *
661      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
662      */
getAutoscalersCount()663     public int getAutoscalersCount() {
664       if (autoscalersBuilder_ == null) {
665         return autoscalers_.size();
666       } else {
667         return autoscalersBuilder_.getCount();
668       }
669     }
670     /**
671      *
672      *
673      * <pre>
674      * [Output Only] A list of autoscalers contained in this scope.
675      * </pre>
676      *
677      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
678      */
getAutoscalers(int index)679     public com.google.cloud.compute.v1.Autoscaler getAutoscalers(int index) {
680       if (autoscalersBuilder_ == null) {
681         return autoscalers_.get(index);
682       } else {
683         return autoscalersBuilder_.getMessage(index);
684       }
685     }
686     /**
687      *
688      *
689      * <pre>
690      * [Output Only] A list of autoscalers contained in this scope.
691      * </pre>
692      *
693      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
694      */
setAutoscalers(int index, com.google.cloud.compute.v1.Autoscaler value)695     public Builder setAutoscalers(int index, com.google.cloud.compute.v1.Autoscaler value) {
696       if (autoscalersBuilder_ == null) {
697         if (value == null) {
698           throw new NullPointerException();
699         }
700         ensureAutoscalersIsMutable();
701         autoscalers_.set(index, value);
702         onChanged();
703       } else {
704         autoscalersBuilder_.setMessage(index, value);
705       }
706       return this;
707     }
708     /**
709      *
710      *
711      * <pre>
712      * [Output Only] A list of autoscalers contained in this scope.
713      * </pre>
714      *
715      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
716      */
setAutoscalers( int index, com.google.cloud.compute.v1.Autoscaler.Builder builderForValue)717     public Builder setAutoscalers(
718         int index, com.google.cloud.compute.v1.Autoscaler.Builder builderForValue) {
719       if (autoscalersBuilder_ == null) {
720         ensureAutoscalersIsMutable();
721         autoscalers_.set(index, builderForValue.build());
722         onChanged();
723       } else {
724         autoscalersBuilder_.setMessage(index, builderForValue.build());
725       }
726       return this;
727     }
728     /**
729      *
730      *
731      * <pre>
732      * [Output Only] A list of autoscalers contained in this scope.
733      * </pre>
734      *
735      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
736      */
addAutoscalers(com.google.cloud.compute.v1.Autoscaler value)737     public Builder addAutoscalers(com.google.cloud.compute.v1.Autoscaler value) {
738       if (autoscalersBuilder_ == null) {
739         if (value == null) {
740           throw new NullPointerException();
741         }
742         ensureAutoscalersIsMutable();
743         autoscalers_.add(value);
744         onChanged();
745       } else {
746         autoscalersBuilder_.addMessage(value);
747       }
748       return this;
749     }
750     /**
751      *
752      *
753      * <pre>
754      * [Output Only] A list of autoscalers contained in this scope.
755      * </pre>
756      *
757      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
758      */
addAutoscalers(int index, com.google.cloud.compute.v1.Autoscaler value)759     public Builder addAutoscalers(int index, com.google.cloud.compute.v1.Autoscaler value) {
760       if (autoscalersBuilder_ == null) {
761         if (value == null) {
762           throw new NullPointerException();
763         }
764         ensureAutoscalersIsMutable();
765         autoscalers_.add(index, value);
766         onChanged();
767       } else {
768         autoscalersBuilder_.addMessage(index, value);
769       }
770       return this;
771     }
772     /**
773      *
774      *
775      * <pre>
776      * [Output Only] A list of autoscalers contained in this scope.
777      * </pre>
778      *
779      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
780      */
addAutoscalers(com.google.cloud.compute.v1.Autoscaler.Builder builderForValue)781     public Builder addAutoscalers(com.google.cloud.compute.v1.Autoscaler.Builder builderForValue) {
782       if (autoscalersBuilder_ == null) {
783         ensureAutoscalersIsMutable();
784         autoscalers_.add(builderForValue.build());
785         onChanged();
786       } else {
787         autoscalersBuilder_.addMessage(builderForValue.build());
788       }
789       return this;
790     }
791     /**
792      *
793      *
794      * <pre>
795      * [Output Only] A list of autoscalers contained in this scope.
796      * </pre>
797      *
798      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
799      */
addAutoscalers( int index, com.google.cloud.compute.v1.Autoscaler.Builder builderForValue)800     public Builder addAutoscalers(
801         int index, com.google.cloud.compute.v1.Autoscaler.Builder builderForValue) {
802       if (autoscalersBuilder_ == null) {
803         ensureAutoscalersIsMutable();
804         autoscalers_.add(index, builderForValue.build());
805         onChanged();
806       } else {
807         autoscalersBuilder_.addMessage(index, builderForValue.build());
808       }
809       return this;
810     }
811     /**
812      *
813      *
814      * <pre>
815      * [Output Only] A list of autoscalers contained in this scope.
816      * </pre>
817      *
818      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
819      */
addAllAutoscalers( java.lang.Iterable<? extends com.google.cloud.compute.v1.Autoscaler> values)820     public Builder addAllAutoscalers(
821         java.lang.Iterable<? extends com.google.cloud.compute.v1.Autoscaler> values) {
822       if (autoscalersBuilder_ == null) {
823         ensureAutoscalersIsMutable();
824         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autoscalers_);
825         onChanged();
826       } else {
827         autoscalersBuilder_.addAllMessages(values);
828       }
829       return this;
830     }
831     /**
832      *
833      *
834      * <pre>
835      * [Output Only] A list of autoscalers contained in this scope.
836      * </pre>
837      *
838      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
839      */
clearAutoscalers()840     public Builder clearAutoscalers() {
841       if (autoscalersBuilder_ == null) {
842         autoscalers_ = java.util.Collections.emptyList();
843         bitField0_ = (bitField0_ & ~0x00000001);
844         onChanged();
845       } else {
846         autoscalersBuilder_.clear();
847       }
848       return this;
849     }
850     /**
851      *
852      *
853      * <pre>
854      * [Output Only] A list of autoscalers contained in this scope.
855      * </pre>
856      *
857      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
858      */
removeAutoscalers(int index)859     public Builder removeAutoscalers(int index) {
860       if (autoscalersBuilder_ == null) {
861         ensureAutoscalersIsMutable();
862         autoscalers_.remove(index);
863         onChanged();
864       } else {
865         autoscalersBuilder_.remove(index);
866       }
867       return this;
868     }
869     /**
870      *
871      *
872      * <pre>
873      * [Output Only] A list of autoscalers contained in this scope.
874      * </pre>
875      *
876      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
877      */
getAutoscalersBuilder(int index)878     public com.google.cloud.compute.v1.Autoscaler.Builder getAutoscalersBuilder(int index) {
879       return getAutoscalersFieldBuilder().getBuilder(index);
880     }
881     /**
882      *
883      *
884      * <pre>
885      * [Output Only] A list of autoscalers contained in this scope.
886      * </pre>
887      *
888      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
889      */
getAutoscalersOrBuilder(int index)890     public com.google.cloud.compute.v1.AutoscalerOrBuilder getAutoscalersOrBuilder(int index) {
891       if (autoscalersBuilder_ == null) {
892         return autoscalers_.get(index);
893       } else {
894         return autoscalersBuilder_.getMessageOrBuilder(index);
895       }
896     }
897     /**
898      *
899      *
900      * <pre>
901      * [Output Only] A list of autoscalers contained in this scope.
902      * </pre>
903      *
904      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
905      */
906     public java.util.List<? extends com.google.cloud.compute.v1.AutoscalerOrBuilder>
getAutoscalersOrBuilderList()907         getAutoscalersOrBuilderList() {
908       if (autoscalersBuilder_ != null) {
909         return autoscalersBuilder_.getMessageOrBuilderList();
910       } else {
911         return java.util.Collections.unmodifiableList(autoscalers_);
912       }
913     }
914     /**
915      *
916      *
917      * <pre>
918      * [Output Only] A list of autoscalers contained in this scope.
919      * </pre>
920      *
921      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
922      */
addAutoscalersBuilder()923     public com.google.cloud.compute.v1.Autoscaler.Builder addAutoscalersBuilder() {
924       return getAutoscalersFieldBuilder()
925           .addBuilder(com.google.cloud.compute.v1.Autoscaler.getDefaultInstance());
926     }
927     /**
928      *
929      *
930      * <pre>
931      * [Output Only] A list of autoscalers contained in this scope.
932      * </pre>
933      *
934      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
935      */
addAutoscalersBuilder(int index)936     public com.google.cloud.compute.v1.Autoscaler.Builder addAutoscalersBuilder(int index) {
937       return getAutoscalersFieldBuilder()
938           .addBuilder(index, com.google.cloud.compute.v1.Autoscaler.getDefaultInstance());
939     }
940     /**
941      *
942      *
943      * <pre>
944      * [Output Only] A list of autoscalers contained in this scope.
945      * </pre>
946      *
947      * <code>repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644;</code>
948      */
949     public java.util.List<com.google.cloud.compute.v1.Autoscaler.Builder>
getAutoscalersBuilderList()950         getAutoscalersBuilderList() {
951       return getAutoscalersFieldBuilder().getBuilderList();
952     }
953 
954     private com.google.protobuf.RepeatedFieldBuilderV3<
955             com.google.cloud.compute.v1.Autoscaler,
956             com.google.cloud.compute.v1.Autoscaler.Builder,
957             com.google.cloud.compute.v1.AutoscalerOrBuilder>
getAutoscalersFieldBuilder()958         getAutoscalersFieldBuilder() {
959       if (autoscalersBuilder_ == null) {
960         autoscalersBuilder_ =
961             new com.google.protobuf.RepeatedFieldBuilderV3<
962                 com.google.cloud.compute.v1.Autoscaler,
963                 com.google.cloud.compute.v1.Autoscaler.Builder,
964                 com.google.cloud.compute.v1.AutoscalerOrBuilder>(
965                 autoscalers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
966         autoscalers_ = null;
967       }
968       return autoscalersBuilder_;
969     }
970 
971     private com.google.cloud.compute.v1.Warning warning_;
972     private com.google.protobuf.SingleFieldBuilderV3<
973             com.google.cloud.compute.v1.Warning,
974             com.google.cloud.compute.v1.Warning.Builder,
975             com.google.cloud.compute.v1.WarningOrBuilder>
976         warningBuilder_;
977     /**
978      *
979      *
980      * <pre>
981      * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
982      * </pre>
983      *
984      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
985      *
986      * @return Whether the warning field is set.
987      */
hasWarning()988     public boolean hasWarning() {
989       return ((bitField0_ & 0x00000002) != 0);
990     }
991     /**
992      *
993      *
994      * <pre>
995      * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
996      * </pre>
997      *
998      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
999      *
1000      * @return The warning.
1001      */
getWarning()1002     public com.google.cloud.compute.v1.Warning getWarning() {
1003       if (warningBuilder_ == null) {
1004         return warning_ == null
1005             ? com.google.cloud.compute.v1.Warning.getDefaultInstance()
1006             : warning_;
1007       } else {
1008         return warningBuilder_.getMessage();
1009       }
1010     }
1011     /**
1012      *
1013      *
1014      * <pre>
1015      * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
1016      * </pre>
1017      *
1018      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1019      */
setWarning(com.google.cloud.compute.v1.Warning value)1020     public Builder setWarning(com.google.cloud.compute.v1.Warning value) {
1021       if (warningBuilder_ == null) {
1022         if (value == null) {
1023           throw new NullPointerException();
1024         }
1025         warning_ = value;
1026       } else {
1027         warningBuilder_.setMessage(value);
1028       }
1029       bitField0_ |= 0x00000002;
1030       onChanged();
1031       return this;
1032     }
1033     /**
1034      *
1035      *
1036      * <pre>
1037      * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
1038      * </pre>
1039      *
1040      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1041      */
setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue)1042     public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) {
1043       if (warningBuilder_ == null) {
1044         warning_ = builderForValue.build();
1045       } else {
1046         warningBuilder_.setMessage(builderForValue.build());
1047       }
1048       bitField0_ |= 0x00000002;
1049       onChanged();
1050       return this;
1051     }
1052     /**
1053      *
1054      *
1055      * <pre>
1056      * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
1057      * </pre>
1058      *
1059      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1060      */
mergeWarning(com.google.cloud.compute.v1.Warning value)1061     public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) {
1062       if (warningBuilder_ == null) {
1063         if (((bitField0_ & 0x00000002) != 0)
1064             && warning_ != null
1065             && warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) {
1066           getWarningBuilder().mergeFrom(value);
1067         } else {
1068           warning_ = value;
1069         }
1070       } else {
1071         warningBuilder_.mergeFrom(value);
1072       }
1073       bitField0_ |= 0x00000002;
1074       onChanged();
1075       return this;
1076     }
1077     /**
1078      *
1079      *
1080      * <pre>
1081      * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
1082      * </pre>
1083      *
1084      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1085      */
clearWarning()1086     public Builder clearWarning() {
1087       bitField0_ = (bitField0_ & ~0x00000002);
1088       warning_ = null;
1089       if (warningBuilder_ != null) {
1090         warningBuilder_.dispose();
1091         warningBuilder_ = null;
1092       }
1093       onChanged();
1094       return this;
1095     }
1096     /**
1097      *
1098      *
1099      * <pre>
1100      * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
1101      * </pre>
1102      *
1103      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1104      */
getWarningBuilder()1105     public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() {
1106       bitField0_ |= 0x00000002;
1107       onChanged();
1108       return getWarningFieldBuilder().getBuilder();
1109     }
1110     /**
1111      *
1112      *
1113      * <pre>
1114      * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
1115      * </pre>
1116      *
1117      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1118      */
getWarningOrBuilder()1119     public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() {
1120       if (warningBuilder_ != null) {
1121         return warningBuilder_.getMessageOrBuilder();
1122       } else {
1123         return warning_ == null
1124             ? com.google.cloud.compute.v1.Warning.getDefaultInstance()
1125             : warning_;
1126       }
1127     }
1128     /**
1129      *
1130      *
1131      * <pre>
1132      * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty.
1133      * </pre>
1134      *
1135      * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code>
1136      */
1137     private com.google.protobuf.SingleFieldBuilderV3<
1138             com.google.cloud.compute.v1.Warning,
1139             com.google.cloud.compute.v1.Warning.Builder,
1140             com.google.cloud.compute.v1.WarningOrBuilder>
getWarningFieldBuilder()1141         getWarningFieldBuilder() {
1142       if (warningBuilder_ == null) {
1143         warningBuilder_ =
1144             new com.google.protobuf.SingleFieldBuilderV3<
1145                 com.google.cloud.compute.v1.Warning,
1146                 com.google.cloud.compute.v1.Warning.Builder,
1147                 com.google.cloud.compute.v1.WarningOrBuilder>(
1148                 getWarning(), getParentForChildren(), isClean());
1149         warning_ = null;
1150       }
1151       return warningBuilder_;
1152     }
1153 
1154     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1155     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1156       return super.setUnknownFields(unknownFields);
1157     }
1158 
1159     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1160     public final Builder mergeUnknownFields(
1161         final com.google.protobuf.UnknownFieldSet unknownFields) {
1162       return super.mergeUnknownFields(unknownFields);
1163     }
1164 
1165     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.AutoscalersScopedList)
1166   }
1167 
1168   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.AutoscalersScopedList)
1169   private static final com.google.cloud.compute.v1.AutoscalersScopedList DEFAULT_INSTANCE;
1170 
1171   static {
1172     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.AutoscalersScopedList();
1173   }
1174 
getDefaultInstance()1175   public static com.google.cloud.compute.v1.AutoscalersScopedList getDefaultInstance() {
1176     return DEFAULT_INSTANCE;
1177   }
1178 
1179   private static final com.google.protobuf.Parser<AutoscalersScopedList> PARSER =
1180       new com.google.protobuf.AbstractParser<AutoscalersScopedList>() {
1181         @java.lang.Override
1182         public AutoscalersScopedList parsePartialFrom(
1183             com.google.protobuf.CodedInputStream input,
1184             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1185             throws com.google.protobuf.InvalidProtocolBufferException {
1186           Builder builder = newBuilder();
1187           try {
1188             builder.mergeFrom(input, extensionRegistry);
1189           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1190             throw e.setUnfinishedMessage(builder.buildPartial());
1191           } catch (com.google.protobuf.UninitializedMessageException e) {
1192             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1193           } catch (java.io.IOException e) {
1194             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1195                 .setUnfinishedMessage(builder.buildPartial());
1196           }
1197           return builder.buildPartial();
1198         }
1199       };
1200 
parser()1201   public static com.google.protobuf.Parser<AutoscalersScopedList> parser() {
1202     return PARSER;
1203   }
1204 
1205   @java.lang.Override
getParserForType()1206   public com.google.protobuf.Parser<AutoscalersScopedList> getParserForType() {
1207     return PARSER;
1208   }
1209 
1210   @java.lang.Override
getDefaultInstanceForType()1211   public com.google.cloud.compute.v1.AutoscalersScopedList getDefaultInstanceForType() {
1212     return DEFAULT_INSTANCE;
1213   }
1214 }
1215