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