• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * A Managed Instance resource.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.ManagedInstance}
29  */
30 public final class ManagedInstance extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ManagedInstance)
33     ManagedInstanceOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use ManagedInstance.newBuilder() to construct.
ManagedInstance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private ManagedInstance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
ManagedInstance()40   private ManagedInstance() {
41     currentAction_ = "";
42     instance_ = "";
43     instanceHealth_ = java.util.Collections.emptyList();
44     instanceStatus_ = "";
45   }
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new ManagedInstance();
51   }
52 
53   @java.lang.Override
getUnknownFields()54   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
55     return this.unknownFields;
56   }
57 
getDescriptor()58   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
59     return com.google.cloud.compute.v1.Compute
60         .internal_static_google_cloud_compute_v1_ManagedInstance_descriptor;
61   }
62 
63   @java.lang.Override
64   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()65       internalGetFieldAccessorTable() {
66     return com.google.cloud.compute.v1.Compute
67         .internal_static_google_cloud_compute_v1_ManagedInstance_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.cloud.compute.v1.ManagedInstance.class,
70             com.google.cloud.compute.v1.ManagedInstance.Builder.class);
71   }
72 
73   /**
74    *
75    *
76    * <pre>
77    * [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
78    * Additional supported values which may be not listed in the enum directly due to technical reasons:
79    * STOPPING
80    * SUSPENDING
81    * </pre>
82    *
83    * Protobuf enum {@code google.cloud.compute.v1.ManagedInstance.CurrentAction}
84    */
85   public enum CurrentAction implements com.google.protobuf.ProtocolMessageEnum {
86     /**
87      *
88      *
89      * <pre>
90      * A value indicating that the enum field is not set.
91      * </pre>
92      *
93      * <code>UNDEFINED_CURRENT_ACTION = 0;</code>
94      */
95     UNDEFINED_CURRENT_ACTION(0),
96     /**
97      *
98      *
99      * <pre>
100      * The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group.
101      * </pre>
102      *
103      * <code>ABANDONING = 388244813;</code>
104      */
105     ABANDONING(388244813),
106     /**
107      *
108      *
109      * <pre>
110      * The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful.
111      * </pre>
112      *
113      * <code>CREATING = 455564985;</code>
114      */
115     CREATING(455564985),
116     /**
117      *
118      *
119      * <pre>
120      * The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased.
121      * </pre>
122      *
123      * <code>CREATING_WITHOUT_RETRIES = 428843785;</code>
124      */
125     CREATING_WITHOUT_RETRIES(428843785),
126     /**
127      *
128      *
129      * <pre>
130      * The managed instance group is permanently deleting this instance.
131      * </pre>
132      *
133      * <code>DELETING = 528602024;</code>
134      */
135     DELETING(528602024),
136     /**
137      *
138      *
139      * <pre>
140      * The managed instance group has not scheduled any actions for this instance.
141      * </pre>
142      *
143      * <code>NONE = 2402104;</code>
144      */
145     NONE(2402104),
146     /**
147      *
148      *
149      * <pre>
150      * The managed instance group is recreating this instance.
151      * </pre>
152      *
153      * <code>RECREATING = 287278572;</code>
154      */
155     RECREATING(287278572),
156     /**
157      *
158      *
159      * <pre>
160      * The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance.
161      * </pre>
162      *
163      * <code>REFRESHING = 163266343;</code>
164      */
165     REFRESHING(163266343),
166     /**
167      *
168      *
169      * <pre>
170      * The managed instance group is restarting this instance.
171      * </pre>
172      *
173      * <code>RESTARTING = 320534387;</code>
174      */
175     RESTARTING(320534387),
176     /**
177      *
178      *
179      * <pre>
180      * The managed instance group is resuming this instance.
181      * </pre>
182      *
183      * <code>RESUMING = 446856618;</code>
184      */
185     RESUMING(446856618),
186     /**
187      *
188      *
189      * <pre>
190      * The managed instance group is starting this instance.
191      * </pre>
192      *
193      * <code>STARTING = 488820800;</code>
194      */
195     STARTING(488820800),
196     /**
197      *
198      *
199      * <pre>
200      * The managed instance group is verifying this already created instance. Verification happens every time the instance is (re)created or restarted and consists of: 1. Waiting until health check specified as part of this managed instance group's autohealing policy reports HEALTHY. Note: Applies only if autohealing policy has a health check specified 2. Waiting for addition verification steps performed as post-instance creation (subject to future extensions).
201      * </pre>
202      *
203      * <code>VERIFYING = 16982185;</code>
204      */
205     VERIFYING(16982185),
206     UNRECOGNIZED(-1),
207     ;
208 
209     /**
210      *
211      *
212      * <pre>
213      * A value indicating that the enum field is not set.
214      * </pre>
215      *
216      * <code>UNDEFINED_CURRENT_ACTION = 0;</code>
217      */
218     public static final int UNDEFINED_CURRENT_ACTION_VALUE = 0;
219     /**
220      *
221      *
222      * <pre>
223      * The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group.
224      * </pre>
225      *
226      * <code>ABANDONING = 388244813;</code>
227      */
228     public static final int ABANDONING_VALUE = 388244813;
229     /**
230      *
231      *
232      * <pre>
233      * The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful.
234      * </pre>
235      *
236      * <code>CREATING = 455564985;</code>
237      */
238     public static final int CREATING_VALUE = 455564985;
239     /**
240      *
241      *
242      * <pre>
243      * The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased.
244      * </pre>
245      *
246      * <code>CREATING_WITHOUT_RETRIES = 428843785;</code>
247      */
248     public static final int CREATING_WITHOUT_RETRIES_VALUE = 428843785;
249     /**
250      *
251      *
252      * <pre>
253      * The managed instance group is permanently deleting this instance.
254      * </pre>
255      *
256      * <code>DELETING = 528602024;</code>
257      */
258     public static final int DELETING_VALUE = 528602024;
259     /**
260      *
261      *
262      * <pre>
263      * The managed instance group has not scheduled any actions for this instance.
264      * </pre>
265      *
266      * <code>NONE = 2402104;</code>
267      */
268     public static final int NONE_VALUE = 2402104;
269     /**
270      *
271      *
272      * <pre>
273      * The managed instance group is recreating this instance.
274      * </pre>
275      *
276      * <code>RECREATING = 287278572;</code>
277      */
278     public static final int RECREATING_VALUE = 287278572;
279     /**
280      *
281      *
282      * <pre>
283      * The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance.
284      * </pre>
285      *
286      * <code>REFRESHING = 163266343;</code>
287      */
288     public static final int REFRESHING_VALUE = 163266343;
289     /**
290      *
291      *
292      * <pre>
293      * The managed instance group is restarting this instance.
294      * </pre>
295      *
296      * <code>RESTARTING = 320534387;</code>
297      */
298     public static final int RESTARTING_VALUE = 320534387;
299     /**
300      *
301      *
302      * <pre>
303      * The managed instance group is resuming this instance.
304      * </pre>
305      *
306      * <code>RESUMING = 446856618;</code>
307      */
308     public static final int RESUMING_VALUE = 446856618;
309     /**
310      *
311      *
312      * <pre>
313      * The managed instance group is starting this instance.
314      * </pre>
315      *
316      * <code>STARTING = 488820800;</code>
317      */
318     public static final int STARTING_VALUE = 488820800;
319     /**
320      *
321      *
322      * <pre>
323      * The managed instance group is verifying this already created instance. Verification happens every time the instance is (re)created or restarted and consists of: 1. Waiting until health check specified as part of this managed instance group's autohealing policy reports HEALTHY. Note: Applies only if autohealing policy has a health check specified 2. Waiting for addition verification steps performed as post-instance creation (subject to future extensions).
324      * </pre>
325      *
326      * <code>VERIFYING = 16982185;</code>
327      */
328     public static final int VERIFYING_VALUE = 16982185;
329 
getNumber()330     public final int getNumber() {
331       if (this == UNRECOGNIZED) {
332         throw new java.lang.IllegalArgumentException(
333             "Can't get the number of an unknown enum value.");
334       }
335       return value;
336     }
337 
338     /**
339      * @param value The numeric wire value of the corresponding enum entry.
340      * @return The enum associated with the given numeric wire value.
341      * @deprecated Use {@link #forNumber(int)} instead.
342      */
343     @java.lang.Deprecated
valueOf(int value)344     public static CurrentAction valueOf(int value) {
345       return forNumber(value);
346     }
347 
348     /**
349      * @param value The numeric wire value of the corresponding enum entry.
350      * @return The enum associated with the given numeric wire value.
351      */
forNumber(int value)352     public static CurrentAction forNumber(int value) {
353       switch (value) {
354         case 0:
355           return UNDEFINED_CURRENT_ACTION;
356         case 388244813:
357           return ABANDONING;
358         case 455564985:
359           return CREATING;
360         case 428843785:
361           return CREATING_WITHOUT_RETRIES;
362         case 528602024:
363           return DELETING;
364         case 2402104:
365           return NONE;
366         case 287278572:
367           return RECREATING;
368         case 163266343:
369           return REFRESHING;
370         case 320534387:
371           return RESTARTING;
372         case 446856618:
373           return RESUMING;
374         case 488820800:
375           return STARTING;
376         case 16982185:
377           return VERIFYING;
378         default:
379           return null;
380       }
381     }
382 
internalGetValueMap()383     public static com.google.protobuf.Internal.EnumLiteMap<CurrentAction> internalGetValueMap() {
384       return internalValueMap;
385     }
386 
387     private static final com.google.protobuf.Internal.EnumLiteMap<CurrentAction> internalValueMap =
388         new com.google.protobuf.Internal.EnumLiteMap<CurrentAction>() {
389           public CurrentAction findValueByNumber(int number) {
390             return CurrentAction.forNumber(number);
391           }
392         };
393 
getValueDescriptor()394     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
395       if (this == UNRECOGNIZED) {
396         throw new java.lang.IllegalStateException(
397             "Can't get the descriptor of an unrecognized enum value.");
398       }
399       return getDescriptor().getValues().get(ordinal());
400     }
401 
getDescriptorForType()402     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
403       return getDescriptor();
404     }
405 
getDescriptor()406     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
407       return com.google.cloud.compute.v1.ManagedInstance.getDescriptor().getEnumTypes().get(0);
408     }
409 
410     private static final CurrentAction[] VALUES = values();
411 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)412     public static CurrentAction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
413       if (desc.getType() != getDescriptor()) {
414         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
415       }
416       if (desc.getIndex() == -1) {
417         return UNRECOGNIZED;
418       }
419       return VALUES[desc.getIndex()];
420     }
421 
422     private final int value;
423 
CurrentAction(int value)424     private CurrentAction(int value) {
425       this.value = value;
426     }
427 
428     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.ManagedInstance.CurrentAction)
429   }
430 
431   /**
432    *
433    *
434    * <pre>
435    * [Output Only] The status of the instance. This field is empty when the instance does not exist.
436    * Additional supported values which may be not listed in the enum directly due to technical reasons:
437    * STOPPING
438    * SUSPENDING
439    * </pre>
440    *
441    * Protobuf enum {@code google.cloud.compute.v1.ManagedInstance.InstanceStatus}
442    */
443   public enum InstanceStatus implements com.google.protobuf.ProtocolMessageEnum {
444     /**
445      *
446      *
447      * <pre>
448      * A value indicating that the enum field is not set.
449      * </pre>
450      *
451      * <code>UNDEFINED_INSTANCE_STATUS = 0;</code>
452      */
453     UNDEFINED_INSTANCE_STATUS(0),
454     /**
455      *
456      *
457      * <pre>
458      * The Nanny is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.
459      * </pre>
460      *
461      * <code>DEPROVISIONING = 428935662;</code>
462      */
463     DEPROVISIONING(428935662),
464     /**
465      *
466      *
467      * <pre>
468      * Resources are being allocated for the instance.
469      * </pre>
470      *
471      * <code>PROVISIONING = 290896621;</code>
472      */
473     PROVISIONING(290896621),
474     /**
475      *
476      *
477      * <pre>
478      * The instance is in repair.
479      * </pre>
480      *
481      * <code>REPAIRING = 413483285;</code>
482      */
483     REPAIRING(413483285),
484     /**
485      *
486      *
487      * <pre>
488      * The instance is running.
489      * </pre>
490      *
491      * <code>RUNNING = 121282975;</code>
492      */
493     RUNNING(121282975),
494     /**
495      *
496      *
497      * <pre>
498      * All required resources have been allocated and the instance is being started.
499      * </pre>
500      *
501      * <code>STAGING = 431072283;</code>
502      */
503     STAGING(431072283),
504     /**
505      *
506      *
507      * <pre>
508      * The instance has stopped successfully.
509      * </pre>
510      *
511      * <code>STOPPED = 444276141;</code>
512      */
513     STOPPED(444276141),
514     /** <code>STOPPING = 350791796;</code> */
515     STOPPING(350791796),
516     /**
517      *
518      *
519      * <pre>
520      * The instance has suspended.
521      * </pre>
522      *
523      * <code>SUSPENDED = 51223995;</code>
524      */
525     SUSPENDED(51223995),
526     /** <code>SUSPENDING = 514206246;</code> */
527     SUSPENDING(514206246),
528     /**
529      *
530      *
531      * <pre>
532      * The instance has stopped (either by explicit action or underlying failure).
533      * </pre>
534      *
535      * <code>TERMINATED = 250018339;</code>
536      */
537     TERMINATED(250018339),
538     UNRECOGNIZED(-1),
539     ;
540 
541     /**
542      *
543      *
544      * <pre>
545      * A value indicating that the enum field is not set.
546      * </pre>
547      *
548      * <code>UNDEFINED_INSTANCE_STATUS = 0;</code>
549      */
550     public static final int UNDEFINED_INSTANCE_STATUS_VALUE = 0;
551     /**
552      *
553      *
554      * <pre>
555      * The Nanny is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.
556      * </pre>
557      *
558      * <code>DEPROVISIONING = 428935662;</code>
559      */
560     public static final int DEPROVISIONING_VALUE = 428935662;
561     /**
562      *
563      *
564      * <pre>
565      * Resources are being allocated for the instance.
566      * </pre>
567      *
568      * <code>PROVISIONING = 290896621;</code>
569      */
570     public static final int PROVISIONING_VALUE = 290896621;
571     /**
572      *
573      *
574      * <pre>
575      * The instance is in repair.
576      * </pre>
577      *
578      * <code>REPAIRING = 413483285;</code>
579      */
580     public static final int REPAIRING_VALUE = 413483285;
581     /**
582      *
583      *
584      * <pre>
585      * The instance is running.
586      * </pre>
587      *
588      * <code>RUNNING = 121282975;</code>
589      */
590     public static final int RUNNING_VALUE = 121282975;
591     /**
592      *
593      *
594      * <pre>
595      * All required resources have been allocated and the instance is being started.
596      * </pre>
597      *
598      * <code>STAGING = 431072283;</code>
599      */
600     public static final int STAGING_VALUE = 431072283;
601     /**
602      *
603      *
604      * <pre>
605      * The instance has stopped successfully.
606      * </pre>
607      *
608      * <code>STOPPED = 444276141;</code>
609      */
610     public static final int STOPPED_VALUE = 444276141;
611     /** <code>STOPPING = 350791796;</code> */
612     public static final int STOPPING_VALUE = 350791796;
613     /**
614      *
615      *
616      * <pre>
617      * The instance has suspended.
618      * </pre>
619      *
620      * <code>SUSPENDED = 51223995;</code>
621      */
622     public static final int SUSPENDED_VALUE = 51223995;
623     /** <code>SUSPENDING = 514206246;</code> */
624     public static final int SUSPENDING_VALUE = 514206246;
625     /**
626      *
627      *
628      * <pre>
629      * The instance has stopped (either by explicit action or underlying failure).
630      * </pre>
631      *
632      * <code>TERMINATED = 250018339;</code>
633      */
634     public static final int TERMINATED_VALUE = 250018339;
635 
getNumber()636     public final int getNumber() {
637       if (this == UNRECOGNIZED) {
638         throw new java.lang.IllegalArgumentException(
639             "Can't get the number of an unknown enum value.");
640       }
641       return value;
642     }
643 
644     /**
645      * @param value The numeric wire value of the corresponding enum entry.
646      * @return The enum associated with the given numeric wire value.
647      * @deprecated Use {@link #forNumber(int)} instead.
648      */
649     @java.lang.Deprecated
valueOf(int value)650     public static InstanceStatus valueOf(int value) {
651       return forNumber(value);
652     }
653 
654     /**
655      * @param value The numeric wire value of the corresponding enum entry.
656      * @return The enum associated with the given numeric wire value.
657      */
forNumber(int value)658     public static InstanceStatus forNumber(int value) {
659       switch (value) {
660         case 0:
661           return UNDEFINED_INSTANCE_STATUS;
662         case 428935662:
663           return DEPROVISIONING;
664         case 290896621:
665           return PROVISIONING;
666         case 413483285:
667           return REPAIRING;
668         case 121282975:
669           return RUNNING;
670         case 431072283:
671           return STAGING;
672         case 444276141:
673           return STOPPED;
674         case 350791796:
675           return STOPPING;
676         case 51223995:
677           return SUSPENDED;
678         case 514206246:
679           return SUSPENDING;
680         case 250018339:
681           return TERMINATED;
682         default:
683           return null;
684       }
685     }
686 
internalGetValueMap()687     public static com.google.protobuf.Internal.EnumLiteMap<InstanceStatus> internalGetValueMap() {
688       return internalValueMap;
689     }
690 
691     private static final com.google.protobuf.Internal.EnumLiteMap<InstanceStatus> internalValueMap =
692         new com.google.protobuf.Internal.EnumLiteMap<InstanceStatus>() {
693           public InstanceStatus findValueByNumber(int number) {
694             return InstanceStatus.forNumber(number);
695           }
696         };
697 
getValueDescriptor()698     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
699       if (this == UNRECOGNIZED) {
700         throw new java.lang.IllegalStateException(
701             "Can't get the descriptor of an unrecognized enum value.");
702       }
703       return getDescriptor().getValues().get(ordinal());
704     }
705 
getDescriptorForType()706     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
707       return getDescriptor();
708     }
709 
getDescriptor()710     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
711       return com.google.cloud.compute.v1.ManagedInstance.getDescriptor().getEnumTypes().get(1);
712     }
713 
714     private static final InstanceStatus[] VALUES = values();
715 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)716     public static InstanceStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
717       if (desc.getType() != getDescriptor()) {
718         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
719       }
720       if (desc.getIndex() == -1) {
721         return UNRECOGNIZED;
722       }
723       return VALUES[desc.getIndex()];
724     }
725 
726     private final int value;
727 
InstanceStatus(int value)728     private InstanceStatus(int value) {
729       this.value = value;
730     }
731 
732     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.ManagedInstance.InstanceStatus)
733   }
734 
735   private int bitField0_;
736   public static final int CURRENT_ACTION_FIELD_NUMBER = 178475964;
737 
738   @SuppressWarnings("serial")
739   private volatile java.lang.Object currentAction_ = "";
740   /**
741    *
742    *
743    * <pre>
744    * [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
745    * Check the CurrentAction enum for the list of possible values.
746    * </pre>
747    *
748    * <code>optional string current_action = 178475964;</code>
749    *
750    * @return Whether the currentAction field is set.
751    */
752   @java.lang.Override
hasCurrentAction()753   public boolean hasCurrentAction() {
754     return ((bitField0_ & 0x00000001) != 0);
755   }
756   /**
757    *
758    *
759    * <pre>
760    * [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
761    * Check the CurrentAction enum for the list of possible values.
762    * </pre>
763    *
764    * <code>optional string current_action = 178475964;</code>
765    *
766    * @return The currentAction.
767    */
768   @java.lang.Override
getCurrentAction()769   public java.lang.String getCurrentAction() {
770     java.lang.Object ref = currentAction_;
771     if (ref instanceof java.lang.String) {
772       return (java.lang.String) ref;
773     } else {
774       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
775       java.lang.String s = bs.toStringUtf8();
776       currentAction_ = s;
777       return s;
778     }
779   }
780   /**
781    *
782    *
783    * <pre>
784    * [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
785    * Check the CurrentAction enum for the list of possible values.
786    * </pre>
787    *
788    * <code>optional string current_action = 178475964;</code>
789    *
790    * @return The bytes for currentAction.
791    */
792   @java.lang.Override
getCurrentActionBytes()793   public com.google.protobuf.ByteString getCurrentActionBytes() {
794     java.lang.Object ref = currentAction_;
795     if (ref instanceof java.lang.String) {
796       com.google.protobuf.ByteString b =
797           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
798       currentAction_ = b;
799       return b;
800     } else {
801       return (com.google.protobuf.ByteString) ref;
802     }
803   }
804 
805   public static final int ID_FIELD_NUMBER = 3355;
806   private long id_ = 0L;
807   /**
808    *
809    *
810    * <pre>
811    * [Output only] The unique identifier for this resource. This field is empty when instance does not exist.
812    * </pre>
813    *
814    * <code>optional uint64 id = 3355;</code>
815    *
816    * @return Whether the id field is set.
817    */
818   @java.lang.Override
hasId()819   public boolean hasId() {
820     return ((bitField0_ & 0x00000002) != 0);
821   }
822   /**
823    *
824    *
825    * <pre>
826    * [Output only] The unique identifier for this resource. This field is empty when instance does not exist.
827    * </pre>
828    *
829    * <code>optional uint64 id = 3355;</code>
830    *
831    * @return The id.
832    */
833   @java.lang.Override
getId()834   public long getId() {
835     return id_;
836   }
837 
838   public static final int INSTANCE_FIELD_NUMBER = 18257045;
839 
840   @SuppressWarnings("serial")
841   private volatile java.lang.Object instance_ = "";
842   /**
843    *
844    *
845    * <pre>
846    * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
847    * </pre>
848    *
849    * <code>optional string instance = 18257045;</code>
850    *
851    * @return Whether the instance field is set.
852    */
853   @java.lang.Override
hasInstance()854   public boolean hasInstance() {
855     return ((bitField0_ & 0x00000004) != 0);
856   }
857   /**
858    *
859    *
860    * <pre>
861    * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
862    * </pre>
863    *
864    * <code>optional string instance = 18257045;</code>
865    *
866    * @return The instance.
867    */
868   @java.lang.Override
getInstance()869   public java.lang.String getInstance() {
870     java.lang.Object ref = instance_;
871     if (ref instanceof java.lang.String) {
872       return (java.lang.String) ref;
873     } else {
874       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
875       java.lang.String s = bs.toStringUtf8();
876       instance_ = s;
877       return s;
878     }
879   }
880   /**
881    *
882    *
883    * <pre>
884    * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
885    * </pre>
886    *
887    * <code>optional string instance = 18257045;</code>
888    *
889    * @return The bytes for instance.
890    */
891   @java.lang.Override
getInstanceBytes()892   public com.google.protobuf.ByteString getInstanceBytes() {
893     java.lang.Object ref = instance_;
894     if (ref instanceof java.lang.String) {
895       com.google.protobuf.ByteString b =
896           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
897       instance_ = b;
898       return b;
899     } else {
900       return (com.google.protobuf.ByteString) ref;
901     }
902   }
903 
904   public static final int INSTANCE_HEALTH_FIELD_NUMBER = 382667078;
905 
906   @SuppressWarnings("serial")
907   private java.util.List<com.google.cloud.compute.v1.ManagedInstanceInstanceHealth> instanceHealth_;
908   /**
909    *
910    *
911    * <pre>
912    * [Output Only] Health state of the instance per health-check.
913    * </pre>
914    *
915    * <code>
916    * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
917    * </code>
918    */
919   @java.lang.Override
920   public java.util.List<com.google.cloud.compute.v1.ManagedInstanceInstanceHealth>
getInstanceHealthList()921       getInstanceHealthList() {
922     return instanceHealth_;
923   }
924   /**
925    *
926    *
927    * <pre>
928    * [Output Only] Health state of the instance per health-check.
929    * </pre>
930    *
931    * <code>
932    * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
933    * </code>
934    */
935   @java.lang.Override
936   public java.util.List<
937           ? extends com.google.cloud.compute.v1.ManagedInstanceInstanceHealthOrBuilder>
getInstanceHealthOrBuilderList()938       getInstanceHealthOrBuilderList() {
939     return instanceHealth_;
940   }
941   /**
942    *
943    *
944    * <pre>
945    * [Output Only] Health state of the instance per health-check.
946    * </pre>
947    *
948    * <code>
949    * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
950    * </code>
951    */
952   @java.lang.Override
getInstanceHealthCount()953   public int getInstanceHealthCount() {
954     return instanceHealth_.size();
955   }
956   /**
957    *
958    *
959    * <pre>
960    * [Output Only] Health state of the instance per health-check.
961    * </pre>
962    *
963    * <code>
964    * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
965    * </code>
966    */
967   @java.lang.Override
getInstanceHealth(int index)968   public com.google.cloud.compute.v1.ManagedInstanceInstanceHealth getInstanceHealth(int index) {
969     return instanceHealth_.get(index);
970   }
971   /**
972    *
973    *
974    * <pre>
975    * [Output Only] Health state of the instance per health-check.
976    * </pre>
977    *
978    * <code>
979    * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
980    * </code>
981    */
982   @java.lang.Override
983   public com.google.cloud.compute.v1.ManagedInstanceInstanceHealthOrBuilder
getInstanceHealthOrBuilder(int index)984       getInstanceHealthOrBuilder(int index) {
985     return instanceHealth_.get(index);
986   }
987 
988   public static final int INSTANCE_STATUS_FIELD_NUMBER = 174577372;
989 
990   @SuppressWarnings("serial")
991   private volatile java.lang.Object instanceStatus_ = "";
992   /**
993    *
994    *
995    * <pre>
996    * [Output Only] The status of the instance. This field is empty when the instance does not exist.
997    * Check the InstanceStatus enum for the list of possible values.
998    * </pre>
999    *
1000    * <code>optional string instance_status = 174577372;</code>
1001    *
1002    * @return Whether the instanceStatus field is set.
1003    */
1004   @java.lang.Override
hasInstanceStatus()1005   public boolean hasInstanceStatus() {
1006     return ((bitField0_ & 0x00000008) != 0);
1007   }
1008   /**
1009    *
1010    *
1011    * <pre>
1012    * [Output Only] The status of the instance. This field is empty when the instance does not exist.
1013    * Check the InstanceStatus enum for the list of possible values.
1014    * </pre>
1015    *
1016    * <code>optional string instance_status = 174577372;</code>
1017    *
1018    * @return The instanceStatus.
1019    */
1020   @java.lang.Override
getInstanceStatus()1021   public java.lang.String getInstanceStatus() {
1022     java.lang.Object ref = instanceStatus_;
1023     if (ref instanceof java.lang.String) {
1024       return (java.lang.String) ref;
1025     } else {
1026       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1027       java.lang.String s = bs.toStringUtf8();
1028       instanceStatus_ = s;
1029       return s;
1030     }
1031   }
1032   /**
1033    *
1034    *
1035    * <pre>
1036    * [Output Only] The status of the instance. This field is empty when the instance does not exist.
1037    * Check the InstanceStatus enum for the list of possible values.
1038    * </pre>
1039    *
1040    * <code>optional string instance_status = 174577372;</code>
1041    *
1042    * @return The bytes for instanceStatus.
1043    */
1044   @java.lang.Override
getInstanceStatusBytes()1045   public com.google.protobuf.ByteString getInstanceStatusBytes() {
1046     java.lang.Object ref = instanceStatus_;
1047     if (ref instanceof java.lang.String) {
1048       com.google.protobuf.ByteString b =
1049           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1050       instanceStatus_ = b;
1051       return b;
1052     } else {
1053       return (com.google.protobuf.ByteString) ref;
1054     }
1055   }
1056 
1057   public static final int LAST_ATTEMPT_FIELD_NUMBER = 434771492;
1058   private com.google.cloud.compute.v1.ManagedInstanceLastAttempt lastAttempt_;
1059   /**
1060    *
1061    *
1062    * <pre>
1063    * [Output Only] Information about the last attempt to create or delete the instance.
1064    * </pre>
1065    *
1066    * <code>optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
1067    * </code>
1068    *
1069    * @return Whether the lastAttempt field is set.
1070    */
1071   @java.lang.Override
hasLastAttempt()1072   public boolean hasLastAttempt() {
1073     return ((bitField0_ & 0x00000010) != 0);
1074   }
1075   /**
1076    *
1077    *
1078    * <pre>
1079    * [Output Only] Information about the last attempt to create or delete the instance.
1080    * </pre>
1081    *
1082    * <code>optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
1083    * </code>
1084    *
1085    * @return The lastAttempt.
1086    */
1087   @java.lang.Override
getLastAttempt()1088   public com.google.cloud.compute.v1.ManagedInstanceLastAttempt getLastAttempt() {
1089     return lastAttempt_ == null
1090         ? com.google.cloud.compute.v1.ManagedInstanceLastAttempt.getDefaultInstance()
1091         : lastAttempt_;
1092   }
1093   /**
1094    *
1095    *
1096    * <pre>
1097    * [Output Only] Information about the last attempt to create or delete the instance.
1098    * </pre>
1099    *
1100    * <code>optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
1101    * </code>
1102    */
1103   @java.lang.Override
getLastAttemptOrBuilder()1104   public com.google.cloud.compute.v1.ManagedInstanceLastAttemptOrBuilder getLastAttemptOrBuilder() {
1105     return lastAttempt_ == null
1106         ? com.google.cloud.compute.v1.ManagedInstanceLastAttempt.getDefaultInstance()
1107         : lastAttempt_;
1108   }
1109 
1110   public static final int PRESERVED_STATE_FROM_CONFIG_FIELD_NUMBER = 98661858;
1111   private com.google.cloud.compute.v1.PreservedState preservedStateFromConfig_;
1112   /**
1113    *
1114    *
1115    * <pre>
1116    * [Output Only] Preserved state applied from per-instance config for this instance.
1117    * </pre>
1118    *
1119    * <code>optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
1120    * </code>
1121    *
1122    * @return Whether the preservedStateFromConfig field is set.
1123    */
1124   @java.lang.Override
hasPreservedStateFromConfig()1125   public boolean hasPreservedStateFromConfig() {
1126     return ((bitField0_ & 0x00000020) != 0);
1127   }
1128   /**
1129    *
1130    *
1131    * <pre>
1132    * [Output Only] Preserved state applied from per-instance config for this instance.
1133    * </pre>
1134    *
1135    * <code>optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
1136    * </code>
1137    *
1138    * @return The preservedStateFromConfig.
1139    */
1140   @java.lang.Override
getPreservedStateFromConfig()1141   public com.google.cloud.compute.v1.PreservedState getPreservedStateFromConfig() {
1142     return preservedStateFromConfig_ == null
1143         ? com.google.cloud.compute.v1.PreservedState.getDefaultInstance()
1144         : preservedStateFromConfig_;
1145   }
1146   /**
1147    *
1148    *
1149    * <pre>
1150    * [Output Only] Preserved state applied from per-instance config for this instance.
1151    * </pre>
1152    *
1153    * <code>optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
1154    * </code>
1155    */
1156   @java.lang.Override
1157   public com.google.cloud.compute.v1.PreservedStateOrBuilder
getPreservedStateFromConfigOrBuilder()1158       getPreservedStateFromConfigOrBuilder() {
1159     return preservedStateFromConfig_ == null
1160         ? com.google.cloud.compute.v1.PreservedState.getDefaultInstance()
1161         : preservedStateFromConfig_;
1162   }
1163 
1164   public static final int PRESERVED_STATE_FROM_POLICY_FIELD_NUMBER = 470783954;
1165   private com.google.cloud.compute.v1.PreservedState preservedStateFromPolicy_;
1166   /**
1167    *
1168    *
1169    * <pre>
1170    * [Output Only] Preserved state generated based on stateful policy for this instance.
1171    * </pre>
1172    *
1173    * <code>optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
1174    * </code>
1175    *
1176    * @return Whether the preservedStateFromPolicy field is set.
1177    */
1178   @java.lang.Override
hasPreservedStateFromPolicy()1179   public boolean hasPreservedStateFromPolicy() {
1180     return ((bitField0_ & 0x00000040) != 0);
1181   }
1182   /**
1183    *
1184    *
1185    * <pre>
1186    * [Output Only] Preserved state generated based on stateful policy for this instance.
1187    * </pre>
1188    *
1189    * <code>optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
1190    * </code>
1191    *
1192    * @return The preservedStateFromPolicy.
1193    */
1194   @java.lang.Override
getPreservedStateFromPolicy()1195   public com.google.cloud.compute.v1.PreservedState getPreservedStateFromPolicy() {
1196     return preservedStateFromPolicy_ == null
1197         ? com.google.cloud.compute.v1.PreservedState.getDefaultInstance()
1198         : preservedStateFromPolicy_;
1199   }
1200   /**
1201    *
1202    *
1203    * <pre>
1204    * [Output Only] Preserved state generated based on stateful policy for this instance.
1205    * </pre>
1206    *
1207    * <code>optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
1208    * </code>
1209    */
1210   @java.lang.Override
1211   public com.google.cloud.compute.v1.PreservedStateOrBuilder
getPreservedStateFromPolicyOrBuilder()1212       getPreservedStateFromPolicyOrBuilder() {
1213     return preservedStateFromPolicy_ == null
1214         ? com.google.cloud.compute.v1.PreservedState.getDefaultInstance()
1215         : preservedStateFromPolicy_;
1216   }
1217 
1218   public static final int VERSION_FIELD_NUMBER = 351608024;
1219   private com.google.cloud.compute.v1.ManagedInstanceVersion version_;
1220   /**
1221    *
1222    *
1223    * <pre>
1224    * [Output Only] Intended version of this instance.
1225    * </pre>
1226    *
1227    * <code>optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;</code>
1228    *
1229    * @return Whether the version field is set.
1230    */
1231   @java.lang.Override
hasVersion()1232   public boolean hasVersion() {
1233     return ((bitField0_ & 0x00000080) != 0);
1234   }
1235   /**
1236    *
1237    *
1238    * <pre>
1239    * [Output Only] Intended version of this instance.
1240    * </pre>
1241    *
1242    * <code>optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;</code>
1243    *
1244    * @return The version.
1245    */
1246   @java.lang.Override
getVersion()1247   public com.google.cloud.compute.v1.ManagedInstanceVersion getVersion() {
1248     return version_ == null
1249         ? com.google.cloud.compute.v1.ManagedInstanceVersion.getDefaultInstance()
1250         : version_;
1251   }
1252   /**
1253    *
1254    *
1255    * <pre>
1256    * [Output Only] Intended version of this instance.
1257    * </pre>
1258    *
1259    * <code>optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;</code>
1260    */
1261   @java.lang.Override
getVersionOrBuilder()1262   public com.google.cloud.compute.v1.ManagedInstanceVersionOrBuilder getVersionOrBuilder() {
1263     return version_ == null
1264         ? com.google.cloud.compute.v1.ManagedInstanceVersion.getDefaultInstance()
1265         : version_;
1266   }
1267 
1268   private byte memoizedIsInitialized = -1;
1269 
1270   @java.lang.Override
isInitialized()1271   public final boolean isInitialized() {
1272     byte isInitialized = memoizedIsInitialized;
1273     if (isInitialized == 1) return true;
1274     if (isInitialized == 0) return false;
1275 
1276     memoizedIsInitialized = 1;
1277     return true;
1278   }
1279 
1280   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1281   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1282     if (((bitField0_ & 0x00000002) != 0)) {
1283       output.writeUInt64(3355, id_);
1284     }
1285     if (((bitField0_ & 0x00000004) != 0)) {
1286       com.google.protobuf.GeneratedMessageV3.writeString(output, 18257045, instance_);
1287     }
1288     if (((bitField0_ & 0x00000020) != 0)) {
1289       output.writeMessage(98661858, getPreservedStateFromConfig());
1290     }
1291     if (((bitField0_ & 0x00000008) != 0)) {
1292       com.google.protobuf.GeneratedMessageV3.writeString(output, 174577372, instanceStatus_);
1293     }
1294     if (((bitField0_ & 0x00000001) != 0)) {
1295       com.google.protobuf.GeneratedMessageV3.writeString(output, 178475964, currentAction_);
1296     }
1297     if (((bitField0_ & 0x00000080) != 0)) {
1298       output.writeMessage(351608024, getVersion());
1299     }
1300     for (int i = 0; i < instanceHealth_.size(); i++) {
1301       output.writeMessage(382667078, instanceHealth_.get(i));
1302     }
1303     if (((bitField0_ & 0x00000010) != 0)) {
1304       output.writeMessage(434771492, getLastAttempt());
1305     }
1306     if (((bitField0_ & 0x00000040) != 0)) {
1307       output.writeMessage(470783954, getPreservedStateFromPolicy());
1308     }
1309     getUnknownFields().writeTo(output);
1310   }
1311 
1312   @java.lang.Override
getSerializedSize()1313   public int getSerializedSize() {
1314     int size = memoizedSize;
1315     if (size != -1) return size;
1316 
1317     size = 0;
1318     if (((bitField0_ & 0x00000002) != 0)) {
1319       size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_);
1320     }
1321     if (((bitField0_ & 0x00000004) != 0)) {
1322       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18257045, instance_);
1323     }
1324     if (((bitField0_ & 0x00000020) != 0)) {
1325       size +=
1326           com.google.protobuf.CodedOutputStream.computeMessageSize(
1327               98661858, getPreservedStateFromConfig());
1328     }
1329     if (((bitField0_ & 0x00000008) != 0)) {
1330       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(174577372, instanceStatus_);
1331     }
1332     if (((bitField0_ & 0x00000001) != 0)) {
1333       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(178475964, currentAction_);
1334     }
1335     if (((bitField0_ & 0x00000080) != 0)) {
1336       size += com.google.protobuf.CodedOutputStream.computeMessageSize(351608024, getVersion());
1337     }
1338     for (int i = 0; i < instanceHealth_.size(); i++) {
1339       size +=
1340           com.google.protobuf.CodedOutputStream.computeMessageSize(
1341               382667078, instanceHealth_.get(i));
1342     }
1343     if (((bitField0_ & 0x00000010) != 0)) {
1344       size += com.google.protobuf.CodedOutputStream.computeMessageSize(434771492, getLastAttempt());
1345     }
1346     if (((bitField0_ & 0x00000040) != 0)) {
1347       size +=
1348           com.google.protobuf.CodedOutputStream.computeMessageSize(
1349               470783954, getPreservedStateFromPolicy());
1350     }
1351     size += getUnknownFields().getSerializedSize();
1352     memoizedSize = size;
1353     return size;
1354   }
1355 
1356   @java.lang.Override
equals(final java.lang.Object obj)1357   public boolean equals(final java.lang.Object obj) {
1358     if (obj == this) {
1359       return true;
1360     }
1361     if (!(obj instanceof com.google.cloud.compute.v1.ManagedInstance)) {
1362       return super.equals(obj);
1363     }
1364     com.google.cloud.compute.v1.ManagedInstance other =
1365         (com.google.cloud.compute.v1.ManagedInstance) obj;
1366 
1367     if (hasCurrentAction() != other.hasCurrentAction()) return false;
1368     if (hasCurrentAction()) {
1369       if (!getCurrentAction().equals(other.getCurrentAction())) return false;
1370     }
1371     if (hasId() != other.hasId()) return false;
1372     if (hasId()) {
1373       if (getId() != other.getId()) return false;
1374     }
1375     if (hasInstance() != other.hasInstance()) return false;
1376     if (hasInstance()) {
1377       if (!getInstance().equals(other.getInstance())) return false;
1378     }
1379     if (!getInstanceHealthList().equals(other.getInstanceHealthList())) return false;
1380     if (hasInstanceStatus() != other.hasInstanceStatus()) return false;
1381     if (hasInstanceStatus()) {
1382       if (!getInstanceStatus().equals(other.getInstanceStatus())) return false;
1383     }
1384     if (hasLastAttempt() != other.hasLastAttempt()) return false;
1385     if (hasLastAttempt()) {
1386       if (!getLastAttempt().equals(other.getLastAttempt())) return false;
1387     }
1388     if (hasPreservedStateFromConfig() != other.hasPreservedStateFromConfig()) return false;
1389     if (hasPreservedStateFromConfig()) {
1390       if (!getPreservedStateFromConfig().equals(other.getPreservedStateFromConfig())) return false;
1391     }
1392     if (hasPreservedStateFromPolicy() != other.hasPreservedStateFromPolicy()) return false;
1393     if (hasPreservedStateFromPolicy()) {
1394       if (!getPreservedStateFromPolicy().equals(other.getPreservedStateFromPolicy())) return false;
1395     }
1396     if (hasVersion() != other.hasVersion()) return false;
1397     if (hasVersion()) {
1398       if (!getVersion().equals(other.getVersion())) return false;
1399     }
1400     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1401     return true;
1402   }
1403 
1404   @java.lang.Override
hashCode()1405   public int hashCode() {
1406     if (memoizedHashCode != 0) {
1407       return memoizedHashCode;
1408     }
1409     int hash = 41;
1410     hash = (19 * hash) + getDescriptor().hashCode();
1411     if (hasCurrentAction()) {
1412       hash = (37 * hash) + CURRENT_ACTION_FIELD_NUMBER;
1413       hash = (53 * hash) + getCurrentAction().hashCode();
1414     }
1415     if (hasId()) {
1416       hash = (37 * hash) + ID_FIELD_NUMBER;
1417       hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId());
1418     }
1419     if (hasInstance()) {
1420       hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
1421       hash = (53 * hash) + getInstance().hashCode();
1422     }
1423     if (getInstanceHealthCount() > 0) {
1424       hash = (37 * hash) + INSTANCE_HEALTH_FIELD_NUMBER;
1425       hash = (53 * hash) + getInstanceHealthList().hashCode();
1426     }
1427     if (hasInstanceStatus()) {
1428       hash = (37 * hash) + INSTANCE_STATUS_FIELD_NUMBER;
1429       hash = (53 * hash) + getInstanceStatus().hashCode();
1430     }
1431     if (hasLastAttempt()) {
1432       hash = (37 * hash) + LAST_ATTEMPT_FIELD_NUMBER;
1433       hash = (53 * hash) + getLastAttempt().hashCode();
1434     }
1435     if (hasPreservedStateFromConfig()) {
1436       hash = (37 * hash) + PRESERVED_STATE_FROM_CONFIG_FIELD_NUMBER;
1437       hash = (53 * hash) + getPreservedStateFromConfig().hashCode();
1438     }
1439     if (hasPreservedStateFromPolicy()) {
1440       hash = (37 * hash) + PRESERVED_STATE_FROM_POLICY_FIELD_NUMBER;
1441       hash = (53 * hash) + getPreservedStateFromPolicy().hashCode();
1442     }
1443     if (hasVersion()) {
1444       hash = (37 * hash) + VERSION_FIELD_NUMBER;
1445       hash = (53 * hash) + getVersion().hashCode();
1446     }
1447     hash = (29 * hash) + getUnknownFields().hashCode();
1448     memoizedHashCode = hash;
1449     return hash;
1450   }
1451 
parseFrom(java.nio.ByteBuffer data)1452   public static com.google.cloud.compute.v1.ManagedInstance parseFrom(java.nio.ByteBuffer data)
1453       throws com.google.protobuf.InvalidProtocolBufferException {
1454     return PARSER.parseFrom(data);
1455   }
1456 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1457   public static com.google.cloud.compute.v1.ManagedInstance parseFrom(
1458       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1459       throws com.google.protobuf.InvalidProtocolBufferException {
1460     return PARSER.parseFrom(data, extensionRegistry);
1461   }
1462 
parseFrom( com.google.protobuf.ByteString data)1463   public static com.google.cloud.compute.v1.ManagedInstance parseFrom(
1464       com.google.protobuf.ByteString data)
1465       throws com.google.protobuf.InvalidProtocolBufferException {
1466     return PARSER.parseFrom(data);
1467   }
1468 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1469   public static com.google.cloud.compute.v1.ManagedInstance parseFrom(
1470       com.google.protobuf.ByteString data,
1471       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1472       throws com.google.protobuf.InvalidProtocolBufferException {
1473     return PARSER.parseFrom(data, extensionRegistry);
1474   }
1475 
parseFrom(byte[] data)1476   public static com.google.cloud.compute.v1.ManagedInstance parseFrom(byte[] data)
1477       throws com.google.protobuf.InvalidProtocolBufferException {
1478     return PARSER.parseFrom(data);
1479   }
1480 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1481   public static com.google.cloud.compute.v1.ManagedInstance parseFrom(
1482       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1483       throws com.google.protobuf.InvalidProtocolBufferException {
1484     return PARSER.parseFrom(data, extensionRegistry);
1485   }
1486 
parseFrom(java.io.InputStream input)1487   public static com.google.cloud.compute.v1.ManagedInstance parseFrom(java.io.InputStream input)
1488       throws java.io.IOException {
1489     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1490   }
1491 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1492   public static com.google.cloud.compute.v1.ManagedInstance parseFrom(
1493       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1494       throws java.io.IOException {
1495     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1496         PARSER, input, extensionRegistry);
1497   }
1498 
parseDelimitedFrom( java.io.InputStream input)1499   public static com.google.cloud.compute.v1.ManagedInstance parseDelimitedFrom(
1500       java.io.InputStream input) throws java.io.IOException {
1501     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1502   }
1503 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1504   public static com.google.cloud.compute.v1.ManagedInstance parseDelimitedFrom(
1505       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1506       throws java.io.IOException {
1507     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1508         PARSER, input, extensionRegistry);
1509   }
1510 
parseFrom( com.google.protobuf.CodedInputStream input)1511   public static com.google.cloud.compute.v1.ManagedInstance parseFrom(
1512       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1513     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1514   }
1515 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1516   public static com.google.cloud.compute.v1.ManagedInstance parseFrom(
1517       com.google.protobuf.CodedInputStream input,
1518       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1519       throws java.io.IOException {
1520     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1521         PARSER, input, extensionRegistry);
1522   }
1523 
1524   @java.lang.Override
newBuilderForType()1525   public Builder newBuilderForType() {
1526     return newBuilder();
1527   }
1528 
newBuilder()1529   public static Builder newBuilder() {
1530     return DEFAULT_INSTANCE.toBuilder();
1531   }
1532 
newBuilder(com.google.cloud.compute.v1.ManagedInstance prototype)1533   public static Builder newBuilder(com.google.cloud.compute.v1.ManagedInstance prototype) {
1534     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1535   }
1536 
1537   @java.lang.Override
toBuilder()1538   public Builder toBuilder() {
1539     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1540   }
1541 
1542   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1543   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1544     Builder builder = new Builder(parent);
1545     return builder;
1546   }
1547   /**
1548    *
1549    *
1550    * <pre>
1551    * A Managed Instance resource.
1552    * </pre>
1553    *
1554    * Protobuf type {@code google.cloud.compute.v1.ManagedInstance}
1555    */
1556   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1557       implements
1558       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ManagedInstance)
1559       com.google.cloud.compute.v1.ManagedInstanceOrBuilder {
getDescriptor()1560     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1561       return com.google.cloud.compute.v1.Compute
1562           .internal_static_google_cloud_compute_v1_ManagedInstance_descriptor;
1563     }
1564 
1565     @java.lang.Override
1566     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1567         internalGetFieldAccessorTable() {
1568       return com.google.cloud.compute.v1.Compute
1569           .internal_static_google_cloud_compute_v1_ManagedInstance_fieldAccessorTable
1570           .ensureFieldAccessorsInitialized(
1571               com.google.cloud.compute.v1.ManagedInstance.class,
1572               com.google.cloud.compute.v1.ManagedInstance.Builder.class);
1573     }
1574 
1575     // Construct using com.google.cloud.compute.v1.ManagedInstance.newBuilder()
Builder()1576     private Builder() {
1577       maybeForceBuilderInitialization();
1578     }
1579 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1580     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1581       super(parent);
1582       maybeForceBuilderInitialization();
1583     }
1584 
maybeForceBuilderInitialization()1585     private void maybeForceBuilderInitialization() {
1586       if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
1587         getInstanceHealthFieldBuilder();
1588         getLastAttemptFieldBuilder();
1589         getPreservedStateFromConfigFieldBuilder();
1590         getPreservedStateFromPolicyFieldBuilder();
1591         getVersionFieldBuilder();
1592       }
1593     }
1594 
1595     @java.lang.Override
clear()1596     public Builder clear() {
1597       super.clear();
1598       bitField0_ = 0;
1599       currentAction_ = "";
1600       id_ = 0L;
1601       instance_ = "";
1602       if (instanceHealthBuilder_ == null) {
1603         instanceHealth_ = java.util.Collections.emptyList();
1604       } else {
1605         instanceHealth_ = null;
1606         instanceHealthBuilder_.clear();
1607       }
1608       bitField0_ = (bitField0_ & ~0x00000008);
1609       instanceStatus_ = "";
1610       lastAttempt_ = null;
1611       if (lastAttemptBuilder_ != null) {
1612         lastAttemptBuilder_.dispose();
1613         lastAttemptBuilder_ = null;
1614       }
1615       preservedStateFromConfig_ = null;
1616       if (preservedStateFromConfigBuilder_ != null) {
1617         preservedStateFromConfigBuilder_.dispose();
1618         preservedStateFromConfigBuilder_ = null;
1619       }
1620       preservedStateFromPolicy_ = null;
1621       if (preservedStateFromPolicyBuilder_ != null) {
1622         preservedStateFromPolicyBuilder_.dispose();
1623         preservedStateFromPolicyBuilder_ = null;
1624       }
1625       version_ = null;
1626       if (versionBuilder_ != null) {
1627         versionBuilder_.dispose();
1628         versionBuilder_ = null;
1629       }
1630       return this;
1631     }
1632 
1633     @java.lang.Override
getDescriptorForType()1634     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1635       return com.google.cloud.compute.v1.Compute
1636           .internal_static_google_cloud_compute_v1_ManagedInstance_descriptor;
1637     }
1638 
1639     @java.lang.Override
getDefaultInstanceForType()1640     public com.google.cloud.compute.v1.ManagedInstance getDefaultInstanceForType() {
1641       return com.google.cloud.compute.v1.ManagedInstance.getDefaultInstance();
1642     }
1643 
1644     @java.lang.Override
build()1645     public com.google.cloud.compute.v1.ManagedInstance build() {
1646       com.google.cloud.compute.v1.ManagedInstance result = buildPartial();
1647       if (!result.isInitialized()) {
1648         throw newUninitializedMessageException(result);
1649       }
1650       return result;
1651     }
1652 
1653     @java.lang.Override
buildPartial()1654     public com.google.cloud.compute.v1.ManagedInstance buildPartial() {
1655       com.google.cloud.compute.v1.ManagedInstance result =
1656           new com.google.cloud.compute.v1.ManagedInstance(this);
1657       buildPartialRepeatedFields(result);
1658       if (bitField0_ != 0) {
1659         buildPartial0(result);
1660       }
1661       onBuilt();
1662       return result;
1663     }
1664 
buildPartialRepeatedFields(com.google.cloud.compute.v1.ManagedInstance result)1665     private void buildPartialRepeatedFields(com.google.cloud.compute.v1.ManagedInstance result) {
1666       if (instanceHealthBuilder_ == null) {
1667         if (((bitField0_ & 0x00000008) != 0)) {
1668           instanceHealth_ = java.util.Collections.unmodifiableList(instanceHealth_);
1669           bitField0_ = (bitField0_ & ~0x00000008);
1670         }
1671         result.instanceHealth_ = instanceHealth_;
1672       } else {
1673         result.instanceHealth_ = instanceHealthBuilder_.build();
1674       }
1675     }
1676 
buildPartial0(com.google.cloud.compute.v1.ManagedInstance result)1677     private void buildPartial0(com.google.cloud.compute.v1.ManagedInstance result) {
1678       int from_bitField0_ = bitField0_;
1679       int to_bitField0_ = 0;
1680       if (((from_bitField0_ & 0x00000001) != 0)) {
1681         result.currentAction_ = currentAction_;
1682         to_bitField0_ |= 0x00000001;
1683       }
1684       if (((from_bitField0_ & 0x00000002) != 0)) {
1685         result.id_ = id_;
1686         to_bitField0_ |= 0x00000002;
1687       }
1688       if (((from_bitField0_ & 0x00000004) != 0)) {
1689         result.instance_ = instance_;
1690         to_bitField0_ |= 0x00000004;
1691       }
1692       if (((from_bitField0_ & 0x00000010) != 0)) {
1693         result.instanceStatus_ = instanceStatus_;
1694         to_bitField0_ |= 0x00000008;
1695       }
1696       if (((from_bitField0_ & 0x00000020) != 0)) {
1697         result.lastAttempt_ =
1698             lastAttemptBuilder_ == null ? lastAttempt_ : lastAttemptBuilder_.build();
1699         to_bitField0_ |= 0x00000010;
1700       }
1701       if (((from_bitField0_ & 0x00000040) != 0)) {
1702         result.preservedStateFromConfig_ =
1703             preservedStateFromConfigBuilder_ == null
1704                 ? preservedStateFromConfig_
1705                 : preservedStateFromConfigBuilder_.build();
1706         to_bitField0_ |= 0x00000020;
1707       }
1708       if (((from_bitField0_ & 0x00000080) != 0)) {
1709         result.preservedStateFromPolicy_ =
1710             preservedStateFromPolicyBuilder_ == null
1711                 ? preservedStateFromPolicy_
1712                 : preservedStateFromPolicyBuilder_.build();
1713         to_bitField0_ |= 0x00000040;
1714       }
1715       if (((from_bitField0_ & 0x00000100) != 0)) {
1716         result.version_ = versionBuilder_ == null ? version_ : versionBuilder_.build();
1717         to_bitField0_ |= 0x00000080;
1718       }
1719       result.bitField0_ |= to_bitField0_;
1720     }
1721 
1722     @java.lang.Override
clone()1723     public Builder clone() {
1724       return super.clone();
1725     }
1726 
1727     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1728     public Builder setField(
1729         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1730       return super.setField(field, value);
1731     }
1732 
1733     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1734     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1735       return super.clearField(field);
1736     }
1737 
1738     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1739     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1740       return super.clearOneof(oneof);
1741     }
1742 
1743     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1744     public Builder setRepeatedField(
1745         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1746       return super.setRepeatedField(field, index, value);
1747     }
1748 
1749     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1750     public Builder addRepeatedField(
1751         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1752       return super.addRepeatedField(field, value);
1753     }
1754 
1755     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1756     public Builder mergeFrom(com.google.protobuf.Message other) {
1757       if (other instanceof com.google.cloud.compute.v1.ManagedInstance) {
1758         return mergeFrom((com.google.cloud.compute.v1.ManagedInstance) other);
1759       } else {
1760         super.mergeFrom(other);
1761         return this;
1762       }
1763     }
1764 
mergeFrom(com.google.cloud.compute.v1.ManagedInstance other)1765     public Builder mergeFrom(com.google.cloud.compute.v1.ManagedInstance other) {
1766       if (other == com.google.cloud.compute.v1.ManagedInstance.getDefaultInstance()) return this;
1767       if (other.hasCurrentAction()) {
1768         currentAction_ = other.currentAction_;
1769         bitField0_ |= 0x00000001;
1770         onChanged();
1771       }
1772       if (other.hasId()) {
1773         setId(other.getId());
1774       }
1775       if (other.hasInstance()) {
1776         instance_ = other.instance_;
1777         bitField0_ |= 0x00000004;
1778         onChanged();
1779       }
1780       if (instanceHealthBuilder_ == null) {
1781         if (!other.instanceHealth_.isEmpty()) {
1782           if (instanceHealth_.isEmpty()) {
1783             instanceHealth_ = other.instanceHealth_;
1784             bitField0_ = (bitField0_ & ~0x00000008);
1785           } else {
1786             ensureInstanceHealthIsMutable();
1787             instanceHealth_.addAll(other.instanceHealth_);
1788           }
1789           onChanged();
1790         }
1791       } else {
1792         if (!other.instanceHealth_.isEmpty()) {
1793           if (instanceHealthBuilder_.isEmpty()) {
1794             instanceHealthBuilder_.dispose();
1795             instanceHealthBuilder_ = null;
1796             instanceHealth_ = other.instanceHealth_;
1797             bitField0_ = (bitField0_ & ~0x00000008);
1798             instanceHealthBuilder_ =
1799                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1800                     ? getInstanceHealthFieldBuilder()
1801                     : null;
1802           } else {
1803             instanceHealthBuilder_.addAllMessages(other.instanceHealth_);
1804           }
1805         }
1806       }
1807       if (other.hasInstanceStatus()) {
1808         instanceStatus_ = other.instanceStatus_;
1809         bitField0_ |= 0x00000010;
1810         onChanged();
1811       }
1812       if (other.hasLastAttempt()) {
1813         mergeLastAttempt(other.getLastAttempt());
1814       }
1815       if (other.hasPreservedStateFromConfig()) {
1816         mergePreservedStateFromConfig(other.getPreservedStateFromConfig());
1817       }
1818       if (other.hasPreservedStateFromPolicy()) {
1819         mergePreservedStateFromPolicy(other.getPreservedStateFromPolicy());
1820       }
1821       if (other.hasVersion()) {
1822         mergeVersion(other.getVersion());
1823       }
1824       this.mergeUnknownFields(other.getUnknownFields());
1825       onChanged();
1826       return this;
1827     }
1828 
1829     @java.lang.Override
isInitialized()1830     public final boolean isInitialized() {
1831       return true;
1832     }
1833 
1834     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1835     public Builder mergeFrom(
1836         com.google.protobuf.CodedInputStream input,
1837         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1838         throws java.io.IOException {
1839       if (extensionRegistry == null) {
1840         throw new java.lang.NullPointerException();
1841       }
1842       try {
1843         boolean done = false;
1844         while (!done) {
1845           int tag = input.readTag();
1846           switch (tag) {
1847             case 0:
1848               done = true;
1849               break;
1850             case 26840:
1851               {
1852                 id_ = input.readUInt64();
1853                 bitField0_ |= 0x00000002;
1854                 break;
1855               } // case 26840
1856             case 146056362:
1857               {
1858                 instance_ = input.readStringRequireUtf8();
1859                 bitField0_ |= 0x00000004;
1860                 break;
1861               } // case 146056362
1862             case 789294866:
1863               {
1864                 input.readMessage(
1865                     getPreservedStateFromConfigFieldBuilder().getBuilder(), extensionRegistry);
1866                 bitField0_ |= 0x00000040;
1867                 break;
1868               } // case 789294866
1869             case 1396618978:
1870               {
1871                 instanceStatus_ = input.readStringRequireUtf8();
1872                 bitField0_ |= 0x00000010;
1873                 break;
1874               } // case 1396618978
1875             case 1427807714:
1876               {
1877                 currentAction_ = input.readStringRequireUtf8();
1878                 bitField0_ |= 0x00000001;
1879                 break;
1880               } // case 1427807714
1881             case -1482103102:
1882               {
1883                 input.readMessage(getVersionFieldBuilder().getBuilder(), extensionRegistry);
1884                 bitField0_ |= 0x00000100;
1885                 break;
1886               } // case -1482103102
1887             case -1233630670:
1888               {
1889                 com.google.cloud.compute.v1.ManagedInstanceInstanceHealth m =
1890                     input.readMessage(
1891                         com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.parser(),
1892                         extensionRegistry);
1893                 if (instanceHealthBuilder_ == null) {
1894                   ensureInstanceHealthIsMutable();
1895                   instanceHealth_.add(m);
1896                 } else {
1897                   instanceHealthBuilder_.addMessage(m);
1898                 }
1899                 break;
1900               } // case -1233630670
1901             case -816795358:
1902               {
1903                 input.readMessage(getLastAttemptFieldBuilder().getBuilder(), extensionRegistry);
1904                 bitField0_ |= 0x00000020;
1905                 break;
1906               } // case -816795358
1907             case -528695662:
1908               {
1909                 input.readMessage(
1910                     getPreservedStateFromPolicyFieldBuilder().getBuilder(), extensionRegistry);
1911                 bitField0_ |= 0x00000080;
1912                 break;
1913               } // case -528695662
1914             default:
1915               {
1916                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1917                   done = true; // was an endgroup tag
1918                 }
1919                 break;
1920               } // default:
1921           } // switch (tag)
1922         } // while (!done)
1923       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1924         throw e.unwrapIOException();
1925       } finally {
1926         onChanged();
1927       } // finally
1928       return this;
1929     }
1930 
1931     private int bitField0_;
1932 
1933     private java.lang.Object currentAction_ = "";
1934     /**
1935      *
1936      *
1937      * <pre>
1938      * [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
1939      * Check the CurrentAction enum for the list of possible values.
1940      * </pre>
1941      *
1942      * <code>optional string current_action = 178475964;</code>
1943      *
1944      * @return Whether the currentAction field is set.
1945      */
hasCurrentAction()1946     public boolean hasCurrentAction() {
1947       return ((bitField0_ & 0x00000001) != 0);
1948     }
1949     /**
1950      *
1951      *
1952      * <pre>
1953      * [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
1954      * Check the CurrentAction enum for the list of possible values.
1955      * </pre>
1956      *
1957      * <code>optional string current_action = 178475964;</code>
1958      *
1959      * @return The currentAction.
1960      */
getCurrentAction()1961     public java.lang.String getCurrentAction() {
1962       java.lang.Object ref = currentAction_;
1963       if (!(ref instanceof java.lang.String)) {
1964         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1965         java.lang.String s = bs.toStringUtf8();
1966         currentAction_ = s;
1967         return s;
1968       } else {
1969         return (java.lang.String) ref;
1970       }
1971     }
1972     /**
1973      *
1974      *
1975      * <pre>
1976      * [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
1977      * Check the CurrentAction enum for the list of possible values.
1978      * </pre>
1979      *
1980      * <code>optional string current_action = 178475964;</code>
1981      *
1982      * @return The bytes for currentAction.
1983      */
getCurrentActionBytes()1984     public com.google.protobuf.ByteString getCurrentActionBytes() {
1985       java.lang.Object ref = currentAction_;
1986       if (ref instanceof String) {
1987         com.google.protobuf.ByteString b =
1988             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1989         currentAction_ = b;
1990         return b;
1991       } else {
1992         return (com.google.protobuf.ByteString) ref;
1993       }
1994     }
1995     /**
1996      *
1997      *
1998      * <pre>
1999      * [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
2000      * Check the CurrentAction enum for the list of possible values.
2001      * </pre>
2002      *
2003      * <code>optional string current_action = 178475964;</code>
2004      *
2005      * @param value The currentAction to set.
2006      * @return This builder for chaining.
2007      */
setCurrentAction(java.lang.String value)2008     public Builder setCurrentAction(java.lang.String value) {
2009       if (value == null) {
2010         throw new NullPointerException();
2011       }
2012       currentAction_ = value;
2013       bitField0_ |= 0x00000001;
2014       onChanged();
2015       return this;
2016     }
2017     /**
2018      *
2019      *
2020      * <pre>
2021      * [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
2022      * Check the CurrentAction enum for the list of possible values.
2023      * </pre>
2024      *
2025      * <code>optional string current_action = 178475964;</code>
2026      *
2027      * @return This builder for chaining.
2028      */
clearCurrentAction()2029     public Builder clearCurrentAction() {
2030       currentAction_ = getDefaultInstance().getCurrentAction();
2031       bitField0_ = (bitField0_ & ~0x00000001);
2032       onChanged();
2033       return this;
2034     }
2035     /**
2036      *
2037      *
2038      * <pre>
2039      * [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified.
2040      * Check the CurrentAction enum for the list of possible values.
2041      * </pre>
2042      *
2043      * <code>optional string current_action = 178475964;</code>
2044      *
2045      * @param value The bytes for currentAction to set.
2046      * @return This builder for chaining.
2047      */
setCurrentActionBytes(com.google.protobuf.ByteString value)2048     public Builder setCurrentActionBytes(com.google.protobuf.ByteString value) {
2049       if (value == null) {
2050         throw new NullPointerException();
2051       }
2052       checkByteStringIsUtf8(value);
2053       currentAction_ = value;
2054       bitField0_ |= 0x00000001;
2055       onChanged();
2056       return this;
2057     }
2058 
2059     private long id_;
2060     /**
2061      *
2062      *
2063      * <pre>
2064      * [Output only] The unique identifier for this resource. This field is empty when instance does not exist.
2065      * </pre>
2066      *
2067      * <code>optional uint64 id = 3355;</code>
2068      *
2069      * @return Whether the id field is set.
2070      */
2071     @java.lang.Override
hasId()2072     public boolean hasId() {
2073       return ((bitField0_ & 0x00000002) != 0);
2074     }
2075     /**
2076      *
2077      *
2078      * <pre>
2079      * [Output only] The unique identifier for this resource. This field is empty when instance does not exist.
2080      * </pre>
2081      *
2082      * <code>optional uint64 id = 3355;</code>
2083      *
2084      * @return The id.
2085      */
2086     @java.lang.Override
getId()2087     public long getId() {
2088       return id_;
2089     }
2090     /**
2091      *
2092      *
2093      * <pre>
2094      * [Output only] The unique identifier for this resource. This field is empty when instance does not exist.
2095      * </pre>
2096      *
2097      * <code>optional uint64 id = 3355;</code>
2098      *
2099      * @param value The id to set.
2100      * @return This builder for chaining.
2101      */
setId(long value)2102     public Builder setId(long value) {
2103 
2104       id_ = value;
2105       bitField0_ |= 0x00000002;
2106       onChanged();
2107       return this;
2108     }
2109     /**
2110      *
2111      *
2112      * <pre>
2113      * [Output only] The unique identifier for this resource. This field is empty when instance does not exist.
2114      * </pre>
2115      *
2116      * <code>optional uint64 id = 3355;</code>
2117      *
2118      * @return This builder for chaining.
2119      */
clearId()2120     public Builder clearId() {
2121       bitField0_ = (bitField0_ & ~0x00000002);
2122       id_ = 0L;
2123       onChanged();
2124       return this;
2125     }
2126 
2127     private java.lang.Object instance_ = "";
2128     /**
2129      *
2130      *
2131      * <pre>
2132      * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
2133      * </pre>
2134      *
2135      * <code>optional string instance = 18257045;</code>
2136      *
2137      * @return Whether the instance field is set.
2138      */
hasInstance()2139     public boolean hasInstance() {
2140       return ((bitField0_ & 0x00000004) != 0);
2141     }
2142     /**
2143      *
2144      *
2145      * <pre>
2146      * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
2147      * </pre>
2148      *
2149      * <code>optional string instance = 18257045;</code>
2150      *
2151      * @return The instance.
2152      */
getInstance()2153     public java.lang.String getInstance() {
2154       java.lang.Object ref = instance_;
2155       if (!(ref instanceof java.lang.String)) {
2156         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2157         java.lang.String s = bs.toStringUtf8();
2158         instance_ = s;
2159         return s;
2160       } else {
2161         return (java.lang.String) ref;
2162       }
2163     }
2164     /**
2165      *
2166      *
2167      * <pre>
2168      * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
2169      * </pre>
2170      *
2171      * <code>optional string instance = 18257045;</code>
2172      *
2173      * @return The bytes for instance.
2174      */
getInstanceBytes()2175     public com.google.protobuf.ByteString getInstanceBytes() {
2176       java.lang.Object ref = instance_;
2177       if (ref instanceof String) {
2178         com.google.protobuf.ByteString b =
2179             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2180         instance_ = b;
2181         return b;
2182       } else {
2183         return (com.google.protobuf.ByteString) ref;
2184       }
2185     }
2186     /**
2187      *
2188      *
2189      * <pre>
2190      * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
2191      * </pre>
2192      *
2193      * <code>optional string instance = 18257045;</code>
2194      *
2195      * @param value The instance to set.
2196      * @return This builder for chaining.
2197      */
setInstance(java.lang.String value)2198     public Builder setInstance(java.lang.String value) {
2199       if (value == null) {
2200         throw new NullPointerException();
2201       }
2202       instance_ = value;
2203       bitField0_ |= 0x00000004;
2204       onChanged();
2205       return this;
2206     }
2207     /**
2208      *
2209      *
2210      * <pre>
2211      * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
2212      * </pre>
2213      *
2214      * <code>optional string instance = 18257045;</code>
2215      *
2216      * @return This builder for chaining.
2217      */
clearInstance()2218     public Builder clearInstance() {
2219       instance_ = getDefaultInstance().getInstance();
2220       bitField0_ = (bitField0_ & ~0x00000004);
2221       onChanged();
2222       return this;
2223     }
2224     /**
2225      *
2226      *
2227      * <pre>
2228      * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
2229      * </pre>
2230      *
2231      * <code>optional string instance = 18257045;</code>
2232      *
2233      * @param value The bytes for instance to set.
2234      * @return This builder for chaining.
2235      */
setInstanceBytes(com.google.protobuf.ByteString value)2236     public Builder setInstanceBytes(com.google.protobuf.ByteString value) {
2237       if (value == null) {
2238         throw new NullPointerException();
2239       }
2240       checkByteStringIsUtf8(value);
2241       instance_ = value;
2242       bitField0_ |= 0x00000004;
2243       onChanged();
2244       return this;
2245     }
2246 
2247     private java.util.List<com.google.cloud.compute.v1.ManagedInstanceInstanceHealth>
2248         instanceHealth_ = java.util.Collections.emptyList();
2249 
ensureInstanceHealthIsMutable()2250     private void ensureInstanceHealthIsMutable() {
2251       if (!((bitField0_ & 0x00000008) != 0)) {
2252         instanceHealth_ =
2253             new java.util.ArrayList<com.google.cloud.compute.v1.ManagedInstanceInstanceHealth>(
2254                 instanceHealth_);
2255         bitField0_ |= 0x00000008;
2256       }
2257     }
2258 
2259     private com.google.protobuf.RepeatedFieldBuilderV3<
2260             com.google.cloud.compute.v1.ManagedInstanceInstanceHealth,
2261             com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder,
2262             com.google.cloud.compute.v1.ManagedInstanceInstanceHealthOrBuilder>
2263         instanceHealthBuilder_;
2264 
2265     /**
2266      *
2267      *
2268      * <pre>
2269      * [Output Only] Health state of the instance per health-check.
2270      * </pre>
2271      *
2272      * <code>
2273      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2274      * </code>
2275      */
2276     public java.util.List<com.google.cloud.compute.v1.ManagedInstanceInstanceHealth>
getInstanceHealthList()2277         getInstanceHealthList() {
2278       if (instanceHealthBuilder_ == null) {
2279         return java.util.Collections.unmodifiableList(instanceHealth_);
2280       } else {
2281         return instanceHealthBuilder_.getMessageList();
2282       }
2283     }
2284     /**
2285      *
2286      *
2287      * <pre>
2288      * [Output Only] Health state of the instance per health-check.
2289      * </pre>
2290      *
2291      * <code>
2292      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2293      * </code>
2294      */
getInstanceHealthCount()2295     public int getInstanceHealthCount() {
2296       if (instanceHealthBuilder_ == null) {
2297         return instanceHealth_.size();
2298       } else {
2299         return instanceHealthBuilder_.getCount();
2300       }
2301     }
2302     /**
2303      *
2304      *
2305      * <pre>
2306      * [Output Only] Health state of the instance per health-check.
2307      * </pre>
2308      *
2309      * <code>
2310      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2311      * </code>
2312      */
getInstanceHealth(int index)2313     public com.google.cloud.compute.v1.ManagedInstanceInstanceHealth getInstanceHealth(int index) {
2314       if (instanceHealthBuilder_ == null) {
2315         return instanceHealth_.get(index);
2316       } else {
2317         return instanceHealthBuilder_.getMessage(index);
2318       }
2319     }
2320     /**
2321      *
2322      *
2323      * <pre>
2324      * [Output Only] Health state of the instance per health-check.
2325      * </pre>
2326      *
2327      * <code>
2328      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2329      * </code>
2330      */
setInstanceHealth( int index, com.google.cloud.compute.v1.ManagedInstanceInstanceHealth value)2331     public Builder setInstanceHealth(
2332         int index, com.google.cloud.compute.v1.ManagedInstanceInstanceHealth value) {
2333       if (instanceHealthBuilder_ == null) {
2334         if (value == null) {
2335           throw new NullPointerException();
2336         }
2337         ensureInstanceHealthIsMutable();
2338         instanceHealth_.set(index, value);
2339         onChanged();
2340       } else {
2341         instanceHealthBuilder_.setMessage(index, value);
2342       }
2343       return this;
2344     }
2345     /**
2346      *
2347      *
2348      * <pre>
2349      * [Output Only] Health state of the instance per health-check.
2350      * </pre>
2351      *
2352      * <code>
2353      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2354      * </code>
2355      */
setInstanceHealth( int index, com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder builderForValue)2356     public Builder setInstanceHealth(
2357         int index,
2358         com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder builderForValue) {
2359       if (instanceHealthBuilder_ == null) {
2360         ensureInstanceHealthIsMutable();
2361         instanceHealth_.set(index, builderForValue.build());
2362         onChanged();
2363       } else {
2364         instanceHealthBuilder_.setMessage(index, builderForValue.build());
2365       }
2366       return this;
2367     }
2368     /**
2369      *
2370      *
2371      * <pre>
2372      * [Output Only] Health state of the instance per health-check.
2373      * </pre>
2374      *
2375      * <code>
2376      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2377      * </code>
2378      */
addInstanceHealth( com.google.cloud.compute.v1.ManagedInstanceInstanceHealth value)2379     public Builder addInstanceHealth(
2380         com.google.cloud.compute.v1.ManagedInstanceInstanceHealth value) {
2381       if (instanceHealthBuilder_ == null) {
2382         if (value == null) {
2383           throw new NullPointerException();
2384         }
2385         ensureInstanceHealthIsMutable();
2386         instanceHealth_.add(value);
2387         onChanged();
2388       } else {
2389         instanceHealthBuilder_.addMessage(value);
2390       }
2391       return this;
2392     }
2393     /**
2394      *
2395      *
2396      * <pre>
2397      * [Output Only] Health state of the instance per health-check.
2398      * </pre>
2399      *
2400      * <code>
2401      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2402      * </code>
2403      */
addInstanceHealth( int index, com.google.cloud.compute.v1.ManagedInstanceInstanceHealth value)2404     public Builder addInstanceHealth(
2405         int index, com.google.cloud.compute.v1.ManagedInstanceInstanceHealth value) {
2406       if (instanceHealthBuilder_ == null) {
2407         if (value == null) {
2408           throw new NullPointerException();
2409         }
2410         ensureInstanceHealthIsMutable();
2411         instanceHealth_.add(index, value);
2412         onChanged();
2413       } else {
2414         instanceHealthBuilder_.addMessage(index, value);
2415       }
2416       return this;
2417     }
2418     /**
2419      *
2420      *
2421      * <pre>
2422      * [Output Only] Health state of the instance per health-check.
2423      * </pre>
2424      *
2425      * <code>
2426      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2427      * </code>
2428      */
addInstanceHealth( com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder builderForValue)2429     public Builder addInstanceHealth(
2430         com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder builderForValue) {
2431       if (instanceHealthBuilder_ == null) {
2432         ensureInstanceHealthIsMutable();
2433         instanceHealth_.add(builderForValue.build());
2434         onChanged();
2435       } else {
2436         instanceHealthBuilder_.addMessage(builderForValue.build());
2437       }
2438       return this;
2439     }
2440     /**
2441      *
2442      *
2443      * <pre>
2444      * [Output Only] Health state of the instance per health-check.
2445      * </pre>
2446      *
2447      * <code>
2448      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2449      * </code>
2450      */
addInstanceHealth( int index, com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder builderForValue)2451     public Builder addInstanceHealth(
2452         int index,
2453         com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder builderForValue) {
2454       if (instanceHealthBuilder_ == null) {
2455         ensureInstanceHealthIsMutable();
2456         instanceHealth_.add(index, builderForValue.build());
2457         onChanged();
2458       } else {
2459         instanceHealthBuilder_.addMessage(index, builderForValue.build());
2460       }
2461       return this;
2462     }
2463     /**
2464      *
2465      *
2466      * <pre>
2467      * [Output Only] Health state of the instance per health-check.
2468      * </pre>
2469      *
2470      * <code>
2471      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2472      * </code>
2473      */
addAllInstanceHealth( java.lang.Iterable<? extends com.google.cloud.compute.v1.ManagedInstanceInstanceHealth> values)2474     public Builder addAllInstanceHealth(
2475         java.lang.Iterable<? extends com.google.cloud.compute.v1.ManagedInstanceInstanceHealth>
2476             values) {
2477       if (instanceHealthBuilder_ == null) {
2478         ensureInstanceHealthIsMutable();
2479         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceHealth_);
2480         onChanged();
2481       } else {
2482         instanceHealthBuilder_.addAllMessages(values);
2483       }
2484       return this;
2485     }
2486     /**
2487      *
2488      *
2489      * <pre>
2490      * [Output Only] Health state of the instance per health-check.
2491      * </pre>
2492      *
2493      * <code>
2494      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2495      * </code>
2496      */
clearInstanceHealth()2497     public Builder clearInstanceHealth() {
2498       if (instanceHealthBuilder_ == null) {
2499         instanceHealth_ = java.util.Collections.emptyList();
2500         bitField0_ = (bitField0_ & ~0x00000008);
2501         onChanged();
2502       } else {
2503         instanceHealthBuilder_.clear();
2504       }
2505       return this;
2506     }
2507     /**
2508      *
2509      *
2510      * <pre>
2511      * [Output Only] Health state of the instance per health-check.
2512      * </pre>
2513      *
2514      * <code>
2515      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2516      * </code>
2517      */
removeInstanceHealth(int index)2518     public Builder removeInstanceHealth(int index) {
2519       if (instanceHealthBuilder_ == null) {
2520         ensureInstanceHealthIsMutable();
2521         instanceHealth_.remove(index);
2522         onChanged();
2523       } else {
2524         instanceHealthBuilder_.remove(index);
2525       }
2526       return this;
2527     }
2528     /**
2529      *
2530      *
2531      * <pre>
2532      * [Output Only] Health state of the instance per health-check.
2533      * </pre>
2534      *
2535      * <code>
2536      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2537      * </code>
2538      */
2539     public com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder
getInstanceHealthBuilder(int index)2540         getInstanceHealthBuilder(int index) {
2541       return getInstanceHealthFieldBuilder().getBuilder(index);
2542     }
2543     /**
2544      *
2545      *
2546      * <pre>
2547      * [Output Only] Health state of the instance per health-check.
2548      * </pre>
2549      *
2550      * <code>
2551      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2552      * </code>
2553      */
2554     public com.google.cloud.compute.v1.ManagedInstanceInstanceHealthOrBuilder
getInstanceHealthOrBuilder(int index)2555         getInstanceHealthOrBuilder(int index) {
2556       if (instanceHealthBuilder_ == null) {
2557         return instanceHealth_.get(index);
2558       } else {
2559         return instanceHealthBuilder_.getMessageOrBuilder(index);
2560       }
2561     }
2562     /**
2563      *
2564      *
2565      * <pre>
2566      * [Output Only] Health state of the instance per health-check.
2567      * </pre>
2568      *
2569      * <code>
2570      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2571      * </code>
2572      */
2573     public java.util.List<
2574             ? extends com.google.cloud.compute.v1.ManagedInstanceInstanceHealthOrBuilder>
getInstanceHealthOrBuilderList()2575         getInstanceHealthOrBuilderList() {
2576       if (instanceHealthBuilder_ != null) {
2577         return instanceHealthBuilder_.getMessageOrBuilderList();
2578       } else {
2579         return java.util.Collections.unmodifiableList(instanceHealth_);
2580       }
2581     }
2582     /**
2583      *
2584      *
2585      * <pre>
2586      * [Output Only] Health state of the instance per health-check.
2587      * </pre>
2588      *
2589      * <code>
2590      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2591      * </code>
2592      */
2593     public com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder
addInstanceHealthBuilder()2594         addInstanceHealthBuilder() {
2595       return getInstanceHealthFieldBuilder()
2596           .addBuilder(
2597               com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.getDefaultInstance());
2598     }
2599     /**
2600      *
2601      *
2602      * <pre>
2603      * [Output Only] Health state of the instance per health-check.
2604      * </pre>
2605      *
2606      * <code>
2607      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2608      * </code>
2609      */
2610     public com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder
addInstanceHealthBuilder(int index)2611         addInstanceHealthBuilder(int index) {
2612       return getInstanceHealthFieldBuilder()
2613           .addBuilder(
2614               index,
2615               com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.getDefaultInstance());
2616     }
2617     /**
2618      *
2619      *
2620      * <pre>
2621      * [Output Only] Health state of the instance per health-check.
2622      * </pre>
2623      *
2624      * <code>
2625      * repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
2626      * </code>
2627      */
2628     public java.util.List<com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder>
getInstanceHealthBuilderList()2629         getInstanceHealthBuilderList() {
2630       return getInstanceHealthFieldBuilder().getBuilderList();
2631     }
2632 
2633     private com.google.protobuf.RepeatedFieldBuilderV3<
2634             com.google.cloud.compute.v1.ManagedInstanceInstanceHealth,
2635             com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder,
2636             com.google.cloud.compute.v1.ManagedInstanceInstanceHealthOrBuilder>
getInstanceHealthFieldBuilder()2637         getInstanceHealthFieldBuilder() {
2638       if (instanceHealthBuilder_ == null) {
2639         instanceHealthBuilder_ =
2640             new com.google.protobuf.RepeatedFieldBuilderV3<
2641                 com.google.cloud.compute.v1.ManagedInstanceInstanceHealth,
2642                 com.google.cloud.compute.v1.ManagedInstanceInstanceHealth.Builder,
2643                 com.google.cloud.compute.v1.ManagedInstanceInstanceHealthOrBuilder>(
2644                 instanceHealth_,
2645                 ((bitField0_ & 0x00000008) != 0),
2646                 getParentForChildren(),
2647                 isClean());
2648         instanceHealth_ = null;
2649       }
2650       return instanceHealthBuilder_;
2651     }
2652 
2653     private java.lang.Object instanceStatus_ = "";
2654     /**
2655      *
2656      *
2657      * <pre>
2658      * [Output Only] The status of the instance. This field is empty when the instance does not exist.
2659      * Check the InstanceStatus enum for the list of possible values.
2660      * </pre>
2661      *
2662      * <code>optional string instance_status = 174577372;</code>
2663      *
2664      * @return Whether the instanceStatus field is set.
2665      */
hasInstanceStatus()2666     public boolean hasInstanceStatus() {
2667       return ((bitField0_ & 0x00000010) != 0);
2668     }
2669     /**
2670      *
2671      *
2672      * <pre>
2673      * [Output Only] The status of the instance. This field is empty when the instance does not exist.
2674      * Check the InstanceStatus enum for the list of possible values.
2675      * </pre>
2676      *
2677      * <code>optional string instance_status = 174577372;</code>
2678      *
2679      * @return The instanceStatus.
2680      */
getInstanceStatus()2681     public java.lang.String getInstanceStatus() {
2682       java.lang.Object ref = instanceStatus_;
2683       if (!(ref instanceof java.lang.String)) {
2684         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2685         java.lang.String s = bs.toStringUtf8();
2686         instanceStatus_ = s;
2687         return s;
2688       } else {
2689         return (java.lang.String) ref;
2690       }
2691     }
2692     /**
2693      *
2694      *
2695      * <pre>
2696      * [Output Only] The status of the instance. This field is empty when the instance does not exist.
2697      * Check the InstanceStatus enum for the list of possible values.
2698      * </pre>
2699      *
2700      * <code>optional string instance_status = 174577372;</code>
2701      *
2702      * @return The bytes for instanceStatus.
2703      */
getInstanceStatusBytes()2704     public com.google.protobuf.ByteString getInstanceStatusBytes() {
2705       java.lang.Object ref = instanceStatus_;
2706       if (ref instanceof String) {
2707         com.google.protobuf.ByteString b =
2708             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2709         instanceStatus_ = b;
2710         return b;
2711       } else {
2712         return (com.google.protobuf.ByteString) ref;
2713       }
2714     }
2715     /**
2716      *
2717      *
2718      * <pre>
2719      * [Output Only] The status of the instance. This field is empty when the instance does not exist.
2720      * Check the InstanceStatus enum for the list of possible values.
2721      * </pre>
2722      *
2723      * <code>optional string instance_status = 174577372;</code>
2724      *
2725      * @param value The instanceStatus to set.
2726      * @return This builder for chaining.
2727      */
setInstanceStatus(java.lang.String value)2728     public Builder setInstanceStatus(java.lang.String value) {
2729       if (value == null) {
2730         throw new NullPointerException();
2731       }
2732       instanceStatus_ = value;
2733       bitField0_ |= 0x00000010;
2734       onChanged();
2735       return this;
2736     }
2737     /**
2738      *
2739      *
2740      * <pre>
2741      * [Output Only] The status of the instance. This field is empty when the instance does not exist.
2742      * Check the InstanceStatus enum for the list of possible values.
2743      * </pre>
2744      *
2745      * <code>optional string instance_status = 174577372;</code>
2746      *
2747      * @return This builder for chaining.
2748      */
clearInstanceStatus()2749     public Builder clearInstanceStatus() {
2750       instanceStatus_ = getDefaultInstance().getInstanceStatus();
2751       bitField0_ = (bitField0_ & ~0x00000010);
2752       onChanged();
2753       return this;
2754     }
2755     /**
2756      *
2757      *
2758      * <pre>
2759      * [Output Only] The status of the instance. This field is empty when the instance does not exist.
2760      * Check the InstanceStatus enum for the list of possible values.
2761      * </pre>
2762      *
2763      * <code>optional string instance_status = 174577372;</code>
2764      *
2765      * @param value The bytes for instanceStatus to set.
2766      * @return This builder for chaining.
2767      */
setInstanceStatusBytes(com.google.protobuf.ByteString value)2768     public Builder setInstanceStatusBytes(com.google.protobuf.ByteString value) {
2769       if (value == null) {
2770         throw new NullPointerException();
2771       }
2772       checkByteStringIsUtf8(value);
2773       instanceStatus_ = value;
2774       bitField0_ |= 0x00000010;
2775       onChanged();
2776       return this;
2777     }
2778 
2779     private com.google.cloud.compute.v1.ManagedInstanceLastAttempt lastAttempt_;
2780     private com.google.protobuf.SingleFieldBuilderV3<
2781             com.google.cloud.compute.v1.ManagedInstanceLastAttempt,
2782             com.google.cloud.compute.v1.ManagedInstanceLastAttempt.Builder,
2783             com.google.cloud.compute.v1.ManagedInstanceLastAttemptOrBuilder>
2784         lastAttemptBuilder_;
2785     /**
2786      *
2787      *
2788      * <pre>
2789      * [Output Only] Information about the last attempt to create or delete the instance.
2790      * </pre>
2791      *
2792      * <code>optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
2793      * </code>
2794      *
2795      * @return Whether the lastAttempt field is set.
2796      */
hasLastAttempt()2797     public boolean hasLastAttempt() {
2798       return ((bitField0_ & 0x00000020) != 0);
2799     }
2800     /**
2801      *
2802      *
2803      * <pre>
2804      * [Output Only] Information about the last attempt to create or delete the instance.
2805      * </pre>
2806      *
2807      * <code>optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
2808      * </code>
2809      *
2810      * @return The lastAttempt.
2811      */
getLastAttempt()2812     public com.google.cloud.compute.v1.ManagedInstanceLastAttempt getLastAttempt() {
2813       if (lastAttemptBuilder_ == null) {
2814         return lastAttempt_ == null
2815             ? com.google.cloud.compute.v1.ManagedInstanceLastAttempt.getDefaultInstance()
2816             : lastAttempt_;
2817       } else {
2818         return lastAttemptBuilder_.getMessage();
2819       }
2820     }
2821     /**
2822      *
2823      *
2824      * <pre>
2825      * [Output Only] Information about the last attempt to create or delete the instance.
2826      * </pre>
2827      *
2828      * <code>optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
2829      * </code>
2830      */
setLastAttempt(com.google.cloud.compute.v1.ManagedInstanceLastAttempt value)2831     public Builder setLastAttempt(com.google.cloud.compute.v1.ManagedInstanceLastAttempt value) {
2832       if (lastAttemptBuilder_ == null) {
2833         if (value == null) {
2834           throw new NullPointerException();
2835         }
2836         lastAttempt_ = value;
2837       } else {
2838         lastAttemptBuilder_.setMessage(value);
2839       }
2840       bitField0_ |= 0x00000020;
2841       onChanged();
2842       return this;
2843     }
2844     /**
2845      *
2846      *
2847      * <pre>
2848      * [Output Only] Information about the last attempt to create or delete the instance.
2849      * </pre>
2850      *
2851      * <code>optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
2852      * </code>
2853      */
setLastAttempt( com.google.cloud.compute.v1.ManagedInstanceLastAttempt.Builder builderForValue)2854     public Builder setLastAttempt(
2855         com.google.cloud.compute.v1.ManagedInstanceLastAttempt.Builder builderForValue) {
2856       if (lastAttemptBuilder_ == null) {
2857         lastAttempt_ = builderForValue.build();
2858       } else {
2859         lastAttemptBuilder_.setMessage(builderForValue.build());
2860       }
2861       bitField0_ |= 0x00000020;
2862       onChanged();
2863       return this;
2864     }
2865     /**
2866      *
2867      *
2868      * <pre>
2869      * [Output Only] Information about the last attempt to create or delete the instance.
2870      * </pre>
2871      *
2872      * <code>optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
2873      * </code>
2874      */
mergeLastAttempt(com.google.cloud.compute.v1.ManagedInstanceLastAttempt value)2875     public Builder mergeLastAttempt(com.google.cloud.compute.v1.ManagedInstanceLastAttempt value) {
2876       if (lastAttemptBuilder_ == null) {
2877         if (((bitField0_ & 0x00000020) != 0)
2878             && lastAttempt_ != null
2879             && lastAttempt_
2880                 != com.google.cloud.compute.v1.ManagedInstanceLastAttempt.getDefaultInstance()) {
2881           getLastAttemptBuilder().mergeFrom(value);
2882         } else {
2883           lastAttempt_ = value;
2884         }
2885       } else {
2886         lastAttemptBuilder_.mergeFrom(value);
2887       }
2888       bitField0_ |= 0x00000020;
2889       onChanged();
2890       return this;
2891     }
2892     /**
2893      *
2894      *
2895      * <pre>
2896      * [Output Only] Information about the last attempt to create or delete the instance.
2897      * </pre>
2898      *
2899      * <code>optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
2900      * </code>
2901      */
clearLastAttempt()2902     public Builder clearLastAttempt() {
2903       bitField0_ = (bitField0_ & ~0x00000020);
2904       lastAttempt_ = null;
2905       if (lastAttemptBuilder_ != null) {
2906         lastAttemptBuilder_.dispose();
2907         lastAttemptBuilder_ = null;
2908       }
2909       onChanged();
2910       return this;
2911     }
2912     /**
2913      *
2914      *
2915      * <pre>
2916      * [Output Only] Information about the last attempt to create or delete the instance.
2917      * </pre>
2918      *
2919      * <code>optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
2920      * </code>
2921      */
getLastAttemptBuilder()2922     public com.google.cloud.compute.v1.ManagedInstanceLastAttempt.Builder getLastAttemptBuilder() {
2923       bitField0_ |= 0x00000020;
2924       onChanged();
2925       return getLastAttemptFieldBuilder().getBuilder();
2926     }
2927     /**
2928      *
2929      *
2930      * <pre>
2931      * [Output Only] Information about the last attempt to create or delete the instance.
2932      * </pre>
2933      *
2934      * <code>optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
2935      * </code>
2936      */
2937     public com.google.cloud.compute.v1.ManagedInstanceLastAttemptOrBuilder
getLastAttemptOrBuilder()2938         getLastAttemptOrBuilder() {
2939       if (lastAttemptBuilder_ != null) {
2940         return lastAttemptBuilder_.getMessageOrBuilder();
2941       } else {
2942         return lastAttempt_ == null
2943             ? com.google.cloud.compute.v1.ManagedInstanceLastAttempt.getDefaultInstance()
2944             : lastAttempt_;
2945       }
2946     }
2947     /**
2948      *
2949      *
2950      * <pre>
2951      * [Output Only] Information about the last attempt to create or delete the instance.
2952      * </pre>
2953      *
2954      * <code>optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
2955      * </code>
2956      */
2957     private com.google.protobuf.SingleFieldBuilderV3<
2958             com.google.cloud.compute.v1.ManagedInstanceLastAttempt,
2959             com.google.cloud.compute.v1.ManagedInstanceLastAttempt.Builder,
2960             com.google.cloud.compute.v1.ManagedInstanceLastAttemptOrBuilder>
getLastAttemptFieldBuilder()2961         getLastAttemptFieldBuilder() {
2962       if (lastAttemptBuilder_ == null) {
2963         lastAttemptBuilder_ =
2964             new com.google.protobuf.SingleFieldBuilderV3<
2965                 com.google.cloud.compute.v1.ManagedInstanceLastAttempt,
2966                 com.google.cloud.compute.v1.ManagedInstanceLastAttempt.Builder,
2967                 com.google.cloud.compute.v1.ManagedInstanceLastAttemptOrBuilder>(
2968                 getLastAttempt(), getParentForChildren(), isClean());
2969         lastAttempt_ = null;
2970       }
2971       return lastAttemptBuilder_;
2972     }
2973 
2974     private com.google.cloud.compute.v1.PreservedState preservedStateFromConfig_;
2975     private com.google.protobuf.SingleFieldBuilderV3<
2976             com.google.cloud.compute.v1.PreservedState,
2977             com.google.cloud.compute.v1.PreservedState.Builder,
2978             com.google.cloud.compute.v1.PreservedStateOrBuilder>
2979         preservedStateFromConfigBuilder_;
2980     /**
2981      *
2982      *
2983      * <pre>
2984      * [Output Only] Preserved state applied from per-instance config for this instance.
2985      * </pre>
2986      *
2987      * <code>
2988      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
2989      * </code>
2990      *
2991      * @return Whether the preservedStateFromConfig field is set.
2992      */
hasPreservedStateFromConfig()2993     public boolean hasPreservedStateFromConfig() {
2994       return ((bitField0_ & 0x00000040) != 0);
2995     }
2996     /**
2997      *
2998      *
2999      * <pre>
3000      * [Output Only] Preserved state applied from per-instance config for this instance.
3001      * </pre>
3002      *
3003      * <code>
3004      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
3005      * </code>
3006      *
3007      * @return The preservedStateFromConfig.
3008      */
getPreservedStateFromConfig()3009     public com.google.cloud.compute.v1.PreservedState getPreservedStateFromConfig() {
3010       if (preservedStateFromConfigBuilder_ == null) {
3011         return preservedStateFromConfig_ == null
3012             ? com.google.cloud.compute.v1.PreservedState.getDefaultInstance()
3013             : preservedStateFromConfig_;
3014       } else {
3015         return preservedStateFromConfigBuilder_.getMessage();
3016       }
3017     }
3018     /**
3019      *
3020      *
3021      * <pre>
3022      * [Output Only] Preserved state applied from per-instance config for this instance.
3023      * </pre>
3024      *
3025      * <code>
3026      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
3027      * </code>
3028      */
setPreservedStateFromConfig(com.google.cloud.compute.v1.PreservedState value)3029     public Builder setPreservedStateFromConfig(com.google.cloud.compute.v1.PreservedState value) {
3030       if (preservedStateFromConfigBuilder_ == null) {
3031         if (value == null) {
3032           throw new NullPointerException();
3033         }
3034         preservedStateFromConfig_ = value;
3035       } else {
3036         preservedStateFromConfigBuilder_.setMessage(value);
3037       }
3038       bitField0_ |= 0x00000040;
3039       onChanged();
3040       return this;
3041     }
3042     /**
3043      *
3044      *
3045      * <pre>
3046      * [Output Only] Preserved state applied from per-instance config for this instance.
3047      * </pre>
3048      *
3049      * <code>
3050      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
3051      * </code>
3052      */
setPreservedStateFromConfig( com.google.cloud.compute.v1.PreservedState.Builder builderForValue)3053     public Builder setPreservedStateFromConfig(
3054         com.google.cloud.compute.v1.PreservedState.Builder builderForValue) {
3055       if (preservedStateFromConfigBuilder_ == null) {
3056         preservedStateFromConfig_ = builderForValue.build();
3057       } else {
3058         preservedStateFromConfigBuilder_.setMessage(builderForValue.build());
3059       }
3060       bitField0_ |= 0x00000040;
3061       onChanged();
3062       return this;
3063     }
3064     /**
3065      *
3066      *
3067      * <pre>
3068      * [Output Only] Preserved state applied from per-instance config for this instance.
3069      * </pre>
3070      *
3071      * <code>
3072      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
3073      * </code>
3074      */
mergePreservedStateFromConfig(com.google.cloud.compute.v1.PreservedState value)3075     public Builder mergePreservedStateFromConfig(com.google.cloud.compute.v1.PreservedState value) {
3076       if (preservedStateFromConfigBuilder_ == null) {
3077         if (((bitField0_ & 0x00000040) != 0)
3078             && preservedStateFromConfig_ != null
3079             && preservedStateFromConfig_
3080                 != com.google.cloud.compute.v1.PreservedState.getDefaultInstance()) {
3081           getPreservedStateFromConfigBuilder().mergeFrom(value);
3082         } else {
3083           preservedStateFromConfig_ = value;
3084         }
3085       } else {
3086         preservedStateFromConfigBuilder_.mergeFrom(value);
3087       }
3088       bitField0_ |= 0x00000040;
3089       onChanged();
3090       return this;
3091     }
3092     /**
3093      *
3094      *
3095      * <pre>
3096      * [Output Only] Preserved state applied from per-instance config for this instance.
3097      * </pre>
3098      *
3099      * <code>
3100      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
3101      * </code>
3102      */
clearPreservedStateFromConfig()3103     public Builder clearPreservedStateFromConfig() {
3104       bitField0_ = (bitField0_ & ~0x00000040);
3105       preservedStateFromConfig_ = null;
3106       if (preservedStateFromConfigBuilder_ != null) {
3107         preservedStateFromConfigBuilder_.dispose();
3108         preservedStateFromConfigBuilder_ = null;
3109       }
3110       onChanged();
3111       return this;
3112     }
3113     /**
3114      *
3115      *
3116      * <pre>
3117      * [Output Only] Preserved state applied from per-instance config for this instance.
3118      * </pre>
3119      *
3120      * <code>
3121      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
3122      * </code>
3123      */
getPreservedStateFromConfigBuilder()3124     public com.google.cloud.compute.v1.PreservedState.Builder getPreservedStateFromConfigBuilder() {
3125       bitField0_ |= 0x00000040;
3126       onChanged();
3127       return getPreservedStateFromConfigFieldBuilder().getBuilder();
3128     }
3129     /**
3130      *
3131      *
3132      * <pre>
3133      * [Output Only] Preserved state applied from per-instance config for this instance.
3134      * </pre>
3135      *
3136      * <code>
3137      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
3138      * </code>
3139      */
3140     public com.google.cloud.compute.v1.PreservedStateOrBuilder
getPreservedStateFromConfigOrBuilder()3141         getPreservedStateFromConfigOrBuilder() {
3142       if (preservedStateFromConfigBuilder_ != null) {
3143         return preservedStateFromConfigBuilder_.getMessageOrBuilder();
3144       } else {
3145         return preservedStateFromConfig_ == null
3146             ? com.google.cloud.compute.v1.PreservedState.getDefaultInstance()
3147             : preservedStateFromConfig_;
3148       }
3149     }
3150     /**
3151      *
3152      *
3153      * <pre>
3154      * [Output Only] Preserved state applied from per-instance config for this instance.
3155      * </pre>
3156      *
3157      * <code>
3158      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
3159      * </code>
3160      */
3161     private com.google.protobuf.SingleFieldBuilderV3<
3162             com.google.cloud.compute.v1.PreservedState,
3163             com.google.cloud.compute.v1.PreservedState.Builder,
3164             com.google.cloud.compute.v1.PreservedStateOrBuilder>
getPreservedStateFromConfigFieldBuilder()3165         getPreservedStateFromConfigFieldBuilder() {
3166       if (preservedStateFromConfigBuilder_ == null) {
3167         preservedStateFromConfigBuilder_ =
3168             new com.google.protobuf.SingleFieldBuilderV3<
3169                 com.google.cloud.compute.v1.PreservedState,
3170                 com.google.cloud.compute.v1.PreservedState.Builder,
3171                 com.google.cloud.compute.v1.PreservedStateOrBuilder>(
3172                 getPreservedStateFromConfig(), getParentForChildren(), isClean());
3173         preservedStateFromConfig_ = null;
3174       }
3175       return preservedStateFromConfigBuilder_;
3176     }
3177 
3178     private com.google.cloud.compute.v1.PreservedState preservedStateFromPolicy_;
3179     private com.google.protobuf.SingleFieldBuilderV3<
3180             com.google.cloud.compute.v1.PreservedState,
3181             com.google.cloud.compute.v1.PreservedState.Builder,
3182             com.google.cloud.compute.v1.PreservedStateOrBuilder>
3183         preservedStateFromPolicyBuilder_;
3184     /**
3185      *
3186      *
3187      * <pre>
3188      * [Output Only] Preserved state generated based on stateful policy for this instance.
3189      * </pre>
3190      *
3191      * <code>
3192      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
3193      * </code>
3194      *
3195      * @return Whether the preservedStateFromPolicy field is set.
3196      */
hasPreservedStateFromPolicy()3197     public boolean hasPreservedStateFromPolicy() {
3198       return ((bitField0_ & 0x00000080) != 0);
3199     }
3200     /**
3201      *
3202      *
3203      * <pre>
3204      * [Output Only] Preserved state generated based on stateful policy for this instance.
3205      * </pre>
3206      *
3207      * <code>
3208      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
3209      * </code>
3210      *
3211      * @return The preservedStateFromPolicy.
3212      */
getPreservedStateFromPolicy()3213     public com.google.cloud.compute.v1.PreservedState getPreservedStateFromPolicy() {
3214       if (preservedStateFromPolicyBuilder_ == null) {
3215         return preservedStateFromPolicy_ == null
3216             ? com.google.cloud.compute.v1.PreservedState.getDefaultInstance()
3217             : preservedStateFromPolicy_;
3218       } else {
3219         return preservedStateFromPolicyBuilder_.getMessage();
3220       }
3221     }
3222     /**
3223      *
3224      *
3225      * <pre>
3226      * [Output Only] Preserved state generated based on stateful policy for this instance.
3227      * </pre>
3228      *
3229      * <code>
3230      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
3231      * </code>
3232      */
setPreservedStateFromPolicy(com.google.cloud.compute.v1.PreservedState value)3233     public Builder setPreservedStateFromPolicy(com.google.cloud.compute.v1.PreservedState value) {
3234       if (preservedStateFromPolicyBuilder_ == null) {
3235         if (value == null) {
3236           throw new NullPointerException();
3237         }
3238         preservedStateFromPolicy_ = value;
3239       } else {
3240         preservedStateFromPolicyBuilder_.setMessage(value);
3241       }
3242       bitField0_ |= 0x00000080;
3243       onChanged();
3244       return this;
3245     }
3246     /**
3247      *
3248      *
3249      * <pre>
3250      * [Output Only] Preserved state generated based on stateful policy for this instance.
3251      * </pre>
3252      *
3253      * <code>
3254      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
3255      * </code>
3256      */
setPreservedStateFromPolicy( com.google.cloud.compute.v1.PreservedState.Builder builderForValue)3257     public Builder setPreservedStateFromPolicy(
3258         com.google.cloud.compute.v1.PreservedState.Builder builderForValue) {
3259       if (preservedStateFromPolicyBuilder_ == null) {
3260         preservedStateFromPolicy_ = builderForValue.build();
3261       } else {
3262         preservedStateFromPolicyBuilder_.setMessage(builderForValue.build());
3263       }
3264       bitField0_ |= 0x00000080;
3265       onChanged();
3266       return this;
3267     }
3268     /**
3269      *
3270      *
3271      * <pre>
3272      * [Output Only] Preserved state generated based on stateful policy for this instance.
3273      * </pre>
3274      *
3275      * <code>
3276      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
3277      * </code>
3278      */
mergePreservedStateFromPolicy(com.google.cloud.compute.v1.PreservedState value)3279     public Builder mergePreservedStateFromPolicy(com.google.cloud.compute.v1.PreservedState value) {
3280       if (preservedStateFromPolicyBuilder_ == null) {
3281         if (((bitField0_ & 0x00000080) != 0)
3282             && preservedStateFromPolicy_ != null
3283             && preservedStateFromPolicy_
3284                 != com.google.cloud.compute.v1.PreservedState.getDefaultInstance()) {
3285           getPreservedStateFromPolicyBuilder().mergeFrom(value);
3286         } else {
3287           preservedStateFromPolicy_ = value;
3288         }
3289       } else {
3290         preservedStateFromPolicyBuilder_.mergeFrom(value);
3291       }
3292       bitField0_ |= 0x00000080;
3293       onChanged();
3294       return this;
3295     }
3296     /**
3297      *
3298      *
3299      * <pre>
3300      * [Output Only] Preserved state generated based on stateful policy for this instance.
3301      * </pre>
3302      *
3303      * <code>
3304      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
3305      * </code>
3306      */
clearPreservedStateFromPolicy()3307     public Builder clearPreservedStateFromPolicy() {
3308       bitField0_ = (bitField0_ & ~0x00000080);
3309       preservedStateFromPolicy_ = null;
3310       if (preservedStateFromPolicyBuilder_ != null) {
3311         preservedStateFromPolicyBuilder_.dispose();
3312         preservedStateFromPolicyBuilder_ = null;
3313       }
3314       onChanged();
3315       return this;
3316     }
3317     /**
3318      *
3319      *
3320      * <pre>
3321      * [Output Only] Preserved state generated based on stateful policy for this instance.
3322      * </pre>
3323      *
3324      * <code>
3325      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
3326      * </code>
3327      */
getPreservedStateFromPolicyBuilder()3328     public com.google.cloud.compute.v1.PreservedState.Builder getPreservedStateFromPolicyBuilder() {
3329       bitField0_ |= 0x00000080;
3330       onChanged();
3331       return getPreservedStateFromPolicyFieldBuilder().getBuilder();
3332     }
3333     /**
3334      *
3335      *
3336      * <pre>
3337      * [Output Only] Preserved state generated based on stateful policy for this instance.
3338      * </pre>
3339      *
3340      * <code>
3341      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
3342      * </code>
3343      */
3344     public com.google.cloud.compute.v1.PreservedStateOrBuilder
getPreservedStateFromPolicyOrBuilder()3345         getPreservedStateFromPolicyOrBuilder() {
3346       if (preservedStateFromPolicyBuilder_ != null) {
3347         return preservedStateFromPolicyBuilder_.getMessageOrBuilder();
3348       } else {
3349         return preservedStateFromPolicy_ == null
3350             ? com.google.cloud.compute.v1.PreservedState.getDefaultInstance()
3351             : preservedStateFromPolicy_;
3352       }
3353     }
3354     /**
3355      *
3356      *
3357      * <pre>
3358      * [Output Only] Preserved state generated based on stateful policy for this instance.
3359      * </pre>
3360      *
3361      * <code>
3362      * optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
3363      * </code>
3364      */
3365     private com.google.protobuf.SingleFieldBuilderV3<
3366             com.google.cloud.compute.v1.PreservedState,
3367             com.google.cloud.compute.v1.PreservedState.Builder,
3368             com.google.cloud.compute.v1.PreservedStateOrBuilder>
getPreservedStateFromPolicyFieldBuilder()3369         getPreservedStateFromPolicyFieldBuilder() {
3370       if (preservedStateFromPolicyBuilder_ == null) {
3371         preservedStateFromPolicyBuilder_ =
3372             new com.google.protobuf.SingleFieldBuilderV3<
3373                 com.google.cloud.compute.v1.PreservedState,
3374                 com.google.cloud.compute.v1.PreservedState.Builder,
3375                 com.google.cloud.compute.v1.PreservedStateOrBuilder>(
3376                 getPreservedStateFromPolicy(), getParentForChildren(), isClean());
3377         preservedStateFromPolicy_ = null;
3378       }
3379       return preservedStateFromPolicyBuilder_;
3380     }
3381 
3382     private com.google.cloud.compute.v1.ManagedInstanceVersion version_;
3383     private com.google.protobuf.SingleFieldBuilderV3<
3384             com.google.cloud.compute.v1.ManagedInstanceVersion,
3385             com.google.cloud.compute.v1.ManagedInstanceVersion.Builder,
3386             com.google.cloud.compute.v1.ManagedInstanceVersionOrBuilder>
3387         versionBuilder_;
3388     /**
3389      *
3390      *
3391      * <pre>
3392      * [Output Only] Intended version of this instance.
3393      * </pre>
3394      *
3395      * <code>optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;</code>
3396      *
3397      * @return Whether the version field is set.
3398      */
hasVersion()3399     public boolean hasVersion() {
3400       return ((bitField0_ & 0x00000100) != 0);
3401     }
3402     /**
3403      *
3404      *
3405      * <pre>
3406      * [Output Only] Intended version of this instance.
3407      * </pre>
3408      *
3409      * <code>optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;</code>
3410      *
3411      * @return The version.
3412      */
getVersion()3413     public com.google.cloud.compute.v1.ManagedInstanceVersion getVersion() {
3414       if (versionBuilder_ == null) {
3415         return version_ == null
3416             ? com.google.cloud.compute.v1.ManagedInstanceVersion.getDefaultInstance()
3417             : version_;
3418       } else {
3419         return versionBuilder_.getMessage();
3420       }
3421     }
3422     /**
3423      *
3424      *
3425      * <pre>
3426      * [Output Only] Intended version of this instance.
3427      * </pre>
3428      *
3429      * <code>optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;</code>
3430      */
setVersion(com.google.cloud.compute.v1.ManagedInstanceVersion value)3431     public Builder setVersion(com.google.cloud.compute.v1.ManagedInstanceVersion value) {
3432       if (versionBuilder_ == null) {
3433         if (value == null) {
3434           throw new NullPointerException();
3435         }
3436         version_ = value;
3437       } else {
3438         versionBuilder_.setMessage(value);
3439       }
3440       bitField0_ |= 0x00000100;
3441       onChanged();
3442       return this;
3443     }
3444     /**
3445      *
3446      *
3447      * <pre>
3448      * [Output Only] Intended version of this instance.
3449      * </pre>
3450      *
3451      * <code>optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;</code>
3452      */
setVersion( com.google.cloud.compute.v1.ManagedInstanceVersion.Builder builderForValue)3453     public Builder setVersion(
3454         com.google.cloud.compute.v1.ManagedInstanceVersion.Builder builderForValue) {
3455       if (versionBuilder_ == null) {
3456         version_ = builderForValue.build();
3457       } else {
3458         versionBuilder_.setMessage(builderForValue.build());
3459       }
3460       bitField0_ |= 0x00000100;
3461       onChanged();
3462       return this;
3463     }
3464     /**
3465      *
3466      *
3467      * <pre>
3468      * [Output Only] Intended version of this instance.
3469      * </pre>
3470      *
3471      * <code>optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;</code>
3472      */
mergeVersion(com.google.cloud.compute.v1.ManagedInstanceVersion value)3473     public Builder mergeVersion(com.google.cloud.compute.v1.ManagedInstanceVersion value) {
3474       if (versionBuilder_ == null) {
3475         if (((bitField0_ & 0x00000100) != 0)
3476             && version_ != null
3477             && version_
3478                 != com.google.cloud.compute.v1.ManagedInstanceVersion.getDefaultInstance()) {
3479           getVersionBuilder().mergeFrom(value);
3480         } else {
3481           version_ = value;
3482         }
3483       } else {
3484         versionBuilder_.mergeFrom(value);
3485       }
3486       bitField0_ |= 0x00000100;
3487       onChanged();
3488       return this;
3489     }
3490     /**
3491      *
3492      *
3493      * <pre>
3494      * [Output Only] Intended version of this instance.
3495      * </pre>
3496      *
3497      * <code>optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;</code>
3498      */
clearVersion()3499     public Builder clearVersion() {
3500       bitField0_ = (bitField0_ & ~0x00000100);
3501       version_ = null;
3502       if (versionBuilder_ != null) {
3503         versionBuilder_.dispose();
3504         versionBuilder_ = null;
3505       }
3506       onChanged();
3507       return this;
3508     }
3509     /**
3510      *
3511      *
3512      * <pre>
3513      * [Output Only] Intended version of this instance.
3514      * </pre>
3515      *
3516      * <code>optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;</code>
3517      */
getVersionBuilder()3518     public com.google.cloud.compute.v1.ManagedInstanceVersion.Builder getVersionBuilder() {
3519       bitField0_ |= 0x00000100;
3520       onChanged();
3521       return getVersionFieldBuilder().getBuilder();
3522     }
3523     /**
3524      *
3525      *
3526      * <pre>
3527      * [Output Only] Intended version of this instance.
3528      * </pre>
3529      *
3530      * <code>optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;</code>
3531      */
getVersionOrBuilder()3532     public com.google.cloud.compute.v1.ManagedInstanceVersionOrBuilder getVersionOrBuilder() {
3533       if (versionBuilder_ != null) {
3534         return versionBuilder_.getMessageOrBuilder();
3535       } else {
3536         return version_ == null
3537             ? com.google.cloud.compute.v1.ManagedInstanceVersion.getDefaultInstance()
3538             : version_;
3539       }
3540     }
3541     /**
3542      *
3543      *
3544      * <pre>
3545      * [Output Only] Intended version of this instance.
3546      * </pre>
3547      *
3548      * <code>optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;</code>
3549      */
3550     private com.google.protobuf.SingleFieldBuilderV3<
3551             com.google.cloud.compute.v1.ManagedInstanceVersion,
3552             com.google.cloud.compute.v1.ManagedInstanceVersion.Builder,
3553             com.google.cloud.compute.v1.ManagedInstanceVersionOrBuilder>
getVersionFieldBuilder()3554         getVersionFieldBuilder() {
3555       if (versionBuilder_ == null) {
3556         versionBuilder_ =
3557             new com.google.protobuf.SingleFieldBuilderV3<
3558                 com.google.cloud.compute.v1.ManagedInstanceVersion,
3559                 com.google.cloud.compute.v1.ManagedInstanceVersion.Builder,
3560                 com.google.cloud.compute.v1.ManagedInstanceVersionOrBuilder>(
3561                 getVersion(), getParentForChildren(), isClean());
3562         version_ = null;
3563       }
3564       return versionBuilder_;
3565     }
3566 
3567     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3568     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
3569       return super.setUnknownFields(unknownFields);
3570     }
3571 
3572     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3573     public final Builder mergeUnknownFields(
3574         final com.google.protobuf.UnknownFieldSet unknownFields) {
3575       return super.mergeUnknownFields(unknownFields);
3576     }
3577 
3578     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ManagedInstance)
3579   }
3580 
3581   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ManagedInstance)
3582   private static final com.google.cloud.compute.v1.ManagedInstance DEFAULT_INSTANCE;
3583 
3584   static {
3585     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ManagedInstance();
3586   }
3587 
getDefaultInstance()3588   public static com.google.cloud.compute.v1.ManagedInstance getDefaultInstance() {
3589     return DEFAULT_INSTANCE;
3590   }
3591 
3592   private static final com.google.protobuf.Parser<ManagedInstance> PARSER =
3593       new com.google.protobuf.AbstractParser<ManagedInstance>() {
3594         @java.lang.Override
3595         public ManagedInstance parsePartialFrom(
3596             com.google.protobuf.CodedInputStream input,
3597             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3598             throws com.google.protobuf.InvalidProtocolBufferException {
3599           Builder builder = newBuilder();
3600           try {
3601             builder.mergeFrom(input, extensionRegistry);
3602           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3603             throw e.setUnfinishedMessage(builder.buildPartial());
3604           } catch (com.google.protobuf.UninitializedMessageException e) {
3605             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3606           } catch (java.io.IOException e) {
3607             throw new com.google.protobuf.InvalidProtocolBufferException(e)
3608                 .setUnfinishedMessage(builder.buildPartial());
3609           }
3610           return builder.buildPartial();
3611         }
3612       };
3613 
parser()3614   public static com.google.protobuf.Parser<ManagedInstance> parser() {
3615     return PARSER;
3616   }
3617 
3618   @java.lang.Override
getParserForType()3619   public com.google.protobuf.Parser<ManagedInstance> getParserForType() {
3620     return PARSER;
3621   }
3622 
3623   @java.lang.Override
getDefaultInstanceForType()3624   public com.google.cloud.compute.v1.ManagedInstance getDefaultInstanceForType() {
3625     return DEFAULT_INSTANCE;
3626   }
3627 }
3628