• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/gkemulticloud/v1/aws_resources.proto
18 
19 package com.google.cloud.gkemulticloud.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * An Anthos node pool running on AWS.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsNodePool}
29  */
30 public final class AwsNodePool extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsNodePool)
33     AwsNodePoolOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use AwsNodePool.newBuilder() to construct.
AwsNodePool(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private AwsNodePool(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
AwsNodePool()40   private AwsNodePool() {
41     name_ = "";
42     version_ = "";
43     subnetId_ = "";
44     state_ = 0;
45     uid_ = "";
46     etag_ = "";
47     errors_ = java.util.Collections.emptyList();
48   }
49 
50   @java.lang.Override
51   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)52   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
53     return new AwsNodePool();
54   }
55 
56   @java.lang.Override
getUnknownFields()57   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
58     return this.unknownFields;
59   }
60 
getDescriptor()61   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
62     return com.google.cloud.gkemulticloud.v1.AwsResourcesProto
63         .internal_static_google_cloud_gkemulticloud_v1_AwsNodePool_descriptor;
64   }
65 
66   @SuppressWarnings({"rawtypes"})
67   @java.lang.Override
internalGetMapField(int number)68   protected com.google.protobuf.MapField internalGetMapField(int number) {
69     switch (number) {
70       case 22:
71         return internalGetAnnotations();
72       default:
73         throw new RuntimeException("Invalid map field number: " + number);
74     }
75   }
76 
77   @java.lang.Override
78   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()79       internalGetFieldAccessorTable() {
80     return com.google.cloud.gkemulticloud.v1.AwsResourcesProto
81         .internal_static_google_cloud_gkemulticloud_v1_AwsNodePool_fieldAccessorTable
82         .ensureFieldAccessorsInitialized(
83             com.google.cloud.gkemulticloud.v1.AwsNodePool.class,
84             com.google.cloud.gkemulticloud.v1.AwsNodePool.Builder.class);
85   }
86 
87   /**
88    *
89    *
90    * <pre>
91    * The lifecycle state of the node pool.
92    * </pre>
93    *
94    * Protobuf enum {@code google.cloud.gkemulticloud.v1.AwsNodePool.State}
95    */
96   public enum State implements com.google.protobuf.ProtocolMessageEnum {
97     /**
98      *
99      *
100      * <pre>
101      * Not set.
102      * </pre>
103      *
104      * <code>STATE_UNSPECIFIED = 0;</code>
105      */
106     STATE_UNSPECIFIED(0),
107     /**
108      *
109      *
110      * <pre>
111      * The PROVISIONING state indicates the node pool is being created.
112      * </pre>
113      *
114      * <code>PROVISIONING = 1;</code>
115      */
116     PROVISIONING(1),
117     /**
118      *
119      *
120      * <pre>
121      * The RUNNING state indicates the node pool has been created
122      * and is fully usable.
123      * </pre>
124      *
125      * <code>RUNNING = 2;</code>
126      */
127     RUNNING(2),
128     /**
129      *
130      *
131      * <pre>
132      * The RECONCILING state indicates that the node pool is being reconciled.
133      * </pre>
134      *
135      * <code>RECONCILING = 3;</code>
136      */
137     RECONCILING(3),
138     /**
139      *
140      *
141      * <pre>
142      * The STOPPING state indicates the node pool is being deleted.
143      * </pre>
144      *
145      * <code>STOPPING = 4;</code>
146      */
147     STOPPING(4),
148     /**
149      *
150      *
151      * <pre>
152      * The ERROR state indicates the node pool is in a broken unrecoverable
153      * state.
154      * </pre>
155      *
156      * <code>ERROR = 5;</code>
157      */
158     ERROR(5),
159     /**
160      *
161      *
162      * <pre>
163      * The DEGRADED state indicates the node pool requires user action to
164      * restore full functionality.
165      * </pre>
166      *
167      * <code>DEGRADED = 6;</code>
168      */
169     DEGRADED(6),
170     UNRECOGNIZED(-1),
171     ;
172 
173     /**
174      *
175      *
176      * <pre>
177      * Not set.
178      * </pre>
179      *
180      * <code>STATE_UNSPECIFIED = 0;</code>
181      */
182     public static final int STATE_UNSPECIFIED_VALUE = 0;
183     /**
184      *
185      *
186      * <pre>
187      * The PROVISIONING state indicates the node pool is being created.
188      * </pre>
189      *
190      * <code>PROVISIONING = 1;</code>
191      */
192     public static final int PROVISIONING_VALUE = 1;
193     /**
194      *
195      *
196      * <pre>
197      * The RUNNING state indicates the node pool has been created
198      * and is fully usable.
199      * </pre>
200      *
201      * <code>RUNNING = 2;</code>
202      */
203     public static final int RUNNING_VALUE = 2;
204     /**
205      *
206      *
207      * <pre>
208      * The RECONCILING state indicates that the node pool is being reconciled.
209      * </pre>
210      *
211      * <code>RECONCILING = 3;</code>
212      */
213     public static final int RECONCILING_VALUE = 3;
214     /**
215      *
216      *
217      * <pre>
218      * The STOPPING state indicates the node pool is being deleted.
219      * </pre>
220      *
221      * <code>STOPPING = 4;</code>
222      */
223     public static final int STOPPING_VALUE = 4;
224     /**
225      *
226      *
227      * <pre>
228      * The ERROR state indicates the node pool is in a broken unrecoverable
229      * state.
230      * </pre>
231      *
232      * <code>ERROR = 5;</code>
233      */
234     public static final int ERROR_VALUE = 5;
235     /**
236      *
237      *
238      * <pre>
239      * The DEGRADED state indicates the node pool requires user action to
240      * restore full functionality.
241      * </pre>
242      *
243      * <code>DEGRADED = 6;</code>
244      */
245     public static final int DEGRADED_VALUE = 6;
246 
getNumber()247     public final int getNumber() {
248       if (this == UNRECOGNIZED) {
249         throw new java.lang.IllegalArgumentException(
250             "Can't get the number of an unknown enum value.");
251       }
252       return value;
253     }
254 
255     /**
256      * @param value The numeric wire value of the corresponding enum entry.
257      * @return The enum associated with the given numeric wire value.
258      * @deprecated Use {@link #forNumber(int)} instead.
259      */
260     @java.lang.Deprecated
valueOf(int value)261     public static State valueOf(int value) {
262       return forNumber(value);
263     }
264 
265     /**
266      * @param value The numeric wire value of the corresponding enum entry.
267      * @return The enum associated with the given numeric wire value.
268      */
forNumber(int value)269     public static State forNumber(int value) {
270       switch (value) {
271         case 0:
272           return STATE_UNSPECIFIED;
273         case 1:
274           return PROVISIONING;
275         case 2:
276           return RUNNING;
277         case 3:
278           return RECONCILING;
279         case 4:
280           return STOPPING;
281         case 5:
282           return ERROR;
283         case 6:
284           return DEGRADED;
285         default:
286           return null;
287       }
288     }
289 
internalGetValueMap()290     public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
291       return internalValueMap;
292     }
293 
294     private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
295         new com.google.protobuf.Internal.EnumLiteMap<State>() {
296           public State findValueByNumber(int number) {
297             return State.forNumber(number);
298           }
299         };
300 
getValueDescriptor()301     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
302       if (this == UNRECOGNIZED) {
303         throw new java.lang.IllegalStateException(
304             "Can't get the descriptor of an unrecognized enum value.");
305       }
306       return getDescriptor().getValues().get(ordinal());
307     }
308 
getDescriptorForType()309     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
310       return getDescriptor();
311     }
312 
getDescriptor()313     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
314       return com.google.cloud.gkemulticloud.v1.AwsNodePool.getDescriptor().getEnumTypes().get(0);
315     }
316 
317     private static final State[] VALUES = values();
318 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)319     public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
320       if (desc.getType() != getDescriptor()) {
321         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
322       }
323       if (desc.getIndex() == -1) {
324         return UNRECOGNIZED;
325       }
326       return VALUES[desc.getIndex()];
327     }
328 
329     private final int value;
330 
State(int value)331     private State(int value) {
332       this.value = value;
333     }
334 
335     // @@protoc_insertion_point(enum_scope:google.cloud.gkemulticloud.v1.AwsNodePool.State)
336   }
337 
338   public static final int NAME_FIELD_NUMBER = 1;
339 
340   @SuppressWarnings("serial")
341   private volatile java.lang.Object name_ = "";
342   /**
343    *
344    *
345    * <pre>
346    * The name of this resource.
347    * Node pool names are formatted as
348    * `projects/&lt;project-number&gt;/locations/&lt;region&gt;/awsClusters/&lt;cluster-id&gt;/awsNodePools/&lt;node-pool-id&gt;`.
349    * For more details on Google Cloud resource names,
350    * see [Resource Names](https://cloud.google.com/apis/design/resource_names)
351    * </pre>
352    *
353    * <code>string name = 1;</code>
354    *
355    * @return The name.
356    */
357   @java.lang.Override
getName()358   public java.lang.String getName() {
359     java.lang.Object ref = name_;
360     if (ref instanceof java.lang.String) {
361       return (java.lang.String) ref;
362     } else {
363       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
364       java.lang.String s = bs.toStringUtf8();
365       name_ = s;
366       return s;
367     }
368   }
369   /**
370    *
371    *
372    * <pre>
373    * The name of this resource.
374    * Node pool names are formatted as
375    * `projects/&lt;project-number&gt;/locations/&lt;region&gt;/awsClusters/&lt;cluster-id&gt;/awsNodePools/&lt;node-pool-id&gt;`.
376    * For more details on Google Cloud resource names,
377    * see [Resource Names](https://cloud.google.com/apis/design/resource_names)
378    * </pre>
379    *
380    * <code>string name = 1;</code>
381    *
382    * @return The bytes for name.
383    */
384   @java.lang.Override
getNameBytes()385   public com.google.protobuf.ByteString getNameBytes() {
386     java.lang.Object ref = name_;
387     if (ref instanceof java.lang.String) {
388       com.google.protobuf.ByteString b =
389           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
390       name_ = b;
391       return b;
392     } else {
393       return (com.google.protobuf.ByteString) ref;
394     }
395   }
396 
397   public static final int VERSION_FIELD_NUMBER = 3;
398 
399   @SuppressWarnings("serial")
400   private volatile java.lang.Object version_ = "";
401   /**
402    *
403    *
404    * <pre>
405    * Required. The Kubernetes version to run on this node pool (e.g.
406    * `1.19.10-gke.1000`).
407    * You can list all supported versions on a given Google Cloud region by
408    * calling
409    * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
410    * </pre>
411    *
412    * <code>string version = 3 [(.google.api.field_behavior) = REQUIRED];</code>
413    *
414    * @return The version.
415    */
416   @java.lang.Override
getVersion()417   public java.lang.String getVersion() {
418     java.lang.Object ref = version_;
419     if (ref instanceof java.lang.String) {
420       return (java.lang.String) ref;
421     } else {
422       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
423       java.lang.String s = bs.toStringUtf8();
424       version_ = s;
425       return s;
426     }
427   }
428   /**
429    *
430    *
431    * <pre>
432    * Required. The Kubernetes version to run on this node pool (e.g.
433    * `1.19.10-gke.1000`).
434    * You can list all supported versions on a given Google Cloud region by
435    * calling
436    * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
437    * </pre>
438    *
439    * <code>string version = 3 [(.google.api.field_behavior) = REQUIRED];</code>
440    *
441    * @return The bytes for version.
442    */
443   @java.lang.Override
getVersionBytes()444   public com.google.protobuf.ByteString getVersionBytes() {
445     java.lang.Object ref = version_;
446     if (ref instanceof java.lang.String) {
447       com.google.protobuf.ByteString b =
448           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
449       version_ = b;
450       return b;
451     } else {
452       return (com.google.protobuf.ByteString) ref;
453     }
454   }
455 
456   public static final int CONFIG_FIELD_NUMBER = 28;
457   private com.google.cloud.gkemulticloud.v1.AwsNodeConfig config_;
458   /**
459    *
460    *
461    * <pre>
462    * Required. The configuration of the node pool.
463    * </pre>
464    *
465    * <code>
466    * .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED];
467    * </code>
468    *
469    * @return Whether the config field is set.
470    */
471   @java.lang.Override
hasConfig()472   public boolean hasConfig() {
473     return config_ != null;
474   }
475   /**
476    *
477    *
478    * <pre>
479    * Required. The configuration of the node pool.
480    * </pre>
481    *
482    * <code>
483    * .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED];
484    * </code>
485    *
486    * @return The config.
487    */
488   @java.lang.Override
getConfig()489   public com.google.cloud.gkemulticloud.v1.AwsNodeConfig getConfig() {
490     return config_ == null
491         ? com.google.cloud.gkemulticloud.v1.AwsNodeConfig.getDefaultInstance()
492         : config_;
493   }
494   /**
495    *
496    *
497    * <pre>
498    * Required. The configuration of the node pool.
499    * </pre>
500    *
501    * <code>
502    * .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED];
503    * </code>
504    */
505   @java.lang.Override
getConfigOrBuilder()506   public com.google.cloud.gkemulticloud.v1.AwsNodeConfigOrBuilder getConfigOrBuilder() {
507     return config_ == null
508         ? com.google.cloud.gkemulticloud.v1.AwsNodeConfig.getDefaultInstance()
509         : config_;
510   }
511 
512   public static final int AUTOSCALING_FIELD_NUMBER = 25;
513   private com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling_;
514   /**
515    *
516    *
517    * <pre>
518    * Required. Autoscaler configuration for this node pool.
519    * </pre>
520    *
521    * <code>
522    * .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED];
523    * </code>
524    *
525    * @return Whether the autoscaling field is set.
526    */
527   @java.lang.Override
hasAutoscaling()528   public boolean hasAutoscaling() {
529     return autoscaling_ != null;
530   }
531   /**
532    *
533    *
534    * <pre>
535    * Required. Autoscaler configuration for this node pool.
536    * </pre>
537    *
538    * <code>
539    * .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED];
540    * </code>
541    *
542    * @return The autoscaling.
543    */
544   @java.lang.Override
getAutoscaling()545   public com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling getAutoscaling() {
546     return autoscaling_ == null
547         ? com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling.getDefaultInstance()
548         : autoscaling_;
549   }
550   /**
551    *
552    *
553    * <pre>
554    * Required. Autoscaler configuration for this node pool.
555    * </pre>
556    *
557    * <code>
558    * .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED];
559    * </code>
560    */
561   @java.lang.Override
562   public com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscalingOrBuilder
getAutoscalingOrBuilder()563       getAutoscalingOrBuilder() {
564     return autoscaling_ == null
565         ? com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling.getDefaultInstance()
566         : autoscaling_;
567   }
568 
569   public static final int SUBNET_ID_FIELD_NUMBER = 6;
570 
571   @SuppressWarnings("serial")
572   private volatile java.lang.Object subnetId_ = "";
573   /**
574    *
575    *
576    * <pre>
577    * Required. The subnet where the node pool node run.
578    * </pre>
579    *
580    * <code>string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED];</code>
581    *
582    * @return The subnetId.
583    */
584   @java.lang.Override
getSubnetId()585   public java.lang.String getSubnetId() {
586     java.lang.Object ref = subnetId_;
587     if (ref instanceof java.lang.String) {
588       return (java.lang.String) ref;
589     } else {
590       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
591       java.lang.String s = bs.toStringUtf8();
592       subnetId_ = s;
593       return s;
594     }
595   }
596   /**
597    *
598    *
599    * <pre>
600    * Required. The subnet where the node pool node run.
601    * </pre>
602    *
603    * <code>string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED];</code>
604    *
605    * @return The bytes for subnetId.
606    */
607   @java.lang.Override
getSubnetIdBytes()608   public com.google.protobuf.ByteString getSubnetIdBytes() {
609     java.lang.Object ref = subnetId_;
610     if (ref instanceof java.lang.String) {
611       com.google.protobuf.ByteString b =
612           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
613       subnetId_ = b;
614       return b;
615     } else {
616       return (com.google.protobuf.ByteString) ref;
617     }
618   }
619 
620   public static final int STATE_FIELD_NUMBER = 16;
621   private int state_ = 0;
622   /**
623    *
624    *
625    * <pre>
626    * Output only. The lifecycle state of the node pool.
627    * </pre>
628    *
629    * <code>
630    * .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
631    * </code>
632    *
633    * @return The enum numeric value on the wire for state.
634    */
635   @java.lang.Override
getStateValue()636   public int getStateValue() {
637     return state_;
638   }
639   /**
640    *
641    *
642    * <pre>
643    * Output only. The lifecycle state of the node pool.
644    * </pre>
645    *
646    * <code>
647    * .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
648    * </code>
649    *
650    * @return The state.
651    */
652   @java.lang.Override
getState()653   public com.google.cloud.gkemulticloud.v1.AwsNodePool.State getState() {
654     com.google.cloud.gkemulticloud.v1.AwsNodePool.State result =
655         com.google.cloud.gkemulticloud.v1.AwsNodePool.State.forNumber(state_);
656     return result == null
657         ? com.google.cloud.gkemulticloud.v1.AwsNodePool.State.UNRECOGNIZED
658         : result;
659   }
660 
661   public static final int UID_FIELD_NUMBER = 17;
662 
663   @SuppressWarnings("serial")
664   private volatile java.lang.Object uid_ = "";
665   /**
666    *
667    *
668    * <pre>
669    * Output only. A globally unique identifier for the node pool.
670    * </pre>
671    *
672    * <code>string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
673    *
674    * @return The uid.
675    */
676   @java.lang.Override
getUid()677   public java.lang.String getUid() {
678     java.lang.Object ref = uid_;
679     if (ref instanceof java.lang.String) {
680       return (java.lang.String) ref;
681     } else {
682       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
683       java.lang.String s = bs.toStringUtf8();
684       uid_ = s;
685       return s;
686     }
687   }
688   /**
689    *
690    *
691    * <pre>
692    * Output only. A globally unique identifier for the node pool.
693    * </pre>
694    *
695    * <code>string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
696    *
697    * @return The bytes for uid.
698    */
699   @java.lang.Override
getUidBytes()700   public com.google.protobuf.ByteString getUidBytes() {
701     java.lang.Object ref = uid_;
702     if (ref instanceof java.lang.String) {
703       com.google.protobuf.ByteString b =
704           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
705       uid_ = b;
706       return b;
707     } else {
708       return (com.google.protobuf.ByteString) ref;
709     }
710   }
711 
712   public static final int RECONCILING_FIELD_NUMBER = 18;
713   private boolean reconciling_ = false;
714   /**
715    *
716    *
717    * <pre>
718    * Output only. If set, there are currently changes in flight to the node
719    * pool.
720    * </pre>
721    *
722    * <code>bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
723    *
724    * @return The reconciling.
725    */
726   @java.lang.Override
getReconciling()727   public boolean getReconciling() {
728     return reconciling_;
729   }
730 
731   public static final int CREATE_TIME_FIELD_NUMBER = 19;
732   private com.google.protobuf.Timestamp createTime_;
733   /**
734    *
735    *
736    * <pre>
737    * Output only. The time at which this node pool was created.
738    * </pre>
739    *
740    * <code>.google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
741    * </code>
742    *
743    * @return Whether the createTime field is set.
744    */
745   @java.lang.Override
hasCreateTime()746   public boolean hasCreateTime() {
747     return createTime_ != null;
748   }
749   /**
750    *
751    *
752    * <pre>
753    * Output only. The time at which this node pool was created.
754    * </pre>
755    *
756    * <code>.google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
757    * </code>
758    *
759    * @return The createTime.
760    */
761   @java.lang.Override
getCreateTime()762   public com.google.protobuf.Timestamp getCreateTime() {
763     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
764   }
765   /**
766    *
767    *
768    * <pre>
769    * Output only. The time at which this node pool was created.
770    * </pre>
771    *
772    * <code>.google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
773    * </code>
774    */
775   @java.lang.Override
getCreateTimeOrBuilder()776   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
777     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
778   }
779 
780   public static final int UPDATE_TIME_FIELD_NUMBER = 20;
781   private com.google.protobuf.Timestamp updateTime_;
782   /**
783    *
784    *
785    * <pre>
786    * Output only. The time at which this node pool was last updated.
787    * </pre>
788    *
789    * <code>.google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
790    * </code>
791    *
792    * @return Whether the updateTime field is set.
793    */
794   @java.lang.Override
hasUpdateTime()795   public boolean hasUpdateTime() {
796     return updateTime_ != null;
797   }
798   /**
799    *
800    *
801    * <pre>
802    * Output only. The time at which this node pool was last updated.
803    * </pre>
804    *
805    * <code>.google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
806    * </code>
807    *
808    * @return The updateTime.
809    */
810   @java.lang.Override
getUpdateTime()811   public com.google.protobuf.Timestamp getUpdateTime() {
812     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
813   }
814   /**
815    *
816    *
817    * <pre>
818    * Output only. The time at which this node pool was last updated.
819    * </pre>
820    *
821    * <code>.google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
822    * </code>
823    */
824   @java.lang.Override
getUpdateTimeOrBuilder()825   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
826     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
827   }
828 
829   public static final int ETAG_FIELD_NUMBER = 21;
830 
831   @SuppressWarnings("serial")
832   private volatile java.lang.Object etag_ = "";
833   /**
834    *
835    *
836    * <pre>
837    * Allows clients to perform consistent read-modify-writes
838    * through optimistic concurrency control.
839    * Can be sent on update and delete requests to ensure the
840    * client has an up-to-date value before proceeding.
841    * </pre>
842    *
843    * <code>string etag = 21;</code>
844    *
845    * @return The etag.
846    */
847   @java.lang.Override
getEtag()848   public java.lang.String getEtag() {
849     java.lang.Object ref = etag_;
850     if (ref instanceof java.lang.String) {
851       return (java.lang.String) ref;
852     } else {
853       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
854       java.lang.String s = bs.toStringUtf8();
855       etag_ = s;
856       return s;
857     }
858   }
859   /**
860    *
861    *
862    * <pre>
863    * Allows clients to perform consistent read-modify-writes
864    * through optimistic concurrency control.
865    * Can be sent on update and delete requests to ensure the
866    * client has an up-to-date value before proceeding.
867    * </pre>
868    *
869    * <code>string etag = 21;</code>
870    *
871    * @return The bytes for etag.
872    */
873   @java.lang.Override
getEtagBytes()874   public com.google.protobuf.ByteString getEtagBytes() {
875     java.lang.Object ref = etag_;
876     if (ref instanceof java.lang.String) {
877       com.google.protobuf.ByteString b =
878           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
879       etag_ = b;
880       return b;
881     } else {
882       return (com.google.protobuf.ByteString) ref;
883     }
884   }
885 
886   public static final int ANNOTATIONS_FIELD_NUMBER = 22;
887 
888   private static final class AnnotationsDefaultEntryHolder {
889     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
890         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
891             com.google.cloud.gkemulticloud.v1.AwsResourcesProto
892                 .internal_static_google_cloud_gkemulticloud_v1_AwsNodePool_AnnotationsEntry_descriptor,
893             com.google.protobuf.WireFormat.FieldType.STRING,
894             "",
895             com.google.protobuf.WireFormat.FieldType.STRING,
896             "");
897   }
898 
899   @SuppressWarnings("serial")
900   private com.google.protobuf.MapField<java.lang.String, java.lang.String> annotations_;
901 
902   private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetAnnotations()903       internalGetAnnotations() {
904     if (annotations_ == null) {
905       return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
906     }
907     return annotations_;
908   }
909 
getAnnotationsCount()910   public int getAnnotationsCount() {
911     return internalGetAnnotations().getMap().size();
912   }
913   /**
914    *
915    *
916    * <pre>
917    * Optional. Annotations on the node pool.
918    * This field has the same restrictions as Kubernetes annotations.
919    * The total size of all keys and values combined is limited to 256k.
920    * Key can have 2 segments: prefix (optional) and name (required),
921    * separated by a slash (/).
922    * Prefix must be a DNS subdomain.
923    * Name must be 63 characters or less, begin and end with alphanumerics,
924    * with dashes (-), underscores (_), dots (.), and alphanumerics between.
925    * </pre>
926    *
927    * <code>map&lt;string, string&gt; annotations = 22 [(.google.api.field_behavior) = OPTIONAL];
928    * </code>
929    */
930   @java.lang.Override
containsAnnotations(java.lang.String key)931   public boolean containsAnnotations(java.lang.String key) {
932     if (key == null) {
933       throw new NullPointerException("map key");
934     }
935     return internalGetAnnotations().getMap().containsKey(key);
936   }
937   /** Use {@link #getAnnotationsMap()} instead. */
938   @java.lang.Override
939   @java.lang.Deprecated
getAnnotations()940   public java.util.Map<java.lang.String, java.lang.String> getAnnotations() {
941     return getAnnotationsMap();
942   }
943   /**
944    *
945    *
946    * <pre>
947    * Optional. Annotations on the node pool.
948    * This field has the same restrictions as Kubernetes annotations.
949    * The total size of all keys and values combined is limited to 256k.
950    * Key can have 2 segments: prefix (optional) and name (required),
951    * separated by a slash (/).
952    * Prefix must be a DNS subdomain.
953    * Name must be 63 characters or less, begin and end with alphanumerics,
954    * with dashes (-), underscores (_), dots (.), and alphanumerics between.
955    * </pre>
956    *
957    * <code>map&lt;string, string&gt; annotations = 22 [(.google.api.field_behavior) = OPTIONAL];
958    * </code>
959    */
960   @java.lang.Override
getAnnotationsMap()961   public java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap() {
962     return internalGetAnnotations().getMap();
963   }
964   /**
965    *
966    *
967    * <pre>
968    * Optional. Annotations on the node pool.
969    * This field has the same restrictions as Kubernetes annotations.
970    * The total size of all keys and values combined is limited to 256k.
971    * Key can have 2 segments: prefix (optional) and name (required),
972    * separated by a slash (/).
973    * Prefix must be a DNS subdomain.
974    * Name must be 63 characters or less, begin and end with alphanumerics,
975    * with dashes (-), underscores (_), dots (.), and alphanumerics between.
976    * </pre>
977    *
978    * <code>map&lt;string, string&gt; annotations = 22 [(.google.api.field_behavior) = OPTIONAL];
979    * </code>
980    */
981   @java.lang.Override
getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue)982   public /* nullable */ java.lang.String getAnnotationsOrDefault(
983       java.lang.String key,
984       /* nullable */
985       java.lang.String defaultValue) {
986     if (key == null) {
987       throw new NullPointerException("map key");
988     }
989     java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotations().getMap();
990     return map.containsKey(key) ? map.get(key) : defaultValue;
991   }
992   /**
993    *
994    *
995    * <pre>
996    * Optional. Annotations on the node pool.
997    * This field has the same restrictions as Kubernetes annotations.
998    * The total size of all keys and values combined is limited to 256k.
999    * Key can have 2 segments: prefix (optional) and name (required),
1000    * separated by a slash (/).
1001    * Prefix must be a DNS subdomain.
1002    * Name must be 63 characters or less, begin and end with alphanumerics,
1003    * with dashes (-), underscores (_), dots (.), and alphanumerics between.
1004    * </pre>
1005    *
1006    * <code>map&lt;string, string&gt; annotations = 22 [(.google.api.field_behavior) = OPTIONAL];
1007    * </code>
1008    */
1009   @java.lang.Override
getAnnotationsOrThrow(java.lang.String key)1010   public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
1011     if (key == null) {
1012       throw new NullPointerException("map key");
1013     }
1014     java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotations().getMap();
1015     if (!map.containsKey(key)) {
1016       throw new java.lang.IllegalArgumentException();
1017     }
1018     return map.get(key);
1019   }
1020 
1021   public static final int MAX_PODS_CONSTRAINT_FIELD_NUMBER = 27;
1022   private com.google.cloud.gkemulticloud.v1.MaxPodsConstraint maxPodsConstraint_;
1023   /**
1024    *
1025    *
1026    * <pre>
1027    * Required. The constraint on the maximum number of pods that can be run
1028    * simultaneously on a node in the node pool.
1029    * </pre>
1030    *
1031    * <code>
1032    * .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED];
1033    * </code>
1034    *
1035    * @return Whether the maxPodsConstraint field is set.
1036    */
1037   @java.lang.Override
hasMaxPodsConstraint()1038   public boolean hasMaxPodsConstraint() {
1039     return maxPodsConstraint_ != null;
1040   }
1041   /**
1042    *
1043    *
1044    * <pre>
1045    * Required. The constraint on the maximum number of pods that can be run
1046    * simultaneously on a node in the node pool.
1047    * </pre>
1048    *
1049    * <code>
1050    * .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED];
1051    * </code>
1052    *
1053    * @return The maxPodsConstraint.
1054    */
1055   @java.lang.Override
getMaxPodsConstraint()1056   public com.google.cloud.gkemulticloud.v1.MaxPodsConstraint getMaxPodsConstraint() {
1057     return maxPodsConstraint_ == null
1058         ? com.google.cloud.gkemulticloud.v1.MaxPodsConstraint.getDefaultInstance()
1059         : maxPodsConstraint_;
1060   }
1061   /**
1062    *
1063    *
1064    * <pre>
1065    * Required. The constraint on the maximum number of pods that can be run
1066    * simultaneously on a node in the node pool.
1067    * </pre>
1068    *
1069    * <code>
1070    * .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED];
1071    * </code>
1072    */
1073   @java.lang.Override
1074   public com.google.cloud.gkemulticloud.v1.MaxPodsConstraintOrBuilder
getMaxPodsConstraintOrBuilder()1075       getMaxPodsConstraintOrBuilder() {
1076     return maxPodsConstraint_ == null
1077         ? com.google.cloud.gkemulticloud.v1.MaxPodsConstraint.getDefaultInstance()
1078         : maxPodsConstraint_;
1079   }
1080 
1081   public static final int ERRORS_FIELD_NUMBER = 29;
1082 
1083   @SuppressWarnings("serial")
1084   private java.util.List<com.google.cloud.gkemulticloud.v1.AwsNodePoolError> errors_;
1085   /**
1086    *
1087    *
1088    * <pre>
1089    * Output only. A set of errors found in the node pool.
1090    * </pre>
1091    *
1092    * <code>
1093    * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
1094    * </code>
1095    */
1096   @java.lang.Override
getErrorsList()1097   public java.util.List<com.google.cloud.gkemulticloud.v1.AwsNodePoolError> getErrorsList() {
1098     return errors_;
1099   }
1100   /**
1101    *
1102    *
1103    * <pre>
1104    * Output only. A set of errors found in the node pool.
1105    * </pre>
1106    *
1107    * <code>
1108    * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
1109    * </code>
1110    */
1111   @java.lang.Override
1112   public java.util.List<? extends com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder>
getErrorsOrBuilderList()1113       getErrorsOrBuilderList() {
1114     return errors_;
1115   }
1116   /**
1117    *
1118    *
1119    * <pre>
1120    * Output only. A set of errors found in the node pool.
1121    * </pre>
1122    *
1123    * <code>
1124    * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
1125    * </code>
1126    */
1127   @java.lang.Override
getErrorsCount()1128   public int getErrorsCount() {
1129     return errors_.size();
1130   }
1131   /**
1132    *
1133    *
1134    * <pre>
1135    * Output only. A set of errors found in the node pool.
1136    * </pre>
1137    *
1138    * <code>
1139    * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
1140    * </code>
1141    */
1142   @java.lang.Override
getErrors(int index)1143   public com.google.cloud.gkemulticloud.v1.AwsNodePoolError getErrors(int index) {
1144     return errors_.get(index);
1145   }
1146   /**
1147    *
1148    *
1149    * <pre>
1150    * Output only. A set of errors found in the node pool.
1151    * </pre>
1152    *
1153    * <code>
1154    * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
1155    * </code>
1156    */
1157   @java.lang.Override
getErrorsOrBuilder(int index)1158   public com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder getErrorsOrBuilder(int index) {
1159     return errors_.get(index);
1160   }
1161 
1162   private byte memoizedIsInitialized = -1;
1163 
1164   @java.lang.Override
isInitialized()1165   public final boolean isInitialized() {
1166     byte isInitialized = memoizedIsInitialized;
1167     if (isInitialized == 1) return true;
1168     if (isInitialized == 0) return false;
1169 
1170     memoizedIsInitialized = 1;
1171     return true;
1172   }
1173 
1174   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1175   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1176     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1177       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1178     }
1179     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
1180       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_);
1181     }
1182     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
1183       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, subnetId_);
1184     }
1185     if (state_
1186         != com.google.cloud.gkemulticloud.v1.AwsNodePool.State.STATE_UNSPECIFIED.getNumber()) {
1187       output.writeEnum(16, state_);
1188     }
1189     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
1190       com.google.protobuf.GeneratedMessageV3.writeString(output, 17, uid_);
1191     }
1192     if (reconciling_ != false) {
1193       output.writeBool(18, reconciling_);
1194     }
1195     if (createTime_ != null) {
1196       output.writeMessage(19, getCreateTime());
1197     }
1198     if (updateTime_ != null) {
1199       output.writeMessage(20, getUpdateTime());
1200     }
1201     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
1202       com.google.protobuf.GeneratedMessageV3.writeString(output, 21, etag_);
1203     }
1204     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
1205         output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 22);
1206     if (autoscaling_ != null) {
1207       output.writeMessage(25, getAutoscaling());
1208     }
1209     if (maxPodsConstraint_ != null) {
1210       output.writeMessage(27, getMaxPodsConstraint());
1211     }
1212     if (config_ != null) {
1213       output.writeMessage(28, getConfig());
1214     }
1215     for (int i = 0; i < errors_.size(); i++) {
1216       output.writeMessage(29, errors_.get(i));
1217     }
1218     getUnknownFields().writeTo(output);
1219   }
1220 
1221   @java.lang.Override
getSerializedSize()1222   public int getSerializedSize() {
1223     int size = memoizedSize;
1224     if (size != -1) return size;
1225 
1226     size = 0;
1227     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1228       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1229     }
1230     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
1231       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_);
1232     }
1233     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
1234       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, subnetId_);
1235     }
1236     if (state_
1237         != com.google.cloud.gkemulticloud.v1.AwsNodePool.State.STATE_UNSPECIFIED.getNumber()) {
1238       size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, state_);
1239     }
1240     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
1241       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, uid_);
1242     }
1243     if (reconciling_ != false) {
1244       size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, reconciling_);
1245     }
1246     if (createTime_ != null) {
1247       size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getCreateTime());
1248     }
1249     if (updateTime_ != null) {
1250       size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getUpdateTime());
1251     }
1252     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
1253       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, etag_);
1254     }
1255     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
1256         internalGetAnnotations().getMap().entrySet()) {
1257       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> annotations__ =
1258           AnnotationsDefaultEntryHolder.defaultEntry
1259               .newBuilderForType()
1260               .setKey(entry.getKey())
1261               .setValue(entry.getValue())
1262               .build();
1263       size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, annotations__);
1264     }
1265     if (autoscaling_ != null) {
1266       size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getAutoscaling());
1267     }
1268     if (maxPodsConstraint_ != null) {
1269       size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getMaxPodsConstraint());
1270     }
1271     if (config_ != null) {
1272       size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getConfig());
1273     }
1274     for (int i = 0; i < errors_.size(); i++) {
1275       size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, errors_.get(i));
1276     }
1277     size += getUnknownFields().getSerializedSize();
1278     memoizedSize = size;
1279     return size;
1280   }
1281 
1282   @java.lang.Override
equals(final java.lang.Object obj)1283   public boolean equals(final java.lang.Object obj) {
1284     if (obj == this) {
1285       return true;
1286     }
1287     if (!(obj instanceof com.google.cloud.gkemulticloud.v1.AwsNodePool)) {
1288       return super.equals(obj);
1289     }
1290     com.google.cloud.gkemulticloud.v1.AwsNodePool other =
1291         (com.google.cloud.gkemulticloud.v1.AwsNodePool) obj;
1292 
1293     if (!getName().equals(other.getName())) return false;
1294     if (!getVersion().equals(other.getVersion())) return false;
1295     if (hasConfig() != other.hasConfig()) return false;
1296     if (hasConfig()) {
1297       if (!getConfig().equals(other.getConfig())) return false;
1298     }
1299     if (hasAutoscaling() != other.hasAutoscaling()) return false;
1300     if (hasAutoscaling()) {
1301       if (!getAutoscaling().equals(other.getAutoscaling())) return false;
1302     }
1303     if (!getSubnetId().equals(other.getSubnetId())) return false;
1304     if (state_ != other.state_) return false;
1305     if (!getUid().equals(other.getUid())) return false;
1306     if (getReconciling() != other.getReconciling()) return false;
1307     if (hasCreateTime() != other.hasCreateTime()) return false;
1308     if (hasCreateTime()) {
1309       if (!getCreateTime().equals(other.getCreateTime())) return false;
1310     }
1311     if (hasUpdateTime() != other.hasUpdateTime()) return false;
1312     if (hasUpdateTime()) {
1313       if (!getUpdateTime().equals(other.getUpdateTime())) return false;
1314     }
1315     if (!getEtag().equals(other.getEtag())) return false;
1316     if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false;
1317     if (hasMaxPodsConstraint() != other.hasMaxPodsConstraint()) return false;
1318     if (hasMaxPodsConstraint()) {
1319       if (!getMaxPodsConstraint().equals(other.getMaxPodsConstraint())) return false;
1320     }
1321     if (!getErrorsList().equals(other.getErrorsList())) return false;
1322     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1323     return true;
1324   }
1325 
1326   @java.lang.Override
hashCode()1327   public int hashCode() {
1328     if (memoizedHashCode != 0) {
1329       return memoizedHashCode;
1330     }
1331     int hash = 41;
1332     hash = (19 * hash) + getDescriptor().hashCode();
1333     hash = (37 * hash) + NAME_FIELD_NUMBER;
1334     hash = (53 * hash) + getName().hashCode();
1335     hash = (37 * hash) + VERSION_FIELD_NUMBER;
1336     hash = (53 * hash) + getVersion().hashCode();
1337     if (hasConfig()) {
1338       hash = (37 * hash) + CONFIG_FIELD_NUMBER;
1339       hash = (53 * hash) + getConfig().hashCode();
1340     }
1341     if (hasAutoscaling()) {
1342       hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER;
1343       hash = (53 * hash) + getAutoscaling().hashCode();
1344     }
1345     hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER;
1346     hash = (53 * hash) + getSubnetId().hashCode();
1347     hash = (37 * hash) + STATE_FIELD_NUMBER;
1348     hash = (53 * hash) + state_;
1349     hash = (37 * hash) + UID_FIELD_NUMBER;
1350     hash = (53 * hash) + getUid().hashCode();
1351     hash = (37 * hash) + RECONCILING_FIELD_NUMBER;
1352     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling());
1353     if (hasCreateTime()) {
1354       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
1355       hash = (53 * hash) + getCreateTime().hashCode();
1356     }
1357     if (hasUpdateTime()) {
1358       hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
1359       hash = (53 * hash) + getUpdateTime().hashCode();
1360     }
1361     hash = (37 * hash) + ETAG_FIELD_NUMBER;
1362     hash = (53 * hash) + getEtag().hashCode();
1363     if (!internalGetAnnotations().getMap().isEmpty()) {
1364       hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
1365       hash = (53 * hash) + internalGetAnnotations().hashCode();
1366     }
1367     if (hasMaxPodsConstraint()) {
1368       hash = (37 * hash) + MAX_PODS_CONSTRAINT_FIELD_NUMBER;
1369       hash = (53 * hash) + getMaxPodsConstraint().hashCode();
1370     }
1371     if (getErrorsCount() > 0) {
1372       hash = (37 * hash) + ERRORS_FIELD_NUMBER;
1373       hash = (53 * hash) + getErrorsList().hashCode();
1374     }
1375     hash = (29 * hash) + getUnknownFields().hashCode();
1376     memoizedHashCode = hash;
1377     return hash;
1378   }
1379 
parseFrom(java.nio.ByteBuffer data)1380   public static com.google.cloud.gkemulticloud.v1.AwsNodePool parseFrom(java.nio.ByteBuffer data)
1381       throws com.google.protobuf.InvalidProtocolBufferException {
1382     return PARSER.parseFrom(data);
1383   }
1384 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1385   public static com.google.cloud.gkemulticloud.v1.AwsNodePool parseFrom(
1386       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1387       throws com.google.protobuf.InvalidProtocolBufferException {
1388     return PARSER.parseFrom(data, extensionRegistry);
1389   }
1390 
parseFrom( com.google.protobuf.ByteString data)1391   public static com.google.cloud.gkemulticloud.v1.AwsNodePool parseFrom(
1392       com.google.protobuf.ByteString data)
1393       throws com.google.protobuf.InvalidProtocolBufferException {
1394     return PARSER.parseFrom(data);
1395   }
1396 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1397   public static com.google.cloud.gkemulticloud.v1.AwsNodePool parseFrom(
1398       com.google.protobuf.ByteString data,
1399       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1400       throws com.google.protobuf.InvalidProtocolBufferException {
1401     return PARSER.parseFrom(data, extensionRegistry);
1402   }
1403 
parseFrom(byte[] data)1404   public static com.google.cloud.gkemulticloud.v1.AwsNodePool parseFrom(byte[] data)
1405       throws com.google.protobuf.InvalidProtocolBufferException {
1406     return PARSER.parseFrom(data);
1407   }
1408 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1409   public static com.google.cloud.gkemulticloud.v1.AwsNodePool parseFrom(
1410       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1411       throws com.google.protobuf.InvalidProtocolBufferException {
1412     return PARSER.parseFrom(data, extensionRegistry);
1413   }
1414 
parseFrom(java.io.InputStream input)1415   public static com.google.cloud.gkemulticloud.v1.AwsNodePool parseFrom(java.io.InputStream input)
1416       throws java.io.IOException {
1417     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1418   }
1419 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1420   public static com.google.cloud.gkemulticloud.v1.AwsNodePool parseFrom(
1421       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1422       throws java.io.IOException {
1423     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1424         PARSER, input, extensionRegistry);
1425   }
1426 
parseDelimitedFrom( java.io.InputStream input)1427   public static com.google.cloud.gkemulticloud.v1.AwsNodePool parseDelimitedFrom(
1428       java.io.InputStream input) throws java.io.IOException {
1429     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1430   }
1431 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1432   public static com.google.cloud.gkemulticloud.v1.AwsNodePool parseDelimitedFrom(
1433       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1434       throws java.io.IOException {
1435     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1436         PARSER, input, extensionRegistry);
1437   }
1438 
parseFrom( com.google.protobuf.CodedInputStream input)1439   public static com.google.cloud.gkemulticloud.v1.AwsNodePool parseFrom(
1440       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1441     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1442   }
1443 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1444   public static com.google.cloud.gkemulticloud.v1.AwsNodePool parseFrom(
1445       com.google.protobuf.CodedInputStream input,
1446       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1447       throws java.io.IOException {
1448     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1449         PARSER, input, extensionRegistry);
1450   }
1451 
1452   @java.lang.Override
newBuilderForType()1453   public Builder newBuilderForType() {
1454     return newBuilder();
1455   }
1456 
newBuilder()1457   public static Builder newBuilder() {
1458     return DEFAULT_INSTANCE.toBuilder();
1459   }
1460 
newBuilder(com.google.cloud.gkemulticloud.v1.AwsNodePool prototype)1461   public static Builder newBuilder(com.google.cloud.gkemulticloud.v1.AwsNodePool prototype) {
1462     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1463   }
1464 
1465   @java.lang.Override
toBuilder()1466   public Builder toBuilder() {
1467     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1468   }
1469 
1470   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1471   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1472     Builder builder = new Builder(parent);
1473     return builder;
1474   }
1475   /**
1476    *
1477    *
1478    * <pre>
1479    * An Anthos node pool running on AWS.
1480    * </pre>
1481    *
1482    * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsNodePool}
1483    */
1484   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1485       implements
1486       // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AwsNodePool)
1487       com.google.cloud.gkemulticloud.v1.AwsNodePoolOrBuilder {
getDescriptor()1488     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1489       return com.google.cloud.gkemulticloud.v1.AwsResourcesProto
1490           .internal_static_google_cloud_gkemulticloud_v1_AwsNodePool_descriptor;
1491     }
1492 
1493     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)1494     protected com.google.protobuf.MapField internalGetMapField(int number) {
1495       switch (number) {
1496         case 22:
1497           return internalGetAnnotations();
1498         default:
1499           throw new RuntimeException("Invalid map field number: " + number);
1500       }
1501     }
1502 
1503     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)1504     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
1505       switch (number) {
1506         case 22:
1507           return internalGetMutableAnnotations();
1508         default:
1509           throw new RuntimeException("Invalid map field number: " + number);
1510       }
1511     }
1512 
1513     @java.lang.Override
1514     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1515         internalGetFieldAccessorTable() {
1516       return com.google.cloud.gkemulticloud.v1.AwsResourcesProto
1517           .internal_static_google_cloud_gkemulticloud_v1_AwsNodePool_fieldAccessorTable
1518           .ensureFieldAccessorsInitialized(
1519               com.google.cloud.gkemulticloud.v1.AwsNodePool.class,
1520               com.google.cloud.gkemulticloud.v1.AwsNodePool.Builder.class);
1521     }
1522 
1523     // Construct using com.google.cloud.gkemulticloud.v1.AwsNodePool.newBuilder()
Builder()1524     private Builder() {}
1525 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1526     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1527       super(parent);
1528     }
1529 
1530     @java.lang.Override
clear()1531     public Builder clear() {
1532       super.clear();
1533       bitField0_ = 0;
1534       name_ = "";
1535       version_ = "";
1536       config_ = null;
1537       if (configBuilder_ != null) {
1538         configBuilder_.dispose();
1539         configBuilder_ = null;
1540       }
1541       autoscaling_ = null;
1542       if (autoscalingBuilder_ != null) {
1543         autoscalingBuilder_.dispose();
1544         autoscalingBuilder_ = null;
1545       }
1546       subnetId_ = "";
1547       state_ = 0;
1548       uid_ = "";
1549       reconciling_ = false;
1550       createTime_ = null;
1551       if (createTimeBuilder_ != null) {
1552         createTimeBuilder_.dispose();
1553         createTimeBuilder_ = null;
1554       }
1555       updateTime_ = null;
1556       if (updateTimeBuilder_ != null) {
1557         updateTimeBuilder_.dispose();
1558         updateTimeBuilder_ = null;
1559       }
1560       etag_ = "";
1561       internalGetMutableAnnotations().clear();
1562       maxPodsConstraint_ = null;
1563       if (maxPodsConstraintBuilder_ != null) {
1564         maxPodsConstraintBuilder_.dispose();
1565         maxPodsConstraintBuilder_ = null;
1566       }
1567       if (errorsBuilder_ == null) {
1568         errors_ = java.util.Collections.emptyList();
1569       } else {
1570         errors_ = null;
1571         errorsBuilder_.clear();
1572       }
1573       bitField0_ = (bitField0_ & ~0x00002000);
1574       return this;
1575     }
1576 
1577     @java.lang.Override
getDescriptorForType()1578     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1579       return com.google.cloud.gkemulticloud.v1.AwsResourcesProto
1580           .internal_static_google_cloud_gkemulticloud_v1_AwsNodePool_descriptor;
1581     }
1582 
1583     @java.lang.Override
getDefaultInstanceForType()1584     public com.google.cloud.gkemulticloud.v1.AwsNodePool getDefaultInstanceForType() {
1585       return com.google.cloud.gkemulticloud.v1.AwsNodePool.getDefaultInstance();
1586     }
1587 
1588     @java.lang.Override
build()1589     public com.google.cloud.gkemulticloud.v1.AwsNodePool build() {
1590       com.google.cloud.gkemulticloud.v1.AwsNodePool result = buildPartial();
1591       if (!result.isInitialized()) {
1592         throw newUninitializedMessageException(result);
1593       }
1594       return result;
1595     }
1596 
1597     @java.lang.Override
buildPartial()1598     public com.google.cloud.gkemulticloud.v1.AwsNodePool buildPartial() {
1599       com.google.cloud.gkemulticloud.v1.AwsNodePool result =
1600           new com.google.cloud.gkemulticloud.v1.AwsNodePool(this);
1601       buildPartialRepeatedFields(result);
1602       if (bitField0_ != 0) {
1603         buildPartial0(result);
1604       }
1605       onBuilt();
1606       return result;
1607     }
1608 
buildPartialRepeatedFields(com.google.cloud.gkemulticloud.v1.AwsNodePool result)1609     private void buildPartialRepeatedFields(com.google.cloud.gkemulticloud.v1.AwsNodePool result) {
1610       if (errorsBuilder_ == null) {
1611         if (((bitField0_ & 0x00002000) != 0)) {
1612           errors_ = java.util.Collections.unmodifiableList(errors_);
1613           bitField0_ = (bitField0_ & ~0x00002000);
1614         }
1615         result.errors_ = errors_;
1616       } else {
1617         result.errors_ = errorsBuilder_.build();
1618       }
1619     }
1620 
buildPartial0(com.google.cloud.gkemulticloud.v1.AwsNodePool result)1621     private void buildPartial0(com.google.cloud.gkemulticloud.v1.AwsNodePool result) {
1622       int from_bitField0_ = bitField0_;
1623       if (((from_bitField0_ & 0x00000001) != 0)) {
1624         result.name_ = name_;
1625       }
1626       if (((from_bitField0_ & 0x00000002) != 0)) {
1627         result.version_ = version_;
1628       }
1629       if (((from_bitField0_ & 0x00000004) != 0)) {
1630         result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
1631       }
1632       if (((from_bitField0_ & 0x00000008) != 0)) {
1633         result.autoscaling_ =
1634             autoscalingBuilder_ == null ? autoscaling_ : autoscalingBuilder_.build();
1635       }
1636       if (((from_bitField0_ & 0x00000010) != 0)) {
1637         result.subnetId_ = subnetId_;
1638       }
1639       if (((from_bitField0_ & 0x00000020) != 0)) {
1640         result.state_ = state_;
1641       }
1642       if (((from_bitField0_ & 0x00000040) != 0)) {
1643         result.uid_ = uid_;
1644       }
1645       if (((from_bitField0_ & 0x00000080) != 0)) {
1646         result.reconciling_ = reconciling_;
1647       }
1648       if (((from_bitField0_ & 0x00000100) != 0)) {
1649         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
1650       }
1651       if (((from_bitField0_ & 0x00000200) != 0)) {
1652         result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
1653       }
1654       if (((from_bitField0_ & 0x00000400) != 0)) {
1655         result.etag_ = etag_;
1656       }
1657       if (((from_bitField0_ & 0x00000800) != 0)) {
1658         result.annotations_ = internalGetAnnotations();
1659         result.annotations_.makeImmutable();
1660       }
1661       if (((from_bitField0_ & 0x00001000) != 0)) {
1662         result.maxPodsConstraint_ =
1663             maxPodsConstraintBuilder_ == null
1664                 ? maxPodsConstraint_
1665                 : maxPodsConstraintBuilder_.build();
1666       }
1667     }
1668 
1669     @java.lang.Override
clone()1670     public Builder clone() {
1671       return super.clone();
1672     }
1673 
1674     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1675     public Builder setField(
1676         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1677       return super.setField(field, value);
1678     }
1679 
1680     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1681     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1682       return super.clearField(field);
1683     }
1684 
1685     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1686     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1687       return super.clearOneof(oneof);
1688     }
1689 
1690     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1691     public Builder setRepeatedField(
1692         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1693       return super.setRepeatedField(field, index, value);
1694     }
1695 
1696     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1697     public Builder addRepeatedField(
1698         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1699       return super.addRepeatedField(field, value);
1700     }
1701 
1702     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1703     public Builder mergeFrom(com.google.protobuf.Message other) {
1704       if (other instanceof com.google.cloud.gkemulticloud.v1.AwsNodePool) {
1705         return mergeFrom((com.google.cloud.gkemulticloud.v1.AwsNodePool) other);
1706       } else {
1707         super.mergeFrom(other);
1708         return this;
1709       }
1710     }
1711 
mergeFrom(com.google.cloud.gkemulticloud.v1.AwsNodePool other)1712     public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AwsNodePool other) {
1713       if (other == com.google.cloud.gkemulticloud.v1.AwsNodePool.getDefaultInstance()) return this;
1714       if (!other.getName().isEmpty()) {
1715         name_ = other.name_;
1716         bitField0_ |= 0x00000001;
1717         onChanged();
1718       }
1719       if (!other.getVersion().isEmpty()) {
1720         version_ = other.version_;
1721         bitField0_ |= 0x00000002;
1722         onChanged();
1723       }
1724       if (other.hasConfig()) {
1725         mergeConfig(other.getConfig());
1726       }
1727       if (other.hasAutoscaling()) {
1728         mergeAutoscaling(other.getAutoscaling());
1729       }
1730       if (!other.getSubnetId().isEmpty()) {
1731         subnetId_ = other.subnetId_;
1732         bitField0_ |= 0x00000010;
1733         onChanged();
1734       }
1735       if (other.state_ != 0) {
1736         setStateValue(other.getStateValue());
1737       }
1738       if (!other.getUid().isEmpty()) {
1739         uid_ = other.uid_;
1740         bitField0_ |= 0x00000040;
1741         onChanged();
1742       }
1743       if (other.getReconciling() != false) {
1744         setReconciling(other.getReconciling());
1745       }
1746       if (other.hasCreateTime()) {
1747         mergeCreateTime(other.getCreateTime());
1748       }
1749       if (other.hasUpdateTime()) {
1750         mergeUpdateTime(other.getUpdateTime());
1751       }
1752       if (!other.getEtag().isEmpty()) {
1753         etag_ = other.etag_;
1754         bitField0_ |= 0x00000400;
1755         onChanged();
1756       }
1757       internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
1758       bitField0_ |= 0x00000800;
1759       if (other.hasMaxPodsConstraint()) {
1760         mergeMaxPodsConstraint(other.getMaxPodsConstraint());
1761       }
1762       if (errorsBuilder_ == null) {
1763         if (!other.errors_.isEmpty()) {
1764           if (errors_.isEmpty()) {
1765             errors_ = other.errors_;
1766             bitField0_ = (bitField0_ & ~0x00002000);
1767           } else {
1768             ensureErrorsIsMutable();
1769             errors_.addAll(other.errors_);
1770           }
1771           onChanged();
1772         }
1773       } else {
1774         if (!other.errors_.isEmpty()) {
1775           if (errorsBuilder_.isEmpty()) {
1776             errorsBuilder_.dispose();
1777             errorsBuilder_ = null;
1778             errors_ = other.errors_;
1779             bitField0_ = (bitField0_ & ~0x00002000);
1780             errorsBuilder_ =
1781                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1782                     ? getErrorsFieldBuilder()
1783                     : null;
1784           } else {
1785             errorsBuilder_.addAllMessages(other.errors_);
1786           }
1787         }
1788       }
1789       this.mergeUnknownFields(other.getUnknownFields());
1790       onChanged();
1791       return this;
1792     }
1793 
1794     @java.lang.Override
isInitialized()1795     public final boolean isInitialized() {
1796       return true;
1797     }
1798 
1799     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1800     public Builder mergeFrom(
1801         com.google.protobuf.CodedInputStream input,
1802         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1803         throws java.io.IOException {
1804       if (extensionRegistry == null) {
1805         throw new java.lang.NullPointerException();
1806       }
1807       try {
1808         boolean done = false;
1809         while (!done) {
1810           int tag = input.readTag();
1811           switch (tag) {
1812             case 0:
1813               done = true;
1814               break;
1815             case 10:
1816               {
1817                 name_ = input.readStringRequireUtf8();
1818                 bitField0_ |= 0x00000001;
1819                 break;
1820               } // case 10
1821             case 26:
1822               {
1823                 version_ = input.readStringRequireUtf8();
1824                 bitField0_ |= 0x00000002;
1825                 break;
1826               } // case 26
1827             case 50:
1828               {
1829                 subnetId_ = input.readStringRequireUtf8();
1830                 bitField0_ |= 0x00000010;
1831                 break;
1832               } // case 50
1833             case 128:
1834               {
1835                 state_ = input.readEnum();
1836                 bitField0_ |= 0x00000020;
1837                 break;
1838               } // case 128
1839             case 138:
1840               {
1841                 uid_ = input.readStringRequireUtf8();
1842                 bitField0_ |= 0x00000040;
1843                 break;
1844               } // case 138
1845             case 144:
1846               {
1847                 reconciling_ = input.readBool();
1848                 bitField0_ |= 0x00000080;
1849                 break;
1850               } // case 144
1851             case 154:
1852               {
1853                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
1854                 bitField0_ |= 0x00000100;
1855                 break;
1856               } // case 154
1857             case 162:
1858               {
1859                 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
1860                 bitField0_ |= 0x00000200;
1861                 break;
1862               } // case 162
1863             case 170:
1864               {
1865                 etag_ = input.readStringRequireUtf8();
1866                 bitField0_ |= 0x00000400;
1867                 break;
1868               } // case 170
1869             case 178:
1870               {
1871                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> annotations__ =
1872                     input.readMessage(
1873                         AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
1874                         extensionRegistry);
1875                 internalGetMutableAnnotations()
1876                     .getMutableMap()
1877                     .put(annotations__.getKey(), annotations__.getValue());
1878                 bitField0_ |= 0x00000800;
1879                 break;
1880               } // case 178
1881             case 202:
1882               {
1883                 input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry);
1884                 bitField0_ |= 0x00000008;
1885                 break;
1886               } // case 202
1887             case 218:
1888               {
1889                 input.readMessage(
1890                     getMaxPodsConstraintFieldBuilder().getBuilder(), extensionRegistry);
1891                 bitField0_ |= 0x00001000;
1892                 break;
1893               } // case 218
1894             case 226:
1895               {
1896                 input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
1897                 bitField0_ |= 0x00000004;
1898                 break;
1899               } // case 226
1900             case 234:
1901               {
1902                 com.google.cloud.gkemulticloud.v1.AwsNodePoolError m =
1903                     input.readMessage(
1904                         com.google.cloud.gkemulticloud.v1.AwsNodePoolError.parser(),
1905                         extensionRegistry);
1906                 if (errorsBuilder_ == null) {
1907                   ensureErrorsIsMutable();
1908                   errors_.add(m);
1909                 } else {
1910                   errorsBuilder_.addMessage(m);
1911                 }
1912                 break;
1913               } // case 234
1914             default:
1915               {
1916                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1917                   done = true; // was an endgroup tag
1918                 }
1919                 break;
1920               } // default:
1921           } // switch (tag)
1922         } // while (!done)
1923       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1924         throw e.unwrapIOException();
1925       } finally {
1926         onChanged();
1927       } // finally
1928       return this;
1929     }
1930 
1931     private int bitField0_;
1932 
1933     private java.lang.Object name_ = "";
1934     /**
1935      *
1936      *
1937      * <pre>
1938      * The name of this resource.
1939      * Node pool names are formatted as
1940      * `projects/&lt;project-number&gt;/locations/&lt;region&gt;/awsClusters/&lt;cluster-id&gt;/awsNodePools/&lt;node-pool-id&gt;`.
1941      * For more details on Google Cloud resource names,
1942      * see [Resource Names](https://cloud.google.com/apis/design/resource_names)
1943      * </pre>
1944      *
1945      * <code>string name = 1;</code>
1946      *
1947      * @return The name.
1948      */
getName()1949     public java.lang.String getName() {
1950       java.lang.Object ref = name_;
1951       if (!(ref instanceof java.lang.String)) {
1952         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1953         java.lang.String s = bs.toStringUtf8();
1954         name_ = s;
1955         return s;
1956       } else {
1957         return (java.lang.String) ref;
1958       }
1959     }
1960     /**
1961      *
1962      *
1963      * <pre>
1964      * The name of this resource.
1965      * Node pool names are formatted as
1966      * `projects/&lt;project-number&gt;/locations/&lt;region&gt;/awsClusters/&lt;cluster-id&gt;/awsNodePools/&lt;node-pool-id&gt;`.
1967      * For more details on Google Cloud resource names,
1968      * see [Resource Names](https://cloud.google.com/apis/design/resource_names)
1969      * </pre>
1970      *
1971      * <code>string name = 1;</code>
1972      *
1973      * @return The bytes for name.
1974      */
getNameBytes()1975     public com.google.protobuf.ByteString getNameBytes() {
1976       java.lang.Object ref = name_;
1977       if (ref instanceof String) {
1978         com.google.protobuf.ByteString b =
1979             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1980         name_ = b;
1981         return b;
1982       } else {
1983         return (com.google.protobuf.ByteString) ref;
1984       }
1985     }
1986     /**
1987      *
1988      *
1989      * <pre>
1990      * The name of this resource.
1991      * Node pool names are formatted as
1992      * `projects/&lt;project-number&gt;/locations/&lt;region&gt;/awsClusters/&lt;cluster-id&gt;/awsNodePools/&lt;node-pool-id&gt;`.
1993      * For more details on Google Cloud resource names,
1994      * see [Resource Names](https://cloud.google.com/apis/design/resource_names)
1995      * </pre>
1996      *
1997      * <code>string name = 1;</code>
1998      *
1999      * @param value The name to set.
2000      * @return This builder for chaining.
2001      */
setName(java.lang.String value)2002     public Builder setName(java.lang.String value) {
2003       if (value == null) {
2004         throw new NullPointerException();
2005       }
2006       name_ = value;
2007       bitField0_ |= 0x00000001;
2008       onChanged();
2009       return this;
2010     }
2011     /**
2012      *
2013      *
2014      * <pre>
2015      * The name of this resource.
2016      * Node pool names are formatted as
2017      * `projects/&lt;project-number&gt;/locations/&lt;region&gt;/awsClusters/&lt;cluster-id&gt;/awsNodePools/&lt;node-pool-id&gt;`.
2018      * For more details on Google Cloud resource names,
2019      * see [Resource Names](https://cloud.google.com/apis/design/resource_names)
2020      * </pre>
2021      *
2022      * <code>string name = 1;</code>
2023      *
2024      * @return This builder for chaining.
2025      */
clearName()2026     public Builder clearName() {
2027       name_ = getDefaultInstance().getName();
2028       bitField0_ = (bitField0_ & ~0x00000001);
2029       onChanged();
2030       return this;
2031     }
2032     /**
2033      *
2034      *
2035      * <pre>
2036      * The name of this resource.
2037      * Node pool names are formatted as
2038      * `projects/&lt;project-number&gt;/locations/&lt;region&gt;/awsClusters/&lt;cluster-id&gt;/awsNodePools/&lt;node-pool-id&gt;`.
2039      * For more details on Google Cloud resource names,
2040      * see [Resource Names](https://cloud.google.com/apis/design/resource_names)
2041      * </pre>
2042      *
2043      * <code>string name = 1;</code>
2044      *
2045      * @param value The bytes for name to set.
2046      * @return This builder for chaining.
2047      */
setNameBytes(com.google.protobuf.ByteString value)2048     public Builder setNameBytes(com.google.protobuf.ByteString value) {
2049       if (value == null) {
2050         throw new NullPointerException();
2051       }
2052       checkByteStringIsUtf8(value);
2053       name_ = value;
2054       bitField0_ |= 0x00000001;
2055       onChanged();
2056       return this;
2057     }
2058 
2059     private java.lang.Object version_ = "";
2060     /**
2061      *
2062      *
2063      * <pre>
2064      * Required. The Kubernetes version to run on this node pool (e.g.
2065      * `1.19.10-gke.1000`).
2066      * You can list all supported versions on a given Google Cloud region by
2067      * calling
2068      * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
2069      * </pre>
2070      *
2071      * <code>string version = 3 [(.google.api.field_behavior) = REQUIRED];</code>
2072      *
2073      * @return The version.
2074      */
getVersion()2075     public java.lang.String getVersion() {
2076       java.lang.Object ref = version_;
2077       if (!(ref instanceof java.lang.String)) {
2078         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2079         java.lang.String s = bs.toStringUtf8();
2080         version_ = s;
2081         return s;
2082       } else {
2083         return (java.lang.String) ref;
2084       }
2085     }
2086     /**
2087      *
2088      *
2089      * <pre>
2090      * Required. The Kubernetes version to run on this node pool (e.g.
2091      * `1.19.10-gke.1000`).
2092      * You can list all supported versions on a given Google Cloud region by
2093      * calling
2094      * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
2095      * </pre>
2096      *
2097      * <code>string version = 3 [(.google.api.field_behavior) = REQUIRED];</code>
2098      *
2099      * @return The bytes for version.
2100      */
getVersionBytes()2101     public com.google.protobuf.ByteString getVersionBytes() {
2102       java.lang.Object ref = version_;
2103       if (ref instanceof String) {
2104         com.google.protobuf.ByteString b =
2105             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2106         version_ = b;
2107         return b;
2108       } else {
2109         return (com.google.protobuf.ByteString) ref;
2110       }
2111     }
2112     /**
2113      *
2114      *
2115      * <pre>
2116      * Required. The Kubernetes version to run on this node pool (e.g.
2117      * `1.19.10-gke.1000`).
2118      * You can list all supported versions on a given Google Cloud region by
2119      * calling
2120      * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
2121      * </pre>
2122      *
2123      * <code>string version = 3 [(.google.api.field_behavior) = REQUIRED];</code>
2124      *
2125      * @param value The version to set.
2126      * @return This builder for chaining.
2127      */
setVersion(java.lang.String value)2128     public Builder setVersion(java.lang.String value) {
2129       if (value == null) {
2130         throw new NullPointerException();
2131       }
2132       version_ = value;
2133       bitField0_ |= 0x00000002;
2134       onChanged();
2135       return this;
2136     }
2137     /**
2138      *
2139      *
2140      * <pre>
2141      * Required. The Kubernetes version to run on this node pool (e.g.
2142      * `1.19.10-gke.1000`).
2143      * You can list all supported versions on a given Google Cloud region by
2144      * calling
2145      * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
2146      * </pre>
2147      *
2148      * <code>string version = 3 [(.google.api.field_behavior) = REQUIRED];</code>
2149      *
2150      * @return This builder for chaining.
2151      */
clearVersion()2152     public Builder clearVersion() {
2153       version_ = getDefaultInstance().getVersion();
2154       bitField0_ = (bitField0_ & ~0x00000002);
2155       onChanged();
2156       return this;
2157     }
2158     /**
2159      *
2160      *
2161      * <pre>
2162      * Required. The Kubernetes version to run on this node pool (e.g.
2163      * `1.19.10-gke.1000`).
2164      * You can list all supported versions on a given Google Cloud region by
2165      * calling
2166      * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
2167      * </pre>
2168      *
2169      * <code>string version = 3 [(.google.api.field_behavior) = REQUIRED];</code>
2170      *
2171      * @param value The bytes for version to set.
2172      * @return This builder for chaining.
2173      */
setVersionBytes(com.google.protobuf.ByteString value)2174     public Builder setVersionBytes(com.google.protobuf.ByteString value) {
2175       if (value == null) {
2176         throw new NullPointerException();
2177       }
2178       checkByteStringIsUtf8(value);
2179       version_ = value;
2180       bitField0_ |= 0x00000002;
2181       onChanged();
2182       return this;
2183     }
2184 
2185     private com.google.cloud.gkemulticloud.v1.AwsNodeConfig config_;
2186     private com.google.protobuf.SingleFieldBuilderV3<
2187             com.google.cloud.gkemulticloud.v1.AwsNodeConfig,
2188             com.google.cloud.gkemulticloud.v1.AwsNodeConfig.Builder,
2189             com.google.cloud.gkemulticloud.v1.AwsNodeConfigOrBuilder>
2190         configBuilder_;
2191     /**
2192      *
2193      *
2194      * <pre>
2195      * Required. The configuration of the node pool.
2196      * </pre>
2197      *
2198      * <code>
2199      * .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED];
2200      * </code>
2201      *
2202      * @return Whether the config field is set.
2203      */
hasConfig()2204     public boolean hasConfig() {
2205       return ((bitField0_ & 0x00000004) != 0);
2206     }
2207     /**
2208      *
2209      *
2210      * <pre>
2211      * Required. The configuration of the node pool.
2212      * </pre>
2213      *
2214      * <code>
2215      * .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED];
2216      * </code>
2217      *
2218      * @return The config.
2219      */
getConfig()2220     public com.google.cloud.gkemulticloud.v1.AwsNodeConfig getConfig() {
2221       if (configBuilder_ == null) {
2222         return config_ == null
2223             ? com.google.cloud.gkemulticloud.v1.AwsNodeConfig.getDefaultInstance()
2224             : config_;
2225       } else {
2226         return configBuilder_.getMessage();
2227       }
2228     }
2229     /**
2230      *
2231      *
2232      * <pre>
2233      * Required. The configuration of the node pool.
2234      * </pre>
2235      *
2236      * <code>
2237      * .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED];
2238      * </code>
2239      */
setConfig(com.google.cloud.gkemulticloud.v1.AwsNodeConfig value)2240     public Builder setConfig(com.google.cloud.gkemulticloud.v1.AwsNodeConfig value) {
2241       if (configBuilder_ == null) {
2242         if (value == null) {
2243           throw new NullPointerException();
2244         }
2245         config_ = value;
2246       } else {
2247         configBuilder_.setMessage(value);
2248       }
2249       bitField0_ |= 0x00000004;
2250       onChanged();
2251       return this;
2252     }
2253     /**
2254      *
2255      *
2256      * <pre>
2257      * Required. The configuration of the node pool.
2258      * </pre>
2259      *
2260      * <code>
2261      * .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED];
2262      * </code>
2263      */
setConfig( com.google.cloud.gkemulticloud.v1.AwsNodeConfig.Builder builderForValue)2264     public Builder setConfig(
2265         com.google.cloud.gkemulticloud.v1.AwsNodeConfig.Builder builderForValue) {
2266       if (configBuilder_ == null) {
2267         config_ = builderForValue.build();
2268       } else {
2269         configBuilder_.setMessage(builderForValue.build());
2270       }
2271       bitField0_ |= 0x00000004;
2272       onChanged();
2273       return this;
2274     }
2275     /**
2276      *
2277      *
2278      * <pre>
2279      * Required. The configuration of the node pool.
2280      * </pre>
2281      *
2282      * <code>
2283      * .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED];
2284      * </code>
2285      */
mergeConfig(com.google.cloud.gkemulticloud.v1.AwsNodeConfig value)2286     public Builder mergeConfig(com.google.cloud.gkemulticloud.v1.AwsNodeConfig value) {
2287       if (configBuilder_ == null) {
2288         if (((bitField0_ & 0x00000004) != 0)
2289             && config_ != null
2290             && config_ != com.google.cloud.gkemulticloud.v1.AwsNodeConfig.getDefaultInstance()) {
2291           getConfigBuilder().mergeFrom(value);
2292         } else {
2293           config_ = value;
2294         }
2295       } else {
2296         configBuilder_.mergeFrom(value);
2297       }
2298       bitField0_ |= 0x00000004;
2299       onChanged();
2300       return this;
2301     }
2302     /**
2303      *
2304      *
2305      * <pre>
2306      * Required. The configuration of the node pool.
2307      * </pre>
2308      *
2309      * <code>
2310      * .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED];
2311      * </code>
2312      */
clearConfig()2313     public Builder clearConfig() {
2314       bitField0_ = (bitField0_ & ~0x00000004);
2315       config_ = null;
2316       if (configBuilder_ != null) {
2317         configBuilder_.dispose();
2318         configBuilder_ = null;
2319       }
2320       onChanged();
2321       return this;
2322     }
2323     /**
2324      *
2325      *
2326      * <pre>
2327      * Required. The configuration of the node pool.
2328      * </pre>
2329      *
2330      * <code>
2331      * .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED];
2332      * </code>
2333      */
getConfigBuilder()2334     public com.google.cloud.gkemulticloud.v1.AwsNodeConfig.Builder getConfigBuilder() {
2335       bitField0_ |= 0x00000004;
2336       onChanged();
2337       return getConfigFieldBuilder().getBuilder();
2338     }
2339     /**
2340      *
2341      *
2342      * <pre>
2343      * Required. The configuration of the node pool.
2344      * </pre>
2345      *
2346      * <code>
2347      * .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED];
2348      * </code>
2349      */
getConfigOrBuilder()2350     public com.google.cloud.gkemulticloud.v1.AwsNodeConfigOrBuilder getConfigOrBuilder() {
2351       if (configBuilder_ != null) {
2352         return configBuilder_.getMessageOrBuilder();
2353       } else {
2354         return config_ == null
2355             ? com.google.cloud.gkemulticloud.v1.AwsNodeConfig.getDefaultInstance()
2356             : config_;
2357       }
2358     }
2359     /**
2360      *
2361      *
2362      * <pre>
2363      * Required. The configuration of the node pool.
2364      * </pre>
2365      *
2366      * <code>
2367      * .google.cloud.gkemulticloud.v1.AwsNodeConfig config = 28 [(.google.api.field_behavior) = REQUIRED];
2368      * </code>
2369      */
2370     private com.google.protobuf.SingleFieldBuilderV3<
2371             com.google.cloud.gkemulticloud.v1.AwsNodeConfig,
2372             com.google.cloud.gkemulticloud.v1.AwsNodeConfig.Builder,
2373             com.google.cloud.gkemulticloud.v1.AwsNodeConfigOrBuilder>
getConfigFieldBuilder()2374         getConfigFieldBuilder() {
2375       if (configBuilder_ == null) {
2376         configBuilder_ =
2377             new com.google.protobuf.SingleFieldBuilderV3<
2378                 com.google.cloud.gkemulticloud.v1.AwsNodeConfig,
2379                 com.google.cloud.gkemulticloud.v1.AwsNodeConfig.Builder,
2380                 com.google.cloud.gkemulticloud.v1.AwsNodeConfigOrBuilder>(
2381                 getConfig(), getParentForChildren(), isClean());
2382         config_ = null;
2383       }
2384       return configBuilder_;
2385     }
2386 
2387     private com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling_;
2388     private com.google.protobuf.SingleFieldBuilderV3<
2389             com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling,
2390             com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling.Builder,
2391             com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscalingOrBuilder>
2392         autoscalingBuilder_;
2393     /**
2394      *
2395      *
2396      * <pre>
2397      * Required. Autoscaler configuration for this node pool.
2398      * </pre>
2399      *
2400      * <code>
2401      * .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED];
2402      * </code>
2403      *
2404      * @return Whether the autoscaling field is set.
2405      */
hasAutoscaling()2406     public boolean hasAutoscaling() {
2407       return ((bitField0_ & 0x00000008) != 0);
2408     }
2409     /**
2410      *
2411      *
2412      * <pre>
2413      * Required. Autoscaler configuration for this node pool.
2414      * </pre>
2415      *
2416      * <code>
2417      * .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED];
2418      * </code>
2419      *
2420      * @return The autoscaling.
2421      */
getAutoscaling()2422     public com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling getAutoscaling() {
2423       if (autoscalingBuilder_ == null) {
2424         return autoscaling_ == null
2425             ? com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling.getDefaultInstance()
2426             : autoscaling_;
2427       } else {
2428         return autoscalingBuilder_.getMessage();
2429       }
2430     }
2431     /**
2432      *
2433      *
2434      * <pre>
2435      * Required. Autoscaler configuration for this node pool.
2436      * </pre>
2437      *
2438      * <code>
2439      * .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED];
2440      * </code>
2441      */
setAutoscaling(com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling value)2442     public Builder setAutoscaling(com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling value) {
2443       if (autoscalingBuilder_ == null) {
2444         if (value == null) {
2445           throw new NullPointerException();
2446         }
2447         autoscaling_ = value;
2448       } else {
2449         autoscalingBuilder_.setMessage(value);
2450       }
2451       bitField0_ |= 0x00000008;
2452       onChanged();
2453       return this;
2454     }
2455     /**
2456      *
2457      *
2458      * <pre>
2459      * Required. Autoscaler configuration for this node pool.
2460      * </pre>
2461      *
2462      * <code>
2463      * .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED];
2464      * </code>
2465      */
setAutoscaling( com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling.Builder builderForValue)2466     public Builder setAutoscaling(
2467         com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling.Builder builderForValue) {
2468       if (autoscalingBuilder_ == null) {
2469         autoscaling_ = builderForValue.build();
2470       } else {
2471         autoscalingBuilder_.setMessage(builderForValue.build());
2472       }
2473       bitField0_ |= 0x00000008;
2474       onChanged();
2475       return this;
2476     }
2477     /**
2478      *
2479      *
2480      * <pre>
2481      * Required. Autoscaler configuration for this node pool.
2482      * </pre>
2483      *
2484      * <code>
2485      * .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED];
2486      * </code>
2487      */
mergeAutoscaling( com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling value)2488     public Builder mergeAutoscaling(
2489         com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling value) {
2490       if (autoscalingBuilder_ == null) {
2491         if (((bitField0_ & 0x00000008) != 0)
2492             && autoscaling_ != null
2493             && autoscaling_
2494                 != com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling.getDefaultInstance()) {
2495           getAutoscalingBuilder().mergeFrom(value);
2496         } else {
2497           autoscaling_ = value;
2498         }
2499       } else {
2500         autoscalingBuilder_.mergeFrom(value);
2501       }
2502       bitField0_ |= 0x00000008;
2503       onChanged();
2504       return this;
2505     }
2506     /**
2507      *
2508      *
2509      * <pre>
2510      * Required. Autoscaler configuration for this node pool.
2511      * </pre>
2512      *
2513      * <code>
2514      * .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED];
2515      * </code>
2516      */
clearAutoscaling()2517     public Builder clearAutoscaling() {
2518       bitField0_ = (bitField0_ & ~0x00000008);
2519       autoscaling_ = null;
2520       if (autoscalingBuilder_ != null) {
2521         autoscalingBuilder_.dispose();
2522         autoscalingBuilder_ = null;
2523       }
2524       onChanged();
2525       return this;
2526     }
2527     /**
2528      *
2529      *
2530      * <pre>
2531      * Required. Autoscaler configuration for this node pool.
2532      * </pre>
2533      *
2534      * <code>
2535      * .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED];
2536      * </code>
2537      */
2538     public com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling.Builder
getAutoscalingBuilder()2539         getAutoscalingBuilder() {
2540       bitField0_ |= 0x00000008;
2541       onChanged();
2542       return getAutoscalingFieldBuilder().getBuilder();
2543     }
2544     /**
2545      *
2546      *
2547      * <pre>
2548      * Required. Autoscaler configuration for this node pool.
2549      * </pre>
2550      *
2551      * <code>
2552      * .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED];
2553      * </code>
2554      */
2555     public com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscalingOrBuilder
getAutoscalingOrBuilder()2556         getAutoscalingOrBuilder() {
2557       if (autoscalingBuilder_ != null) {
2558         return autoscalingBuilder_.getMessageOrBuilder();
2559       } else {
2560         return autoscaling_ == null
2561             ? com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling.getDefaultInstance()
2562             : autoscaling_;
2563       }
2564     }
2565     /**
2566      *
2567      *
2568      * <pre>
2569      * Required. Autoscaler configuration for this node pool.
2570      * </pre>
2571      *
2572      * <code>
2573      * .google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling autoscaling = 25 [(.google.api.field_behavior) = REQUIRED];
2574      * </code>
2575      */
2576     private com.google.protobuf.SingleFieldBuilderV3<
2577             com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling,
2578             com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling.Builder,
2579             com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscalingOrBuilder>
getAutoscalingFieldBuilder()2580         getAutoscalingFieldBuilder() {
2581       if (autoscalingBuilder_ == null) {
2582         autoscalingBuilder_ =
2583             new com.google.protobuf.SingleFieldBuilderV3<
2584                 com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling,
2585                 com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling.Builder,
2586                 com.google.cloud.gkemulticloud.v1.AwsNodePoolAutoscalingOrBuilder>(
2587                 getAutoscaling(), getParentForChildren(), isClean());
2588         autoscaling_ = null;
2589       }
2590       return autoscalingBuilder_;
2591     }
2592 
2593     private java.lang.Object subnetId_ = "";
2594     /**
2595      *
2596      *
2597      * <pre>
2598      * Required. The subnet where the node pool node run.
2599      * </pre>
2600      *
2601      * <code>string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2602      *
2603      * @return The subnetId.
2604      */
getSubnetId()2605     public java.lang.String getSubnetId() {
2606       java.lang.Object ref = subnetId_;
2607       if (!(ref instanceof java.lang.String)) {
2608         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2609         java.lang.String s = bs.toStringUtf8();
2610         subnetId_ = s;
2611         return s;
2612       } else {
2613         return (java.lang.String) ref;
2614       }
2615     }
2616     /**
2617      *
2618      *
2619      * <pre>
2620      * Required. The subnet where the node pool node run.
2621      * </pre>
2622      *
2623      * <code>string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2624      *
2625      * @return The bytes for subnetId.
2626      */
getSubnetIdBytes()2627     public com.google.protobuf.ByteString getSubnetIdBytes() {
2628       java.lang.Object ref = subnetId_;
2629       if (ref instanceof String) {
2630         com.google.protobuf.ByteString b =
2631             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2632         subnetId_ = b;
2633         return b;
2634       } else {
2635         return (com.google.protobuf.ByteString) ref;
2636       }
2637     }
2638     /**
2639      *
2640      *
2641      * <pre>
2642      * Required. The subnet where the node pool node run.
2643      * </pre>
2644      *
2645      * <code>string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2646      *
2647      * @param value The subnetId to set.
2648      * @return This builder for chaining.
2649      */
setSubnetId(java.lang.String value)2650     public Builder setSubnetId(java.lang.String value) {
2651       if (value == null) {
2652         throw new NullPointerException();
2653       }
2654       subnetId_ = value;
2655       bitField0_ |= 0x00000010;
2656       onChanged();
2657       return this;
2658     }
2659     /**
2660      *
2661      *
2662      * <pre>
2663      * Required. The subnet where the node pool node run.
2664      * </pre>
2665      *
2666      * <code>string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2667      *
2668      * @return This builder for chaining.
2669      */
clearSubnetId()2670     public Builder clearSubnetId() {
2671       subnetId_ = getDefaultInstance().getSubnetId();
2672       bitField0_ = (bitField0_ & ~0x00000010);
2673       onChanged();
2674       return this;
2675     }
2676     /**
2677      *
2678      *
2679      * <pre>
2680      * Required. The subnet where the node pool node run.
2681      * </pre>
2682      *
2683      * <code>string subnet_id = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2684      *
2685      * @param value The bytes for subnetId to set.
2686      * @return This builder for chaining.
2687      */
setSubnetIdBytes(com.google.protobuf.ByteString value)2688     public Builder setSubnetIdBytes(com.google.protobuf.ByteString value) {
2689       if (value == null) {
2690         throw new NullPointerException();
2691       }
2692       checkByteStringIsUtf8(value);
2693       subnetId_ = value;
2694       bitField0_ |= 0x00000010;
2695       onChanged();
2696       return this;
2697     }
2698 
2699     private int state_ = 0;
2700     /**
2701      *
2702      *
2703      * <pre>
2704      * Output only. The lifecycle state of the node pool.
2705      * </pre>
2706      *
2707      * <code>
2708      * .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
2709      * </code>
2710      *
2711      * @return The enum numeric value on the wire for state.
2712      */
2713     @java.lang.Override
getStateValue()2714     public int getStateValue() {
2715       return state_;
2716     }
2717     /**
2718      *
2719      *
2720      * <pre>
2721      * Output only. The lifecycle state of the node pool.
2722      * </pre>
2723      *
2724      * <code>
2725      * .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
2726      * </code>
2727      *
2728      * @param value The enum numeric value on the wire for state to set.
2729      * @return This builder for chaining.
2730      */
setStateValue(int value)2731     public Builder setStateValue(int value) {
2732       state_ = value;
2733       bitField0_ |= 0x00000020;
2734       onChanged();
2735       return this;
2736     }
2737     /**
2738      *
2739      *
2740      * <pre>
2741      * Output only. The lifecycle state of the node pool.
2742      * </pre>
2743      *
2744      * <code>
2745      * .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
2746      * </code>
2747      *
2748      * @return The state.
2749      */
2750     @java.lang.Override
getState()2751     public com.google.cloud.gkemulticloud.v1.AwsNodePool.State getState() {
2752       com.google.cloud.gkemulticloud.v1.AwsNodePool.State result =
2753           com.google.cloud.gkemulticloud.v1.AwsNodePool.State.forNumber(state_);
2754       return result == null
2755           ? com.google.cloud.gkemulticloud.v1.AwsNodePool.State.UNRECOGNIZED
2756           : result;
2757     }
2758     /**
2759      *
2760      *
2761      * <pre>
2762      * Output only. The lifecycle state of the node pool.
2763      * </pre>
2764      *
2765      * <code>
2766      * .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
2767      * </code>
2768      *
2769      * @param value The state to set.
2770      * @return This builder for chaining.
2771      */
setState(com.google.cloud.gkemulticloud.v1.AwsNodePool.State value)2772     public Builder setState(com.google.cloud.gkemulticloud.v1.AwsNodePool.State value) {
2773       if (value == null) {
2774         throw new NullPointerException();
2775       }
2776       bitField0_ |= 0x00000020;
2777       state_ = value.getNumber();
2778       onChanged();
2779       return this;
2780     }
2781     /**
2782      *
2783      *
2784      * <pre>
2785      * Output only. The lifecycle state of the node pool.
2786      * </pre>
2787      *
2788      * <code>
2789      * .google.cloud.gkemulticloud.v1.AwsNodePool.State state = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
2790      * </code>
2791      *
2792      * @return This builder for chaining.
2793      */
clearState()2794     public Builder clearState() {
2795       bitField0_ = (bitField0_ & ~0x00000020);
2796       state_ = 0;
2797       onChanged();
2798       return this;
2799     }
2800 
2801     private java.lang.Object uid_ = "";
2802     /**
2803      *
2804      *
2805      * <pre>
2806      * Output only. A globally unique identifier for the node pool.
2807      * </pre>
2808      *
2809      * <code>string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2810      *
2811      * @return The uid.
2812      */
getUid()2813     public java.lang.String getUid() {
2814       java.lang.Object ref = uid_;
2815       if (!(ref instanceof java.lang.String)) {
2816         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2817         java.lang.String s = bs.toStringUtf8();
2818         uid_ = s;
2819         return s;
2820       } else {
2821         return (java.lang.String) ref;
2822       }
2823     }
2824     /**
2825      *
2826      *
2827      * <pre>
2828      * Output only. A globally unique identifier for the node pool.
2829      * </pre>
2830      *
2831      * <code>string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2832      *
2833      * @return The bytes for uid.
2834      */
getUidBytes()2835     public com.google.protobuf.ByteString getUidBytes() {
2836       java.lang.Object ref = uid_;
2837       if (ref instanceof String) {
2838         com.google.protobuf.ByteString b =
2839             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2840         uid_ = b;
2841         return b;
2842       } else {
2843         return (com.google.protobuf.ByteString) ref;
2844       }
2845     }
2846     /**
2847      *
2848      *
2849      * <pre>
2850      * Output only. A globally unique identifier for the node pool.
2851      * </pre>
2852      *
2853      * <code>string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2854      *
2855      * @param value The uid to set.
2856      * @return This builder for chaining.
2857      */
setUid(java.lang.String value)2858     public Builder setUid(java.lang.String value) {
2859       if (value == null) {
2860         throw new NullPointerException();
2861       }
2862       uid_ = value;
2863       bitField0_ |= 0x00000040;
2864       onChanged();
2865       return this;
2866     }
2867     /**
2868      *
2869      *
2870      * <pre>
2871      * Output only. A globally unique identifier for the node pool.
2872      * </pre>
2873      *
2874      * <code>string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2875      *
2876      * @return This builder for chaining.
2877      */
clearUid()2878     public Builder clearUid() {
2879       uid_ = getDefaultInstance().getUid();
2880       bitField0_ = (bitField0_ & ~0x00000040);
2881       onChanged();
2882       return this;
2883     }
2884     /**
2885      *
2886      *
2887      * <pre>
2888      * Output only. A globally unique identifier for the node pool.
2889      * </pre>
2890      *
2891      * <code>string uid = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2892      *
2893      * @param value The bytes for uid to set.
2894      * @return This builder for chaining.
2895      */
setUidBytes(com.google.protobuf.ByteString value)2896     public Builder setUidBytes(com.google.protobuf.ByteString value) {
2897       if (value == null) {
2898         throw new NullPointerException();
2899       }
2900       checkByteStringIsUtf8(value);
2901       uid_ = value;
2902       bitField0_ |= 0x00000040;
2903       onChanged();
2904       return this;
2905     }
2906 
2907     private boolean reconciling_;
2908     /**
2909      *
2910      *
2911      * <pre>
2912      * Output only. If set, there are currently changes in flight to the node
2913      * pool.
2914      * </pre>
2915      *
2916      * <code>bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2917      *
2918      * @return The reconciling.
2919      */
2920     @java.lang.Override
getReconciling()2921     public boolean getReconciling() {
2922       return reconciling_;
2923     }
2924     /**
2925      *
2926      *
2927      * <pre>
2928      * Output only. If set, there are currently changes in flight to the node
2929      * pool.
2930      * </pre>
2931      *
2932      * <code>bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2933      *
2934      * @param value The reconciling to set.
2935      * @return This builder for chaining.
2936      */
setReconciling(boolean value)2937     public Builder setReconciling(boolean value) {
2938 
2939       reconciling_ = value;
2940       bitField0_ |= 0x00000080;
2941       onChanged();
2942       return this;
2943     }
2944     /**
2945      *
2946      *
2947      * <pre>
2948      * Output only. If set, there are currently changes in flight to the node
2949      * pool.
2950      * </pre>
2951      *
2952      * <code>bool reconciling = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2953      *
2954      * @return This builder for chaining.
2955      */
clearReconciling()2956     public Builder clearReconciling() {
2957       bitField0_ = (bitField0_ & ~0x00000080);
2958       reconciling_ = false;
2959       onChanged();
2960       return this;
2961     }
2962 
2963     private com.google.protobuf.Timestamp createTime_;
2964     private com.google.protobuf.SingleFieldBuilderV3<
2965             com.google.protobuf.Timestamp,
2966             com.google.protobuf.Timestamp.Builder,
2967             com.google.protobuf.TimestampOrBuilder>
2968         createTimeBuilder_;
2969     /**
2970      *
2971      *
2972      * <pre>
2973      * Output only. The time at which this node pool was created.
2974      * </pre>
2975      *
2976      * <code>
2977      * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
2978      * </code>
2979      *
2980      * @return Whether the createTime field is set.
2981      */
hasCreateTime()2982     public boolean hasCreateTime() {
2983       return ((bitField0_ & 0x00000100) != 0);
2984     }
2985     /**
2986      *
2987      *
2988      * <pre>
2989      * Output only. The time at which this node pool was created.
2990      * </pre>
2991      *
2992      * <code>
2993      * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
2994      * </code>
2995      *
2996      * @return The createTime.
2997      */
getCreateTime()2998     public com.google.protobuf.Timestamp getCreateTime() {
2999       if (createTimeBuilder_ == null) {
3000         return createTime_ == null
3001             ? com.google.protobuf.Timestamp.getDefaultInstance()
3002             : createTime_;
3003       } else {
3004         return createTimeBuilder_.getMessage();
3005       }
3006     }
3007     /**
3008      *
3009      *
3010      * <pre>
3011      * Output only. The time at which this node pool was created.
3012      * </pre>
3013      *
3014      * <code>
3015      * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
3016      * </code>
3017      */
setCreateTime(com.google.protobuf.Timestamp value)3018     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
3019       if (createTimeBuilder_ == null) {
3020         if (value == null) {
3021           throw new NullPointerException();
3022         }
3023         createTime_ = value;
3024       } else {
3025         createTimeBuilder_.setMessage(value);
3026       }
3027       bitField0_ |= 0x00000100;
3028       onChanged();
3029       return this;
3030     }
3031     /**
3032      *
3033      *
3034      * <pre>
3035      * Output only. The time at which this node pool was created.
3036      * </pre>
3037      *
3038      * <code>
3039      * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
3040      * </code>
3041      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)3042     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
3043       if (createTimeBuilder_ == null) {
3044         createTime_ = builderForValue.build();
3045       } else {
3046         createTimeBuilder_.setMessage(builderForValue.build());
3047       }
3048       bitField0_ |= 0x00000100;
3049       onChanged();
3050       return this;
3051     }
3052     /**
3053      *
3054      *
3055      * <pre>
3056      * Output only. The time at which this node pool was created.
3057      * </pre>
3058      *
3059      * <code>
3060      * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
3061      * </code>
3062      */
mergeCreateTime(com.google.protobuf.Timestamp value)3063     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
3064       if (createTimeBuilder_ == null) {
3065         if (((bitField0_ & 0x00000100) != 0)
3066             && createTime_ != null
3067             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3068           getCreateTimeBuilder().mergeFrom(value);
3069         } else {
3070           createTime_ = value;
3071         }
3072       } else {
3073         createTimeBuilder_.mergeFrom(value);
3074       }
3075       bitField0_ |= 0x00000100;
3076       onChanged();
3077       return this;
3078     }
3079     /**
3080      *
3081      *
3082      * <pre>
3083      * Output only. The time at which this node pool was created.
3084      * </pre>
3085      *
3086      * <code>
3087      * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
3088      * </code>
3089      */
clearCreateTime()3090     public Builder clearCreateTime() {
3091       bitField0_ = (bitField0_ & ~0x00000100);
3092       createTime_ = null;
3093       if (createTimeBuilder_ != null) {
3094         createTimeBuilder_.dispose();
3095         createTimeBuilder_ = null;
3096       }
3097       onChanged();
3098       return this;
3099     }
3100     /**
3101      *
3102      *
3103      * <pre>
3104      * Output only. The time at which this node pool was created.
3105      * </pre>
3106      *
3107      * <code>
3108      * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
3109      * </code>
3110      */
getCreateTimeBuilder()3111     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
3112       bitField0_ |= 0x00000100;
3113       onChanged();
3114       return getCreateTimeFieldBuilder().getBuilder();
3115     }
3116     /**
3117      *
3118      *
3119      * <pre>
3120      * Output only. The time at which this node pool was created.
3121      * </pre>
3122      *
3123      * <code>
3124      * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
3125      * </code>
3126      */
getCreateTimeOrBuilder()3127     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
3128       if (createTimeBuilder_ != null) {
3129         return createTimeBuilder_.getMessageOrBuilder();
3130       } else {
3131         return createTime_ == null
3132             ? com.google.protobuf.Timestamp.getDefaultInstance()
3133             : createTime_;
3134       }
3135     }
3136     /**
3137      *
3138      *
3139      * <pre>
3140      * Output only. The time at which this node pool was created.
3141      * </pre>
3142      *
3143      * <code>
3144      * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
3145      * </code>
3146      */
3147     private com.google.protobuf.SingleFieldBuilderV3<
3148             com.google.protobuf.Timestamp,
3149             com.google.protobuf.Timestamp.Builder,
3150             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()3151         getCreateTimeFieldBuilder() {
3152       if (createTimeBuilder_ == null) {
3153         createTimeBuilder_ =
3154             new com.google.protobuf.SingleFieldBuilderV3<
3155                 com.google.protobuf.Timestamp,
3156                 com.google.protobuf.Timestamp.Builder,
3157                 com.google.protobuf.TimestampOrBuilder>(
3158                 getCreateTime(), getParentForChildren(), isClean());
3159         createTime_ = null;
3160       }
3161       return createTimeBuilder_;
3162     }
3163 
3164     private com.google.protobuf.Timestamp updateTime_;
3165     private com.google.protobuf.SingleFieldBuilderV3<
3166             com.google.protobuf.Timestamp,
3167             com.google.protobuf.Timestamp.Builder,
3168             com.google.protobuf.TimestampOrBuilder>
3169         updateTimeBuilder_;
3170     /**
3171      *
3172      *
3173      * <pre>
3174      * Output only. The time at which this node pool was last updated.
3175      * </pre>
3176      *
3177      * <code>
3178      * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3179      * </code>
3180      *
3181      * @return Whether the updateTime field is set.
3182      */
hasUpdateTime()3183     public boolean hasUpdateTime() {
3184       return ((bitField0_ & 0x00000200) != 0);
3185     }
3186     /**
3187      *
3188      *
3189      * <pre>
3190      * Output only. The time at which this node pool was last updated.
3191      * </pre>
3192      *
3193      * <code>
3194      * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3195      * </code>
3196      *
3197      * @return The updateTime.
3198      */
getUpdateTime()3199     public com.google.protobuf.Timestamp getUpdateTime() {
3200       if (updateTimeBuilder_ == null) {
3201         return updateTime_ == null
3202             ? com.google.protobuf.Timestamp.getDefaultInstance()
3203             : updateTime_;
3204       } else {
3205         return updateTimeBuilder_.getMessage();
3206       }
3207     }
3208     /**
3209      *
3210      *
3211      * <pre>
3212      * Output only. The time at which this node pool was last updated.
3213      * </pre>
3214      *
3215      * <code>
3216      * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3217      * </code>
3218      */
setUpdateTime(com.google.protobuf.Timestamp value)3219     public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
3220       if (updateTimeBuilder_ == null) {
3221         if (value == null) {
3222           throw new NullPointerException();
3223         }
3224         updateTime_ = value;
3225       } else {
3226         updateTimeBuilder_.setMessage(value);
3227       }
3228       bitField0_ |= 0x00000200;
3229       onChanged();
3230       return this;
3231     }
3232     /**
3233      *
3234      *
3235      * <pre>
3236      * Output only. The time at which this node pool was last updated.
3237      * </pre>
3238      *
3239      * <code>
3240      * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3241      * </code>
3242      */
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)3243     public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
3244       if (updateTimeBuilder_ == null) {
3245         updateTime_ = builderForValue.build();
3246       } else {
3247         updateTimeBuilder_.setMessage(builderForValue.build());
3248       }
3249       bitField0_ |= 0x00000200;
3250       onChanged();
3251       return this;
3252     }
3253     /**
3254      *
3255      *
3256      * <pre>
3257      * Output only. The time at which this node pool was last updated.
3258      * </pre>
3259      *
3260      * <code>
3261      * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3262      * </code>
3263      */
mergeUpdateTime(com.google.protobuf.Timestamp value)3264     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
3265       if (updateTimeBuilder_ == null) {
3266         if (((bitField0_ & 0x00000200) != 0)
3267             && updateTime_ != null
3268             && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3269           getUpdateTimeBuilder().mergeFrom(value);
3270         } else {
3271           updateTime_ = value;
3272         }
3273       } else {
3274         updateTimeBuilder_.mergeFrom(value);
3275       }
3276       bitField0_ |= 0x00000200;
3277       onChanged();
3278       return this;
3279     }
3280     /**
3281      *
3282      *
3283      * <pre>
3284      * Output only. The time at which this node pool was last updated.
3285      * </pre>
3286      *
3287      * <code>
3288      * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3289      * </code>
3290      */
clearUpdateTime()3291     public Builder clearUpdateTime() {
3292       bitField0_ = (bitField0_ & ~0x00000200);
3293       updateTime_ = null;
3294       if (updateTimeBuilder_ != null) {
3295         updateTimeBuilder_.dispose();
3296         updateTimeBuilder_ = null;
3297       }
3298       onChanged();
3299       return this;
3300     }
3301     /**
3302      *
3303      *
3304      * <pre>
3305      * Output only. The time at which this node pool was last updated.
3306      * </pre>
3307      *
3308      * <code>
3309      * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3310      * </code>
3311      */
getUpdateTimeBuilder()3312     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
3313       bitField0_ |= 0x00000200;
3314       onChanged();
3315       return getUpdateTimeFieldBuilder().getBuilder();
3316     }
3317     /**
3318      *
3319      *
3320      * <pre>
3321      * Output only. The time at which this node pool was last updated.
3322      * </pre>
3323      *
3324      * <code>
3325      * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3326      * </code>
3327      */
getUpdateTimeOrBuilder()3328     public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
3329       if (updateTimeBuilder_ != null) {
3330         return updateTimeBuilder_.getMessageOrBuilder();
3331       } else {
3332         return updateTime_ == null
3333             ? com.google.protobuf.Timestamp.getDefaultInstance()
3334             : updateTime_;
3335       }
3336     }
3337     /**
3338      *
3339      *
3340      * <pre>
3341      * Output only. The time at which this node pool was last updated.
3342      * </pre>
3343      *
3344      * <code>
3345      * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3346      * </code>
3347      */
3348     private com.google.protobuf.SingleFieldBuilderV3<
3349             com.google.protobuf.Timestamp,
3350             com.google.protobuf.Timestamp.Builder,
3351             com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder()3352         getUpdateTimeFieldBuilder() {
3353       if (updateTimeBuilder_ == null) {
3354         updateTimeBuilder_ =
3355             new com.google.protobuf.SingleFieldBuilderV3<
3356                 com.google.protobuf.Timestamp,
3357                 com.google.protobuf.Timestamp.Builder,
3358                 com.google.protobuf.TimestampOrBuilder>(
3359                 getUpdateTime(), getParentForChildren(), isClean());
3360         updateTime_ = null;
3361       }
3362       return updateTimeBuilder_;
3363     }
3364 
3365     private java.lang.Object etag_ = "";
3366     /**
3367      *
3368      *
3369      * <pre>
3370      * Allows clients to perform consistent read-modify-writes
3371      * through optimistic concurrency control.
3372      * Can be sent on update and delete requests to ensure the
3373      * client has an up-to-date value before proceeding.
3374      * </pre>
3375      *
3376      * <code>string etag = 21;</code>
3377      *
3378      * @return The etag.
3379      */
getEtag()3380     public java.lang.String getEtag() {
3381       java.lang.Object ref = etag_;
3382       if (!(ref instanceof java.lang.String)) {
3383         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3384         java.lang.String s = bs.toStringUtf8();
3385         etag_ = s;
3386         return s;
3387       } else {
3388         return (java.lang.String) ref;
3389       }
3390     }
3391     /**
3392      *
3393      *
3394      * <pre>
3395      * Allows clients to perform consistent read-modify-writes
3396      * through optimistic concurrency control.
3397      * Can be sent on update and delete requests to ensure the
3398      * client has an up-to-date value before proceeding.
3399      * </pre>
3400      *
3401      * <code>string etag = 21;</code>
3402      *
3403      * @return The bytes for etag.
3404      */
getEtagBytes()3405     public com.google.protobuf.ByteString getEtagBytes() {
3406       java.lang.Object ref = etag_;
3407       if (ref instanceof String) {
3408         com.google.protobuf.ByteString b =
3409             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3410         etag_ = b;
3411         return b;
3412       } else {
3413         return (com.google.protobuf.ByteString) ref;
3414       }
3415     }
3416     /**
3417      *
3418      *
3419      * <pre>
3420      * Allows clients to perform consistent read-modify-writes
3421      * through optimistic concurrency control.
3422      * Can be sent on update and delete requests to ensure the
3423      * client has an up-to-date value before proceeding.
3424      * </pre>
3425      *
3426      * <code>string etag = 21;</code>
3427      *
3428      * @param value The etag to set.
3429      * @return This builder for chaining.
3430      */
setEtag(java.lang.String value)3431     public Builder setEtag(java.lang.String value) {
3432       if (value == null) {
3433         throw new NullPointerException();
3434       }
3435       etag_ = value;
3436       bitField0_ |= 0x00000400;
3437       onChanged();
3438       return this;
3439     }
3440     /**
3441      *
3442      *
3443      * <pre>
3444      * Allows clients to perform consistent read-modify-writes
3445      * through optimistic concurrency control.
3446      * Can be sent on update and delete requests to ensure the
3447      * client has an up-to-date value before proceeding.
3448      * </pre>
3449      *
3450      * <code>string etag = 21;</code>
3451      *
3452      * @return This builder for chaining.
3453      */
clearEtag()3454     public Builder clearEtag() {
3455       etag_ = getDefaultInstance().getEtag();
3456       bitField0_ = (bitField0_ & ~0x00000400);
3457       onChanged();
3458       return this;
3459     }
3460     /**
3461      *
3462      *
3463      * <pre>
3464      * Allows clients to perform consistent read-modify-writes
3465      * through optimistic concurrency control.
3466      * Can be sent on update and delete requests to ensure the
3467      * client has an up-to-date value before proceeding.
3468      * </pre>
3469      *
3470      * <code>string etag = 21;</code>
3471      *
3472      * @param value The bytes for etag to set.
3473      * @return This builder for chaining.
3474      */
setEtagBytes(com.google.protobuf.ByteString value)3475     public Builder setEtagBytes(com.google.protobuf.ByteString value) {
3476       if (value == null) {
3477         throw new NullPointerException();
3478       }
3479       checkByteStringIsUtf8(value);
3480       etag_ = value;
3481       bitField0_ |= 0x00000400;
3482       onChanged();
3483       return this;
3484     }
3485 
3486     private com.google.protobuf.MapField<java.lang.String, java.lang.String> annotations_;
3487 
3488     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetAnnotations()3489         internalGetAnnotations() {
3490       if (annotations_ == null) {
3491         return com.google.protobuf.MapField.emptyMapField(
3492             AnnotationsDefaultEntryHolder.defaultEntry);
3493       }
3494       return annotations_;
3495     }
3496 
3497     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableAnnotations()3498         internalGetMutableAnnotations() {
3499       if (annotations_ == null) {
3500         annotations_ =
3501             com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
3502       }
3503       if (!annotations_.isMutable()) {
3504         annotations_ = annotations_.copy();
3505       }
3506       bitField0_ |= 0x00000800;
3507       onChanged();
3508       return annotations_;
3509     }
3510 
getAnnotationsCount()3511     public int getAnnotationsCount() {
3512       return internalGetAnnotations().getMap().size();
3513     }
3514     /**
3515      *
3516      *
3517      * <pre>
3518      * Optional. Annotations on the node pool.
3519      * This field has the same restrictions as Kubernetes annotations.
3520      * The total size of all keys and values combined is limited to 256k.
3521      * Key can have 2 segments: prefix (optional) and name (required),
3522      * separated by a slash (/).
3523      * Prefix must be a DNS subdomain.
3524      * Name must be 63 characters or less, begin and end with alphanumerics,
3525      * with dashes (-), underscores (_), dots (.), and alphanumerics between.
3526      * </pre>
3527      *
3528      * <code>map&lt;string, string&gt; annotations = 22 [(.google.api.field_behavior) = OPTIONAL];
3529      * </code>
3530      */
3531     @java.lang.Override
containsAnnotations(java.lang.String key)3532     public boolean containsAnnotations(java.lang.String key) {
3533       if (key == null) {
3534         throw new NullPointerException("map key");
3535       }
3536       return internalGetAnnotations().getMap().containsKey(key);
3537     }
3538     /** Use {@link #getAnnotationsMap()} instead. */
3539     @java.lang.Override
3540     @java.lang.Deprecated
getAnnotations()3541     public java.util.Map<java.lang.String, java.lang.String> getAnnotations() {
3542       return getAnnotationsMap();
3543     }
3544     /**
3545      *
3546      *
3547      * <pre>
3548      * Optional. Annotations on the node pool.
3549      * This field has the same restrictions as Kubernetes annotations.
3550      * The total size of all keys and values combined is limited to 256k.
3551      * Key can have 2 segments: prefix (optional) and name (required),
3552      * separated by a slash (/).
3553      * Prefix must be a DNS subdomain.
3554      * Name must be 63 characters or less, begin and end with alphanumerics,
3555      * with dashes (-), underscores (_), dots (.), and alphanumerics between.
3556      * </pre>
3557      *
3558      * <code>map&lt;string, string&gt; annotations = 22 [(.google.api.field_behavior) = OPTIONAL];
3559      * </code>
3560      */
3561     @java.lang.Override
getAnnotationsMap()3562     public java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap() {
3563       return internalGetAnnotations().getMap();
3564     }
3565     /**
3566      *
3567      *
3568      * <pre>
3569      * Optional. Annotations on the node pool.
3570      * This field has the same restrictions as Kubernetes annotations.
3571      * The total size of all keys and values combined is limited to 256k.
3572      * Key can have 2 segments: prefix (optional) and name (required),
3573      * separated by a slash (/).
3574      * Prefix must be a DNS subdomain.
3575      * Name must be 63 characters or less, begin and end with alphanumerics,
3576      * with dashes (-), underscores (_), dots (.), and alphanumerics between.
3577      * </pre>
3578      *
3579      * <code>map&lt;string, string&gt; annotations = 22 [(.google.api.field_behavior) = OPTIONAL];
3580      * </code>
3581      */
3582     @java.lang.Override
getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue)3583     public /* nullable */ java.lang.String getAnnotationsOrDefault(
3584         java.lang.String key,
3585         /* nullable */
3586         java.lang.String defaultValue) {
3587       if (key == null) {
3588         throw new NullPointerException("map key");
3589       }
3590       java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotations().getMap();
3591       return map.containsKey(key) ? map.get(key) : defaultValue;
3592     }
3593     /**
3594      *
3595      *
3596      * <pre>
3597      * Optional. Annotations on the node pool.
3598      * This field has the same restrictions as Kubernetes annotations.
3599      * The total size of all keys and values combined is limited to 256k.
3600      * Key can have 2 segments: prefix (optional) and name (required),
3601      * separated by a slash (/).
3602      * Prefix must be a DNS subdomain.
3603      * Name must be 63 characters or less, begin and end with alphanumerics,
3604      * with dashes (-), underscores (_), dots (.), and alphanumerics between.
3605      * </pre>
3606      *
3607      * <code>map&lt;string, string&gt; annotations = 22 [(.google.api.field_behavior) = OPTIONAL];
3608      * </code>
3609      */
3610     @java.lang.Override
getAnnotationsOrThrow(java.lang.String key)3611     public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
3612       if (key == null) {
3613         throw new NullPointerException("map key");
3614       }
3615       java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotations().getMap();
3616       if (!map.containsKey(key)) {
3617         throw new java.lang.IllegalArgumentException();
3618       }
3619       return map.get(key);
3620     }
3621 
clearAnnotations()3622     public Builder clearAnnotations() {
3623       bitField0_ = (bitField0_ & ~0x00000800);
3624       internalGetMutableAnnotations().getMutableMap().clear();
3625       return this;
3626     }
3627     /**
3628      *
3629      *
3630      * <pre>
3631      * Optional. Annotations on the node pool.
3632      * This field has the same restrictions as Kubernetes annotations.
3633      * The total size of all keys and values combined is limited to 256k.
3634      * Key can have 2 segments: prefix (optional) and name (required),
3635      * separated by a slash (/).
3636      * Prefix must be a DNS subdomain.
3637      * Name must be 63 characters or less, begin and end with alphanumerics,
3638      * with dashes (-), underscores (_), dots (.), and alphanumerics between.
3639      * </pre>
3640      *
3641      * <code>map&lt;string, string&gt; annotations = 22 [(.google.api.field_behavior) = OPTIONAL];
3642      * </code>
3643      */
removeAnnotations(java.lang.String key)3644     public Builder removeAnnotations(java.lang.String key) {
3645       if (key == null) {
3646         throw new NullPointerException("map key");
3647       }
3648       internalGetMutableAnnotations().getMutableMap().remove(key);
3649       return this;
3650     }
3651     /** Use alternate mutation accessors instead. */
3652     @java.lang.Deprecated
getMutableAnnotations()3653     public java.util.Map<java.lang.String, java.lang.String> getMutableAnnotations() {
3654       bitField0_ |= 0x00000800;
3655       return internalGetMutableAnnotations().getMutableMap();
3656     }
3657     /**
3658      *
3659      *
3660      * <pre>
3661      * Optional. Annotations on the node pool.
3662      * This field has the same restrictions as Kubernetes annotations.
3663      * The total size of all keys and values combined is limited to 256k.
3664      * Key can have 2 segments: prefix (optional) and name (required),
3665      * separated by a slash (/).
3666      * Prefix must be a DNS subdomain.
3667      * Name must be 63 characters or less, begin and end with alphanumerics,
3668      * with dashes (-), underscores (_), dots (.), and alphanumerics between.
3669      * </pre>
3670      *
3671      * <code>map&lt;string, string&gt; annotations = 22 [(.google.api.field_behavior) = OPTIONAL];
3672      * </code>
3673      */
putAnnotations(java.lang.String key, java.lang.String value)3674     public Builder putAnnotations(java.lang.String key, java.lang.String value) {
3675       if (key == null) {
3676         throw new NullPointerException("map key");
3677       }
3678       if (value == null) {
3679         throw new NullPointerException("map value");
3680       }
3681       internalGetMutableAnnotations().getMutableMap().put(key, value);
3682       bitField0_ |= 0x00000800;
3683       return this;
3684     }
3685     /**
3686      *
3687      *
3688      * <pre>
3689      * Optional. Annotations on the node pool.
3690      * This field has the same restrictions as Kubernetes annotations.
3691      * The total size of all keys and values combined is limited to 256k.
3692      * Key can have 2 segments: prefix (optional) and name (required),
3693      * separated by a slash (/).
3694      * Prefix must be a DNS subdomain.
3695      * Name must be 63 characters or less, begin and end with alphanumerics,
3696      * with dashes (-), underscores (_), dots (.), and alphanumerics between.
3697      * </pre>
3698      *
3699      * <code>map&lt;string, string&gt; annotations = 22 [(.google.api.field_behavior) = OPTIONAL];
3700      * </code>
3701      */
putAllAnnotations(java.util.Map<java.lang.String, java.lang.String> values)3702     public Builder putAllAnnotations(java.util.Map<java.lang.String, java.lang.String> values) {
3703       internalGetMutableAnnotations().getMutableMap().putAll(values);
3704       bitField0_ |= 0x00000800;
3705       return this;
3706     }
3707 
3708     private com.google.cloud.gkemulticloud.v1.MaxPodsConstraint maxPodsConstraint_;
3709     private com.google.protobuf.SingleFieldBuilderV3<
3710             com.google.cloud.gkemulticloud.v1.MaxPodsConstraint,
3711             com.google.cloud.gkemulticloud.v1.MaxPodsConstraint.Builder,
3712             com.google.cloud.gkemulticloud.v1.MaxPodsConstraintOrBuilder>
3713         maxPodsConstraintBuilder_;
3714     /**
3715      *
3716      *
3717      * <pre>
3718      * Required. The constraint on the maximum number of pods that can be run
3719      * simultaneously on a node in the node pool.
3720      * </pre>
3721      *
3722      * <code>
3723      * .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED];
3724      * </code>
3725      *
3726      * @return Whether the maxPodsConstraint field is set.
3727      */
hasMaxPodsConstraint()3728     public boolean hasMaxPodsConstraint() {
3729       return ((bitField0_ & 0x00001000) != 0);
3730     }
3731     /**
3732      *
3733      *
3734      * <pre>
3735      * Required. The constraint on the maximum number of pods that can be run
3736      * simultaneously on a node in the node pool.
3737      * </pre>
3738      *
3739      * <code>
3740      * .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED];
3741      * </code>
3742      *
3743      * @return The maxPodsConstraint.
3744      */
getMaxPodsConstraint()3745     public com.google.cloud.gkemulticloud.v1.MaxPodsConstraint getMaxPodsConstraint() {
3746       if (maxPodsConstraintBuilder_ == null) {
3747         return maxPodsConstraint_ == null
3748             ? com.google.cloud.gkemulticloud.v1.MaxPodsConstraint.getDefaultInstance()
3749             : maxPodsConstraint_;
3750       } else {
3751         return maxPodsConstraintBuilder_.getMessage();
3752       }
3753     }
3754     /**
3755      *
3756      *
3757      * <pre>
3758      * Required. The constraint on the maximum number of pods that can be run
3759      * simultaneously on a node in the node pool.
3760      * </pre>
3761      *
3762      * <code>
3763      * .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED];
3764      * </code>
3765      */
setMaxPodsConstraint(com.google.cloud.gkemulticloud.v1.MaxPodsConstraint value)3766     public Builder setMaxPodsConstraint(com.google.cloud.gkemulticloud.v1.MaxPodsConstraint value) {
3767       if (maxPodsConstraintBuilder_ == null) {
3768         if (value == null) {
3769           throw new NullPointerException();
3770         }
3771         maxPodsConstraint_ = value;
3772       } else {
3773         maxPodsConstraintBuilder_.setMessage(value);
3774       }
3775       bitField0_ |= 0x00001000;
3776       onChanged();
3777       return this;
3778     }
3779     /**
3780      *
3781      *
3782      * <pre>
3783      * Required. The constraint on the maximum number of pods that can be run
3784      * simultaneously on a node in the node pool.
3785      * </pre>
3786      *
3787      * <code>
3788      * .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED];
3789      * </code>
3790      */
setMaxPodsConstraint( com.google.cloud.gkemulticloud.v1.MaxPodsConstraint.Builder builderForValue)3791     public Builder setMaxPodsConstraint(
3792         com.google.cloud.gkemulticloud.v1.MaxPodsConstraint.Builder builderForValue) {
3793       if (maxPodsConstraintBuilder_ == null) {
3794         maxPodsConstraint_ = builderForValue.build();
3795       } else {
3796         maxPodsConstraintBuilder_.setMessage(builderForValue.build());
3797       }
3798       bitField0_ |= 0x00001000;
3799       onChanged();
3800       return this;
3801     }
3802     /**
3803      *
3804      *
3805      * <pre>
3806      * Required. The constraint on the maximum number of pods that can be run
3807      * simultaneously on a node in the node pool.
3808      * </pre>
3809      *
3810      * <code>
3811      * .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED];
3812      * </code>
3813      */
mergeMaxPodsConstraint( com.google.cloud.gkemulticloud.v1.MaxPodsConstraint value)3814     public Builder mergeMaxPodsConstraint(
3815         com.google.cloud.gkemulticloud.v1.MaxPodsConstraint value) {
3816       if (maxPodsConstraintBuilder_ == null) {
3817         if (((bitField0_ & 0x00001000) != 0)
3818             && maxPodsConstraint_ != null
3819             && maxPodsConstraint_
3820                 != com.google.cloud.gkemulticloud.v1.MaxPodsConstraint.getDefaultInstance()) {
3821           getMaxPodsConstraintBuilder().mergeFrom(value);
3822         } else {
3823           maxPodsConstraint_ = value;
3824         }
3825       } else {
3826         maxPodsConstraintBuilder_.mergeFrom(value);
3827       }
3828       bitField0_ |= 0x00001000;
3829       onChanged();
3830       return this;
3831     }
3832     /**
3833      *
3834      *
3835      * <pre>
3836      * Required. The constraint on the maximum number of pods that can be run
3837      * simultaneously on a node in the node pool.
3838      * </pre>
3839      *
3840      * <code>
3841      * .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED];
3842      * </code>
3843      */
clearMaxPodsConstraint()3844     public Builder clearMaxPodsConstraint() {
3845       bitField0_ = (bitField0_ & ~0x00001000);
3846       maxPodsConstraint_ = null;
3847       if (maxPodsConstraintBuilder_ != null) {
3848         maxPodsConstraintBuilder_.dispose();
3849         maxPodsConstraintBuilder_ = null;
3850       }
3851       onChanged();
3852       return this;
3853     }
3854     /**
3855      *
3856      *
3857      * <pre>
3858      * Required. The constraint on the maximum number of pods that can be run
3859      * simultaneously on a node in the node pool.
3860      * </pre>
3861      *
3862      * <code>
3863      * .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED];
3864      * </code>
3865      */
3866     public com.google.cloud.gkemulticloud.v1.MaxPodsConstraint.Builder
getMaxPodsConstraintBuilder()3867         getMaxPodsConstraintBuilder() {
3868       bitField0_ |= 0x00001000;
3869       onChanged();
3870       return getMaxPodsConstraintFieldBuilder().getBuilder();
3871     }
3872     /**
3873      *
3874      *
3875      * <pre>
3876      * Required. The constraint on the maximum number of pods that can be run
3877      * simultaneously on a node in the node pool.
3878      * </pre>
3879      *
3880      * <code>
3881      * .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED];
3882      * </code>
3883      */
3884     public com.google.cloud.gkemulticloud.v1.MaxPodsConstraintOrBuilder
getMaxPodsConstraintOrBuilder()3885         getMaxPodsConstraintOrBuilder() {
3886       if (maxPodsConstraintBuilder_ != null) {
3887         return maxPodsConstraintBuilder_.getMessageOrBuilder();
3888       } else {
3889         return maxPodsConstraint_ == null
3890             ? com.google.cloud.gkemulticloud.v1.MaxPodsConstraint.getDefaultInstance()
3891             : maxPodsConstraint_;
3892       }
3893     }
3894     /**
3895      *
3896      *
3897      * <pre>
3898      * Required. The constraint on the maximum number of pods that can be run
3899      * simultaneously on a node in the node pool.
3900      * </pre>
3901      *
3902      * <code>
3903      * .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 27 [(.google.api.field_behavior) = REQUIRED];
3904      * </code>
3905      */
3906     private com.google.protobuf.SingleFieldBuilderV3<
3907             com.google.cloud.gkemulticloud.v1.MaxPodsConstraint,
3908             com.google.cloud.gkemulticloud.v1.MaxPodsConstraint.Builder,
3909             com.google.cloud.gkemulticloud.v1.MaxPodsConstraintOrBuilder>
getMaxPodsConstraintFieldBuilder()3910         getMaxPodsConstraintFieldBuilder() {
3911       if (maxPodsConstraintBuilder_ == null) {
3912         maxPodsConstraintBuilder_ =
3913             new com.google.protobuf.SingleFieldBuilderV3<
3914                 com.google.cloud.gkemulticloud.v1.MaxPodsConstraint,
3915                 com.google.cloud.gkemulticloud.v1.MaxPodsConstraint.Builder,
3916                 com.google.cloud.gkemulticloud.v1.MaxPodsConstraintOrBuilder>(
3917                 getMaxPodsConstraint(), getParentForChildren(), isClean());
3918         maxPodsConstraint_ = null;
3919       }
3920       return maxPodsConstraintBuilder_;
3921     }
3922 
3923     private java.util.List<com.google.cloud.gkemulticloud.v1.AwsNodePoolError> errors_ =
3924         java.util.Collections.emptyList();
3925 
ensureErrorsIsMutable()3926     private void ensureErrorsIsMutable() {
3927       if (!((bitField0_ & 0x00002000) != 0)) {
3928         errors_ =
3929             new java.util.ArrayList<com.google.cloud.gkemulticloud.v1.AwsNodePoolError>(errors_);
3930         bitField0_ |= 0x00002000;
3931       }
3932     }
3933 
3934     private com.google.protobuf.RepeatedFieldBuilderV3<
3935             com.google.cloud.gkemulticloud.v1.AwsNodePoolError,
3936             com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder,
3937             com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder>
3938         errorsBuilder_;
3939 
3940     /**
3941      *
3942      *
3943      * <pre>
3944      * Output only. A set of errors found in the node pool.
3945      * </pre>
3946      *
3947      * <code>
3948      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
3949      * </code>
3950      */
getErrorsList()3951     public java.util.List<com.google.cloud.gkemulticloud.v1.AwsNodePoolError> getErrorsList() {
3952       if (errorsBuilder_ == null) {
3953         return java.util.Collections.unmodifiableList(errors_);
3954       } else {
3955         return errorsBuilder_.getMessageList();
3956       }
3957     }
3958     /**
3959      *
3960      *
3961      * <pre>
3962      * Output only. A set of errors found in the node pool.
3963      * </pre>
3964      *
3965      * <code>
3966      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
3967      * </code>
3968      */
getErrorsCount()3969     public int getErrorsCount() {
3970       if (errorsBuilder_ == null) {
3971         return errors_.size();
3972       } else {
3973         return errorsBuilder_.getCount();
3974       }
3975     }
3976     /**
3977      *
3978      *
3979      * <pre>
3980      * Output only. A set of errors found in the node pool.
3981      * </pre>
3982      *
3983      * <code>
3984      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
3985      * </code>
3986      */
getErrors(int index)3987     public com.google.cloud.gkemulticloud.v1.AwsNodePoolError getErrors(int index) {
3988       if (errorsBuilder_ == null) {
3989         return errors_.get(index);
3990       } else {
3991         return errorsBuilder_.getMessage(index);
3992       }
3993     }
3994     /**
3995      *
3996      *
3997      * <pre>
3998      * Output only. A set of errors found in the node pool.
3999      * </pre>
4000      *
4001      * <code>
4002      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4003      * </code>
4004      */
setErrors(int index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError value)4005     public Builder setErrors(int index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError value) {
4006       if (errorsBuilder_ == null) {
4007         if (value == null) {
4008           throw new NullPointerException();
4009         }
4010         ensureErrorsIsMutable();
4011         errors_.set(index, value);
4012         onChanged();
4013       } else {
4014         errorsBuilder_.setMessage(index, value);
4015       }
4016       return this;
4017     }
4018     /**
4019      *
4020      *
4021      * <pre>
4022      * Output only. A set of errors found in the node pool.
4023      * </pre>
4024      *
4025      * <code>
4026      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4027      * </code>
4028      */
setErrors( int index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder builderForValue)4029     public Builder setErrors(
4030         int index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder builderForValue) {
4031       if (errorsBuilder_ == null) {
4032         ensureErrorsIsMutable();
4033         errors_.set(index, builderForValue.build());
4034         onChanged();
4035       } else {
4036         errorsBuilder_.setMessage(index, builderForValue.build());
4037       }
4038       return this;
4039     }
4040     /**
4041      *
4042      *
4043      * <pre>
4044      * Output only. A set of errors found in the node pool.
4045      * </pre>
4046      *
4047      * <code>
4048      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4049      * </code>
4050      */
addErrors(com.google.cloud.gkemulticloud.v1.AwsNodePoolError value)4051     public Builder addErrors(com.google.cloud.gkemulticloud.v1.AwsNodePoolError value) {
4052       if (errorsBuilder_ == null) {
4053         if (value == null) {
4054           throw new NullPointerException();
4055         }
4056         ensureErrorsIsMutable();
4057         errors_.add(value);
4058         onChanged();
4059       } else {
4060         errorsBuilder_.addMessage(value);
4061       }
4062       return this;
4063     }
4064     /**
4065      *
4066      *
4067      * <pre>
4068      * Output only. A set of errors found in the node pool.
4069      * </pre>
4070      *
4071      * <code>
4072      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4073      * </code>
4074      */
addErrors(int index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError value)4075     public Builder addErrors(int index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError value) {
4076       if (errorsBuilder_ == null) {
4077         if (value == null) {
4078           throw new NullPointerException();
4079         }
4080         ensureErrorsIsMutable();
4081         errors_.add(index, value);
4082         onChanged();
4083       } else {
4084         errorsBuilder_.addMessage(index, value);
4085       }
4086       return this;
4087     }
4088     /**
4089      *
4090      *
4091      * <pre>
4092      * Output only. A set of errors found in the node pool.
4093      * </pre>
4094      *
4095      * <code>
4096      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4097      * </code>
4098      */
addErrors( com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder builderForValue)4099     public Builder addErrors(
4100         com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder builderForValue) {
4101       if (errorsBuilder_ == null) {
4102         ensureErrorsIsMutable();
4103         errors_.add(builderForValue.build());
4104         onChanged();
4105       } else {
4106         errorsBuilder_.addMessage(builderForValue.build());
4107       }
4108       return this;
4109     }
4110     /**
4111      *
4112      *
4113      * <pre>
4114      * Output only. A set of errors found in the node pool.
4115      * </pre>
4116      *
4117      * <code>
4118      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4119      * </code>
4120      */
addErrors( int index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder builderForValue)4121     public Builder addErrors(
4122         int index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder builderForValue) {
4123       if (errorsBuilder_ == null) {
4124         ensureErrorsIsMutable();
4125         errors_.add(index, builderForValue.build());
4126         onChanged();
4127       } else {
4128         errorsBuilder_.addMessage(index, builderForValue.build());
4129       }
4130       return this;
4131     }
4132     /**
4133      *
4134      *
4135      * <pre>
4136      * Output only. A set of errors found in the node pool.
4137      * </pre>
4138      *
4139      * <code>
4140      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4141      * </code>
4142      */
addAllErrors( java.lang.Iterable<? extends com.google.cloud.gkemulticloud.v1.AwsNodePoolError> values)4143     public Builder addAllErrors(
4144         java.lang.Iterable<? extends com.google.cloud.gkemulticloud.v1.AwsNodePoolError> values) {
4145       if (errorsBuilder_ == null) {
4146         ensureErrorsIsMutable();
4147         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
4148         onChanged();
4149       } else {
4150         errorsBuilder_.addAllMessages(values);
4151       }
4152       return this;
4153     }
4154     /**
4155      *
4156      *
4157      * <pre>
4158      * Output only. A set of errors found in the node pool.
4159      * </pre>
4160      *
4161      * <code>
4162      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4163      * </code>
4164      */
clearErrors()4165     public Builder clearErrors() {
4166       if (errorsBuilder_ == null) {
4167         errors_ = java.util.Collections.emptyList();
4168         bitField0_ = (bitField0_ & ~0x00002000);
4169         onChanged();
4170       } else {
4171         errorsBuilder_.clear();
4172       }
4173       return this;
4174     }
4175     /**
4176      *
4177      *
4178      * <pre>
4179      * Output only. A set of errors found in the node pool.
4180      * </pre>
4181      *
4182      * <code>
4183      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4184      * </code>
4185      */
removeErrors(int index)4186     public Builder removeErrors(int index) {
4187       if (errorsBuilder_ == null) {
4188         ensureErrorsIsMutable();
4189         errors_.remove(index);
4190         onChanged();
4191       } else {
4192         errorsBuilder_.remove(index);
4193       }
4194       return this;
4195     }
4196     /**
4197      *
4198      *
4199      * <pre>
4200      * Output only. A set of errors found in the node pool.
4201      * </pre>
4202      *
4203      * <code>
4204      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4205      * </code>
4206      */
getErrorsBuilder(int index)4207     public com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder getErrorsBuilder(int index) {
4208       return getErrorsFieldBuilder().getBuilder(index);
4209     }
4210     /**
4211      *
4212      *
4213      * <pre>
4214      * Output only. A set of errors found in the node pool.
4215      * </pre>
4216      *
4217      * <code>
4218      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4219      * </code>
4220      */
getErrorsOrBuilder( int index)4221     public com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder getErrorsOrBuilder(
4222         int index) {
4223       if (errorsBuilder_ == null) {
4224         return errors_.get(index);
4225       } else {
4226         return errorsBuilder_.getMessageOrBuilder(index);
4227       }
4228     }
4229     /**
4230      *
4231      *
4232      * <pre>
4233      * Output only. A set of errors found in the node pool.
4234      * </pre>
4235      *
4236      * <code>
4237      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4238      * </code>
4239      */
4240     public java.util.List<? extends com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder>
getErrorsOrBuilderList()4241         getErrorsOrBuilderList() {
4242       if (errorsBuilder_ != null) {
4243         return errorsBuilder_.getMessageOrBuilderList();
4244       } else {
4245         return java.util.Collections.unmodifiableList(errors_);
4246       }
4247     }
4248     /**
4249      *
4250      *
4251      * <pre>
4252      * Output only. A set of errors found in the node pool.
4253      * </pre>
4254      *
4255      * <code>
4256      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4257      * </code>
4258      */
addErrorsBuilder()4259     public com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder addErrorsBuilder() {
4260       return getErrorsFieldBuilder()
4261           .addBuilder(com.google.cloud.gkemulticloud.v1.AwsNodePoolError.getDefaultInstance());
4262     }
4263     /**
4264      *
4265      *
4266      * <pre>
4267      * Output only. A set of errors found in the node pool.
4268      * </pre>
4269      *
4270      * <code>
4271      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4272      * </code>
4273      */
addErrorsBuilder(int index)4274     public com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder addErrorsBuilder(int index) {
4275       return getErrorsFieldBuilder()
4276           .addBuilder(
4277               index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError.getDefaultInstance());
4278     }
4279     /**
4280      *
4281      *
4282      * <pre>
4283      * Output only. A set of errors found in the node pool.
4284      * </pre>
4285      *
4286      * <code>
4287      * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
4288      * </code>
4289      */
4290     public java.util.List<com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder>
getErrorsBuilderList()4291         getErrorsBuilderList() {
4292       return getErrorsFieldBuilder().getBuilderList();
4293     }
4294 
4295     private com.google.protobuf.RepeatedFieldBuilderV3<
4296             com.google.cloud.gkemulticloud.v1.AwsNodePoolError,
4297             com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder,
4298             com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder>
getErrorsFieldBuilder()4299         getErrorsFieldBuilder() {
4300       if (errorsBuilder_ == null) {
4301         errorsBuilder_ =
4302             new com.google.protobuf.RepeatedFieldBuilderV3<
4303                 com.google.cloud.gkemulticloud.v1.AwsNodePoolError,
4304                 com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder,
4305                 com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder>(
4306                 errors_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean());
4307         errors_ = null;
4308       }
4309       return errorsBuilder_;
4310     }
4311 
4312     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)4313     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
4314       return super.setUnknownFields(unknownFields);
4315     }
4316 
4317     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4318     public final Builder mergeUnknownFields(
4319         final com.google.protobuf.UnknownFieldSet unknownFields) {
4320       return super.mergeUnknownFields(unknownFields);
4321     }
4322 
4323     // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AwsNodePool)
4324   }
4325 
4326   // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AwsNodePool)
4327   private static final com.google.cloud.gkemulticloud.v1.AwsNodePool DEFAULT_INSTANCE;
4328 
4329   static {
4330     DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AwsNodePool();
4331   }
4332 
getDefaultInstance()4333   public static com.google.cloud.gkemulticloud.v1.AwsNodePool getDefaultInstance() {
4334     return DEFAULT_INSTANCE;
4335   }
4336 
4337   private static final com.google.protobuf.Parser<AwsNodePool> PARSER =
4338       new com.google.protobuf.AbstractParser<AwsNodePool>() {
4339         @java.lang.Override
4340         public AwsNodePool parsePartialFrom(
4341             com.google.protobuf.CodedInputStream input,
4342             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4343             throws com.google.protobuf.InvalidProtocolBufferException {
4344           Builder builder = newBuilder();
4345           try {
4346             builder.mergeFrom(input, extensionRegistry);
4347           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4348             throw e.setUnfinishedMessage(builder.buildPartial());
4349           } catch (com.google.protobuf.UninitializedMessageException e) {
4350             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4351           } catch (java.io.IOException e) {
4352             throw new com.google.protobuf.InvalidProtocolBufferException(e)
4353                 .setUnfinishedMessage(builder.buildPartial());
4354           }
4355           return builder.buildPartial();
4356         }
4357       };
4358 
parser()4359   public static com.google.protobuf.Parser<AwsNodePool> parser() {
4360     return PARSER;
4361   }
4362 
4363   @java.lang.Override
getParserForType()4364   public com.google.protobuf.Parser<AwsNodePool> getParserForType() {
4365     return PARSER;
4366   }
4367 
4368   @java.lang.Override
getDefaultInstanceForType()4369   public com.google.cloud.gkemulticloud.v1.AwsNodePool getDefaultInstanceForType() {
4370     return DEFAULT_INSTANCE;
4371   }
4372 }
4373