• 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  * This operation resource represents operations that may have happened or are
26  * happening on the cluster. All fields are output only.
27  * </pre>
28  *
29  * Protobuf type {@code google.container.v1.Operation}
30  */
31 public final class Operation extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.container.v1.Operation)
34     OperationOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use Operation.newBuilder() to construct.
Operation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private Operation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
Operation()41   private Operation() {
42     name_ = "";
43     zone_ = "";
44     operationType_ = 0;
45     status_ = 0;
46     detail_ = "";
47     statusMessage_ = "";
48     selfLink_ = "";
49     targetLink_ = "";
50     location_ = "";
51     startTime_ = "";
52     endTime_ = "";
53     clusterConditions_ = java.util.Collections.emptyList();
54     nodepoolConditions_ = java.util.Collections.emptyList();
55   }
56 
57   @java.lang.Override
58   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)59   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
60     return new Operation();
61   }
62 
63   @java.lang.Override
getUnknownFields()64   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
65     return this.unknownFields;
66   }
67 
getDescriptor()68   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
69     return com.google.container.v1.ClusterServiceProto
70         .internal_static_google_container_v1_Operation_descriptor;
71   }
72 
73   @java.lang.Override
74   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()75       internalGetFieldAccessorTable() {
76     return com.google.container.v1.ClusterServiceProto
77         .internal_static_google_container_v1_Operation_fieldAccessorTable
78         .ensureFieldAccessorsInitialized(
79             com.google.container.v1.Operation.class,
80             com.google.container.v1.Operation.Builder.class);
81   }
82 
83   /**
84    *
85    *
86    * <pre>
87    * Current status of the operation.
88    * </pre>
89    *
90    * Protobuf enum {@code google.container.v1.Operation.Status}
91    */
92   public enum Status implements com.google.protobuf.ProtocolMessageEnum {
93     /**
94      *
95      *
96      * <pre>
97      * Not set.
98      * </pre>
99      *
100      * <code>STATUS_UNSPECIFIED = 0;</code>
101      */
102     STATUS_UNSPECIFIED(0),
103     /**
104      *
105      *
106      * <pre>
107      * The operation has been created.
108      * </pre>
109      *
110      * <code>PENDING = 1;</code>
111      */
112     PENDING(1),
113     /**
114      *
115      *
116      * <pre>
117      * The operation is currently running.
118      * </pre>
119      *
120      * <code>RUNNING = 2;</code>
121      */
122     RUNNING(2),
123     /**
124      *
125      *
126      * <pre>
127      * The operation is done, either cancelled or completed.
128      * </pre>
129      *
130      * <code>DONE = 3;</code>
131      */
132     DONE(3),
133     /**
134      *
135      *
136      * <pre>
137      * The operation is aborting.
138      * </pre>
139      *
140      * <code>ABORTING = 4;</code>
141      */
142     ABORTING(4),
143     UNRECOGNIZED(-1),
144     ;
145 
146     /**
147      *
148      *
149      * <pre>
150      * Not set.
151      * </pre>
152      *
153      * <code>STATUS_UNSPECIFIED = 0;</code>
154      */
155     public static final int STATUS_UNSPECIFIED_VALUE = 0;
156     /**
157      *
158      *
159      * <pre>
160      * The operation has been created.
161      * </pre>
162      *
163      * <code>PENDING = 1;</code>
164      */
165     public static final int PENDING_VALUE = 1;
166     /**
167      *
168      *
169      * <pre>
170      * The operation is currently running.
171      * </pre>
172      *
173      * <code>RUNNING = 2;</code>
174      */
175     public static final int RUNNING_VALUE = 2;
176     /**
177      *
178      *
179      * <pre>
180      * The operation is done, either cancelled or completed.
181      * </pre>
182      *
183      * <code>DONE = 3;</code>
184      */
185     public static final int DONE_VALUE = 3;
186     /**
187      *
188      *
189      * <pre>
190      * The operation is aborting.
191      * </pre>
192      *
193      * <code>ABORTING = 4;</code>
194      */
195     public static final int ABORTING_VALUE = 4;
196 
getNumber()197     public final int getNumber() {
198       if (this == UNRECOGNIZED) {
199         throw new java.lang.IllegalArgumentException(
200             "Can't get the number of an unknown enum value.");
201       }
202       return value;
203     }
204 
205     /**
206      * @param value The numeric wire value of the corresponding enum entry.
207      * @return The enum associated with the given numeric wire value.
208      * @deprecated Use {@link #forNumber(int)} instead.
209      */
210     @java.lang.Deprecated
valueOf(int value)211     public static Status valueOf(int value) {
212       return forNumber(value);
213     }
214 
215     /**
216      * @param value The numeric wire value of the corresponding enum entry.
217      * @return The enum associated with the given numeric wire value.
218      */
forNumber(int value)219     public static Status forNumber(int value) {
220       switch (value) {
221         case 0:
222           return STATUS_UNSPECIFIED;
223         case 1:
224           return PENDING;
225         case 2:
226           return RUNNING;
227         case 3:
228           return DONE;
229         case 4:
230           return ABORTING;
231         default:
232           return null;
233       }
234     }
235 
internalGetValueMap()236     public static com.google.protobuf.Internal.EnumLiteMap<Status> internalGetValueMap() {
237       return internalValueMap;
238     }
239 
240     private static final com.google.protobuf.Internal.EnumLiteMap<Status> internalValueMap =
241         new com.google.protobuf.Internal.EnumLiteMap<Status>() {
242           public Status findValueByNumber(int number) {
243             return Status.forNumber(number);
244           }
245         };
246 
getValueDescriptor()247     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
248       if (this == UNRECOGNIZED) {
249         throw new java.lang.IllegalStateException(
250             "Can't get the descriptor of an unrecognized enum value.");
251       }
252       return getDescriptor().getValues().get(ordinal());
253     }
254 
getDescriptorForType()255     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
256       return getDescriptor();
257     }
258 
getDescriptor()259     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
260       return com.google.container.v1.Operation.getDescriptor().getEnumTypes().get(0);
261     }
262 
263     private static final Status[] VALUES = values();
264 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)265     public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
266       if (desc.getType() != getDescriptor()) {
267         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
268       }
269       if (desc.getIndex() == -1) {
270         return UNRECOGNIZED;
271       }
272       return VALUES[desc.getIndex()];
273     }
274 
275     private final int value;
276 
Status(int value)277     private Status(int value) {
278       this.value = value;
279     }
280 
281     // @@protoc_insertion_point(enum_scope:google.container.v1.Operation.Status)
282   }
283 
284   /**
285    *
286    *
287    * <pre>
288    * Operation type categorizes the operation.
289    * </pre>
290    *
291    * Protobuf enum {@code google.container.v1.Operation.Type}
292    */
293   public enum Type implements com.google.protobuf.ProtocolMessageEnum {
294     /**
295      *
296      *
297      * <pre>
298      * Not set.
299      * </pre>
300      *
301      * <code>TYPE_UNSPECIFIED = 0;</code>
302      */
303     TYPE_UNSPECIFIED(0),
304     /**
305      *
306      *
307      * <pre>
308      * The cluster is being created. The cluster should be assumed to be
309      * unusable until the operation finishes.
310      * In the event of the operation failing, the cluster will enter the [ERROR
311      * state][Cluster.Status.ERROR] and eventually be deleted.
312      * </pre>
313      *
314      * <code>CREATE_CLUSTER = 1;</code>
315      */
316     CREATE_CLUSTER(1),
317     /**
318      *
319      *
320      * <pre>
321      * The cluster is being deleted. The cluster should be assumed to be
322      * unusable as soon as this operation starts.
323      * In the event of the operation failing, the cluster will enter the [ERROR
324      * state][Cluster.Status.ERROR] and the deletion will be automatically
325      * retried until completed.
326      * </pre>
327      *
328      * <code>DELETE_CLUSTER = 2;</code>
329      */
330     DELETE_CLUSTER(2),
331     /**
332      *
333      *
334      * <pre>
335      * The [cluster
336      * version][google.container.v1.ClusterUpdate.desired_master_version] is
337      * being updated. Note that this includes "upgrades" to the same version,
338      * which are simply a recreation. This also includes
339      * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically).
340      * For more details, see [documentation on cluster
341      * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades).
342      * </pre>
343      *
344      * <code>UPGRADE_MASTER = 3;</code>
345      */
346     UPGRADE_MASTER(3),
347     /**
348      *
349      *
350      * <pre>
351      * A node pool is being updated. Despite calling this an "upgrade", this
352      * includes most forms of updates to node pools. This also includes
353      * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades).
354      * This operation sets the
355      * [progress][google.container.v1.Operation.progress] field and may be
356      * [canceled][google.container.v1.ClusterManager.CancelOperation].
357      * The upgrade strategy depends on [node pool
358      * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies).
359      * The nodes are generally still usable during this operation.
360      * </pre>
361      *
362      * <code>UPGRADE_NODES = 4;</code>
363      */
364     UPGRADE_NODES(4),
365     /**
366      *
367      *
368      * <pre>
369      * A problem has been detected with the control plane and is being repaired.
370      * This operation type is initiated by GKE. For more details, see
371      * [documentation on
372      * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
373      * </pre>
374      *
375      * <code>REPAIR_CLUSTER = 5;</code>
376      */
377     REPAIR_CLUSTER(5),
378     /**
379      *
380      *
381      * <pre>
382      * The cluster is being updated. This is a broad category of operations and
383      * includes operations that only change metadata as well as those that must
384      * recreate the entire cluster. If the control plane must be recreated, this
385      * will cause temporary downtime for zonal clusters.
386      * Some features require recreating the nodes as well. Those will be
387      * recreated as separate operations and the update may not be completely
388      * functional until the node pools recreations finish. Node recreations will
389      * generally follow [maintenance
390      * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions).
391      * Some GKE-initiated operations use this type. This includes certain types
392      * of auto-upgrades and incident mitigations.
393      * </pre>
394      *
395      * <code>UPDATE_CLUSTER = 6;</code>
396      */
397     UPDATE_CLUSTER(6),
398     /**
399      *
400      *
401      * <pre>
402      * A node pool is being created. The node pool should be assumed to be
403      * unusable until this operation finishes. In the event of an error, the
404      * node pool may be partially created.
405      * If enabled, [node
406      * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
407      * may have automatically initiated such operations.
408      * </pre>
409      *
410      * <code>CREATE_NODE_POOL = 7;</code>
411      */
412     CREATE_NODE_POOL(7),
413     /**
414      *
415      *
416      * <pre>
417      * The node pool is being deleted. The node pool should be assumed to be
418      * unusable as soon as this operation starts.
419      * </pre>
420      *
421      * <code>DELETE_NODE_POOL = 8;</code>
422      */
423     DELETE_NODE_POOL(8),
424     /**
425      *
426      *
427      * <pre>
428      * The node pool's [manamagent][google.container.v1.NodePool.management]
429      * field is being updated. These operations only update metadata and may be
430      * concurrent with most other operations.
431      * </pre>
432      *
433      * <code>SET_NODE_POOL_MANAGEMENT = 9;</code>
434      */
435     SET_NODE_POOL_MANAGEMENT(9),
436     /**
437      *
438      *
439      * <pre>
440      * A problem has been detected with nodes and [they are being
441      * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair).
442      * This operation type is initiated by GKE, typically automatically. This
443      * operation may be concurrent with other operations and there may be
444      * multiple repairs occurring on the same node pool.
445      * </pre>
446      *
447      * <code>AUTO_REPAIR_NODES = 10;</code>
448      */
449     AUTO_REPAIR_NODES(10),
450     /**
451      *
452      *
453      * <pre>
454      * Unused. Automatic node upgrade uses
455      * [UPGRADE_NODES][google.container.v1.Operation.Type.UPGRADE_NODES].
456      * </pre>
457      *
458      * <code>AUTO_UPGRADE_NODES = 11 [deprecated = true];</code>
459      */
460     @java.lang.Deprecated
461     AUTO_UPGRADE_NODES(11),
462     /**
463      *
464      *
465      * <pre>
466      * Unused. Updating labels uses
467      * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
468      * </pre>
469      *
470      * <code>SET_LABELS = 12 [deprecated = true];</code>
471      */
472     @java.lang.Deprecated
473     SET_LABELS(12),
474     /**
475      *
476      *
477      * <pre>
478      * Unused. Updating master auth uses
479      * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
480      * </pre>
481      *
482      * <code>SET_MASTER_AUTH = 13 [deprecated = true];</code>
483      */
484     @java.lang.Deprecated
485     SET_MASTER_AUTH(13),
486     /**
487      *
488      *
489      * <pre>
490      * The node pool is being resized. With the exception of resizing to or from
491      * size zero, the node pool is generally usable during this operation.
492      * </pre>
493      *
494      * <code>SET_NODE_POOL_SIZE = 14;</code>
495      */
496     SET_NODE_POOL_SIZE(14),
497     /**
498      *
499      *
500      * <pre>
501      * Unused. Updating network policy uses
502      * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
503      * </pre>
504      *
505      * <code>SET_NETWORK_POLICY = 15 [deprecated = true];</code>
506      */
507     @java.lang.Deprecated
508     SET_NETWORK_POLICY(15),
509     /**
510      *
511      *
512      * <pre>
513      * Unused. Updating maintenance policy uses
514      * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
515      * </pre>
516      *
517      * <code>SET_MAINTENANCE_POLICY = 16 [deprecated = true];</code>
518      */
519     @java.lang.Deprecated
520     SET_MAINTENANCE_POLICY(16),
521     /**
522      *
523      *
524      * <pre>
525      * The control plane is being resized. This operation type is initiated by
526      * GKE. These operations are often performed preemptively to ensure that the
527      * control plane has sufficient resources and is not typically an indication
528      * of issues. For more details, see
529      * [documentation on
530      * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
531      * </pre>
532      *
533      * <code>RESIZE_CLUSTER = 18;</code>
534      */
535     RESIZE_CLUSTER(18),
536     UNRECOGNIZED(-1),
537     ;
538 
539     /**
540      *
541      *
542      * <pre>
543      * Not set.
544      * </pre>
545      *
546      * <code>TYPE_UNSPECIFIED = 0;</code>
547      */
548     public static final int TYPE_UNSPECIFIED_VALUE = 0;
549     /**
550      *
551      *
552      * <pre>
553      * The cluster is being created. The cluster should be assumed to be
554      * unusable until the operation finishes.
555      * In the event of the operation failing, the cluster will enter the [ERROR
556      * state][Cluster.Status.ERROR] and eventually be deleted.
557      * </pre>
558      *
559      * <code>CREATE_CLUSTER = 1;</code>
560      */
561     public static final int CREATE_CLUSTER_VALUE = 1;
562     /**
563      *
564      *
565      * <pre>
566      * The cluster is being deleted. The cluster should be assumed to be
567      * unusable as soon as this operation starts.
568      * In the event of the operation failing, the cluster will enter the [ERROR
569      * state][Cluster.Status.ERROR] and the deletion will be automatically
570      * retried until completed.
571      * </pre>
572      *
573      * <code>DELETE_CLUSTER = 2;</code>
574      */
575     public static final int DELETE_CLUSTER_VALUE = 2;
576     /**
577      *
578      *
579      * <pre>
580      * The [cluster
581      * version][google.container.v1.ClusterUpdate.desired_master_version] is
582      * being updated. Note that this includes "upgrades" to the same version,
583      * which are simply a recreation. This also includes
584      * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically).
585      * For more details, see [documentation on cluster
586      * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades).
587      * </pre>
588      *
589      * <code>UPGRADE_MASTER = 3;</code>
590      */
591     public static final int UPGRADE_MASTER_VALUE = 3;
592     /**
593      *
594      *
595      * <pre>
596      * A node pool is being updated. Despite calling this an "upgrade", this
597      * includes most forms of updates to node pools. This also includes
598      * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades).
599      * This operation sets the
600      * [progress][google.container.v1.Operation.progress] field and may be
601      * [canceled][google.container.v1.ClusterManager.CancelOperation].
602      * The upgrade strategy depends on [node pool
603      * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies).
604      * The nodes are generally still usable during this operation.
605      * </pre>
606      *
607      * <code>UPGRADE_NODES = 4;</code>
608      */
609     public static final int UPGRADE_NODES_VALUE = 4;
610     /**
611      *
612      *
613      * <pre>
614      * A problem has been detected with the control plane and is being repaired.
615      * This operation type is initiated by GKE. For more details, see
616      * [documentation on
617      * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
618      * </pre>
619      *
620      * <code>REPAIR_CLUSTER = 5;</code>
621      */
622     public static final int REPAIR_CLUSTER_VALUE = 5;
623     /**
624      *
625      *
626      * <pre>
627      * The cluster is being updated. This is a broad category of operations and
628      * includes operations that only change metadata as well as those that must
629      * recreate the entire cluster. If the control plane must be recreated, this
630      * will cause temporary downtime for zonal clusters.
631      * Some features require recreating the nodes as well. Those will be
632      * recreated as separate operations and the update may not be completely
633      * functional until the node pools recreations finish. Node recreations will
634      * generally follow [maintenance
635      * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions).
636      * Some GKE-initiated operations use this type. This includes certain types
637      * of auto-upgrades and incident mitigations.
638      * </pre>
639      *
640      * <code>UPDATE_CLUSTER = 6;</code>
641      */
642     public static final int UPDATE_CLUSTER_VALUE = 6;
643     /**
644      *
645      *
646      * <pre>
647      * A node pool is being created. The node pool should be assumed to be
648      * unusable until this operation finishes. In the event of an error, the
649      * node pool may be partially created.
650      * If enabled, [node
651      * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
652      * may have automatically initiated such operations.
653      * </pre>
654      *
655      * <code>CREATE_NODE_POOL = 7;</code>
656      */
657     public static final int CREATE_NODE_POOL_VALUE = 7;
658     /**
659      *
660      *
661      * <pre>
662      * The node pool is being deleted. The node pool should be assumed to be
663      * unusable as soon as this operation starts.
664      * </pre>
665      *
666      * <code>DELETE_NODE_POOL = 8;</code>
667      */
668     public static final int DELETE_NODE_POOL_VALUE = 8;
669     /**
670      *
671      *
672      * <pre>
673      * The node pool's [manamagent][google.container.v1.NodePool.management]
674      * field is being updated. These operations only update metadata and may be
675      * concurrent with most other operations.
676      * </pre>
677      *
678      * <code>SET_NODE_POOL_MANAGEMENT = 9;</code>
679      */
680     public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9;
681     /**
682      *
683      *
684      * <pre>
685      * A problem has been detected with nodes and [they are being
686      * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair).
687      * This operation type is initiated by GKE, typically automatically. This
688      * operation may be concurrent with other operations and there may be
689      * multiple repairs occurring on the same node pool.
690      * </pre>
691      *
692      * <code>AUTO_REPAIR_NODES = 10;</code>
693      */
694     public static final int AUTO_REPAIR_NODES_VALUE = 10;
695     /**
696      *
697      *
698      * <pre>
699      * Unused. Automatic node upgrade uses
700      * [UPGRADE_NODES][google.container.v1.Operation.Type.UPGRADE_NODES].
701      * </pre>
702      *
703      * <code>AUTO_UPGRADE_NODES = 11 [deprecated = true];</code>
704      */
705     @java.lang.Deprecated public static final int AUTO_UPGRADE_NODES_VALUE = 11;
706     /**
707      *
708      *
709      * <pre>
710      * Unused. Updating labels uses
711      * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
712      * </pre>
713      *
714      * <code>SET_LABELS = 12 [deprecated = true];</code>
715      */
716     @java.lang.Deprecated public static final int SET_LABELS_VALUE = 12;
717     /**
718      *
719      *
720      * <pre>
721      * Unused. Updating master auth uses
722      * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
723      * </pre>
724      *
725      * <code>SET_MASTER_AUTH = 13 [deprecated = true];</code>
726      */
727     @java.lang.Deprecated public static final int SET_MASTER_AUTH_VALUE = 13;
728     /**
729      *
730      *
731      * <pre>
732      * The node pool is being resized. With the exception of resizing to or from
733      * size zero, the node pool is generally usable during this operation.
734      * </pre>
735      *
736      * <code>SET_NODE_POOL_SIZE = 14;</code>
737      */
738     public static final int SET_NODE_POOL_SIZE_VALUE = 14;
739     /**
740      *
741      *
742      * <pre>
743      * Unused. Updating network policy uses
744      * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
745      * </pre>
746      *
747      * <code>SET_NETWORK_POLICY = 15 [deprecated = true];</code>
748      */
749     @java.lang.Deprecated public static final int SET_NETWORK_POLICY_VALUE = 15;
750     /**
751      *
752      *
753      * <pre>
754      * Unused. Updating maintenance policy uses
755      * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
756      * </pre>
757      *
758      * <code>SET_MAINTENANCE_POLICY = 16 [deprecated = true];</code>
759      */
760     @java.lang.Deprecated public static final int SET_MAINTENANCE_POLICY_VALUE = 16;
761     /**
762      *
763      *
764      * <pre>
765      * The control plane is being resized. This operation type is initiated by
766      * GKE. These operations are often performed preemptively to ensure that the
767      * control plane has sufficient resources and is not typically an indication
768      * of issues. For more details, see
769      * [documentation on
770      * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
771      * </pre>
772      *
773      * <code>RESIZE_CLUSTER = 18;</code>
774      */
775     public static final int RESIZE_CLUSTER_VALUE = 18;
776 
getNumber()777     public final int getNumber() {
778       if (this == UNRECOGNIZED) {
779         throw new java.lang.IllegalArgumentException(
780             "Can't get the number of an unknown enum value.");
781       }
782       return value;
783     }
784 
785     /**
786      * @param value The numeric wire value of the corresponding enum entry.
787      * @return The enum associated with the given numeric wire value.
788      * @deprecated Use {@link #forNumber(int)} instead.
789      */
790     @java.lang.Deprecated
valueOf(int value)791     public static Type valueOf(int value) {
792       return forNumber(value);
793     }
794 
795     /**
796      * @param value The numeric wire value of the corresponding enum entry.
797      * @return The enum associated with the given numeric wire value.
798      */
forNumber(int value)799     public static Type forNumber(int value) {
800       switch (value) {
801         case 0:
802           return TYPE_UNSPECIFIED;
803         case 1:
804           return CREATE_CLUSTER;
805         case 2:
806           return DELETE_CLUSTER;
807         case 3:
808           return UPGRADE_MASTER;
809         case 4:
810           return UPGRADE_NODES;
811         case 5:
812           return REPAIR_CLUSTER;
813         case 6:
814           return UPDATE_CLUSTER;
815         case 7:
816           return CREATE_NODE_POOL;
817         case 8:
818           return DELETE_NODE_POOL;
819         case 9:
820           return SET_NODE_POOL_MANAGEMENT;
821         case 10:
822           return AUTO_REPAIR_NODES;
823         case 11:
824           return AUTO_UPGRADE_NODES;
825         case 12:
826           return SET_LABELS;
827         case 13:
828           return SET_MASTER_AUTH;
829         case 14:
830           return SET_NODE_POOL_SIZE;
831         case 15:
832           return SET_NETWORK_POLICY;
833         case 16:
834           return SET_MAINTENANCE_POLICY;
835         case 18:
836           return RESIZE_CLUSTER;
837         default:
838           return null;
839       }
840     }
841 
internalGetValueMap()842     public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() {
843       return internalValueMap;
844     }
845 
846     private static final com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap =
847         new com.google.protobuf.Internal.EnumLiteMap<Type>() {
848           public Type findValueByNumber(int number) {
849             return Type.forNumber(number);
850           }
851         };
852 
getValueDescriptor()853     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
854       if (this == UNRECOGNIZED) {
855         throw new java.lang.IllegalStateException(
856             "Can't get the descriptor of an unrecognized enum value.");
857       }
858       return getDescriptor().getValues().get(ordinal());
859     }
860 
getDescriptorForType()861     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
862       return getDescriptor();
863     }
864 
getDescriptor()865     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
866       return com.google.container.v1.Operation.getDescriptor().getEnumTypes().get(1);
867     }
868 
869     private static final Type[] VALUES = values();
870 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)871     public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
872       if (desc.getType() != getDescriptor()) {
873         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
874       }
875       if (desc.getIndex() == -1) {
876         return UNRECOGNIZED;
877       }
878       return VALUES[desc.getIndex()];
879     }
880 
881     private final int value;
882 
Type(int value)883     private Type(int value) {
884       this.value = value;
885     }
886 
887     // @@protoc_insertion_point(enum_scope:google.container.v1.Operation.Type)
888   }
889 
890   public static final int NAME_FIELD_NUMBER = 1;
891 
892   @SuppressWarnings("serial")
893   private volatile java.lang.Object name_ = "";
894   /**
895    *
896    *
897    * <pre>
898    * The server-assigned ID for the operation.
899    * </pre>
900    *
901    * <code>string name = 1;</code>
902    *
903    * @return The name.
904    */
905   @java.lang.Override
getName()906   public java.lang.String getName() {
907     java.lang.Object ref = name_;
908     if (ref instanceof java.lang.String) {
909       return (java.lang.String) ref;
910     } else {
911       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
912       java.lang.String s = bs.toStringUtf8();
913       name_ = s;
914       return s;
915     }
916   }
917   /**
918    *
919    *
920    * <pre>
921    * The server-assigned ID for the operation.
922    * </pre>
923    *
924    * <code>string name = 1;</code>
925    *
926    * @return The bytes for name.
927    */
928   @java.lang.Override
getNameBytes()929   public com.google.protobuf.ByteString getNameBytes() {
930     java.lang.Object ref = name_;
931     if (ref instanceof java.lang.String) {
932       com.google.protobuf.ByteString b =
933           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
934       name_ = b;
935       return b;
936     } else {
937       return (com.google.protobuf.ByteString) ref;
938     }
939   }
940 
941   public static final int ZONE_FIELD_NUMBER = 2;
942 
943   @SuppressWarnings("serial")
944   private volatile java.lang.Object zone_ = "";
945   /**
946    *
947    *
948    * <pre>
949    * The name of the Google Compute Engine
950    * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
951    * operation is taking place. This field is deprecated, use location instead.
952    * </pre>
953    *
954    * <code>string zone = 2 [deprecated = true];</code>
955    *
956    * @deprecated google.container.v1.Operation.zone is deprecated. See
957    *     google/container/v1/cluster_service.proto;l=2240
958    * @return The zone.
959    */
960   @java.lang.Override
961   @java.lang.Deprecated
getZone()962   public java.lang.String getZone() {
963     java.lang.Object ref = zone_;
964     if (ref instanceof java.lang.String) {
965       return (java.lang.String) ref;
966     } else {
967       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
968       java.lang.String s = bs.toStringUtf8();
969       zone_ = s;
970       return s;
971     }
972   }
973   /**
974    *
975    *
976    * <pre>
977    * The name of the Google Compute Engine
978    * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
979    * operation is taking place. This field is deprecated, use location instead.
980    * </pre>
981    *
982    * <code>string zone = 2 [deprecated = true];</code>
983    *
984    * @deprecated google.container.v1.Operation.zone is deprecated. See
985    *     google/container/v1/cluster_service.proto;l=2240
986    * @return The bytes for zone.
987    */
988   @java.lang.Override
989   @java.lang.Deprecated
getZoneBytes()990   public com.google.protobuf.ByteString getZoneBytes() {
991     java.lang.Object ref = zone_;
992     if (ref instanceof java.lang.String) {
993       com.google.protobuf.ByteString b =
994           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
995       zone_ = b;
996       return b;
997     } else {
998       return (com.google.protobuf.ByteString) ref;
999     }
1000   }
1001 
1002   public static final int OPERATION_TYPE_FIELD_NUMBER = 3;
1003   private int operationType_ = 0;
1004   /**
1005    *
1006    *
1007    * <pre>
1008    * The operation type.
1009    * </pre>
1010    *
1011    * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
1012    *
1013    * @return The enum numeric value on the wire for operationType.
1014    */
1015   @java.lang.Override
getOperationTypeValue()1016   public int getOperationTypeValue() {
1017     return operationType_;
1018   }
1019   /**
1020    *
1021    *
1022    * <pre>
1023    * The operation type.
1024    * </pre>
1025    *
1026    * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
1027    *
1028    * @return The operationType.
1029    */
1030   @java.lang.Override
getOperationType()1031   public com.google.container.v1.Operation.Type getOperationType() {
1032     com.google.container.v1.Operation.Type result =
1033         com.google.container.v1.Operation.Type.forNumber(operationType_);
1034     return result == null ? com.google.container.v1.Operation.Type.UNRECOGNIZED : result;
1035   }
1036 
1037   public static final int STATUS_FIELD_NUMBER = 4;
1038   private int status_ = 0;
1039   /**
1040    *
1041    *
1042    * <pre>
1043    * The current status of the operation.
1044    * </pre>
1045    *
1046    * <code>.google.container.v1.Operation.Status status = 4;</code>
1047    *
1048    * @return The enum numeric value on the wire for status.
1049    */
1050   @java.lang.Override
getStatusValue()1051   public int getStatusValue() {
1052     return status_;
1053   }
1054   /**
1055    *
1056    *
1057    * <pre>
1058    * The current status of the operation.
1059    * </pre>
1060    *
1061    * <code>.google.container.v1.Operation.Status status = 4;</code>
1062    *
1063    * @return The status.
1064    */
1065   @java.lang.Override
getStatus()1066   public com.google.container.v1.Operation.Status getStatus() {
1067     com.google.container.v1.Operation.Status result =
1068         com.google.container.v1.Operation.Status.forNumber(status_);
1069     return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result;
1070   }
1071 
1072   public static final int DETAIL_FIELD_NUMBER = 8;
1073 
1074   @SuppressWarnings("serial")
1075   private volatile java.lang.Object detail_ = "";
1076   /**
1077    *
1078    *
1079    * <pre>
1080    * Detailed operation progress, if available.
1081    * </pre>
1082    *
1083    * <code>string detail = 8;</code>
1084    *
1085    * @return The detail.
1086    */
1087   @java.lang.Override
getDetail()1088   public java.lang.String getDetail() {
1089     java.lang.Object ref = detail_;
1090     if (ref instanceof java.lang.String) {
1091       return (java.lang.String) ref;
1092     } else {
1093       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1094       java.lang.String s = bs.toStringUtf8();
1095       detail_ = s;
1096       return s;
1097     }
1098   }
1099   /**
1100    *
1101    *
1102    * <pre>
1103    * Detailed operation progress, if available.
1104    * </pre>
1105    *
1106    * <code>string detail = 8;</code>
1107    *
1108    * @return The bytes for detail.
1109    */
1110   @java.lang.Override
getDetailBytes()1111   public com.google.protobuf.ByteString getDetailBytes() {
1112     java.lang.Object ref = detail_;
1113     if (ref instanceof java.lang.String) {
1114       com.google.protobuf.ByteString b =
1115           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1116       detail_ = b;
1117       return b;
1118     } else {
1119       return (com.google.protobuf.ByteString) ref;
1120     }
1121   }
1122 
1123   public static final int STATUS_MESSAGE_FIELD_NUMBER = 5;
1124 
1125   @SuppressWarnings("serial")
1126   private volatile java.lang.Object statusMessage_ = "";
1127   /**
1128    *
1129    *
1130    * <pre>
1131    * Output only. If an error has occurred, a textual description of the error.
1132    * Deprecated. Use the field error instead.
1133    * </pre>
1134    *
1135    * <code>
1136    * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
1137    * </code>
1138    *
1139    * @deprecated google.container.v1.Operation.status_message is deprecated. See
1140    *     google/container/v1/cluster_service.proto;l=2253
1141    * @return The statusMessage.
1142    */
1143   @java.lang.Override
1144   @java.lang.Deprecated
getStatusMessage()1145   public java.lang.String getStatusMessage() {
1146     java.lang.Object ref = statusMessage_;
1147     if (ref instanceof java.lang.String) {
1148       return (java.lang.String) ref;
1149     } else {
1150       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1151       java.lang.String s = bs.toStringUtf8();
1152       statusMessage_ = s;
1153       return s;
1154     }
1155   }
1156   /**
1157    *
1158    *
1159    * <pre>
1160    * Output only. If an error has occurred, a textual description of the error.
1161    * Deprecated. Use the field error instead.
1162    * </pre>
1163    *
1164    * <code>
1165    * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
1166    * </code>
1167    *
1168    * @deprecated google.container.v1.Operation.status_message is deprecated. See
1169    *     google/container/v1/cluster_service.proto;l=2253
1170    * @return The bytes for statusMessage.
1171    */
1172   @java.lang.Override
1173   @java.lang.Deprecated
getStatusMessageBytes()1174   public com.google.protobuf.ByteString getStatusMessageBytes() {
1175     java.lang.Object ref = statusMessage_;
1176     if (ref instanceof java.lang.String) {
1177       com.google.protobuf.ByteString b =
1178           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1179       statusMessage_ = b;
1180       return b;
1181     } else {
1182       return (com.google.protobuf.ByteString) ref;
1183     }
1184   }
1185 
1186   public static final int SELF_LINK_FIELD_NUMBER = 6;
1187 
1188   @SuppressWarnings("serial")
1189   private volatile java.lang.Object selfLink_ = "";
1190   /**
1191    *
1192    *
1193    * <pre>
1194    * Server-defined URI for the operation. Example:
1195    * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
1196    * </pre>
1197    *
1198    * <code>string self_link = 6;</code>
1199    *
1200    * @return The selfLink.
1201    */
1202   @java.lang.Override
getSelfLink()1203   public java.lang.String getSelfLink() {
1204     java.lang.Object ref = selfLink_;
1205     if (ref instanceof java.lang.String) {
1206       return (java.lang.String) ref;
1207     } else {
1208       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1209       java.lang.String s = bs.toStringUtf8();
1210       selfLink_ = s;
1211       return s;
1212     }
1213   }
1214   /**
1215    *
1216    *
1217    * <pre>
1218    * Server-defined URI for the operation. Example:
1219    * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
1220    * </pre>
1221    *
1222    * <code>string self_link = 6;</code>
1223    *
1224    * @return The bytes for selfLink.
1225    */
1226   @java.lang.Override
getSelfLinkBytes()1227   public com.google.protobuf.ByteString getSelfLinkBytes() {
1228     java.lang.Object ref = selfLink_;
1229     if (ref instanceof java.lang.String) {
1230       com.google.protobuf.ByteString b =
1231           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1232       selfLink_ = b;
1233       return b;
1234     } else {
1235       return (com.google.protobuf.ByteString) ref;
1236     }
1237   }
1238 
1239   public static final int TARGET_LINK_FIELD_NUMBER = 7;
1240 
1241   @SuppressWarnings("serial")
1242   private volatile java.lang.Object targetLink_ = "";
1243   /**
1244    *
1245    *
1246    * <pre>
1247    * Server-defined URI for the target of the operation. The format of this is a
1248    * URI to the resource being modified (such as a cluster, node pool, or node).
1249    * For node pool repairs, there may be multiple nodes being repaired, but only
1250    * one will be the target.
1251    * Examples:
1252    *   -
1253    *   `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
1254    *   -
1255    *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
1256    *   -
1257    *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
1258    * </pre>
1259    *
1260    * <code>string target_link = 7;</code>
1261    *
1262    * @return The targetLink.
1263    */
1264   @java.lang.Override
getTargetLink()1265   public java.lang.String getTargetLink() {
1266     java.lang.Object ref = targetLink_;
1267     if (ref instanceof java.lang.String) {
1268       return (java.lang.String) ref;
1269     } else {
1270       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1271       java.lang.String s = bs.toStringUtf8();
1272       targetLink_ = s;
1273       return s;
1274     }
1275   }
1276   /**
1277    *
1278    *
1279    * <pre>
1280    * Server-defined URI for the target of the operation. The format of this is a
1281    * URI to the resource being modified (such as a cluster, node pool, or node).
1282    * For node pool repairs, there may be multiple nodes being repaired, but only
1283    * one will be the target.
1284    * Examples:
1285    *   -
1286    *   `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
1287    *   -
1288    *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
1289    *   -
1290    *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
1291    * </pre>
1292    *
1293    * <code>string target_link = 7;</code>
1294    *
1295    * @return The bytes for targetLink.
1296    */
1297   @java.lang.Override
getTargetLinkBytes()1298   public com.google.protobuf.ByteString getTargetLinkBytes() {
1299     java.lang.Object ref = targetLink_;
1300     if (ref instanceof java.lang.String) {
1301       com.google.protobuf.ByteString b =
1302           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1303       targetLink_ = b;
1304       return b;
1305     } else {
1306       return (com.google.protobuf.ByteString) ref;
1307     }
1308   }
1309 
1310   public static final int LOCATION_FIELD_NUMBER = 9;
1311 
1312   @SuppressWarnings("serial")
1313   private volatile java.lang.Object location_ = "";
1314   /**
1315    *
1316    *
1317    * <pre>
1318    * [Output only] The name of the Google Compute Engine
1319    * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1320    * or
1321    * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1322    * in which the cluster resides.
1323    * </pre>
1324    *
1325    * <code>string location = 9;</code>
1326    *
1327    * @return The location.
1328    */
1329   @java.lang.Override
getLocation()1330   public java.lang.String getLocation() {
1331     java.lang.Object ref = location_;
1332     if (ref instanceof java.lang.String) {
1333       return (java.lang.String) ref;
1334     } else {
1335       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1336       java.lang.String s = bs.toStringUtf8();
1337       location_ = s;
1338       return s;
1339     }
1340   }
1341   /**
1342    *
1343    *
1344    * <pre>
1345    * [Output only] The name of the Google Compute Engine
1346    * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1347    * or
1348    * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1349    * in which the cluster resides.
1350    * </pre>
1351    *
1352    * <code>string location = 9;</code>
1353    *
1354    * @return The bytes for location.
1355    */
1356   @java.lang.Override
getLocationBytes()1357   public com.google.protobuf.ByteString getLocationBytes() {
1358     java.lang.Object ref = location_;
1359     if (ref instanceof java.lang.String) {
1360       com.google.protobuf.ByteString b =
1361           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1362       location_ = b;
1363       return b;
1364     } else {
1365       return (com.google.protobuf.ByteString) ref;
1366     }
1367   }
1368 
1369   public static final int START_TIME_FIELD_NUMBER = 10;
1370 
1371   @SuppressWarnings("serial")
1372   private volatile java.lang.Object startTime_ = "";
1373   /**
1374    *
1375    *
1376    * <pre>
1377    * [Output only] The time the operation started, in
1378    * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1379    * </pre>
1380    *
1381    * <code>string start_time = 10;</code>
1382    *
1383    * @return The startTime.
1384    */
1385   @java.lang.Override
getStartTime()1386   public java.lang.String getStartTime() {
1387     java.lang.Object ref = startTime_;
1388     if (ref instanceof java.lang.String) {
1389       return (java.lang.String) ref;
1390     } else {
1391       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1392       java.lang.String s = bs.toStringUtf8();
1393       startTime_ = s;
1394       return s;
1395     }
1396   }
1397   /**
1398    *
1399    *
1400    * <pre>
1401    * [Output only] The time the operation started, in
1402    * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1403    * </pre>
1404    *
1405    * <code>string start_time = 10;</code>
1406    *
1407    * @return The bytes for startTime.
1408    */
1409   @java.lang.Override
getStartTimeBytes()1410   public com.google.protobuf.ByteString getStartTimeBytes() {
1411     java.lang.Object ref = startTime_;
1412     if (ref instanceof java.lang.String) {
1413       com.google.protobuf.ByteString b =
1414           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1415       startTime_ = b;
1416       return b;
1417     } else {
1418       return (com.google.protobuf.ByteString) ref;
1419     }
1420   }
1421 
1422   public static final int END_TIME_FIELD_NUMBER = 11;
1423 
1424   @SuppressWarnings("serial")
1425   private volatile java.lang.Object endTime_ = "";
1426   /**
1427    *
1428    *
1429    * <pre>
1430    * [Output only] The time the operation completed, in
1431    * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1432    * </pre>
1433    *
1434    * <code>string end_time = 11;</code>
1435    *
1436    * @return The endTime.
1437    */
1438   @java.lang.Override
getEndTime()1439   public java.lang.String getEndTime() {
1440     java.lang.Object ref = endTime_;
1441     if (ref instanceof java.lang.String) {
1442       return (java.lang.String) ref;
1443     } else {
1444       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1445       java.lang.String s = bs.toStringUtf8();
1446       endTime_ = s;
1447       return s;
1448     }
1449   }
1450   /**
1451    *
1452    *
1453    * <pre>
1454    * [Output only] The time the operation completed, in
1455    * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1456    * </pre>
1457    *
1458    * <code>string end_time = 11;</code>
1459    *
1460    * @return The bytes for endTime.
1461    */
1462   @java.lang.Override
getEndTimeBytes()1463   public com.google.protobuf.ByteString getEndTimeBytes() {
1464     java.lang.Object ref = endTime_;
1465     if (ref instanceof java.lang.String) {
1466       com.google.protobuf.ByteString b =
1467           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1468       endTime_ = b;
1469       return b;
1470     } else {
1471       return (com.google.protobuf.ByteString) ref;
1472     }
1473   }
1474 
1475   public static final int PROGRESS_FIELD_NUMBER = 12;
1476   private com.google.container.v1.OperationProgress progress_;
1477   /**
1478    *
1479    *
1480    * <pre>
1481    * Output only. [Output only] Progress information for an operation.
1482    * </pre>
1483    *
1484    * <code>
1485    * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
1486    * </code>
1487    *
1488    * @return Whether the progress field is set.
1489    */
1490   @java.lang.Override
hasProgress()1491   public boolean hasProgress() {
1492     return progress_ != null;
1493   }
1494   /**
1495    *
1496    *
1497    * <pre>
1498    * Output only. [Output only] Progress information for an operation.
1499    * </pre>
1500    *
1501    * <code>
1502    * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
1503    * </code>
1504    *
1505    * @return The progress.
1506    */
1507   @java.lang.Override
getProgress()1508   public com.google.container.v1.OperationProgress getProgress() {
1509     return progress_ == null
1510         ? com.google.container.v1.OperationProgress.getDefaultInstance()
1511         : progress_;
1512   }
1513   /**
1514    *
1515    *
1516    * <pre>
1517    * Output only. [Output only] Progress information for an operation.
1518    * </pre>
1519    *
1520    * <code>
1521    * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
1522    * </code>
1523    */
1524   @java.lang.Override
getProgressOrBuilder()1525   public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() {
1526     return progress_ == null
1527         ? com.google.container.v1.OperationProgress.getDefaultInstance()
1528         : progress_;
1529   }
1530 
1531   public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13;
1532 
1533   @SuppressWarnings("serial")
1534   private java.util.List<com.google.container.v1.StatusCondition> clusterConditions_;
1535   /**
1536    *
1537    *
1538    * <pre>
1539    * Which conditions caused the current cluster state.
1540    * Deprecated. Use field error instead.
1541    * </pre>
1542    *
1543    * <code>
1544    * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
1545    * </code>
1546    */
1547   @java.lang.Override
1548   @java.lang.Deprecated
getClusterConditionsList()1549   public java.util.List<com.google.container.v1.StatusCondition> getClusterConditionsList() {
1550     return clusterConditions_;
1551   }
1552   /**
1553    *
1554    *
1555    * <pre>
1556    * Which conditions caused the current cluster state.
1557    * Deprecated. Use field error instead.
1558    * </pre>
1559    *
1560    * <code>
1561    * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
1562    * </code>
1563    */
1564   @java.lang.Override
1565   @java.lang.Deprecated
1566   public java.util.List<? extends com.google.container.v1.StatusConditionOrBuilder>
getClusterConditionsOrBuilderList()1567       getClusterConditionsOrBuilderList() {
1568     return clusterConditions_;
1569   }
1570   /**
1571    *
1572    *
1573    * <pre>
1574    * Which conditions caused the current cluster state.
1575    * Deprecated. Use field error instead.
1576    * </pre>
1577    *
1578    * <code>
1579    * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
1580    * </code>
1581    */
1582   @java.lang.Override
1583   @java.lang.Deprecated
getClusterConditionsCount()1584   public int getClusterConditionsCount() {
1585     return clusterConditions_.size();
1586   }
1587   /**
1588    *
1589    *
1590    * <pre>
1591    * Which conditions caused the current cluster state.
1592    * Deprecated. Use field error instead.
1593    * </pre>
1594    *
1595    * <code>
1596    * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
1597    * </code>
1598    */
1599   @java.lang.Override
1600   @java.lang.Deprecated
getClusterConditions(int index)1601   public com.google.container.v1.StatusCondition getClusterConditions(int index) {
1602     return clusterConditions_.get(index);
1603   }
1604   /**
1605    *
1606    *
1607    * <pre>
1608    * Which conditions caused the current cluster state.
1609    * Deprecated. Use field error instead.
1610    * </pre>
1611    *
1612    * <code>
1613    * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
1614    * </code>
1615    */
1616   @java.lang.Override
1617   @java.lang.Deprecated
getClusterConditionsOrBuilder(int index)1618   public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder(int index) {
1619     return clusterConditions_.get(index);
1620   }
1621 
1622   public static final int NODEPOOL_CONDITIONS_FIELD_NUMBER = 14;
1623 
1624   @SuppressWarnings("serial")
1625   private java.util.List<com.google.container.v1.StatusCondition> nodepoolConditions_;
1626   /**
1627    *
1628    *
1629    * <pre>
1630    * Which conditions caused the current node pool state.
1631    * Deprecated. Use field error instead.
1632    * </pre>
1633    *
1634    * <code>
1635    * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
1636    * </code>
1637    */
1638   @java.lang.Override
1639   @java.lang.Deprecated
getNodepoolConditionsList()1640   public java.util.List<com.google.container.v1.StatusCondition> getNodepoolConditionsList() {
1641     return nodepoolConditions_;
1642   }
1643   /**
1644    *
1645    *
1646    * <pre>
1647    * Which conditions caused the current node pool state.
1648    * Deprecated. Use field error instead.
1649    * </pre>
1650    *
1651    * <code>
1652    * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
1653    * </code>
1654    */
1655   @java.lang.Override
1656   @java.lang.Deprecated
1657   public java.util.List<? extends com.google.container.v1.StatusConditionOrBuilder>
getNodepoolConditionsOrBuilderList()1658       getNodepoolConditionsOrBuilderList() {
1659     return nodepoolConditions_;
1660   }
1661   /**
1662    *
1663    *
1664    * <pre>
1665    * Which conditions caused the current node pool state.
1666    * Deprecated. Use field error instead.
1667    * </pre>
1668    *
1669    * <code>
1670    * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
1671    * </code>
1672    */
1673   @java.lang.Override
1674   @java.lang.Deprecated
getNodepoolConditionsCount()1675   public int getNodepoolConditionsCount() {
1676     return nodepoolConditions_.size();
1677   }
1678   /**
1679    *
1680    *
1681    * <pre>
1682    * Which conditions caused the current node pool state.
1683    * Deprecated. Use field error instead.
1684    * </pre>
1685    *
1686    * <code>
1687    * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
1688    * </code>
1689    */
1690   @java.lang.Override
1691   @java.lang.Deprecated
getNodepoolConditions(int index)1692   public com.google.container.v1.StatusCondition getNodepoolConditions(int index) {
1693     return nodepoolConditions_.get(index);
1694   }
1695   /**
1696    *
1697    *
1698    * <pre>
1699    * Which conditions caused the current node pool state.
1700    * Deprecated. Use field error instead.
1701    * </pre>
1702    *
1703    * <code>
1704    * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
1705    * </code>
1706    */
1707   @java.lang.Override
1708   @java.lang.Deprecated
getNodepoolConditionsOrBuilder( int index)1709   public com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder(
1710       int index) {
1711     return nodepoolConditions_.get(index);
1712   }
1713 
1714   public static final int ERROR_FIELD_NUMBER = 15;
1715   private com.google.rpc.Status error_;
1716   /**
1717    *
1718    *
1719    * <pre>
1720    * The error result of the operation in case of failure.
1721    * </pre>
1722    *
1723    * <code>.google.rpc.Status error = 15;</code>
1724    *
1725    * @return Whether the error field is set.
1726    */
1727   @java.lang.Override
hasError()1728   public boolean hasError() {
1729     return error_ != null;
1730   }
1731   /**
1732    *
1733    *
1734    * <pre>
1735    * The error result of the operation in case of failure.
1736    * </pre>
1737    *
1738    * <code>.google.rpc.Status error = 15;</code>
1739    *
1740    * @return The error.
1741    */
1742   @java.lang.Override
getError()1743   public com.google.rpc.Status getError() {
1744     return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
1745   }
1746   /**
1747    *
1748    *
1749    * <pre>
1750    * The error result of the operation in case of failure.
1751    * </pre>
1752    *
1753    * <code>.google.rpc.Status error = 15;</code>
1754    */
1755   @java.lang.Override
getErrorOrBuilder()1756   public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
1757     return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
1758   }
1759 
1760   private byte memoizedIsInitialized = -1;
1761 
1762   @java.lang.Override
isInitialized()1763   public final boolean isInitialized() {
1764     byte isInitialized = memoizedIsInitialized;
1765     if (isInitialized == 1) return true;
1766     if (isInitialized == 0) return false;
1767 
1768     memoizedIsInitialized = 1;
1769     return true;
1770   }
1771 
1772   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1773   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1774     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1775       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1776     }
1777     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
1778       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_);
1779     }
1780     if (operationType_ != com.google.container.v1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) {
1781       output.writeEnum(3, operationType_);
1782     }
1783     if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) {
1784       output.writeEnum(4, status_);
1785     }
1786     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
1787       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_);
1788     }
1789     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) {
1790       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, selfLink_);
1791     }
1792     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLink_)) {
1793       com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetLink_);
1794     }
1795     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
1796       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, detail_);
1797     }
1798     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
1799       com.google.protobuf.GeneratedMessageV3.writeString(output, 9, location_);
1800     }
1801     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) {
1802       com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_);
1803     }
1804     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) {
1805       com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endTime_);
1806     }
1807     if (progress_ != null) {
1808       output.writeMessage(12, getProgress());
1809     }
1810     for (int i = 0; i < clusterConditions_.size(); i++) {
1811       output.writeMessage(13, clusterConditions_.get(i));
1812     }
1813     for (int i = 0; i < nodepoolConditions_.size(); i++) {
1814       output.writeMessage(14, nodepoolConditions_.get(i));
1815     }
1816     if (error_ != null) {
1817       output.writeMessage(15, getError());
1818     }
1819     getUnknownFields().writeTo(output);
1820   }
1821 
1822   @java.lang.Override
getSerializedSize()1823   public int getSerializedSize() {
1824     int size = memoizedSize;
1825     if (size != -1) return size;
1826 
1827     size = 0;
1828     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1829       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1830     }
1831     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
1832       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_);
1833     }
1834     if (operationType_ != com.google.container.v1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) {
1835       size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, operationType_);
1836     }
1837     if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) {
1838       size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, status_);
1839     }
1840     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
1841       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_);
1842     }
1843     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) {
1844       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, selfLink_);
1845     }
1846     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLink_)) {
1847       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, targetLink_);
1848     }
1849     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
1850       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, detail_);
1851     }
1852     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
1853       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, location_);
1854     }
1855     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) {
1856       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_);
1857     }
1858     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) {
1859       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endTime_);
1860     }
1861     if (progress_ != null) {
1862       size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getProgress());
1863     }
1864     for (int i = 0; i < clusterConditions_.size(); i++) {
1865       size +=
1866           com.google.protobuf.CodedOutputStream.computeMessageSize(13, clusterConditions_.get(i));
1867     }
1868     for (int i = 0; i < nodepoolConditions_.size(); i++) {
1869       size +=
1870           com.google.protobuf.CodedOutputStream.computeMessageSize(14, nodepoolConditions_.get(i));
1871     }
1872     if (error_ != null) {
1873       size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getError());
1874     }
1875     size += getUnknownFields().getSerializedSize();
1876     memoizedSize = size;
1877     return size;
1878   }
1879 
1880   @java.lang.Override
equals(final java.lang.Object obj)1881   public boolean equals(final java.lang.Object obj) {
1882     if (obj == this) {
1883       return true;
1884     }
1885     if (!(obj instanceof com.google.container.v1.Operation)) {
1886       return super.equals(obj);
1887     }
1888     com.google.container.v1.Operation other = (com.google.container.v1.Operation) obj;
1889 
1890     if (!getName().equals(other.getName())) return false;
1891     if (!getZone().equals(other.getZone())) return false;
1892     if (operationType_ != other.operationType_) return false;
1893     if (status_ != other.status_) return false;
1894     if (!getDetail().equals(other.getDetail())) return false;
1895     if (!getStatusMessage().equals(other.getStatusMessage())) return false;
1896     if (!getSelfLink().equals(other.getSelfLink())) return false;
1897     if (!getTargetLink().equals(other.getTargetLink())) return false;
1898     if (!getLocation().equals(other.getLocation())) return false;
1899     if (!getStartTime().equals(other.getStartTime())) return false;
1900     if (!getEndTime().equals(other.getEndTime())) return false;
1901     if (hasProgress() != other.hasProgress()) return false;
1902     if (hasProgress()) {
1903       if (!getProgress().equals(other.getProgress())) return false;
1904     }
1905     if (!getClusterConditionsList().equals(other.getClusterConditionsList())) return false;
1906     if (!getNodepoolConditionsList().equals(other.getNodepoolConditionsList())) return false;
1907     if (hasError() != other.hasError()) return false;
1908     if (hasError()) {
1909       if (!getError().equals(other.getError())) return false;
1910     }
1911     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1912     return true;
1913   }
1914 
1915   @java.lang.Override
hashCode()1916   public int hashCode() {
1917     if (memoizedHashCode != 0) {
1918       return memoizedHashCode;
1919     }
1920     int hash = 41;
1921     hash = (19 * hash) + getDescriptor().hashCode();
1922     hash = (37 * hash) + NAME_FIELD_NUMBER;
1923     hash = (53 * hash) + getName().hashCode();
1924     hash = (37 * hash) + ZONE_FIELD_NUMBER;
1925     hash = (53 * hash) + getZone().hashCode();
1926     hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER;
1927     hash = (53 * hash) + operationType_;
1928     hash = (37 * hash) + STATUS_FIELD_NUMBER;
1929     hash = (53 * hash) + status_;
1930     hash = (37 * hash) + DETAIL_FIELD_NUMBER;
1931     hash = (53 * hash) + getDetail().hashCode();
1932     hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER;
1933     hash = (53 * hash) + getStatusMessage().hashCode();
1934     hash = (37 * hash) + SELF_LINK_FIELD_NUMBER;
1935     hash = (53 * hash) + getSelfLink().hashCode();
1936     hash = (37 * hash) + TARGET_LINK_FIELD_NUMBER;
1937     hash = (53 * hash) + getTargetLink().hashCode();
1938     hash = (37 * hash) + LOCATION_FIELD_NUMBER;
1939     hash = (53 * hash) + getLocation().hashCode();
1940     hash = (37 * hash) + START_TIME_FIELD_NUMBER;
1941     hash = (53 * hash) + getStartTime().hashCode();
1942     hash = (37 * hash) + END_TIME_FIELD_NUMBER;
1943     hash = (53 * hash) + getEndTime().hashCode();
1944     if (hasProgress()) {
1945       hash = (37 * hash) + PROGRESS_FIELD_NUMBER;
1946       hash = (53 * hash) + getProgress().hashCode();
1947     }
1948     if (getClusterConditionsCount() > 0) {
1949       hash = (37 * hash) + CLUSTER_CONDITIONS_FIELD_NUMBER;
1950       hash = (53 * hash) + getClusterConditionsList().hashCode();
1951     }
1952     if (getNodepoolConditionsCount() > 0) {
1953       hash = (37 * hash) + NODEPOOL_CONDITIONS_FIELD_NUMBER;
1954       hash = (53 * hash) + getNodepoolConditionsList().hashCode();
1955     }
1956     if (hasError()) {
1957       hash = (37 * hash) + ERROR_FIELD_NUMBER;
1958       hash = (53 * hash) + getError().hashCode();
1959     }
1960     hash = (29 * hash) + getUnknownFields().hashCode();
1961     memoizedHashCode = hash;
1962     return hash;
1963   }
1964 
parseFrom(java.nio.ByteBuffer data)1965   public static com.google.container.v1.Operation parseFrom(java.nio.ByteBuffer data)
1966       throws com.google.protobuf.InvalidProtocolBufferException {
1967     return PARSER.parseFrom(data);
1968   }
1969 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1970   public static com.google.container.v1.Operation parseFrom(
1971       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1972       throws com.google.protobuf.InvalidProtocolBufferException {
1973     return PARSER.parseFrom(data, extensionRegistry);
1974   }
1975 
parseFrom(com.google.protobuf.ByteString data)1976   public static com.google.container.v1.Operation parseFrom(com.google.protobuf.ByteString data)
1977       throws com.google.protobuf.InvalidProtocolBufferException {
1978     return PARSER.parseFrom(data);
1979   }
1980 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1981   public static com.google.container.v1.Operation parseFrom(
1982       com.google.protobuf.ByteString data,
1983       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1984       throws com.google.protobuf.InvalidProtocolBufferException {
1985     return PARSER.parseFrom(data, extensionRegistry);
1986   }
1987 
parseFrom(byte[] data)1988   public static com.google.container.v1.Operation parseFrom(byte[] data)
1989       throws com.google.protobuf.InvalidProtocolBufferException {
1990     return PARSER.parseFrom(data);
1991   }
1992 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1993   public static com.google.container.v1.Operation parseFrom(
1994       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1995       throws com.google.protobuf.InvalidProtocolBufferException {
1996     return PARSER.parseFrom(data, extensionRegistry);
1997   }
1998 
parseFrom(java.io.InputStream input)1999   public static com.google.container.v1.Operation parseFrom(java.io.InputStream input)
2000       throws java.io.IOException {
2001     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2002   }
2003 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2004   public static com.google.container.v1.Operation parseFrom(
2005       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2006       throws java.io.IOException {
2007     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2008         PARSER, input, extensionRegistry);
2009   }
2010 
parseDelimitedFrom(java.io.InputStream input)2011   public static com.google.container.v1.Operation parseDelimitedFrom(java.io.InputStream input)
2012       throws java.io.IOException {
2013     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
2014   }
2015 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2016   public static com.google.container.v1.Operation parseDelimitedFrom(
2017       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2018       throws java.io.IOException {
2019     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
2020         PARSER, input, extensionRegistry);
2021   }
2022 
parseFrom( com.google.protobuf.CodedInputStream input)2023   public static com.google.container.v1.Operation parseFrom(
2024       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
2025     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2026   }
2027 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2028   public static com.google.container.v1.Operation parseFrom(
2029       com.google.protobuf.CodedInputStream input,
2030       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2031       throws java.io.IOException {
2032     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2033         PARSER, input, extensionRegistry);
2034   }
2035 
2036   @java.lang.Override
newBuilderForType()2037   public Builder newBuilderForType() {
2038     return newBuilder();
2039   }
2040 
newBuilder()2041   public static Builder newBuilder() {
2042     return DEFAULT_INSTANCE.toBuilder();
2043   }
2044 
newBuilder(com.google.container.v1.Operation prototype)2045   public static Builder newBuilder(com.google.container.v1.Operation prototype) {
2046     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2047   }
2048 
2049   @java.lang.Override
toBuilder()2050   public Builder toBuilder() {
2051     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
2052   }
2053 
2054   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2055   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2056     Builder builder = new Builder(parent);
2057     return builder;
2058   }
2059   /**
2060    *
2061    *
2062    * <pre>
2063    * This operation resource represents operations that may have happened or are
2064    * happening on the cluster. All fields are output only.
2065    * </pre>
2066    *
2067    * Protobuf type {@code google.container.v1.Operation}
2068    */
2069   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
2070       implements
2071       // @@protoc_insertion_point(builder_implements:google.container.v1.Operation)
2072       com.google.container.v1.OperationOrBuilder {
getDescriptor()2073     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2074       return com.google.container.v1.ClusterServiceProto
2075           .internal_static_google_container_v1_Operation_descriptor;
2076     }
2077 
2078     @java.lang.Override
2079     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2080         internalGetFieldAccessorTable() {
2081       return com.google.container.v1.ClusterServiceProto
2082           .internal_static_google_container_v1_Operation_fieldAccessorTable
2083           .ensureFieldAccessorsInitialized(
2084               com.google.container.v1.Operation.class,
2085               com.google.container.v1.Operation.Builder.class);
2086     }
2087 
2088     // Construct using com.google.container.v1.Operation.newBuilder()
Builder()2089     private Builder() {}
2090 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2091     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2092       super(parent);
2093     }
2094 
2095     @java.lang.Override
clear()2096     public Builder clear() {
2097       super.clear();
2098       bitField0_ = 0;
2099       name_ = "";
2100       zone_ = "";
2101       operationType_ = 0;
2102       status_ = 0;
2103       detail_ = "";
2104       statusMessage_ = "";
2105       selfLink_ = "";
2106       targetLink_ = "";
2107       location_ = "";
2108       startTime_ = "";
2109       endTime_ = "";
2110       progress_ = null;
2111       if (progressBuilder_ != null) {
2112         progressBuilder_.dispose();
2113         progressBuilder_ = null;
2114       }
2115       if (clusterConditionsBuilder_ == null) {
2116         clusterConditions_ = java.util.Collections.emptyList();
2117       } else {
2118         clusterConditions_ = null;
2119         clusterConditionsBuilder_.clear();
2120       }
2121       bitField0_ = (bitField0_ & ~0x00001000);
2122       if (nodepoolConditionsBuilder_ == null) {
2123         nodepoolConditions_ = java.util.Collections.emptyList();
2124       } else {
2125         nodepoolConditions_ = null;
2126         nodepoolConditionsBuilder_.clear();
2127       }
2128       bitField0_ = (bitField0_ & ~0x00002000);
2129       error_ = null;
2130       if (errorBuilder_ != null) {
2131         errorBuilder_.dispose();
2132         errorBuilder_ = null;
2133       }
2134       return this;
2135     }
2136 
2137     @java.lang.Override
getDescriptorForType()2138     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
2139       return com.google.container.v1.ClusterServiceProto
2140           .internal_static_google_container_v1_Operation_descriptor;
2141     }
2142 
2143     @java.lang.Override
getDefaultInstanceForType()2144     public com.google.container.v1.Operation getDefaultInstanceForType() {
2145       return com.google.container.v1.Operation.getDefaultInstance();
2146     }
2147 
2148     @java.lang.Override
build()2149     public com.google.container.v1.Operation build() {
2150       com.google.container.v1.Operation result = buildPartial();
2151       if (!result.isInitialized()) {
2152         throw newUninitializedMessageException(result);
2153       }
2154       return result;
2155     }
2156 
2157     @java.lang.Override
buildPartial()2158     public com.google.container.v1.Operation buildPartial() {
2159       com.google.container.v1.Operation result = new com.google.container.v1.Operation(this);
2160       buildPartialRepeatedFields(result);
2161       if (bitField0_ != 0) {
2162         buildPartial0(result);
2163       }
2164       onBuilt();
2165       return result;
2166     }
2167 
buildPartialRepeatedFields(com.google.container.v1.Operation result)2168     private void buildPartialRepeatedFields(com.google.container.v1.Operation result) {
2169       if (clusterConditionsBuilder_ == null) {
2170         if (((bitField0_ & 0x00001000) != 0)) {
2171           clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_);
2172           bitField0_ = (bitField0_ & ~0x00001000);
2173         }
2174         result.clusterConditions_ = clusterConditions_;
2175       } else {
2176         result.clusterConditions_ = clusterConditionsBuilder_.build();
2177       }
2178       if (nodepoolConditionsBuilder_ == null) {
2179         if (((bitField0_ & 0x00002000) != 0)) {
2180           nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_);
2181           bitField0_ = (bitField0_ & ~0x00002000);
2182         }
2183         result.nodepoolConditions_ = nodepoolConditions_;
2184       } else {
2185         result.nodepoolConditions_ = nodepoolConditionsBuilder_.build();
2186       }
2187     }
2188 
buildPartial0(com.google.container.v1.Operation result)2189     private void buildPartial0(com.google.container.v1.Operation result) {
2190       int from_bitField0_ = bitField0_;
2191       if (((from_bitField0_ & 0x00000001) != 0)) {
2192         result.name_ = name_;
2193       }
2194       if (((from_bitField0_ & 0x00000002) != 0)) {
2195         result.zone_ = zone_;
2196       }
2197       if (((from_bitField0_ & 0x00000004) != 0)) {
2198         result.operationType_ = operationType_;
2199       }
2200       if (((from_bitField0_ & 0x00000008) != 0)) {
2201         result.status_ = status_;
2202       }
2203       if (((from_bitField0_ & 0x00000010) != 0)) {
2204         result.detail_ = detail_;
2205       }
2206       if (((from_bitField0_ & 0x00000020) != 0)) {
2207         result.statusMessage_ = statusMessage_;
2208       }
2209       if (((from_bitField0_ & 0x00000040) != 0)) {
2210         result.selfLink_ = selfLink_;
2211       }
2212       if (((from_bitField0_ & 0x00000080) != 0)) {
2213         result.targetLink_ = targetLink_;
2214       }
2215       if (((from_bitField0_ & 0x00000100) != 0)) {
2216         result.location_ = location_;
2217       }
2218       if (((from_bitField0_ & 0x00000200) != 0)) {
2219         result.startTime_ = startTime_;
2220       }
2221       if (((from_bitField0_ & 0x00000400) != 0)) {
2222         result.endTime_ = endTime_;
2223       }
2224       if (((from_bitField0_ & 0x00000800) != 0)) {
2225         result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build();
2226       }
2227       if (((from_bitField0_ & 0x00004000) != 0)) {
2228         result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
2229       }
2230     }
2231 
2232     @java.lang.Override
clone()2233     public Builder clone() {
2234       return super.clone();
2235     }
2236 
2237     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2238     public Builder setField(
2239         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2240       return super.setField(field, value);
2241     }
2242 
2243     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2244     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
2245       return super.clearField(field);
2246     }
2247 
2248     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2249     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2250       return super.clearOneof(oneof);
2251     }
2252 
2253     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2254     public Builder setRepeatedField(
2255         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
2256       return super.setRepeatedField(field, index, value);
2257     }
2258 
2259     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2260     public Builder addRepeatedField(
2261         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2262       return super.addRepeatedField(field, value);
2263     }
2264 
2265     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)2266     public Builder mergeFrom(com.google.protobuf.Message other) {
2267       if (other instanceof com.google.container.v1.Operation) {
2268         return mergeFrom((com.google.container.v1.Operation) other);
2269       } else {
2270         super.mergeFrom(other);
2271         return this;
2272       }
2273     }
2274 
mergeFrom(com.google.container.v1.Operation other)2275     public Builder mergeFrom(com.google.container.v1.Operation other) {
2276       if (other == com.google.container.v1.Operation.getDefaultInstance()) return this;
2277       if (!other.getName().isEmpty()) {
2278         name_ = other.name_;
2279         bitField0_ |= 0x00000001;
2280         onChanged();
2281       }
2282       if (!other.getZone().isEmpty()) {
2283         zone_ = other.zone_;
2284         bitField0_ |= 0x00000002;
2285         onChanged();
2286       }
2287       if (other.operationType_ != 0) {
2288         setOperationTypeValue(other.getOperationTypeValue());
2289       }
2290       if (other.status_ != 0) {
2291         setStatusValue(other.getStatusValue());
2292       }
2293       if (!other.getDetail().isEmpty()) {
2294         detail_ = other.detail_;
2295         bitField0_ |= 0x00000010;
2296         onChanged();
2297       }
2298       if (!other.getStatusMessage().isEmpty()) {
2299         statusMessage_ = other.statusMessage_;
2300         bitField0_ |= 0x00000020;
2301         onChanged();
2302       }
2303       if (!other.getSelfLink().isEmpty()) {
2304         selfLink_ = other.selfLink_;
2305         bitField0_ |= 0x00000040;
2306         onChanged();
2307       }
2308       if (!other.getTargetLink().isEmpty()) {
2309         targetLink_ = other.targetLink_;
2310         bitField0_ |= 0x00000080;
2311         onChanged();
2312       }
2313       if (!other.getLocation().isEmpty()) {
2314         location_ = other.location_;
2315         bitField0_ |= 0x00000100;
2316         onChanged();
2317       }
2318       if (!other.getStartTime().isEmpty()) {
2319         startTime_ = other.startTime_;
2320         bitField0_ |= 0x00000200;
2321         onChanged();
2322       }
2323       if (!other.getEndTime().isEmpty()) {
2324         endTime_ = other.endTime_;
2325         bitField0_ |= 0x00000400;
2326         onChanged();
2327       }
2328       if (other.hasProgress()) {
2329         mergeProgress(other.getProgress());
2330       }
2331       if (clusterConditionsBuilder_ == null) {
2332         if (!other.clusterConditions_.isEmpty()) {
2333           if (clusterConditions_.isEmpty()) {
2334             clusterConditions_ = other.clusterConditions_;
2335             bitField0_ = (bitField0_ & ~0x00001000);
2336           } else {
2337             ensureClusterConditionsIsMutable();
2338             clusterConditions_.addAll(other.clusterConditions_);
2339           }
2340           onChanged();
2341         }
2342       } else {
2343         if (!other.clusterConditions_.isEmpty()) {
2344           if (clusterConditionsBuilder_.isEmpty()) {
2345             clusterConditionsBuilder_.dispose();
2346             clusterConditionsBuilder_ = null;
2347             clusterConditions_ = other.clusterConditions_;
2348             bitField0_ = (bitField0_ & ~0x00001000);
2349             clusterConditionsBuilder_ =
2350                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
2351                     ? getClusterConditionsFieldBuilder()
2352                     : null;
2353           } else {
2354             clusterConditionsBuilder_.addAllMessages(other.clusterConditions_);
2355           }
2356         }
2357       }
2358       if (nodepoolConditionsBuilder_ == null) {
2359         if (!other.nodepoolConditions_.isEmpty()) {
2360           if (nodepoolConditions_.isEmpty()) {
2361             nodepoolConditions_ = other.nodepoolConditions_;
2362             bitField0_ = (bitField0_ & ~0x00002000);
2363           } else {
2364             ensureNodepoolConditionsIsMutable();
2365             nodepoolConditions_.addAll(other.nodepoolConditions_);
2366           }
2367           onChanged();
2368         }
2369       } else {
2370         if (!other.nodepoolConditions_.isEmpty()) {
2371           if (nodepoolConditionsBuilder_.isEmpty()) {
2372             nodepoolConditionsBuilder_.dispose();
2373             nodepoolConditionsBuilder_ = null;
2374             nodepoolConditions_ = other.nodepoolConditions_;
2375             bitField0_ = (bitField0_ & ~0x00002000);
2376             nodepoolConditionsBuilder_ =
2377                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
2378                     ? getNodepoolConditionsFieldBuilder()
2379                     : null;
2380           } else {
2381             nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_);
2382           }
2383         }
2384       }
2385       if (other.hasError()) {
2386         mergeError(other.getError());
2387       }
2388       this.mergeUnknownFields(other.getUnknownFields());
2389       onChanged();
2390       return this;
2391     }
2392 
2393     @java.lang.Override
isInitialized()2394     public final boolean isInitialized() {
2395       return true;
2396     }
2397 
2398     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2399     public Builder mergeFrom(
2400         com.google.protobuf.CodedInputStream input,
2401         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2402         throws java.io.IOException {
2403       if (extensionRegistry == null) {
2404         throw new java.lang.NullPointerException();
2405       }
2406       try {
2407         boolean done = false;
2408         while (!done) {
2409           int tag = input.readTag();
2410           switch (tag) {
2411             case 0:
2412               done = true;
2413               break;
2414             case 10:
2415               {
2416                 name_ = input.readStringRequireUtf8();
2417                 bitField0_ |= 0x00000001;
2418                 break;
2419               } // case 10
2420             case 18:
2421               {
2422                 zone_ = input.readStringRequireUtf8();
2423                 bitField0_ |= 0x00000002;
2424                 break;
2425               } // case 18
2426             case 24:
2427               {
2428                 operationType_ = input.readEnum();
2429                 bitField0_ |= 0x00000004;
2430                 break;
2431               } // case 24
2432             case 32:
2433               {
2434                 status_ = input.readEnum();
2435                 bitField0_ |= 0x00000008;
2436                 break;
2437               } // case 32
2438             case 42:
2439               {
2440                 statusMessage_ = input.readStringRequireUtf8();
2441                 bitField0_ |= 0x00000020;
2442                 break;
2443               } // case 42
2444             case 50:
2445               {
2446                 selfLink_ = input.readStringRequireUtf8();
2447                 bitField0_ |= 0x00000040;
2448                 break;
2449               } // case 50
2450             case 58:
2451               {
2452                 targetLink_ = input.readStringRequireUtf8();
2453                 bitField0_ |= 0x00000080;
2454                 break;
2455               } // case 58
2456             case 66:
2457               {
2458                 detail_ = input.readStringRequireUtf8();
2459                 bitField0_ |= 0x00000010;
2460                 break;
2461               } // case 66
2462             case 74:
2463               {
2464                 location_ = input.readStringRequireUtf8();
2465                 bitField0_ |= 0x00000100;
2466                 break;
2467               } // case 74
2468             case 82:
2469               {
2470                 startTime_ = input.readStringRequireUtf8();
2471                 bitField0_ |= 0x00000200;
2472                 break;
2473               } // case 82
2474             case 90:
2475               {
2476                 endTime_ = input.readStringRequireUtf8();
2477                 bitField0_ |= 0x00000400;
2478                 break;
2479               } // case 90
2480             case 98:
2481               {
2482                 input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry);
2483                 bitField0_ |= 0x00000800;
2484                 break;
2485               } // case 98
2486             case 106:
2487               {
2488                 com.google.container.v1.StatusCondition m =
2489                     input.readMessage(
2490                         com.google.container.v1.StatusCondition.parser(), extensionRegistry);
2491                 if (clusterConditionsBuilder_ == null) {
2492                   ensureClusterConditionsIsMutable();
2493                   clusterConditions_.add(m);
2494                 } else {
2495                   clusterConditionsBuilder_.addMessage(m);
2496                 }
2497                 break;
2498               } // case 106
2499             case 114:
2500               {
2501                 com.google.container.v1.StatusCondition m =
2502                     input.readMessage(
2503                         com.google.container.v1.StatusCondition.parser(), extensionRegistry);
2504                 if (nodepoolConditionsBuilder_ == null) {
2505                   ensureNodepoolConditionsIsMutable();
2506                   nodepoolConditions_.add(m);
2507                 } else {
2508                   nodepoolConditionsBuilder_.addMessage(m);
2509                 }
2510                 break;
2511               } // case 114
2512             case 122:
2513               {
2514                 input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
2515                 bitField0_ |= 0x00004000;
2516                 break;
2517               } // case 122
2518             default:
2519               {
2520                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2521                   done = true; // was an endgroup tag
2522                 }
2523                 break;
2524               } // default:
2525           } // switch (tag)
2526         } // while (!done)
2527       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2528         throw e.unwrapIOException();
2529       } finally {
2530         onChanged();
2531       } // finally
2532       return this;
2533     }
2534 
2535     private int bitField0_;
2536 
2537     private java.lang.Object name_ = "";
2538     /**
2539      *
2540      *
2541      * <pre>
2542      * The server-assigned ID for the operation.
2543      * </pre>
2544      *
2545      * <code>string name = 1;</code>
2546      *
2547      * @return The name.
2548      */
getName()2549     public java.lang.String getName() {
2550       java.lang.Object ref = name_;
2551       if (!(ref instanceof java.lang.String)) {
2552         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2553         java.lang.String s = bs.toStringUtf8();
2554         name_ = s;
2555         return s;
2556       } else {
2557         return (java.lang.String) ref;
2558       }
2559     }
2560     /**
2561      *
2562      *
2563      * <pre>
2564      * The server-assigned ID for the operation.
2565      * </pre>
2566      *
2567      * <code>string name = 1;</code>
2568      *
2569      * @return The bytes for name.
2570      */
getNameBytes()2571     public com.google.protobuf.ByteString getNameBytes() {
2572       java.lang.Object ref = name_;
2573       if (ref instanceof String) {
2574         com.google.protobuf.ByteString b =
2575             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2576         name_ = b;
2577         return b;
2578       } else {
2579         return (com.google.protobuf.ByteString) ref;
2580       }
2581     }
2582     /**
2583      *
2584      *
2585      * <pre>
2586      * The server-assigned ID for the operation.
2587      * </pre>
2588      *
2589      * <code>string name = 1;</code>
2590      *
2591      * @param value The name to set.
2592      * @return This builder for chaining.
2593      */
setName(java.lang.String value)2594     public Builder setName(java.lang.String value) {
2595       if (value == null) {
2596         throw new NullPointerException();
2597       }
2598       name_ = value;
2599       bitField0_ |= 0x00000001;
2600       onChanged();
2601       return this;
2602     }
2603     /**
2604      *
2605      *
2606      * <pre>
2607      * The server-assigned ID for the operation.
2608      * </pre>
2609      *
2610      * <code>string name = 1;</code>
2611      *
2612      * @return This builder for chaining.
2613      */
clearName()2614     public Builder clearName() {
2615       name_ = getDefaultInstance().getName();
2616       bitField0_ = (bitField0_ & ~0x00000001);
2617       onChanged();
2618       return this;
2619     }
2620     /**
2621      *
2622      *
2623      * <pre>
2624      * The server-assigned ID for the operation.
2625      * </pre>
2626      *
2627      * <code>string name = 1;</code>
2628      *
2629      * @param value The bytes for name to set.
2630      * @return This builder for chaining.
2631      */
setNameBytes(com.google.protobuf.ByteString value)2632     public Builder setNameBytes(com.google.protobuf.ByteString value) {
2633       if (value == null) {
2634         throw new NullPointerException();
2635       }
2636       checkByteStringIsUtf8(value);
2637       name_ = value;
2638       bitField0_ |= 0x00000001;
2639       onChanged();
2640       return this;
2641     }
2642 
2643     private java.lang.Object zone_ = "";
2644     /**
2645      *
2646      *
2647      * <pre>
2648      * The name of the Google Compute Engine
2649      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2650      * operation is taking place. This field is deprecated, use location instead.
2651      * </pre>
2652      *
2653      * <code>string zone = 2 [deprecated = true];</code>
2654      *
2655      * @deprecated google.container.v1.Operation.zone is deprecated. See
2656      *     google/container/v1/cluster_service.proto;l=2240
2657      * @return The zone.
2658      */
2659     @java.lang.Deprecated
getZone()2660     public java.lang.String getZone() {
2661       java.lang.Object ref = zone_;
2662       if (!(ref instanceof java.lang.String)) {
2663         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2664         java.lang.String s = bs.toStringUtf8();
2665         zone_ = s;
2666         return s;
2667       } else {
2668         return (java.lang.String) ref;
2669       }
2670     }
2671     /**
2672      *
2673      *
2674      * <pre>
2675      * The name of the Google Compute Engine
2676      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2677      * operation is taking place. This field is deprecated, use location instead.
2678      * </pre>
2679      *
2680      * <code>string zone = 2 [deprecated = true];</code>
2681      *
2682      * @deprecated google.container.v1.Operation.zone is deprecated. See
2683      *     google/container/v1/cluster_service.proto;l=2240
2684      * @return The bytes for zone.
2685      */
2686     @java.lang.Deprecated
getZoneBytes()2687     public com.google.protobuf.ByteString getZoneBytes() {
2688       java.lang.Object ref = zone_;
2689       if (ref instanceof String) {
2690         com.google.protobuf.ByteString b =
2691             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2692         zone_ = b;
2693         return b;
2694       } else {
2695         return (com.google.protobuf.ByteString) ref;
2696       }
2697     }
2698     /**
2699      *
2700      *
2701      * <pre>
2702      * The name of the Google Compute Engine
2703      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2704      * operation is taking place. This field is deprecated, use location instead.
2705      * </pre>
2706      *
2707      * <code>string zone = 2 [deprecated = true];</code>
2708      *
2709      * @deprecated google.container.v1.Operation.zone is deprecated. See
2710      *     google/container/v1/cluster_service.proto;l=2240
2711      * @param value The zone to set.
2712      * @return This builder for chaining.
2713      */
2714     @java.lang.Deprecated
setZone(java.lang.String value)2715     public Builder setZone(java.lang.String value) {
2716       if (value == null) {
2717         throw new NullPointerException();
2718       }
2719       zone_ = value;
2720       bitField0_ |= 0x00000002;
2721       onChanged();
2722       return this;
2723     }
2724     /**
2725      *
2726      *
2727      * <pre>
2728      * The name of the Google Compute Engine
2729      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2730      * operation is taking place. This field is deprecated, use location instead.
2731      * </pre>
2732      *
2733      * <code>string zone = 2 [deprecated = true];</code>
2734      *
2735      * @deprecated google.container.v1.Operation.zone is deprecated. See
2736      *     google/container/v1/cluster_service.proto;l=2240
2737      * @return This builder for chaining.
2738      */
2739     @java.lang.Deprecated
clearZone()2740     public Builder clearZone() {
2741       zone_ = getDefaultInstance().getZone();
2742       bitField0_ = (bitField0_ & ~0x00000002);
2743       onChanged();
2744       return this;
2745     }
2746     /**
2747      *
2748      *
2749      * <pre>
2750      * The name of the Google Compute Engine
2751      * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2752      * operation is taking place. This field is deprecated, use location instead.
2753      * </pre>
2754      *
2755      * <code>string zone = 2 [deprecated = true];</code>
2756      *
2757      * @deprecated google.container.v1.Operation.zone is deprecated. See
2758      *     google/container/v1/cluster_service.proto;l=2240
2759      * @param value The bytes for zone to set.
2760      * @return This builder for chaining.
2761      */
2762     @java.lang.Deprecated
setZoneBytes(com.google.protobuf.ByteString value)2763     public Builder setZoneBytes(com.google.protobuf.ByteString value) {
2764       if (value == null) {
2765         throw new NullPointerException();
2766       }
2767       checkByteStringIsUtf8(value);
2768       zone_ = value;
2769       bitField0_ |= 0x00000002;
2770       onChanged();
2771       return this;
2772     }
2773 
2774     private int operationType_ = 0;
2775     /**
2776      *
2777      *
2778      * <pre>
2779      * The operation type.
2780      * </pre>
2781      *
2782      * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
2783      *
2784      * @return The enum numeric value on the wire for operationType.
2785      */
2786     @java.lang.Override
getOperationTypeValue()2787     public int getOperationTypeValue() {
2788       return operationType_;
2789     }
2790     /**
2791      *
2792      *
2793      * <pre>
2794      * The operation type.
2795      * </pre>
2796      *
2797      * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
2798      *
2799      * @param value The enum numeric value on the wire for operationType to set.
2800      * @return This builder for chaining.
2801      */
setOperationTypeValue(int value)2802     public Builder setOperationTypeValue(int value) {
2803       operationType_ = value;
2804       bitField0_ |= 0x00000004;
2805       onChanged();
2806       return this;
2807     }
2808     /**
2809      *
2810      *
2811      * <pre>
2812      * The operation type.
2813      * </pre>
2814      *
2815      * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
2816      *
2817      * @return The operationType.
2818      */
2819     @java.lang.Override
getOperationType()2820     public com.google.container.v1.Operation.Type getOperationType() {
2821       com.google.container.v1.Operation.Type result =
2822           com.google.container.v1.Operation.Type.forNumber(operationType_);
2823       return result == null ? com.google.container.v1.Operation.Type.UNRECOGNIZED : result;
2824     }
2825     /**
2826      *
2827      *
2828      * <pre>
2829      * The operation type.
2830      * </pre>
2831      *
2832      * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
2833      *
2834      * @param value The operationType to set.
2835      * @return This builder for chaining.
2836      */
setOperationType(com.google.container.v1.Operation.Type value)2837     public Builder setOperationType(com.google.container.v1.Operation.Type value) {
2838       if (value == null) {
2839         throw new NullPointerException();
2840       }
2841       bitField0_ |= 0x00000004;
2842       operationType_ = value.getNumber();
2843       onChanged();
2844       return this;
2845     }
2846     /**
2847      *
2848      *
2849      * <pre>
2850      * The operation type.
2851      * </pre>
2852      *
2853      * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
2854      *
2855      * @return This builder for chaining.
2856      */
clearOperationType()2857     public Builder clearOperationType() {
2858       bitField0_ = (bitField0_ & ~0x00000004);
2859       operationType_ = 0;
2860       onChanged();
2861       return this;
2862     }
2863 
2864     private int status_ = 0;
2865     /**
2866      *
2867      *
2868      * <pre>
2869      * The current status of the operation.
2870      * </pre>
2871      *
2872      * <code>.google.container.v1.Operation.Status status = 4;</code>
2873      *
2874      * @return The enum numeric value on the wire for status.
2875      */
2876     @java.lang.Override
getStatusValue()2877     public int getStatusValue() {
2878       return status_;
2879     }
2880     /**
2881      *
2882      *
2883      * <pre>
2884      * The current status of the operation.
2885      * </pre>
2886      *
2887      * <code>.google.container.v1.Operation.Status status = 4;</code>
2888      *
2889      * @param value The enum numeric value on the wire for status to set.
2890      * @return This builder for chaining.
2891      */
setStatusValue(int value)2892     public Builder setStatusValue(int value) {
2893       status_ = value;
2894       bitField0_ |= 0x00000008;
2895       onChanged();
2896       return this;
2897     }
2898     /**
2899      *
2900      *
2901      * <pre>
2902      * The current status of the operation.
2903      * </pre>
2904      *
2905      * <code>.google.container.v1.Operation.Status status = 4;</code>
2906      *
2907      * @return The status.
2908      */
2909     @java.lang.Override
getStatus()2910     public com.google.container.v1.Operation.Status getStatus() {
2911       com.google.container.v1.Operation.Status result =
2912           com.google.container.v1.Operation.Status.forNumber(status_);
2913       return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result;
2914     }
2915     /**
2916      *
2917      *
2918      * <pre>
2919      * The current status of the operation.
2920      * </pre>
2921      *
2922      * <code>.google.container.v1.Operation.Status status = 4;</code>
2923      *
2924      * @param value The status to set.
2925      * @return This builder for chaining.
2926      */
setStatus(com.google.container.v1.Operation.Status value)2927     public Builder setStatus(com.google.container.v1.Operation.Status value) {
2928       if (value == null) {
2929         throw new NullPointerException();
2930       }
2931       bitField0_ |= 0x00000008;
2932       status_ = value.getNumber();
2933       onChanged();
2934       return this;
2935     }
2936     /**
2937      *
2938      *
2939      * <pre>
2940      * The current status of the operation.
2941      * </pre>
2942      *
2943      * <code>.google.container.v1.Operation.Status status = 4;</code>
2944      *
2945      * @return This builder for chaining.
2946      */
clearStatus()2947     public Builder clearStatus() {
2948       bitField0_ = (bitField0_ & ~0x00000008);
2949       status_ = 0;
2950       onChanged();
2951       return this;
2952     }
2953 
2954     private java.lang.Object detail_ = "";
2955     /**
2956      *
2957      *
2958      * <pre>
2959      * Detailed operation progress, if available.
2960      * </pre>
2961      *
2962      * <code>string detail = 8;</code>
2963      *
2964      * @return The detail.
2965      */
getDetail()2966     public java.lang.String getDetail() {
2967       java.lang.Object ref = detail_;
2968       if (!(ref instanceof java.lang.String)) {
2969         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2970         java.lang.String s = bs.toStringUtf8();
2971         detail_ = s;
2972         return s;
2973       } else {
2974         return (java.lang.String) ref;
2975       }
2976     }
2977     /**
2978      *
2979      *
2980      * <pre>
2981      * Detailed operation progress, if available.
2982      * </pre>
2983      *
2984      * <code>string detail = 8;</code>
2985      *
2986      * @return The bytes for detail.
2987      */
getDetailBytes()2988     public com.google.protobuf.ByteString getDetailBytes() {
2989       java.lang.Object ref = detail_;
2990       if (ref instanceof String) {
2991         com.google.protobuf.ByteString b =
2992             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2993         detail_ = b;
2994         return b;
2995       } else {
2996         return (com.google.protobuf.ByteString) ref;
2997       }
2998     }
2999     /**
3000      *
3001      *
3002      * <pre>
3003      * Detailed operation progress, if available.
3004      * </pre>
3005      *
3006      * <code>string detail = 8;</code>
3007      *
3008      * @param value The detail to set.
3009      * @return This builder for chaining.
3010      */
setDetail(java.lang.String value)3011     public Builder setDetail(java.lang.String value) {
3012       if (value == null) {
3013         throw new NullPointerException();
3014       }
3015       detail_ = value;
3016       bitField0_ |= 0x00000010;
3017       onChanged();
3018       return this;
3019     }
3020     /**
3021      *
3022      *
3023      * <pre>
3024      * Detailed operation progress, if available.
3025      * </pre>
3026      *
3027      * <code>string detail = 8;</code>
3028      *
3029      * @return This builder for chaining.
3030      */
clearDetail()3031     public Builder clearDetail() {
3032       detail_ = getDefaultInstance().getDetail();
3033       bitField0_ = (bitField0_ & ~0x00000010);
3034       onChanged();
3035       return this;
3036     }
3037     /**
3038      *
3039      *
3040      * <pre>
3041      * Detailed operation progress, if available.
3042      * </pre>
3043      *
3044      * <code>string detail = 8;</code>
3045      *
3046      * @param value The bytes for detail to set.
3047      * @return This builder for chaining.
3048      */
setDetailBytes(com.google.protobuf.ByteString value)3049     public Builder setDetailBytes(com.google.protobuf.ByteString value) {
3050       if (value == null) {
3051         throw new NullPointerException();
3052       }
3053       checkByteStringIsUtf8(value);
3054       detail_ = value;
3055       bitField0_ |= 0x00000010;
3056       onChanged();
3057       return this;
3058     }
3059 
3060     private java.lang.Object statusMessage_ = "";
3061     /**
3062      *
3063      *
3064      * <pre>
3065      * Output only. If an error has occurred, a textual description of the error.
3066      * Deprecated. Use the field error instead.
3067      * </pre>
3068      *
3069      * <code>
3070      * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
3071      * </code>
3072      *
3073      * @deprecated google.container.v1.Operation.status_message is deprecated. See
3074      *     google/container/v1/cluster_service.proto;l=2253
3075      * @return The statusMessage.
3076      */
3077     @java.lang.Deprecated
getStatusMessage()3078     public java.lang.String getStatusMessage() {
3079       java.lang.Object ref = statusMessage_;
3080       if (!(ref instanceof java.lang.String)) {
3081         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3082         java.lang.String s = bs.toStringUtf8();
3083         statusMessage_ = s;
3084         return s;
3085       } else {
3086         return (java.lang.String) ref;
3087       }
3088     }
3089     /**
3090      *
3091      *
3092      * <pre>
3093      * Output only. If an error has occurred, a textual description of the error.
3094      * Deprecated. Use the field error instead.
3095      * </pre>
3096      *
3097      * <code>
3098      * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
3099      * </code>
3100      *
3101      * @deprecated google.container.v1.Operation.status_message is deprecated. See
3102      *     google/container/v1/cluster_service.proto;l=2253
3103      * @return The bytes for statusMessage.
3104      */
3105     @java.lang.Deprecated
getStatusMessageBytes()3106     public com.google.protobuf.ByteString getStatusMessageBytes() {
3107       java.lang.Object ref = statusMessage_;
3108       if (ref instanceof String) {
3109         com.google.protobuf.ByteString b =
3110             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3111         statusMessage_ = b;
3112         return b;
3113       } else {
3114         return (com.google.protobuf.ByteString) ref;
3115       }
3116     }
3117     /**
3118      *
3119      *
3120      * <pre>
3121      * Output only. If an error has occurred, a textual description of the error.
3122      * Deprecated. Use the field error instead.
3123      * </pre>
3124      *
3125      * <code>
3126      * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
3127      * </code>
3128      *
3129      * @deprecated google.container.v1.Operation.status_message is deprecated. See
3130      *     google/container/v1/cluster_service.proto;l=2253
3131      * @param value The statusMessage to set.
3132      * @return This builder for chaining.
3133      */
3134     @java.lang.Deprecated
setStatusMessage(java.lang.String value)3135     public Builder setStatusMessage(java.lang.String value) {
3136       if (value == null) {
3137         throw new NullPointerException();
3138       }
3139       statusMessage_ = value;
3140       bitField0_ |= 0x00000020;
3141       onChanged();
3142       return this;
3143     }
3144     /**
3145      *
3146      *
3147      * <pre>
3148      * Output only. If an error has occurred, a textual description of the error.
3149      * Deprecated. Use the field error instead.
3150      * </pre>
3151      *
3152      * <code>
3153      * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
3154      * </code>
3155      *
3156      * @deprecated google.container.v1.Operation.status_message is deprecated. See
3157      *     google/container/v1/cluster_service.proto;l=2253
3158      * @return This builder for chaining.
3159      */
3160     @java.lang.Deprecated
clearStatusMessage()3161     public Builder clearStatusMessage() {
3162       statusMessage_ = getDefaultInstance().getStatusMessage();
3163       bitField0_ = (bitField0_ & ~0x00000020);
3164       onChanged();
3165       return this;
3166     }
3167     /**
3168      *
3169      *
3170      * <pre>
3171      * Output only. If an error has occurred, a textual description of the error.
3172      * Deprecated. Use the field error instead.
3173      * </pre>
3174      *
3175      * <code>
3176      * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
3177      * </code>
3178      *
3179      * @deprecated google.container.v1.Operation.status_message is deprecated. See
3180      *     google/container/v1/cluster_service.proto;l=2253
3181      * @param value The bytes for statusMessage to set.
3182      * @return This builder for chaining.
3183      */
3184     @java.lang.Deprecated
setStatusMessageBytes(com.google.protobuf.ByteString value)3185     public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
3186       if (value == null) {
3187         throw new NullPointerException();
3188       }
3189       checkByteStringIsUtf8(value);
3190       statusMessage_ = value;
3191       bitField0_ |= 0x00000020;
3192       onChanged();
3193       return this;
3194     }
3195 
3196     private java.lang.Object selfLink_ = "";
3197     /**
3198      *
3199      *
3200      * <pre>
3201      * Server-defined URI for the operation. Example:
3202      * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
3203      * </pre>
3204      *
3205      * <code>string self_link = 6;</code>
3206      *
3207      * @return The selfLink.
3208      */
getSelfLink()3209     public java.lang.String getSelfLink() {
3210       java.lang.Object ref = selfLink_;
3211       if (!(ref instanceof java.lang.String)) {
3212         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3213         java.lang.String s = bs.toStringUtf8();
3214         selfLink_ = s;
3215         return s;
3216       } else {
3217         return (java.lang.String) ref;
3218       }
3219     }
3220     /**
3221      *
3222      *
3223      * <pre>
3224      * Server-defined URI for the operation. Example:
3225      * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
3226      * </pre>
3227      *
3228      * <code>string self_link = 6;</code>
3229      *
3230      * @return The bytes for selfLink.
3231      */
getSelfLinkBytes()3232     public com.google.protobuf.ByteString getSelfLinkBytes() {
3233       java.lang.Object ref = selfLink_;
3234       if (ref instanceof String) {
3235         com.google.protobuf.ByteString b =
3236             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3237         selfLink_ = b;
3238         return b;
3239       } else {
3240         return (com.google.protobuf.ByteString) ref;
3241       }
3242     }
3243     /**
3244      *
3245      *
3246      * <pre>
3247      * Server-defined URI for the operation. Example:
3248      * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
3249      * </pre>
3250      *
3251      * <code>string self_link = 6;</code>
3252      *
3253      * @param value The selfLink to set.
3254      * @return This builder for chaining.
3255      */
setSelfLink(java.lang.String value)3256     public Builder setSelfLink(java.lang.String value) {
3257       if (value == null) {
3258         throw new NullPointerException();
3259       }
3260       selfLink_ = value;
3261       bitField0_ |= 0x00000040;
3262       onChanged();
3263       return this;
3264     }
3265     /**
3266      *
3267      *
3268      * <pre>
3269      * Server-defined URI for the operation. Example:
3270      * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
3271      * </pre>
3272      *
3273      * <code>string self_link = 6;</code>
3274      *
3275      * @return This builder for chaining.
3276      */
clearSelfLink()3277     public Builder clearSelfLink() {
3278       selfLink_ = getDefaultInstance().getSelfLink();
3279       bitField0_ = (bitField0_ & ~0x00000040);
3280       onChanged();
3281       return this;
3282     }
3283     /**
3284      *
3285      *
3286      * <pre>
3287      * Server-defined URI for the operation. Example:
3288      * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
3289      * </pre>
3290      *
3291      * <code>string self_link = 6;</code>
3292      *
3293      * @param value The bytes for selfLink to set.
3294      * @return This builder for chaining.
3295      */
setSelfLinkBytes(com.google.protobuf.ByteString value)3296     public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) {
3297       if (value == null) {
3298         throw new NullPointerException();
3299       }
3300       checkByteStringIsUtf8(value);
3301       selfLink_ = value;
3302       bitField0_ |= 0x00000040;
3303       onChanged();
3304       return this;
3305     }
3306 
3307     private java.lang.Object targetLink_ = "";
3308     /**
3309      *
3310      *
3311      * <pre>
3312      * Server-defined URI for the target of the operation. The format of this is a
3313      * URI to the resource being modified (such as a cluster, node pool, or node).
3314      * For node pool repairs, there may be multiple nodes being repaired, but only
3315      * one will be the target.
3316      * Examples:
3317      *   -
3318      *   `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
3319      *   -
3320      *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
3321      *   -
3322      *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
3323      * </pre>
3324      *
3325      * <code>string target_link = 7;</code>
3326      *
3327      * @return The targetLink.
3328      */
getTargetLink()3329     public java.lang.String getTargetLink() {
3330       java.lang.Object ref = targetLink_;
3331       if (!(ref instanceof java.lang.String)) {
3332         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3333         java.lang.String s = bs.toStringUtf8();
3334         targetLink_ = s;
3335         return s;
3336       } else {
3337         return (java.lang.String) ref;
3338       }
3339     }
3340     /**
3341      *
3342      *
3343      * <pre>
3344      * Server-defined URI for the target of the operation. The format of this is a
3345      * URI to the resource being modified (such as a cluster, node pool, or node).
3346      * For node pool repairs, there may be multiple nodes being repaired, but only
3347      * one will be the target.
3348      * Examples:
3349      *   -
3350      *   `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
3351      *   -
3352      *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
3353      *   -
3354      *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
3355      * </pre>
3356      *
3357      * <code>string target_link = 7;</code>
3358      *
3359      * @return The bytes for targetLink.
3360      */
getTargetLinkBytes()3361     public com.google.protobuf.ByteString getTargetLinkBytes() {
3362       java.lang.Object ref = targetLink_;
3363       if (ref instanceof String) {
3364         com.google.protobuf.ByteString b =
3365             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3366         targetLink_ = b;
3367         return b;
3368       } else {
3369         return (com.google.protobuf.ByteString) ref;
3370       }
3371     }
3372     /**
3373      *
3374      *
3375      * <pre>
3376      * Server-defined URI for the target of the operation. The format of this is a
3377      * URI to the resource being modified (such as a cluster, node pool, or node).
3378      * For node pool repairs, there may be multiple nodes being repaired, but only
3379      * one will be the target.
3380      * Examples:
3381      *   -
3382      *   `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
3383      *   -
3384      *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
3385      *   -
3386      *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
3387      * </pre>
3388      *
3389      * <code>string target_link = 7;</code>
3390      *
3391      * @param value The targetLink to set.
3392      * @return This builder for chaining.
3393      */
setTargetLink(java.lang.String value)3394     public Builder setTargetLink(java.lang.String value) {
3395       if (value == null) {
3396         throw new NullPointerException();
3397       }
3398       targetLink_ = value;
3399       bitField0_ |= 0x00000080;
3400       onChanged();
3401       return this;
3402     }
3403     /**
3404      *
3405      *
3406      * <pre>
3407      * Server-defined URI for the target of the operation. The format of this is a
3408      * URI to the resource being modified (such as a cluster, node pool, or node).
3409      * For node pool repairs, there may be multiple nodes being repaired, but only
3410      * one will be the target.
3411      * Examples:
3412      *   -
3413      *   `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
3414      *   -
3415      *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
3416      *   -
3417      *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
3418      * </pre>
3419      *
3420      * <code>string target_link = 7;</code>
3421      *
3422      * @return This builder for chaining.
3423      */
clearTargetLink()3424     public Builder clearTargetLink() {
3425       targetLink_ = getDefaultInstance().getTargetLink();
3426       bitField0_ = (bitField0_ & ~0x00000080);
3427       onChanged();
3428       return this;
3429     }
3430     /**
3431      *
3432      *
3433      * <pre>
3434      * Server-defined URI for the target of the operation. The format of this is a
3435      * URI to the resource being modified (such as a cluster, node pool, or node).
3436      * For node pool repairs, there may be multiple nodes being repaired, but only
3437      * one will be the target.
3438      * Examples:
3439      *   -
3440      *   `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
3441      *   -
3442      *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
3443      *   -
3444      *   `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
3445      * </pre>
3446      *
3447      * <code>string target_link = 7;</code>
3448      *
3449      * @param value The bytes for targetLink to set.
3450      * @return This builder for chaining.
3451      */
setTargetLinkBytes(com.google.protobuf.ByteString value)3452     public Builder setTargetLinkBytes(com.google.protobuf.ByteString value) {
3453       if (value == null) {
3454         throw new NullPointerException();
3455       }
3456       checkByteStringIsUtf8(value);
3457       targetLink_ = value;
3458       bitField0_ |= 0x00000080;
3459       onChanged();
3460       return this;
3461     }
3462 
3463     private java.lang.Object location_ = "";
3464     /**
3465      *
3466      *
3467      * <pre>
3468      * [Output only] The name of the Google Compute Engine
3469      * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3470      * or
3471      * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3472      * in which the cluster resides.
3473      * </pre>
3474      *
3475      * <code>string location = 9;</code>
3476      *
3477      * @return The location.
3478      */
getLocation()3479     public java.lang.String getLocation() {
3480       java.lang.Object ref = location_;
3481       if (!(ref instanceof java.lang.String)) {
3482         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3483         java.lang.String s = bs.toStringUtf8();
3484         location_ = s;
3485         return s;
3486       } else {
3487         return (java.lang.String) ref;
3488       }
3489     }
3490     /**
3491      *
3492      *
3493      * <pre>
3494      * [Output only] The name of the Google Compute Engine
3495      * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3496      * or
3497      * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3498      * in which the cluster resides.
3499      * </pre>
3500      *
3501      * <code>string location = 9;</code>
3502      *
3503      * @return The bytes for location.
3504      */
getLocationBytes()3505     public com.google.protobuf.ByteString getLocationBytes() {
3506       java.lang.Object ref = location_;
3507       if (ref instanceof String) {
3508         com.google.protobuf.ByteString b =
3509             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3510         location_ = b;
3511         return b;
3512       } else {
3513         return (com.google.protobuf.ByteString) ref;
3514       }
3515     }
3516     /**
3517      *
3518      *
3519      * <pre>
3520      * [Output only] The name of the Google Compute Engine
3521      * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3522      * or
3523      * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3524      * in which the cluster resides.
3525      * </pre>
3526      *
3527      * <code>string location = 9;</code>
3528      *
3529      * @param value The location to set.
3530      * @return This builder for chaining.
3531      */
setLocation(java.lang.String value)3532     public Builder setLocation(java.lang.String value) {
3533       if (value == null) {
3534         throw new NullPointerException();
3535       }
3536       location_ = value;
3537       bitField0_ |= 0x00000100;
3538       onChanged();
3539       return this;
3540     }
3541     /**
3542      *
3543      *
3544      * <pre>
3545      * [Output only] The name of the Google Compute Engine
3546      * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3547      * or
3548      * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3549      * in which the cluster resides.
3550      * </pre>
3551      *
3552      * <code>string location = 9;</code>
3553      *
3554      * @return This builder for chaining.
3555      */
clearLocation()3556     public Builder clearLocation() {
3557       location_ = getDefaultInstance().getLocation();
3558       bitField0_ = (bitField0_ & ~0x00000100);
3559       onChanged();
3560       return this;
3561     }
3562     /**
3563      *
3564      *
3565      * <pre>
3566      * [Output only] The name of the Google Compute Engine
3567      * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3568      * or
3569      * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3570      * in which the cluster resides.
3571      * </pre>
3572      *
3573      * <code>string location = 9;</code>
3574      *
3575      * @param value The bytes for location to set.
3576      * @return This builder for chaining.
3577      */
setLocationBytes(com.google.protobuf.ByteString value)3578     public Builder setLocationBytes(com.google.protobuf.ByteString value) {
3579       if (value == null) {
3580         throw new NullPointerException();
3581       }
3582       checkByteStringIsUtf8(value);
3583       location_ = value;
3584       bitField0_ |= 0x00000100;
3585       onChanged();
3586       return this;
3587     }
3588 
3589     private java.lang.Object startTime_ = "";
3590     /**
3591      *
3592      *
3593      * <pre>
3594      * [Output only] The time the operation started, in
3595      * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3596      * </pre>
3597      *
3598      * <code>string start_time = 10;</code>
3599      *
3600      * @return The startTime.
3601      */
getStartTime()3602     public java.lang.String getStartTime() {
3603       java.lang.Object ref = startTime_;
3604       if (!(ref instanceof java.lang.String)) {
3605         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3606         java.lang.String s = bs.toStringUtf8();
3607         startTime_ = s;
3608         return s;
3609       } else {
3610         return (java.lang.String) ref;
3611       }
3612     }
3613     /**
3614      *
3615      *
3616      * <pre>
3617      * [Output only] The time the operation started, in
3618      * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3619      * </pre>
3620      *
3621      * <code>string start_time = 10;</code>
3622      *
3623      * @return The bytes for startTime.
3624      */
getStartTimeBytes()3625     public com.google.protobuf.ByteString getStartTimeBytes() {
3626       java.lang.Object ref = startTime_;
3627       if (ref instanceof String) {
3628         com.google.protobuf.ByteString b =
3629             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3630         startTime_ = b;
3631         return b;
3632       } else {
3633         return (com.google.protobuf.ByteString) ref;
3634       }
3635     }
3636     /**
3637      *
3638      *
3639      * <pre>
3640      * [Output only] The time the operation started, in
3641      * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3642      * </pre>
3643      *
3644      * <code>string start_time = 10;</code>
3645      *
3646      * @param value The startTime to set.
3647      * @return This builder for chaining.
3648      */
setStartTime(java.lang.String value)3649     public Builder setStartTime(java.lang.String value) {
3650       if (value == null) {
3651         throw new NullPointerException();
3652       }
3653       startTime_ = value;
3654       bitField0_ |= 0x00000200;
3655       onChanged();
3656       return this;
3657     }
3658     /**
3659      *
3660      *
3661      * <pre>
3662      * [Output only] The time the operation started, in
3663      * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3664      * </pre>
3665      *
3666      * <code>string start_time = 10;</code>
3667      *
3668      * @return This builder for chaining.
3669      */
clearStartTime()3670     public Builder clearStartTime() {
3671       startTime_ = getDefaultInstance().getStartTime();
3672       bitField0_ = (bitField0_ & ~0x00000200);
3673       onChanged();
3674       return this;
3675     }
3676     /**
3677      *
3678      *
3679      * <pre>
3680      * [Output only] The time the operation started, in
3681      * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3682      * </pre>
3683      *
3684      * <code>string start_time = 10;</code>
3685      *
3686      * @param value The bytes for startTime to set.
3687      * @return This builder for chaining.
3688      */
setStartTimeBytes(com.google.protobuf.ByteString value)3689     public Builder setStartTimeBytes(com.google.protobuf.ByteString value) {
3690       if (value == null) {
3691         throw new NullPointerException();
3692       }
3693       checkByteStringIsUtf8(value);
3694       startTime_ = value;
3695       bitField0_ |= 0x00000200;
3696       onChanged();
3697       return this;
3698     }
3699 
3700     private java.lang.Object endTime_ = "";
3701     /**
3702      *
3703      *
3704      * <pre>
3705      * [Output only] The time the operation completed, in
3706      * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3707      * </pre>
3708      *
3709      * <code>string end_time = 11;</code>
3710      *
3711      * @return The endTime.
3712      */
getEndTime()3713     public java.lang.String getEndTime() {
3714       java.lang.Object ref = endTime_;
3715       if (!(ref instanceof java.lang.String)) {
3716         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3717         java.lang.String s = bs.toStringUtf8();
3718         endTime_ = s;
3719         return s;
3720       } else {
3721         return (java.lang.String) ref;
3722       }
3723     }
3724     /**
3725      *
3726      *
3727      * <pre>
3728      * [Output only] The time the operation completed, in
3729      * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3730      * </pre>
3731      *
3732      * <code>string end_time = 11;</code>
3733      *
3734      * @return The bytes for endTime.
3735      */
getEndTimeBytes()3736     public com.google.protobuf.ByteString getEndTimeBytes() {
3737       java.lang.Object ref = endTime_;
3738       if (ref instanceof String) {
3739         com.google.protobuf.ByteString b =
3740             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3741         endTime_ = b;
3742         return b;
3743       } else {
3744         return (com.google.protobuf.ByteString) ref;
3745       }
3746     }
3747     /**
3748      *
3749      *
3750      * <pre>
3751      * [Output only] The time the operation completed, in
3752      * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3753      * </pre>
3754      *
3755      * <code>string end_time = 11;</code>
3756      *
3757      * @param value The endTime to set.
3758      * @return This builder for chaining.
3759      */
setEndTime(java.lang.String value)3760     public Builder setEndTime(java.lang.String value) {
3761       if (value == null) {
3762         throw new NullPointerException();
3763       }
3764       endTime_ = value;
3765       bitField0_ |= 0x00000400;
3766       onChanged();
3767       return this;
3768     }
3769     /**
3770      *
3771      *
3772      * <pre>
3773      * [Output only] The time the operation completed, in
3774      * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3775      * </pre>
3776      *
3777      * <code>string end_time = 11;</code>
3778      *
3779      * @return This builder for chaining.
3780      */
clearEndTime()3781     public Builder clearEndTime() {
3782       endTime_ = getDefaultInstance().getEndTime();
3783       bitField0_ = (bitField0_ & ~0x00000400);
3784       onChanged();
3785       return this;
3786     }
3787     /**
3788      *
3789      *
3790      * <pre>
3791      * [Output only] The time the operation completed, in
3792      * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3793      * </pre>
3794      *
3795      * <code>string end_time = 11;</code>
3796      *
3797      * @param value The bytes for endTime to set.
3798      * @return This builder for chaining.
3799      */
setEndTimeBytes(com.google.protobuf.ByteString value)3800     public Builder setEndTimeBytes(com.google.protobuf.ByteString value) {
3801       if (value == null) {
3802         throw new NullPointerException();
3803       }
3804       checkByteStringIsUtf8(value);
3805       endTime_ = value;
3806       bitField0_ |= 0x00000400;
3807       onChanged();
3808       return this;
3809     }
3810 
3811     private com.google.container.v1.OperationProgress progress_;
3812     private com.google.protobuf.SingleFieldBuilderV3<
3813             com.google.container.v1.OperationProgress,
3814             com.google.container.v1.OperationProgress.Builder,
3815             com.google.container.v1.OperationProgressOrBuilder>
3816         progressBuilder_;
3817     /**
3818      *
3819      *
3820      * <pre>
3821      * Output only. [Output only] Progress information for an operation.
3822      * </pre>
3823      *
3824      * <code>
3825      * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3826      * </code>
3827      *
3828      * @return Whether the progress field is set.
3829      */
hasProgress()3830     public boolean hasProgress() {
3831       return ((bitField0_ & 0x00000800) != 0);
3832     }
3833     /**
3834      *
3835      *
3836      * <pre>
3837      * Output only. [Output only] Progress information for an operation.
3838      * </pre>
3839      *
3840      * <code>
3841      * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3842      * </code>
3843      *
3844      * @return The progress.
3845      */
getProgress()3846     public com.google.container.v1.OperationProgress getProgress() {
3847       if (progressBuilder_ == null) {
3848         return progress_ == null
3849             ? com.google.container.v1.OperationProgress.getDefaultInstance()
3850             : progress_;
3851       } else {
3852         return progressBuilder_.getMessage();
3853       }
3854     }
3855     /**
3856      *
3857      *
3858      * <pre>
3859      * Output only. [Output only] Progress information for an operation.
3860      * </pre>
3861      *
3862      * <code>
3863      * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3864      * </code>
3865      */
setProgress(com.google.container.v1.OperationProgress value)3866     public Builder setProgress(com.google.container.v1.OperationProgress value) {
3867       if (progressBuilder_ == null) {
3868         if (value == null) {
3869           throw new NullPointerException();
3870         }
3871         progress_ = value;
3872       } else {
3873         progressBuilder_.setMessage(value);
3874       }
3875       bitField0_ |= 0x00000800;
3876       onChanged();
3877       return this;
3878     }
3879     /**
3880      *
3881      *
3882      * <pre>
3883      * Output only. [Output only] Progress information for an operation.
3884      * </pre>
3885      *
3886      * <code>
3887      * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3888      * </code>
3889      */
setProgress(com.google.container.v1.OperationProgress.Builder builderForValue)3890     public Builder setProgress(com.google.container.v1.OperationProgress.Builder builderForValue) {
3891       if (progressBuilder_ == null) {
3892         progress_ = builderForValue.build();
3893       } else {
3894         progressBuilder_.setMessage(builderForValue.build());
3895       }
3896       bitField0_ |= 0x00000800;
3897       onChanged();
3898       return this;
3899     }
3900     /**
3901      *
3902      *
3903      * <pre>
3904      * Output only. [Output only] Progress information for an operation.
3905      * </pre>
3906      *
3907      * <code>
3908      * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3909      * </code>
3910      */
mergeProgress(com.google.container.v1.OperationProgress value)3911     public Builder mergeProgress(com.google.container.v1.OperationProgress value) {
3912       if (progressBuilder_ == null) {
3913         if (((bitField0_ & 0x00000800) != 0)
3914             && progress_ != null
3915             && progress_ != com.google.container.v1.OperationProgress.getDefaultInstance()) {
3916           getProgressBuilder().mergeFrom(value);
3917         } else {
3918           progress_ = value;
3919         }
3920       } else {
3921         progressBuilder_.mergeFrom(value);
3922       }
3923       bitField0_ |= 0x00000800;
3924       onChanged();
3925       return this;
3926     }
3927     /**
3928      *
3929      *
3930      * <pre>
3931      * Output only. [Output only] Progress information for an operation.
3932      * </pre>
3933      *
3934      * <code>
3935      * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3936      * </code>
3937      */
clearProgress()3938     public Builder clearProgress() {
3939       bitField0_ = (bitField0_ & ~0x00000800);
3940       progress_ = null;
3941       if (progressBuilder_ != null) {
3942         progressBuilder_.dispose();
3943         progressBuilder_ = null;
3944       }
3945       onChanged();
3946       return this;
3947     }
3948     /**
3949      *
3950      *
3951      * <pre>
3952      * Output only. [Output only] Progress information for an operation.
3953      * </pre>
3954      *
3955      * <code>
3956      * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3957      * </code>
3958      */
getProgressBuilder()3959     public com.google.container.v1.OperationProgress.Builder getProgressBuilder() {
3960       bitField0_ |= 0x00000800;
3961       onChanged();
3962       return getProgressFieldBuilder().getBuilder();
3963     }
3964     /**
3965      *
3966      *
3967      * <pre>
3968      * Output only. [Output only] Progress information for an operation.
3969      * </pre>
3970      *
3971      * <code>
3972      * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3973      * </code>
3974      */
getProgressOrBuilder()3975     public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() {
3976       if (progressBuilder_ != null) {
3977         return progressBuilder_.getMessageOrBuilder();
3978       } else {
3979         return progress_ == null
3980             ? com.google.container.v1.OperationProgress.getDefaultInstance()
3981             : progress_;
3982       }
3983     }
3984     /**
3985      *
3986      *
3987      * <pre>
3988      * Output only. [Output only] Progress information for an operation.
3989      * </pre>
3990      *
3991      * <code>
3992      * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3993      * </code>
3994      */
3995     private com.google.protobuf.SingleFieldBuilderV3<
3996             com.google.container.v1.OperationProgress,
3997             com.google.container.v1.OperationProgress.Builder,
3998             com.google.container.v1.OperationProgressOrBuilder>
getProgressFieldBuilder()3999         getProgressFieldBuilder() {
4000       if (progressBuilder_ == null) {
4001         progressBuilder_ =
4002             new com.google.protobuf.SingleFieldBuilderV3<
4003                 com.google.container.v1.OperationProgress,
4004                 com.google.container.v1.OperationProgress.Builder,
4005                 com.google.container.v1.OperationProgressOrBuilder>(
4006                 getProgress(), getParentForChildren(), isClean());
4007         progress_ = null;
4008       }
4009       return progressBuilder_;
4010     }
4011 
4012     private java.util.List<com.google.container.v1.StatusCondition> clusterConditions_ =
4013         java.util.Collections.emptyList();
4014 
ensureClusterConditionsIsMutable()4015     private void ensureClusterConditionsIsMutable() {
4016       if (!((bitField0_ & 0x00001000) != 0)) {
4017         clusterConditions_ =
4018             new java.util.ArrayList<com.google.container.v1.StatusCondition>(clusterConditions_);
4019         bitField0_ |= 0x00001000;
4020       }
4021     }
4022 
4023     private com.google.protobuf.RepeatedFieldBuilderV3<
4024             com.google.container.v1.StatusCondition,
4025             com.google.container.v1.StatusCondition.Builder,
4026             com.google.container.v1.StatusConditionOrBuilder>
4027         clusterConditionsBuilder_;
4028 
4029     /**
4030      *
4031      *
4032      * <pre>
4033      * Which conditions caused the current cluster state.
4034      * Deprecated. Use field error instead.
4035      * </pre>
4036      *
4037      * <code>
4038      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4039      * </code>
4040      */
4041     @java.lang.Deprecated
getClusterConditionsList()4042     public java.util.List<com.google.container.v1.StatusCondition> getClusterConditionsList() {
4043       if (clusterConditionsBuilder_ == null) {
4044         return java.util.Collections.unmodifiableList(clusterConditions_);
4045       } else {
4046         return clusterConditionsBuilder_.getMessageList();
4047       }
4048     }
4049     /**
4050      *
4051      *
4052      * <pre>
4053      * Which conditions caused the current cluster state.
4054      * Deprecated. Use field error instead.
4055      * </pre>
4056      *
4057      * <code>
4058      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4059      * </code>
4060      */
4061     @java.lang.Deprecated
getClusterConditionsCount()4062     public int getClusterConditionsCount() {
4063       if (clusterConditionsBuilder_ == null) {
4064         return clusterConditions_.size();
4065       } else {
4066         return clusterConditionsBuilder_.getCount();
4067       }
4068     }
4069     /**
4070      *
4071      *
4072      * <pre>
4073      * Which conditions caused the current cluster state.
4074      * Deprecated. Use field error instead.
4075      * </pre>
4076      *
4077      * <code>
4078      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4079      * </code>
4080      */
4081     @java.lang.Deprecated
getClusterConditions(int index)4082     public com.google.container.v1.StatusCondition getClusterConditions(int index) {
4083       if (clusterConditionsBuilder_ == null) {
4084         return clusterConditions_.get(index);
4085       } else {
4086         return clusterConditionsBuilder_.getMessage(index);
4087       }
4088     }
4089     /**
4090      *
4091      *
4092      * <pre>
4093      * Which conditions caused the current cluster state.
4094      * Deprecated. Use field error instead.
4095      * </pre>
4096      *
4097      * <code>
4098      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4099      * </code>
4100      */
4101     @java.lang.Deprecated
setClusterConditions(int index, com.google.container.v1.StatusCondition value)4102     public Builder setClusterConditions(int index, com.google.container.v1.StatusCondition value) {
4103       if (clusterConditionsBuilder_ == null) {
4104         if (value == null) {
4105           throw new NullPointerException();
4106         }
4107         ensureClusterConditionsIsMutable();
4108         clusterConditions_.set(index, value);
4109         onChanged();
4110       } else {
4111         clusterConditionsBuilder_.setMessage(index, value);
4112       }
4113       return this;
4114     }
4115     /**
4116      *
4117      *
4118      * <pre>
4119      * Which conditions caused the current cluster state.
4120      * Deprecated. Use field error instead.
4121      * </pre>
4122      *
4123      * <code>
4124      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4125      * </code>
4126      */
4127     @java.lang.Deprecated
setClusterConditions( int index, com.google.container.v1.StatusCondition.Builder builderForValue)4128     public Builder setClusterConditions(
4129         int index, com.google.container.v1.StatusCondition.Builder builderForValue) {
4130       if (clusterConditionsBuilder_ == null) {
4131         ensureClusterConditionsIsMutable();
4132         clusterConditions_.set(index, builderForValue.build());
4133         onChanged();
4134       } else {
4135         clusterConditionsBuilder_.setMessage(index, builderForValue.build());
4136       }
4137       return this;
4138     }
4139     /**
4140      *
4141      *
4142      * <pre>
4143      * Which conditions caused the current cluster state.
4144      * Deprecated. Use field error instead.
4145      * </pre>
4146      *
4147      * <code>
4148      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4149      * </code>
4150      */
4151     @java.lang.Deprecated
addClusterConditions(com.google.container.v1.StatusCondition value)4152     public Builder addClusterConditions(com.google.container.v1.StatusCondition value) {
4153       if (clusterConditionsBuilder_ == null) {
4154         if (value == null) {
4155           throw new NullPointerException();
4156         }
4157         ensureClusterConditionsIsMutable();
4158         clusterConditions_.add(value);
4159         onChanged();
4160       } else {
4161         clusterConditionsBuilder_.addMessage(value);
4162       }
4163       return this;
4164     }
4165     /**
4166      *
4167      *
4168      * <pre>
4169      * Which conditions caused the current cluster state.
4170      * Deprecated. Use field error instead.
4171      * </pre>
4172      *
4173      * <code>
4174      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4175      * </code>
4176      */
4177     @java.lang.Deprecated
addClusterConditions(int index, com.google.container.v1.StatusCondition value)4178     public Builder addClusterConditions(int index, com.google.container.v1.StatusCondition value) {
4179       if (clusterConditionsBuilder_ == null) {
4180         if (value == null) {
4181           throw new NullPointerException();
4182         }
4183         ensureClusterConditionsIsMutable();
4184         clusterConditions_.add(index, value);
4185         onChanged();
4186       } else {
4187         clusterConditionsBuilder_.addMessage(index, value);
4188       }
4189       return this;
4190     }
4191     /**
4192      *
4193      *
4194      * <pre>
4195      * Which conditions caused the current cluster state.
4196      * Deprecated. Use field error instead.
4197      * </pre>
4198      *
4199      * <code>
4200      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4201      * </code>
4202      */
4203     @java.lang.Deprecated
addClusterConditions( com.google.container.v1.StatusCondition.Builder builderForValue)4204     public Builder addClusterConditions(
4205         com.google.container.v1.StatusCondition.Builder builderForValue) {
4206       if (clusterConditionsBuilder_ == null) {
4207         ensureClusterConditionsIsMutable();
4208         clusterConditions_.add(builderForValue.build());
4209         onChanged();
4210       } else {
4211         clusterConditionsBuilder_.addMessage(builderForValue.build());
4212       }
4213       return this;
4214     }
4215     /**
4216      *
4217      *
4218      * <pre>
4219      * Which conditions caused the current cluster state.
4220      * Deprecated. Use field error instead.
4221      * </pre>
4222      *
4223      * <code>
4224      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4225      * </code>
4226      */
4227     @java.lang.Deprecated
addClusterConditions( int index, com.google.container.v1.StatusCondition.Builder builderForValue)4228     public Builder addClusterConditions(
4229         int index, com.google.container.v1.StatusCondition.Builder builderForValue) {
4230       if (clusterConditionsBuilder_ == null) {
4231         ensureClusterConditionsIsMutable();
4232         clusterConditions_.add(index, builderForValue.build());
4233         onChanged();
4234       } else {
4235         clusterConditionsBuilder_.addMessage(index, builderForValue.build());
4236       }
4237       return this;
4238     }
4239     /**
4240      *
4241      *
4242      * <pre>
4243      * Which conditions caused the current cluster state.
4244      * Deprecated. Use field error instead.
4245      * </pre>
4246      *
4247      * <code>
4248      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4249      * </code>
4250      */
4251     @java.lang.Deprecated
addAllClusterConditions( java.lang.Iterable<? extends com.google.container.v1.StatusCondition> values)4252     public Builder addAllClusterConditions(
4253         java.lang.Iterable<? extends com.google.container.v1.StatusCondition> values) {
4254       if (clusterConditionsBuilder_ == null) {
4255         ensureClusterConditionsIsMutable();
4256         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterConditions_);
4257         onChanged();
4258       } else {
4259         clusterConditionsBuilder_.addAllMessages(values);
4260       }
4261       return this;
4262     }
4263     /**
4264      *
4265      *
4266      * <pre>
4267      * Which conditions caused the current cluster state.
4268      * Deprecated. Use field error instead.
4269      * </pre>
4270      *
4271      * <code>
4272      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4273      * </code>
4274      */
4275     @java.lang.Deprecated
clearClusterConditions()4276     public Builder clearClusterConditions() {
4277       if (clusterConditionsBuilder_ == null) {
4278         clusterConditions_ = java.util.Collections.emptyList();
4279         bitField0_ = (bitField0_ & ~0x00001000);
4280         onChanged();
4281       } else {
4282         clusterConditionsBuilder_.clear();
4283       }
4284       return this;
4285     }
4286     /**
4287      *
4288      *
4289      * <pre>
4290      * Which conditions caused the current cluster state.
4291      * Deprecated. Use field error instead.
4292      * </pre>
4293      *
4294      * <code>
4295      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4296      * </code>
4297      */
4298     @java.lang.Deprecated
removeClusterConditions(int index)4299     public Builder removeClusterConditions(int index) {
4300       if (clusterConditionsBuilder_ == null) {
4301         ensureClusterConditionsIsMutable();
4302         clusterConditions_.remove(index);
4303         onChanged();
4304       } else {
4305         clusterConditionsBuilder_.remove(index);
4306       }
4307       return this;
4308     }
4309     /**
4310      *
4311      *
4312      * <pre>
4313      * Which conditions caused the current cluster state.
4314      * Deprecated. Use field error instead.
4315      * </pre>
4316      *
4317      * <code>
4318      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4319      * </code>
4320      */
4321     @java.lang.Deprecated
getClusterConditionsBuilder(int index)4322     public com.google.container.v1.StatusCondition.Builder getClusterConditionsBuilder(int index) {
4323       return getClusterConditionsFieldBuilder().getBuilder(index);
4324     }
4325     /**
4326      *
4327      *
4328      * <pre>
4329      * Which conditions caused the current cluster state.
4330      * Deprecated. Use field error instead.
4331      * </pre>
4332      *
4333      * <code>
4334      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4335      * </code>
4336      */
4337     @java.lang.Deprecated
getClusterConditionsOrBuilder( int index)4338     public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder(
4339         int index) {
4340       if (clusterConditionsBuilder_ == null) {
4341         return clusterConditions_.get(index);
4342       } else {
4343         return clusterConditionsBuilder_.getMessageOrBuilder(index);
4344       }
4345     }
4346     /**
4347      *
4348      *
4349      * <pre>
4350      * Which conditions caused the current cluster state.
4351      * Deprecated. Use field error instead.
4352      * </pre>
4353      *
4354      * <code>
4355      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4356      * </code>
4357      */
4358     @java.lang.Deprecated
4359     public java.util.List<? extends com.google.container.v1.StatusConditionOrBuilder>
getClusterConditionsOrBuilderList()4360         getClusterConditionsOrBuilderList() {
4361       if (clusterConditionsBuilder_ != null) {
4362         return clusterConditionsBuilder_.getMessageOrBuilderList();
4363       } else {
4364         return java.util.Collections.unmodifiableList(clusterConditions_);
4365       }
4366     }
4367     /**
4368      *
4369      *
4370      * <pre>
4371      * Which conditions caused the current cluster state.
4372      * Deprecated. Use field error instead.
4373      * </pre>
4374      *
4375      * <code>
4376      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4377      * </code>
4378      */
4379     @java.lang.Deprecated
addClusterConditionsBuilder()4380     public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuilder() {
4381       return getClusterConditionsFieldBuilder()
4382           .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance());
4383     }
4384     /**
4385      *
4386      *
4387      * <pre>
4388      * Which conditions caused the current cluster state.
4389      * Deprecated. Use field error instead.
4390      * </pre>
4391      *
4392      * <code>
4393      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4394      * </code>
4395      */
4396     @java.lang.Deprecated
addClusterConditionsBuilder(int index)4397     public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuilder(int index) {
4398       return getClusterConditionsFieldBuilder()
4399           .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance());
4400     }
4401     /**
4402      *
4403      *
4404      * <pre>
4405      * Which conditions caused the current cluster state.
4406      * Deprecated. Use field error instead.
4407      * </pre>
4408      *
4409      * <code>
4410      * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true];
4411      * </code>
4412      */
4413     @java.lang.Deprecated
4414     public java.util.List<com.google.container.v1.StatusCondition.Builder>
getClusterConditionsBuilderList()4415         getClusterConditionsBuilderList() {
4416       return getClusterConditionsFieldBuilder().getBuilderList();
4417     }
4418 
4419     private com.google.protobuf.RepeatedFieldBuilderV3<
4420             com.google.container.v1.StatusCondition,
4421             com.google.container.v1.StatusCondition.Builder,
4422             com.google.container.v1.StatusConditionOrBuilder>
getClusterConditionsFieldBuilder()4423         getClusterConditionsFieldBuilder() {
4424       if (clusterConditionsBuilder_ == null) {
4425         clusterConditionsBuilder_ =
4426             new com.google.protobuf.RepeatedFieldBuilderV3<
4427                 com.google.container.v1.StatusCondition,
4428                 com.google.container.v1.StatusCondition.Builder,
4429                 com.google.container.v1.StatusConditionOrBuilder>(
4430                 clusterConditions_,
4431                 ((bitField0_ & 0x00001000) != 0),
4432                 getParentForChildren(),
4433                 isClean());
4434         clusterConditions_ = null;
4435       }
4436       return clusterConditionsBuilder_;
4437     }
4438 
4439     private java.util.List<com.google.container.v1.StatusCondition> nodepoolConditions_ =
4440         java.util.Collections.emptyList();
4441 
ensureNodepoolConditionsIsMutable()4442     private void ensureNodepoolConditionsIsMutable() {
4443       if (!((bitField0_ & 0x00002000) != 0)) {
4444         nodepoolConditions_ =
4445             new java.util.ArrayList<com.google.container.v1.StatusCondition>(nodepoolConditions_);
4446         bitField0_ |= 0x00002000;
4447       }
4448     }
4449 
4450     private com.google.protobuf.RepeatedFieldBuilderV3<
4451             com.google.container.v1.StatusCondition,
4452             com.google.container.v1.StatusCondition.Builder,
4453             com.google.container.v1.StatusConditionOrBuilder>
4454         nodepoolConditionsBuilder_;
4455 
4456     /**
4457      *
4458      *
4459      * <pre>
4460      * Which conditions caused the current node pool state.
4461      * Deprecated. Use field error instead.
4462      * </pre>
4463      *
4464      * <code>
4465      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4466      * </code>
4467      */
4468     @java.lang.Deprecated
getNodepoolConditionsList()4469     public java.util.List<com.google.container.v1.StatusCondition> getNodepoolConditionsList() {
4470       if (nodepoolConditionsBuilder_ == null) {
4471         return java.util.Collections.unmodifiableList(nodepoolConditions_);
4472       } else {
4473         return nodepoolConditionsBuilder_.getMessageList();
4474       }
4475     }
4476     /**
4477      *
4478      *
4479      * <pre>
4480      * Which conditions caused the current node pool state.
4481      * Deprecated. Use field error instead.
4482      * </pre>
4483      *
4484      * <code>
4485      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4486      * </code>
4487      */
4488     @java.lang.Deprecated
getNodepoolConditionsCount()4489     public int getNodepoolConditionsCount() {
4490       if (nodepoolConditionsBuilder_ == null) {
4491         return nodepoolConditions_.size();
4492       } else {
4493         return nodepoolConditionsBuilder_.getCount();
4494       }
4495     }
4496     /**
4497      *
4498      *
4499      * <pre>
4500      * Which conditions caused the current node pool state.
4501      * Deprecated. Use field error instead.
4502      * </pre>
4503      *
4504      * <code>
4505      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4506      * </code>
4507      */
4508     @java.lang.Deprecated
getNodepoolConditions(int index)4509     public com.google.container.v1.StatusCondition getNodepoolConditions(int index) {
4510       if (nodepoolConditionsBuilder_ == null) {
4511         return nodepoolConditions_.get(index);
4512       } else {
4513         return nodepoolConditionsBuilder_.getMessage(index);
4514       }
4515     }
4516     /**
4517      *
4518      *
4519      * <pre>
4520      * Which conditions caused the current node pool state.
4521      * Deprecated. Use field error instead.
4522      * </pre>
4523      *
4524      * <code>
4525      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4526      * </code>
4527      */
4528     @java.lang.Deprecated
setNodepoolConditions(int index, com.google.container.v1.StatusCondition value)4529     public Builder setNodepoolConditions(int index, com.google.container.v1.StatusCondition value) {
4530       if (nodepoolConditionsBuilder_ == null) {
4531         if (value == null) {
4532           throw new NullPointerException();
4533         }
4534         ensureNodepoolConditionsIsMutable();
4535         nodepoolConditions_.set(index, value);
4536         onChanged();
4537       } else {
4538         nodepoolConditionsBuilder_.setMessage(index, value);
4539       }
4540       return this;
4541     }
4542     /**
4543      *
4544      *
4545      * <pre>
4546      * Which conditions caused the current node pool state.
4547      * Deprecated. Use field error instead.
4548      * </pre>
4549      *
4550      * <code>
4551      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4552      * </code>
4553      */
4554     @java.lang.Deprecated
setNodepoolConditions( int index, com.google.container.v1.StatusCondition.Builder builderForValue)4555     public Builder setNodepoolConditions(
4556         int index, com.google.container.v1.StatusCondition.Builder builderForValue) {
4557       if (nodepoolConditionsBuilder_ == null) {
4558         ensureNodepoolConditionsIsMutable();
4559         nodepoolConditions_.set(index, builderForValue.build());
4560         onChanged();
4561       } else {
4562         nodepoolConditionsBuilder_.setMessage(index, builderForValue.build());
4563       }
4564       return this;
4565     }
4566     /**
4567      *
4568      *
4569      * <pre>
4570      * Which conditions caused the current node pool state.
4571      * Deprecated. Use field error instead.
4572      * </pre>
4573      *
4574      * <code>
4575      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4576      * </code>
4577      */
4578     @java.lang.Deprecated
addNodepoolConditions(com.google.container.v1.StatusCondition value)4579     public Builder addNodepoolConditions(com.google.container.v1.StatusCondition value) {
4580       if (nodepoolConditionsBuilder_ == null) {
4581         if (value == null) {
4582           throw new NullPointerException();
4583         }
4584         ensureNodepoolConditionsIsMutable();
4585         nodepoolConditions_.add(value);
4586         onChanged();
4587       } else {
4588         nodepoolConditionsBuilder_.addMessage(value);
4589       }
4590       return this;
4591     }
4592     /**
4593      *
4594      *
4595      * <pre>
4596      * Which conditions caused the current node pool state.
4597      * Deprecated. Use field error instead.
4598      * </pre>
4599      *
4600      * <code>
4601      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4602      * </code>
4603      */
4604     @java.lang.Deprecated
addNodepoolConditions(int index, com.google.container.v1.StatusCondition value)4605     public Builder addNodepoolConditions(int index, com.google.container.v1.StatusCondition value) {
4606       if (nodepoolConditionsBuilder_ == null) {
4607         if (value == null) {
4608           throw new NullPointerException();
4609         }
4610         ensureNodepoolConditionsIsMutable();
4611         nodepoolConditions_.add(index, value);
4612         onChanged();
4613       } else {
4614         nodepoolConditionsBuilder_.addMessage(index, value);
4615       }
4616       return this;
4617     }
4618     /**
4619      *
4620      *
4621      * <pre>
4622      * Which conditions caused the current node pool state.
4623      * Deprecated. Use field error instead.
4624      * </pre>
4625      *
4626      * <code>
4627      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4628      * </code>
4629      */
4630     @java.lang.Deprecated
addNodepoolConditions( com.google.container.v1.StatusCondition.Builder builderForValue)4631     public Builder addNodepoolConditions(
4632         com.google.container.v1.StatusCondition.Builder builderForValue) {
4633       if (nodepoolConditionsBuilder_ == null) {
4634         ensureNodepoolConditionsIsMutable();
4635         nodepoolConditions_.add(builderForValue.build());
4636         onChanged();
4637       } else {
4638         nodepoolConditionsBuilder_.addMessage(builderForValue.build());
4639       }
4640       return this;
4641     }
4642     /**
4643      *
4644      *
4645      * <pre>
4646      * Which conditions caused the current node pool state.
4647      * Deprecated. Use field error instead.
4648      * </pre>
4649      *
4650      * <code>
4651      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4652      * </code>
4653      */
4654     @java.lang.Deprecated
addNodepoolConditions( int index, com.google.container.v1.StatusCondition.Builder builderForValue)4655     public Builder addNodepoolConditions(
4656         int index, com.google.container.v1.StatusCondition.Builder builderForValue) {
4657       if (nodepoolConditionsBuilder_ == null) {
4658         ensureNodepoolConditionsIsMutable();
4659         nodepoolConditions_.add(index, builderForValue.build());
4660         onChanged();
4661       } else {
4662         nodepoolConditionsBuilder_.addMessage(index, builderForValue.build());
4663       }
4664       return this;
4665     }
4666     /**
4667      *
4668      *
4669      * <pre>
4670      * Which conditions caused the current node pool state.
4671      * Deprecated. Use field error instead.
4672      * </pre>
4673      *
4674      * <code>
4675      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4676      * </code>
4677      */
4678     @java.lang.Deprecated
addAllNodepoolConditions( java.lang.Iterable<? extends com.google.container.v1.StatusCondition> values)4679     public Builder addAllNodepoolConditions(
4680         java.lang.Iterable<? extends com.google.container.v1.StatusCondition> values) {
4681       if (nodepoolConditionsBuilder_ == null) {
4682         ensureNodepoolConditionsIsMutable();
4683         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodepoolConditions_);
4684         onChanged();
4685       } else {
4686         nodepoolConditionsBuilder_.addAllMessages(values);
4687       }
4688       return this;
4689     }
4690     /**
4691      *
4692      *
4693      * <pre>
4694      * Which conditions caused the current node pool state.
4695      * Deprecated. Use field error instead.
4696      * </pre>
4697      *
4698      * <code>
4699      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4700      * </code>
4701      */
4702     @java.lang.Deprecated
clearNodepoolConditions()4703     public Builder clearNodepoolConditions() {
4704       if (nodepoolConditionsBuilder_ == null) {
4705         nodepoolConditions_ = java.util.Collections.emptyList();
4706         bitField0_ = (bitField0_ & ~0x00002000);
4707         onChanged();
4708       } else {
4709         nodepoolConditionsBuilder_.clear();
4710       }
4711       return this;
4712     }
4713     /**
4714      *
4715      *
4716      * <pre>
4717      * Which conditions caused the current node pool state.
4718      * Deprecated. Use field error instead.
4719      * </pre>
4720      *
4721      * <code>
4722      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4723      * </code>
4724      */
4725     @java.lang.Deprecated
removeNodepoolConditions(int index)4726     public Builder removeNodepoolConditions(int index) {
4727       if (nodepoolConditionsBuilder_ == null) {
4728         ensureNodepoolConditionsIsMutable();
4729         nodepoolConditions_.remove(index);
4730         onChanged();
4731       } else {
4732         nodepoolConditionsBuilder_.remove(index);
4733       }
4734       return this;
4735     }
4736     /**
4737      *
4738      *
4739      * <pre>
4740      * Which conditions caused the current node pool state.
4741      * Deprecated. Use field error instead.
4742      * </pre>
4743      *
4744      * <code>
4745      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4746      * </code>
4747      */
4748     @java.lang.Deprecated
getNodepoolConditionsBuilder(int index)4749     public com.google.container.v1.StatusCondition.Builder getNodepoolConditionsBuilder(int index) {
4750       return getNodepoolConditionsFieldBuilder().getBuilder(index);
4751     }
4752     /**
4753      *
4754      *
4755      * <pre>
4756      * Which conditions caused the current node pool state.
4757      * Deprecated. Use field error instead.
4758      * </pre>
4759      *
4760      * <code>
4761      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4762      * </code>
4763      */
4764     @java.lang.Deprecated
getNodepoolConditionsOrBuilder( int index)4765     public com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder(
4766         int index) {
4767       if (nodepoolConditionsBuilder_ == null) {
4768         return nodepoolConditions_.get(index);
4769       } else {
4770         return nodepoolConditionsBuilder_.getMessageOrBuilder(index);
4771       }
4772     }
4773     /**
4774      *
4775      *
4776      * <pre>
4777      * Which conditions caused the current node pool state.
4778      * Deprecated. Use field error instead.
4779      * </pre>
4780      *
4781      * <code>
4782      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4783      * </code>
4784      */
4785     @java.lang.Deprecated
4786     public java.util.List<? extends com.google.container.v1.StatusConditionOrBuilder>
getNodepoolConditionsOrBuilderList()4787         getNodepoolConditionsOrBuilderList() {
4788       if (nodepoolConditionsBuilder_ != null) {
4789         return nodepoolConditionsBuilder_.getMessageOrBuilderList();
4790       } else {
4791         return java.util.Collections.unmodifiableList(nodepoolConditions_);
4792       }
4793     }
4794     /**
4795      *
4796      *
4797      * <pre>
4798      * Which conditions caused the current node pool state.
4799      * Deprecated. Use field error instead.
4800      * </pre>
4801      *
4802      * <code>
4803      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4804      * </code>
4805      */
4806     @java.lang.Deprecated
addNodepoolConditionsBuilder()4807     public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuilder() {
4808       return getNodepoolConditionsFieldBuilder()
4809           .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance());
4810     }
4811     /**
4812      *
4813      *
4814      * <pre>
4815      * Which conditions caused the current node pool state.
4816      * Deprecated. Use field error instead.
4817      * </pre>
4818      *
4819      * <code>
4820      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4821      * </code>
4822      */
4823     @java.lang.Deprecated
addNodepoolConditionsBuilder(int index)4824     public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuilder(int index) {
4825       return getNodepoolConditionsFieldBuilder()
4826           .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance());
4827     }
4828     /**
4829      *
4830      *
4831      * <pre>
4832      * Which conditions caused the current node pool state.
4833      * Deprecated. Use field error instead.
4834      * </pre>
4835      *
4836      * <code>
4837      * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true];
4838      * </code>
4839      */
4840     @java.lang.Deprecated
4841     public java.util.List<com.google.container.v1.StatusCondition.Builder>
getNodepoolConditionsBuilderList()4842         getNodepoolConditionsBuilderList() {
4843       return getNodepoolConditionsFieldBuilder().getBuilderList();
4844     }
4845 
4846     private com.google.protobuf.RepeatedFieldBuilderV3<
4847             com.google.container.v1.StatusCondition,
4848             com.google.container.v1.StatusCondition.Builder,
4849             com.google.container.v1.StatusConditionOrBuilder>
getNodepoolConditionsFieldBuilder()4850         getNodepoolConditionsFieldBuilder() {
4851       if (nodepoolConditionsBuilder_ == null) {
4852         nodepoolConditionsBuilder_ =
4853             new com.google.protobuf.RepeatedFieldBuilderV3<
4854                 com.google.container.v1.StatusCondition,
4855                 com.google.container.v1.StatusCondition.Builder,
4856                 com.google.container.v1.StatusConditionOrBuilder>(
4857                 nodepoolConditions_,
4858                 ((bitField0_ & 0x00002000) != 0),
4859                 getParentForChildren(),
4860                 isClean());
4861         nodepoolConditions_ = null;
4862       }
4863       return nodepoolConditionsBuilder_;
4864     }
4865 
4866     private com.google.rpc.Status error_;
4867     private com.google.protobuf.SingleFieldBuilderV3<
4868             com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
4869         errorBuilder_;
4870     /**
4871      *
4872      *
4873      * <pre>
4874      * The error result of the operation in case of failure.
4875      * </pre>
4876      *
4877      * <code>.google.rpc.Status error = 15;</code>
4878      *
4879      * @return Whether the error field is set.
4880      */
hasError()4881     public boolean hasError() {
4882       return ((bitField0_ & 0x00004000) != 0);
4883     }
4884     /**
4885      *
4886      *
4887      * <pre>
4888      * The error result of the operation in case of failure.
4889      * </pre>
4890      *
4891      * <code>.google.rpc.Status error = 15;</code>
4892      *
4893      * @return The error.
4894      */
getError()4895     public com.google.rpc.Status getError() {
4896       if (errorBuilder_ == null) {
4897         return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
4898       } else {
4899         return errorBuilder_.getMessage();
4900       }
4901     }
4902     /**
4903      *
4904      *
4905      * <pre>
4906      * The error result of the operation in case of failure.
4907      * </pre>
4908      *
4909      * <code>.google.rpc.Status error = 15;</code>
4910      */
setError(com.google.rpc.Status value)4911     public Builder setError(com.google.rpc.Status value) {
4912       if (errorBuilder_ == null) {
4913         if (value == null) {
4914           throw new NullPointerException();
4915         }
4916         error_ = value;
4917       } else {
4918         errorBuilder_.setMessage(value);
4919       }
4920       bitField0_ |= 0x00004000;
4921       onChanged();
4922       return this;
4923     }
4924     /**
4925      *
4926      *
4927      * <pre>
4928      * The error result of the operation in case of failure.
4929      * </pre>
4930      *
4931      * <code>.google.rpc.Status error = 15;</code>
4932      */
setError(com.google.rpc.Status.Builder builderForValue)4933     public Builder setError(com.google.rpc.Status.Builder builderForValue) {
4934       if (errorBuilder_ == null) {
4935         error_ = builderForValue.build();
4936       } else {
4937         errorBuilder_.setMessage(builderForValue.build());
4938       }
4939       bitField0_ |= 0x00004000;
4940       onChanged();
4941       return this;
4942     }
4943     /**
4944      *
4945      *
4946      * <pre>
4947      * The error result of the operation in case of failure.
4948      * </pre>
4949      *
4950      * <code>.google.rpc.Status error = 15;</code>
4951      */
mergeError(com.google.rpc.Status value)4952     public Builder mergeError(com.google.rpc.Status value) {
4953       if (errorBuilder_ == null) {
4954         if (((bitField0_ & 0x00004000) != 0)
4955             && error_ != null
4956             && error_ != com.google.rpc.Status.getDefaultInstance()) {
4957           getErrorBuilder().mergeFrom(value);
4958         } else {
4959           error_ = value;
4960         }
4961       } else {
4962         errorBuilder_.mergeFrom(value);
4963       }
4964       bitField0_ |= 0x00004000;
4965       onChanged();
4966       return this;
4967     }
4968     /**
4969      *
4970      *
4971      * <pre>
4972      * The error result of the operation in case of failure.
4973      * </pre>
4974      *
4975      * <code>.google.rpc.Status error = 15;</code>
4976      */
clearError()4977     public Builder clearError() {
4978       bitField0_ = (bitField0_ & ~0x00004000);
4979       error_ = null;
4980       if (errorBuilder_ != null) {
4981         errorBuilder_.dispose();
4982         errorBuilder_ = null;
4983       }
4984       onChanged();
4985       return this;
4986     }
4987     /**
4988      *
4989      *
4990      * <pre>
4991      * The error result of the operation in case of failure.
4992      * </pre>
4993      *
4994      * <code>.google.rpc.Status error = 15;</code>
4995      */
getErrorBuilder()4996     public com.google.rpc.Status.Builder getErrorBuilder() {
4997       bitField0_ |= 0x00004000;
4998       onChanged();
4999       return getErrorFieldBuilder().getBuilder();
5000     }
5001     /**
5002      *
5003      *
5004      * <pre>
5005      * The error result of the operation in case of failure.
5006      * </pre>
5007      *
5008      * <code>.google.rpc.Status error = 15;</code>
5009      */
getErrorOrBuilder()5010     public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
5011       if (errorBuilder_ != null) {
5012         return errorBuilder_.getMessageOrBuilder();
5013       } else {
5014         return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
5015       }
5016     }
5017     /**
5018      *
5019      *
5020      * <pre>
5021      * The error result of the operation in case of failure.
5022      * </pre>
5023      *
5024      * <code>.google.rpc.Status error = 15;</code>
5025      */
5026     private com.google.protobuf.SingleFieldBuilderV3<
5027             com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getErrorFieldBuilder()5028         getErrorFieldBuilder() {
5029       if (errorBuilder_ == null) {
5030         errorBuilder_ =
5031             new com.google.protobuf.SingleFieldBuilderV3<
5032                 com.google.rpc.Status,
5033                 com.google.rpc.Status.Builder,
5034                 com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
5035         error_ = null;
5036       }
5037       return errorBuilder_;
5038     }
5039 
5040     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)5041     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
5042       return super.setUnknownFields(unknownFields);
5043     }
5044 
5045     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5046     public final Builder mergeUnknownFields(
5047         final com.google.protobuf.UnknownFieldSet unknownFields) {
5048       return super.mergeUnknownFields(unknownFields);
5049     }
5050 
5051     // @@protoc_insertion_point(builder_scope:google.container.v1.Operation)
5052   }
5053 
5054   // @@protoc_insertion_point(class_scope:google.container.v1.Operation)
5055   private static final com.google.container.v1.Operation DEFAULT_INSTANCE;
5056 
5057   static {
5058     DEFAULT_INSTANCE = new com.google.container.v1.Operation();
5059   }
5060 
getDefaultInstance()5061   public static com.google.container.v1.Operation getDefaultInstance() {
5062     return DEFAULT_INSTANCE;
5063   }
5064 
5065   private static final com.google.protobuf.Parser<Operation> PARSER =
5066       new com.google.protobuf.AbstractParser<Operation>() {
5067         @java.lang.Override
5068         public Operation parsePartialFrom(
5069             com.google.protobuf.CodedInputStream input,
5070             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5071             throws com.google.protobuf.InvalidProtocolBufferException {
5072           Builder builder = newBuilder();
5073           try {
5074             builder.mergeFrom(input, extensionRegistry);
5075           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5076             throw e.setUnfinishedMessage(builder.buildPartial());
5077           } catch (com.google.protobuf.UninitializedMessageException e) {
5078             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
5079           } catch (java.io.IOException e) {
5080             throw new com.google.protobuf.InvalidProtocolBufferException(e)
5081                 .setUnfinishedMessage(builder.buildPartial());
5082           }
5083           return builder.buildPartial();
5084         }
5085       };
5086 
parser()5087   public static com.google.protobuf.Parser<Operation> parser() {
5088     return PARSER;
5089   }
5090 
5091   @java.lang.Override
getParserForType()5092   public com.google.protobuf.Parser<Operation> getParserForType() {
5093     return PARSER;
5094   }
5095 
5096   @java.lang.Override
getDefaultInstanceForType()5097   public com.google.container.v1.Operation getDefaultInstanceForType() {
5098     return DEFAULT_INSTANCE;
5099   }
5100 }
5101