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