• 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 request message for Instances.Update. See the method description for details.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.UpdateInstanceRequest}
29  */
30 public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.UpdateInstanceRequest)
33     UpdateInstanceRequestOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use UpdateInstanceRequest.newBuilder() to construct.
UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
UpdateInstanceRequest()40   private UpdateInstanceRequest() {
41     instance_ = "";
42     minimalAction_ = "";
43     mostDisruptiveAllowedAction_ = "";
44     project_ = "";
45     requestId_ = "";
46     zone_ = "";
47   }
48 
49   @java.lang.Override
50   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)51   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
52     return new UpdateInstanceRequest();
53   }
54 
55   @java.lang.Override
getUnknownFields()56   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
57     return this.unknownFields;
58   }
59 
getDescriptor()60   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
61     return com.google.cloud.compute.v1.Compute
62         .internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor;
63   }
64 
65   @java.lang.Override
66   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()67       internalGetFieldAccessorTable() {
68     return com.google.cloud.compute.v1.Compute
69         .internal_static_google_cloud_compute_v1_UpdateInstanceRequest_fieldAccessorTable
70         .ensureFieldAccessorsInitialized(
71             com.google.cloud.compute.v1.UpdateInstanceRequest.class,
72             com.google.cloud.compute.v1.UpdateInstanceRequest.Builder.class);
73   }
74 
75   /**
76    *
77    *
78    * <pre>
79    * Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
80    * Additional supported values which may be not listed in the enum directly due to technical reasons:
81    * INVALID
82    * NO_EFFECT
83    * REFRESH
84    * RESTART
85    * </pre>
86    *
87    * Protobuf enum {@code google.cloud.compute.v1.UpdateInstanceRequest.MinimalAction}
88    */
89   public enum MinimalAction implements com.google.protobuf.ProtocolMessageEnum {
90     /**
91      *
92      *
93      * <pre>
94      * A value indicating that the enum field is not set.
95      * </pre>
96      *
97      * <code>UNDEFINED_MINIMAL_ACTION = 0;</code>
98      */
99     UNDEFINED_MINIMAL_ACTION(0),
100     UNRECOGNIZED(-1),
101     ;
102 
103     /**
104      *
105      *
106      * <pre>
107      * A value indicating that the enum field is not set.
108      * </pre>
109      *
110      * <code>UNDEFINED_MINIMAL_ACTION = 0;</code>
111      */
112     public static final int UNDEFINED_MINIMAL_ACTION_VALUE = 0;
113 
getNumber()114     public final int getNumber() {
115       if (this == UNRECOGNIZED) {
116         throw new java.lang.IllegalArgumentException(
117             "Can't get the number of an unknown enum value.");
118       }
119       return value;
120     }
121 
122     /**
123      * @param value The numeric wire value of the corresponding enum entry.
124      * @return The enum associated with the given numeric wire value.
125      * @deprecated Use {@link #forNumber(int)} instead.
126      */
127     @java.lang.Deprecated
valueOf(int value)128     public static MinimalAction valueOf(int value) {
129       return forNumber(value);
130     }
131 
132     /**
133      * @param value The numeric wire value of the corresponding enum entry.
134      * @return The enum associated with the given numeric wire value.
135      */
forNumber(int value)136     public static MinimalAction forNumber(int value) {
137       switch (value) {
138         case 0:
139           return UNDEFINED_MINIMAL_ACTION;
140         default:
141           return null;
142       }
143     }
144 
internalGetValueMap()145     public static com.google.protobuf.Internal.EnumLiteMap<MinimalAction> internalGetValueMap() {
146       return internalValueMap;
147     }
148 
149     private static final com.google.protobuf.Internal.EnumLiteMap<MinimalAction> internalValueMap =
150         new com.google.protobuf.Internal.EnumLiteMap<MinimalAction>() {
151           public MinimalAction findValueByNumber(int number) {
152             return MinimalAction.forNumber(number);
153           }
154         };
155 
getValueDescriptor()156     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
157       if (this == UNRECOGNIZED) {
158         throw new java.lang.IllegalStateException(
159             "Can't get the descriptor of an unrecognized enum value.");
160       }
161       return getDescriptor().getValues().get(ordinal());
162     }
163 
getDescriptorForType()164     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
165       return getDescriptor();
166     }
167 
getDescriptor()168     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
169       return com.google.cloud.compute.v1.UpdateInstanceRequest.getDescriptor()
170           .getEnumTypes()
171           .get(0);
172     }
173 
174     private static final MinimalAction[] VALUES = values();
175 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)176     public static MinimalAction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
177       if (desc.getType() != getDescriptor()) {
178         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
179       }
180       if (desc.getIndex() == -1) {
181         return UNRECOGNIZED;
182       }
183       return VALUES[desc.getIndex()];
184     }
185 
186     private final int value;
187 
MinimalAction(int value)188     private MinimalAction(int value) {
189       this.value = value;
190     }
191 
192     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.UpdateInstanceRequest.MinimalAction)
193   }
194 
195   /**
196    *
197    *
198    * <pre>
199    * Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
200    * Additional supported values which may be not listed in the enum directly due to technical reasons:
201    * INVALID
202    * NO_EFFECT
203    * REFRESH
204    * RESTART
205    * </pre>
206    *
207    * Protobuf enum {@code google.cloud.compute.v1.UpdateInstanceRequest.MostDisruptiveAllowedAction}
208    */
209   public enum MostDisruptiveAllowedAction implements com.google.protobuf.ProtocolMessageEnum {
210     /**
211      *
212      *
213      * <pre>
214      * A value indicating that the enum field is not set.
215      * </pre>
216      *
217      * <code>UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION = 0;</code>
218      */
219     UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION(0),
220     UNRECOGNIZED(-1),
221     ;
222 
223     /**
224      *
225      *
226      * <pre>
227      * A value indicating that the enum field is not set.
228      * </pre>
229      *
230      * <code>UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION = 0;</code>
231      */
232     public static final int UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION_VALUE = 0;
233 
getNumber()234     public final int getNumber() {
235       if (this == UNRECOGNIZED) {
236         throw new java.lang.IllegalArgumentException(
237             "Can't get the number of an unknown enum value.");
238       }
239       return value;
240     }
241 
242     /**
243      * @param value The numeric wire value of the corresponding enum entry.
244      * @return The enum associated with the given numeric wire value.
245      * @deprecated Use {@link #forNumber(int)} instead.
246      */
247     @java.lang.Deprecated
valueOf(int value)248     public static MostDisruptiveAllowedAction valueOf(int value) {
249       return forNumber(value);
250     }
251 
252     /**
253      * @param value The numeric wire value of the corresponding enum entry.
254      * @return The enum associated with the given numeric wire value.
255      */
forNumber(int value)256     public static MostDisruptiveAllowedAction forNumber(int value) {
257       switch (value) {
258         case 0:
259           return UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION;
260         default:
261           return null;
262       }
263     }
264 
265     public static com.google.protobuf.Internal.EnumLiteMap<MostDisruptiveAllowedAction>
internalGetValueMap()266         internalGetValueMap() {
267       return internalValueMap;
268     }
269 
270     private static final com.google.protobuf.Internal.EnumLiteMap<MostDisruptiveAllowedAction>
271         internalValueMap =
272             new com.google.protobuf.Internal.EnumLiteMap<MostDisruptiveAllowedAction>() {
273               public MostDisruptiveAllowedAction findValueByNumber(int number) {
274                 return MostDisruptiveAllowedAction.forNumber(number);
275               }
276             };
277 
getValueDescriptor()278     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
279       if (this == UNRECOGNIZED) {
280         throw new java.lang.IllegalStateException(
281             "Can't get the descriptor of an unrecognized enum value.");
282       }
283       return getDescriptor().getValues().get(ordinal());
284     }
285 
getDescriptorForType()286     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
287       return getDescriptor();
288     }
289 
getDescriptor()290     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
291       return com.google.cloud.compute.v1.UpdateInstanceRequest.getDescriptor()
292           .getEnumTypes()
293           .get(1);
294     }
295 
296     private static final MostDisruptiveAllowedAction[] VALUES = values();
297 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)298     public static MostDisruptiveAllowedAction valueOf(
299         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
300       if (desc.getType() != getDescriptor()) {
301         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
302       }
303       if (desc.getIndex() == -1) {
304         return UNRECOGNIZED;
305       }
306       return VALUES[desc.getIndex()];
307     }
308 
309     private final int value;
310 
MostDisruptiveAllowedAction(int value)311     private MostDisruptiveAllowedAction(int value) {
312       this.value = value;
313     }
314 
315     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.UpdateInstanceRequest.MostDisruptiveAllowedAction)
316   }
317 
318   private int bitField0_;
319   public static final int INSTANCE_FIELD_NUMBER = 18257045;
320 
321   @SuppressWarnings("serial")
322   private volatile java.lang.Object instance_ = "";
323   /**
324    *
325    *
326    * <pre>
327    * Name of the instance resource to update.
328    * </pre>
329    *
330    * <code>string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];</code>
331    *
332    * @return The instance.
333    */
334   @java.lang.Override
getInstance()335   public java.lang.String getInstance() {
336     java.lang.Object ref = instance_;
337     if (ref instanceof java.lang.String) {
338       return (java.lang.String) ref;
339     } else {
340       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
341       java.lang.String s = bs.toStringUtf8();
342       instance_ = s;
343       return s;
344     }
345   }
346   /**
347    *
348    *
349    * <pre>
350    * Name of the instance resource to update.
351    * </pre>
352    *
353    * <code>string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];</code>
354    *
355    * @return The bytes for instance.
356    */
357   @java.lang.Override
getInstanceBytes()358   public com.google.protobuf.ByteString getInstanceBytes() {
359     java.lang.Object ref = instance_;
360     if (ref instanceof java.lang.String) {
361       com.google.protobuf.ByteString b =
362           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
363       instance_ = b;
364       return b;
365     } else {
366       return (com.google.protobuf.ByteString) ref;
367     }
368   }
369 
370   public static final int INSTANCE_RESOURCE_FIELD_NUMBER = 215988344;
371   private com.google.cloud.compute.v1.Instance instanceResource_;
372   /**
373    *
374    *
375    * <pre>
376    * The body resource for this request
377    * </pre>
378    *
379    * <code>
380    * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED];
381    * </code>
382    *
383    * @return Whether the instanceResource field is set.
384    */
385   @java.lang.Override
hasInstanceResource()386   public boolean hasInstanceResource() {
387     return instanceResource_ != null;
388   }
389   /**
390    *
391    *
392    * <pre>
393    * The body resource for this request
394    * </pre>
395    *
396    * <code>
397    * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED];
398    * </code>
399    *
400    * @return The instanceResource.
401    */
402   @java.lang.Override
getInstanceResource()403   public com.google.cloud.compute.v1.Instance getInstanceResource() {
404     return instanceResource_ == null
405         ? com.google.cloud.compute.v1.Instance.getDefaultInstance()
406         : instanceResource_;
407   }
408   /**
409    *
410    *
411    * <pre>
412    * The body resource for this request
413    * </pre>
414    *
415    * <code>
416    * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED];
417    * </code>
418    */
419   @java.lang.Override
getInstanceResourceOrBuilder()420   public com.google.cloud.compute.v1.InstanceOrBuilder getInstanceResourceOrBuilder() {
421     return instanceResource_ == null
422         ? com.google.cloud.compute.v1.Instance.getDefaultInstance()
423         : instanceResource_;
424   }
425 
426   public static final int MINIMAL_ACTION_FIELD_NUMBER = 270567060;
427 
428   @SuppressWarnings("serial")
429   private volatile java.lang.Object minimalAction_ = "";
430   /**
431    *
432    *
433    * <pre>
434    * Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
435    * Check the MinimalAction enum for the list of possible values.
436    * </pre>
437    *
438    * <code>optional string minimal_action = 270567060;</code>
439    *
440    * @return Whether the minimalAction field is set.
441    */
442   @java.lang.Override
hasMinimalAction()443   public boolean hasMinimalAction() {
444     return ((bitField0_ & 0x00000001) != 0);
445   }
446   /**
447    *
448    *
449    * <pre>
450    * Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
451    * Check the MinimalAction enum for the list of possible values.
452    * </pre>
453    *
454    * <code>optional string minimal_action = 270567060;</code>
455    *
456    * @return The minimalAction.
457    */
458   @java.lang.Override
getMinimalAction()459   public java.lang.String getMinimalAction() {
460     java.lang.Object ref = minimalAction_;
461     if (ref instanceof java.lang.String) {
462       return (java.lang.String) ref;
463     } else {
464       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
465       java.lang.String s = bs.toStringUtf8();
466       minimalAction_ = s;
467       return s;
468     }
469   }
470   /**
471    *
472    *
473    * <pre>
474    * Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
475    * Check the MinimalAction enum for the list of possible values.
476    * </pre>
477    *
478    * <code>optional string minimal_action = 270567060;</code>
479    *
480    * @return The bytes for minimalAction.
481    */
482   @java.lang.Override
getMinimalActionBytes()483   public com.google.protobuf.ByteString getMinimalActionBytes() {
484     java.lang.Object ref = minimalAction_;
485     if (ref instanceof java.lang.String) {
486       com.google.protobuf.ByteString b =
487           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
488       minimalAction_ = b;
489       return b;
490     } else {
491       return (com.google.protobuf.ByteString) ref;
492     }
493   }
494 
495   public static final int MOST_DISRUPTIVE_ALLOWED_ACTION_FIELD_NUMBER = 66103053;
496 
497   @SuppressWarnings("serial")
498   private volatile java.lang.Object mostDisruptiveAllowedAction_ = "";
499   /**
500    *
501    *
502    * <pre>
503    * Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
504    * Check the MostDisruptiveAllowedAction enum for the list of possible values.
505    * </pre>
506    *
507    * <code>optional string most_disruptive_allowed_action = 66103053;</code>
508    *
509    * @return Whether the mostDisruptiveAllowedAction field is set.
510    */
511   @java.lang.Override
hasMostDisruptiveAllowedAction()512   public boolean hasMostDisruptiveAllowedAction() {
513     return ((bitField0_ & 0x00000002) != 0);
514   }
515   /**
516    *
517    *
518    * <pre>
519    * Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
520    * Check the MostDisruptiveAllowedAction enum for the list of possible values.
521    * </pre>
522    *
523    * <code>optional string most_disruptive_allowed_action = 66103053;</code>
524    *
525    * @return The mostDisruptiveAllowedAction.
526    */
527   @java.lang.Override
getMostDisruptiveAllowedAction()528   public java.lang.String getMostDisruptiveAllowedAction() {
529     java.lang.Object ref = mostDisruptiveAllowedAction_;
530     if (ref instanceof java.lang.String) {
531       return (java.lang.String) ref;
532     } else {
533       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
534       java.lang.String s = bs.toStringUtf8();
535       mostDisruptiveAllowedAction_ = s;
536       return s;
537     }
538   }
539   /**
540    *
541    *
542    * <pre>
543    * Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
544    * Check the MostDisruptiveAllowedAction enum for the list of possible values.
545    * </pre>
546    *
547    * <code>optional string most_disruptive_allowed_action = 66103053;</code>
548    *
549    * @return The bytes for mostDisruptiveAllowedAction.
550    */
551   @java.lang.Override
getMostDisruptiveAllowedActionBytes()552   public com.google.protobuf.ByteString getMostDisruptiveAllowedActionBytes() {
553     java.lang.Object ref = mostDisruptiveAllowedAction_;
554     if (ref instanceof java.lang.String) {
555       com.google.protobuf.ByteString b =
556           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
557       mostDisruptiveAllowedAction_ = b;
558       return b;
559     } else {
560       return (com.google.protobuf.ByteString) ref;
561     }
562   }
563 
564   public static final int PROJECT_FIELD_NUMBER = 227560217;
565 
566   @SuppressWarnings("serial")
567   private volatile java.lang.Object project_ = "";
568   /**
569    *
570    *
571    * <pre>
572    * Project ID for this request.
573    * </pre>
574    *
575    * <code>
576    * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
577    * </code>
578    *
579    * @return The project.
580    */
581   @java.lang.Override
getProject()582   public java.lang.String getProject() {
583     java.lang.Object ref = project_;
584     if (ref instanceof java.lang.String) {
585       return (java.lang.String) ref;
586     } else {
587       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
588       java.lang.String s = bs.toStringUtf8();
589       project_ = s;
590       return s;
591     }
592   }
593   /**
594    *
595    *
596    * <pre>
597    * Project ID for this request.
598    * </pre>
599    *
600    * <code>
601    * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
602    * </code>
603    *
604    * @return The bytes for project.
605    */
606   @java.lang.Override
getProjectBytes()607   public com.google.protobuf.ByteString getProjectBytes() {
608     java.lang.Object ref = project_;
609     if (ref instanceof java.lang.String) {
610       com.google.protobuf.ByteString b =
611           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
612       project_ = b;
613       return b;
614     } else {
615       return (com.google.protobuf.ByteString) ref;
616     }
617   }
618 
619   public static final int REQUEST_ID_FIELD_NUMBER = 37109963;
620 
621   @SuppressWarnings("serial")
622   private volatile java.lang.Object requestId_ = "";
623   /**
624    *
625    *
626    * <pre>
627    * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
628    * </pre>
629    *
630    * <code>optional string request_id = 37109963;</code>
631    *
632    * @return Whether the requestId field is set.
633    */
634   @java.lang.Override
hasRequestId()635   public boolean hasRequestId() {
636     return ((bitField0_ & 0x00000004) != 0);
637   }
638   /**
639    *
640    *
641    * <pre>
642    * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
643    * </pre>
644    *
645    * <code>optional string request_id = 37109963;</code>
646    *
647    * @return The requestId.
648    */
649   @java.lang.Override
getRequestId()650   public java.lang.String getRequestId() {
651     java.lang.Object ref = requestId_;
652     if (ref instanceof java.lang.String) {
653       return (java.lang.String) ref;
654     } else {
655       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
656       java.lang.String s = bs.toStringUtf8();
657       requestId_ = s;
658       return s;
659     }
660   }
661   /**
662    *
663    *
664    * <pre>
665    * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
666    * </pre>
667    *
668    * <code>optional string request_id = 37109963;</code>
669    *
670    * @return The bytes for requestId.
671    */
672   @java.lang.Override
getRequestIdBytes()673   public com.google.protobuf.ByteString getRequestIdBytes() {
674     java.lang.Object ref = requestId_;
675     if (ref instanceof java.lang.String) {
676       com.google.protobuf.ByteString b =
677           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
678       requestId_ = b;
679       return b;
680     } else {
681       return (com.google.protobuf.ByteString) ref;
682     }
683   }
684 
685   public static final int ZONE_FIELD_NUMBER = 3744684;
686 
687   @SuppressWarnings("serial")
688   private volatile java.lang.Object zone_ = "";
689   /**
690    *
691    *
692    * <pre>
693    * The name of the zone for this request.
694    * </pre>
695    *
696    * <code>
697    * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
698    * </code>
699    *
700    * @return The zone.
701    */
702   @java.lang.Override
getZone()703   public java.lang.String getZone() {
704     java.lang.Object ref = zone_;
705     if (ref instanceof java.lang.String) {
706       return (java.lang.String) ref;
707     } else {
708       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
709       java.lang.String s = bs.toStringUtf8();
710       zone_ = s;
711       return s;
712     }
713   }
714   /**
715    *
716    *
717    * <pre>
718    * The name of the zone for this request.
719    * </pre>
720    *
721    * <code>
722    * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
723    * </code>
724    *
725    * @return The bytes for zone.
726    */
727   @java.lang.Override
getZoneBytes()728   public com.google.protobuf.ByteString getZoneBytes() {
729     java.lang.Object ref = zone_;
730     if (ref instanceof java.lang.String) {
731       com.google.protobuf.ByteString b =
732           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
733       zone_ = b;
734       return b;
735     } else {
736       return (com.google.protobuf.ByteString) ref;
737     }
738   }
739 
740   private byte memoizedIsInitialized = -1;
741 
742   @java.lang.Override
isInitialized()743   public final boolean isInitialized() {
744     byte isInitialized = memoizedIsInitialized;
745     if (isInitialized == 1) return true;
746     if (isInitialized == 0) return false;
747 
748     memoizedIsInitialized = 1;
749     return true;
750   }
751 
752   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)753   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
754     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
755       com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_);
756     }
757     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
758       com.google.protobuf.GeneratedMessageV3.writeString(output, 18257045, instance_);
759     }
760     if (((bitField0_ & 0x00000004) != 0)) {
761       com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_);
762     }
763     if (((bitField0_ & 0x00000002) != 0)) {
764       com.google.protobuf.GeneratedMessageV3.writeString(
765           output, 66103053, mostDisruptiveAllowedAction_);
766     }
767     if (instanceResource_ != null) {
768       output.writeMessage(215988344, getInstanceResource());
769     }
770     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
771       com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_);
772     }
773     if (((bitField0_ & 0x00000001) != 0)) {
774       com.google.protobuf.GeneratedMessageV3.writeString(output, 270567060, minimalAction_);
775     }
776     getUnknownFields().writeTo(output);
777   }
778 
779   @java.lang.Override
getSerializedSize()780   public int getSerializedSize() {
781     int size = memoizedSize;
782     if (size != -1) return size;
783 
784     size = 0;
785     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
786       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_);
787     }
788     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
789       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18257045, instance_);
790     }
791     if (((bitField0_ & 0x00000004) != 0)) {
792       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_);
793     }
794     if (((bitField0_ & 0x00000002) != 0)) {
795       size +=
796           com.google.protobuf.GeneratedMessageV3.computeStringSize(
797               66103053, mostDisruptiveAllowedAction_);
798     }
799     if (instanceResource_ != null) {
800       size +=
801           com.google.protobuf.CodedOutputStream.computeMessageSize(
802               215988344, getInstanceResource());
803     }
804     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
805       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_);
806     }
807     if (((bitField0_ & 0x00000001) != 0)) {
808       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(270567060, minimalAction_);
809     }
810     size += getUnknownFields().getSerializedSize();
811     memoizedSize = size;
812     return size;
813   }
814 
815   @java.lang.Override
equals(final java.lang.Object obj)816   public boolean equals(final java.lang.Object obj) {
817     if (obj == this) {
818       return true;
819     }
820     if (!(obj instanceof com.google.cloud.compute.v1.UpdateInstanceRequest)) {
821       return super.equals(obj);
822     }
823     com.google.cloud.compute.v1.UpdateInstanceRequest other =
824         (com.google.cloud.compute.v1.UpdateInstanceRequest) obj;
825 
826     if (!getInstance().equals(other.getInstance())) return false;
827     if (hasInstanceResource() != other.hasInstanceResource()) return false;
828     if (hasInstanceResource()) {
829       if (!getInstanceResource().equals(other.getInstanceResource())) return false;
830     }
831     if (hasMinimalAction() != other.hasMinimalAction()) return false;
832     if (hasMinimalAction()) {
833       if (!getMinimalAction().equals(other.getMinimalAction())) return false;
834     }
835     if (hasMostDisruptiveAllowedAction() != other.hasMostDisruptiveAllowedAction()) return false;
836     if (hasMostDisruptiveAllowedAction()) {
837       if (!getMostDisruptiveAllowedAction().equals(other.getMostDisruptiveAllowedAction()))
838         return false;
839     }
840     if (!getProject().equals(other.getProject())) return false;
841     if (hasRequestId() != other.hasRequestId()) return false;
842     if (hasRequestId()) {
843       if (!getRequestId().equals(other.getRequestId())) return false;
844     }
845     if (!getZone().equals(other.getZone())) return false;
846     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
847     return true;
848   }
849 
850   @java.lang.Override
hashCode()851   public int hashCode() {
852     if (memoizedHashCode != 0) {
853       return memoizedHashCode;
854     }
855     int hash = 41;
856     hash = (19 * hash) + getDescriptor().hashCode();
857     hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
858     hash = (53 * hash) + getInstance().hashCode();
859     if (hasInstanceResource()) {
860       hash = (37 * hash) + INSTANCE_RESOURCE_FIELD_NUMBER;
861       hash = (53 * hash) + getInstanceResource().hashCode();
862     }
863     if (hasMinimalAction()) {
864       hash = (37 * hash) + MINIMAL_ACTION_FIELD_NUMBER;
865       hash = (53 * hash) + getMinimalAction().hashCode();
866     }
867     if (hasMostDisruptiveAllowedAction()) {
868       hash = (37 * hash) + MOST_DISRUPTIVE_ALLOWED_ACTION_FIELD_NUMBER;
869       hash = (53 * hash) + getMostDisruptiveAllowedAction().hashCode();
870     }
871     hash = (37 * hash) + PROJECT_FIELD_NUMBER;
872     hash = (53 * hash) + getProject().hashCode();
873     if (hasRequestId()) {
874       hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
875       hash = (53 * hash) + getRequestId().hashCode();
876     }
877     hash = (37 * hash) + ZONE_FIELD_NUMBER;
878     hash = (53 * hash) + getZone().hashCode();
879     hash = (29 * hash) + getUnknownFields().hashCode();
880     memoizedHashCode = hash;
881     return hash;
882   }
883 
parseFrom( java.nio.ByteBuffer data)884   public static com.google.cloud.compute.v1.UpdateInstanceRequest parseFrom(
885       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
886     return PARSER.parseFrom(data);
887   }
888 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)889   public static com.google.cloud.compute.v1.UpdateInstanceRequest parseFrom(
890       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
891       throws com.google.protobuf.InvalidProtocolBufferException {
892     return PARSER.parseFrom(data, extensionRegistry);
893   }
894 
parseFrom( com.google.protobuf.ByteString data)895   public static com.google.cloud.compute.v1.UpdateInstanceRequest parseFrom(
896       com.google.protobuf.ByteString data)
897       throws com.google.protobuf.InvalidProtocolBufferException {
898     return PARSER.parseFrom(data);
899   }
900 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)901   public static com.google.cloud.compute.v1.UpdateInstanceRequest parseFrom(
902       com.google.protobuf.ByteString data,
903       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
904       throws com.google.protobuf.InvalidProtocolBufferException {
905     return PARSER.parseFrom(data, extensionRegistry);
906   }
907 
parseFrom(byte[] data)908   public static com.google.cloud.compute.v1.UpdateInstanceRequest parseFrom(byte[] data)
909       throws com.google.protobuf.InvalidProtocolBufferException {
910     return PARSER.parseFrom(data);
911   }
912 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)913   public static com.google.cloud.compute.v1.UpdateInstanceRequest parseFrom(
914       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
915       throws com.google.protobuf.InvalidProtocolBufferException {
916     return PARSER.parseFrom(data, extensionRegistry);
917   }
918 
parseFrom( java.io.InputStream input)919   public static com.google.cloud.compute.v1.UpdateInstanceRequest parseFrom(
920       java.io.InputStream input) throws java.io.IOException {
921     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
922   }
923 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)924   public static com.google.cloud.compute.v1.UpdateInstanceRequest parseFrom(
925       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
926       throws java.io.IOException {
927     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
928         PARSER, input, extensionRegistry);
929   }
930 
parseDelimitedFrom( java.io.InputStream input)931   public static com.google.cloud.compute.v1.UpdateInstanceRequest parseDelimitedFrom(
932       java.io.InputStream input) throws java.io.IOException {
933     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
934   }
935 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)936   public static com.google.cloud.compute.v1.UpdateInstanceRequest parseDelimitedFrom(
937       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
938       throws java.io.IOException {
939     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
940         PARSER, input, extensionRegistry);
941   }
942 
parseFrom( com.google.protobuf.CodedInputStream input)943   public static com.google.cloud.compute.v1.UpdateInstanceRequest parseFrom(
944       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
945     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
946   }
947 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)948   public static com.google.cloud.compute.v1.UpdateInstanceRequest parseFrom(
949       com.google.protobuf.CodedInputStream input,
950       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
951       throws java.io.IOException {
952     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
953         PARSER, input, extensionRegistry);
954   }
955 
956   @java.lang.Override
newBuilderForType()957   public Builder newBuilderForType() {
958     return newBuilder();
959   }
960 
newBuilder()961   public static Builder newBuilder() {
962     return DEFAULT_INSTANCE.toBuilder();
963   }
964 
newBuilder(com.google.cloud.compute.v1.UpdateInstanceRequest prototype)965   public static Builder newBuilder(com.google.cloud.compute.v1.UpdateInstanceRequest prototype) {
966     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
967   }
968 
969   @java.lang.Override
toBuilder()970   public Builder toBuilder() {
971     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
972   }
973 
974   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)975   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
976     Builder builder = new Builder(parent);
977     return builder;
978   }
979   /**
980    *
981    *
982    * <pre>
983    * A request message for Instances.Update. See the method description for details.
984    * </pre>
985    *
986    * Protobuf type {@code google.cloud.compute.v1.UpdateInstanceRequest}
987    */
988   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
989       implements
990       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.UpdateInstanceRequest)
991       com.google.cloud.compute.v1.UpdateInstanceRequestOrBuilder {
getDescriptor()992     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
993       return com.google.cloud.compute.v1.Compute
994           .internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor;
995     }
996 
997     @java.lang.Override
998     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()999         internalGetFieldAccessorTable() {
1000       return com.google.cloud.compute.v1.Compute
1001           .internal_static_google_cloud_compute_v1_UpdateInstanceRequest_fieldAccessorTable
1002           .ensureFieldAccessorsInitialized(
1003               com.google.cloud.compute.v1.UpdateInstanceRequest.class,
1004               com.google.cloud.compute.v1.UpdateInstanceRequest.Builder.class);
1005     }
1006 
1007     // Construct using com.google.cloud.compute.v1.UpdateInstanceRequest.newBuilder()
Builder()1008     private Builder() {}
1009 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1010     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1011       super(parent);
1012     }
1013 
1014     @java.lang.Override
clear()1015     public Builder clear() {
1016       super.clear();
1017       bitField0_ = 0;
1018       instance_ = "";
1019       instanceResource_ = null;
1020       if (instanceResourceBuilder_ != null) {
1021         instanceResourceBuilder_.dispose();
1022         instanceResourceBuilder_ = null;
1023       }
1024       minimalAction_ = "";
1025       mostDisruptiveAllowedAction_ = "";
1026       project_ = "";
1027       requestId_ = "";
1028       zone_ = "";
1029       return this;
1030     }
1031 
1032     @java.lang.Override
getDescriptorForType()1033     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1034       return com.google.cloud.compute.v1.Compute
1035           .internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor;
1036     }
1037 
1038     @java.lang.Override
getDefaultInstanceForType()1039     public com.google.cloud.compute.v1.UpdateInstanceRequest getDefaultInstanceForType() {
1040       return com.google.cloud.compute.v1.UpdateInstanceRequest.getDefaultInstance();
1041     }
1042 
1043     @java.lang.Override
build()1044     public com.google.cloud.compute.v1.UpdateInstanceRequest build() {
1045       com.google.cloud.compute.v1.UpdateInstanceRequest result = buildPartial();
1046       if (!result.isInitialized()) {
1047         throw newUninitializedMessageException(result);
1048       }
1049       return result;
1050     }
1051 
1052     @java.lang.Override
buildPartial()1053     public com.google.cloud.compute.v1.UpdateInstanceRequest buildPartial() {
1054       com.google.cloud.compute.v1.UpdateInstanceRequest result =
1055           new com.google.cloud.compute.v1.UpdateInstanceRequest(this);
1056       if (bitField0_ != 0) {
1057         buildPartial0(result);
1058       }
1059       onBuilt();
1060       return result;
1061     }
1062 
buildPartial0(com.google.cloud.compute.v1.UpdateInstanceRequest result)1063     private void buildPartial0(com.google.cloud.compute.v1.UpdateInstanceRequest result) {
1064       int from_bitField0_ = bitField0_;
1065       if (((from_bitField0_ & 0x00000001) != 0)) {
1066         result.instance_ = instance_;
1067       }
1068       if (((from_bitField0_ & 0x00000002) != 0)) {
1069         result.instanceResource_ =
1070             instanceResourceBuilder_ == null ? instanceResource_ : instanceResourceBuilder_.build();
1071       }
1072       int to_bitField0_ = 0;
1073       if (((from_bitField0_ & 0x00000004) != 0)) {
1074         result.minimalAction_ = minimalAction_;
1075         to_bitField0_ |= 0x00000001;
1076       }
1077       if (((from_bitField0_ & 0x00000008) != 0)) {
1078         result.mostDisruptiveAllowedAction_ = mostDisruptiveAllowedAction_;
1079         to_bitField0_ |= 0x00000002;
1080       }
1081       if (((from_bitField0_ & 0x00000010) != 0)) {
1082         result.project_ = project_;
1083       }
1084       if (((from_bitField0_ & 0x00000020) != 0)) {
1085         result.requestId_ = requestId_;
1086         to_bitField0_ |= 0x00000004;
1087       }
1088       if (((from_bitField0_ & 0x00000040) != 0)) {
1089         result.zone_ = zone_;
1090       }
1091       result.bitField0_ |= to_bitField0_;
1092     }
1093 
1094     @java.lang.Override
clone()1095     public Builder clone() {
1096       return super.clone();
1097     }
1098 
1099     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1100     public Builder setField(
1101         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1102       return super.setField(field, value);
1103     }
1104 
1105     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1106     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1107       return super.clearField(field);
1108     }
1109 
1110     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1111     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1112       return super.clearOneof(oneof);
1113     }
1114 
1115     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1116     public Builder setRepeatedField(
1117         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1118       return super.setRepeatedField(field, index, value);
1119     }
1120 
1121     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1122     public Builder addRepeatedField(
1123         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1124       return super.addRepeatedField(field, value);
1125     }
1126 
1127     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1128     public Builder mergeFrom(com.google.protobuf.Message other) {
1129       if (other instanceof com.google.cloud.compute.v1.UpdateInstanceRequest) {
1130         return mergeFrom((com.google.cloud.compute.v1.UpdateInstanceRequest) other);
1131       } else {
1132         super.mergeFrom(other);
1133         return this;
1134       }
1135     }
1136 
mergeFrom(com.google.cloud.compute.v1.UpdateInstanceRequest other)1137     public Builder mergeFrom(com.google.cloud.compute.v1.UpdateInstanceRequest other) {
1138       if (other == com.google.cloud.compute.v1.UpdateInstanceRequest.getDefaultInstance())
1139         return this;
1140       if (!other.getInstance().isEmpty()) {
1141         instance_ = other.instance_;
1142         bitField0_ |= 0x00000001;
1143         onChanged();
1144       }
1145       if (other.hasInstanceResource()) {
1146         mergeInstanceResource(other.getInstanceResource());
1147       }
1148       if (other.hasMinimalAction()) {
1149         minimalAction_ = other.minimalAction_;
1150         bitField0_ |= 0x00000004;
1151         onChanged();
1152       }
1153       if (other.hasMostDisruptiveAllowedAction()) {
1154         mostDisruptiveAllowedAction_ = other.mostDisruptiveAllowedAction_;
1155         bitField0_ |= 0x00000008;
1156         onChanged();
1157       }
1158       if (!other.getProject().isEmpty()) {
1159         project_ = other.project_;
1160         bitField0_ |= 0x00000010;
1161         onChanged();
1162       }
1163       if (other.hasRequestId()) {
1164         requestId_ = other.requestId_;
1165         bitField0_ |= 0x00000020;
1166         onChanged();
1167       }
1168       if (!other.getZone().isEmpty()) {
1169         zone_ = other.zone_;
1170         bitField0_ |= 0x00000040;
1171         onChanged();
1172       }
1173       this.mergeUnknownFields(other.getUnknownFields());
1174       onChanged();
1175       return this;
1176     }
1177 
1178     @java.lang.Override
isInitialized()1179     public final boolean isInitialized() {
1180       return true;
1181     }
1182 
1183     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1184     public Builder mergeFrom(
1185         com.google.protobuf.CodedInputStream input,
1186         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1187         throws java.io.IOException {
1188       if (extensionRegistry == null) {
1189         throw new java.lang.NullPointerException();
1190       }
1191       try {
1192         boolean done = false;
1193         while (!done) {
1194           int tag = input.readTag();
1195           switch (tag) {
1196             case 0:
1197               done = true;
1198               break;
1199             case 29957474:
1200               {
1201                 zone_ = input.readStringRequireUtf8();
1202                 bitField0_ |= 0x00000040;
1203                 break;
1204               } // case 29957474
1205             case 146056362:
1206               {
1207                 instance_ = input.readStringRequireUtf8();
1208                 bitField0_ |= 0x00000001;
1209                 break;
1210               } // case 146056362
1211             case 296879706:
1212               {
1213                 requestId_ = input.readStringRequireUtf8();
1214                 bitField0_ |= 0x00000020;
1215                 break;
1216               } // case 296879706
1217             case 528824426:
1218               {
1219                 mostDisruptiveAllowedAction_ = input.readStringRequireUtf8();
1220                 bitField0_ |= 0x00000008;
1221                 break;
1222               } // case 528824426
1223             case 1727906754:
1224               {
1225                 input.readMessage(
1226                     getInstanceResourceFieldBuilder().getBuilder(), extensionRegistry);
1227                 bitField0_ |= 0x00000002;
1228                 break;
1229               } // case 1727906754
1230             case 1820481738:
1231               {
1232                 project_ = input.readStringRequireUtf8();
1233                 bitField0_ |= 0x00000010;
1234                 break;
1235               } // case 1820481738
1236             case -2130430814:
1237               {
1238                 minimalAction_ = input.readStringRequireUtf8();
1239                 bitField0_ |= 0x00000004;
1240                 break;
1241               } // case -2130430814
1242             default:
1243               {
1244                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1245                   done = true; // was an endgroup tag
1246                 }
1247                 break;
1248               } // default:
1249           } // switch (tag)
1250         } // while (!done)
1251       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1252         throw e.unwrapIOException();
1253       } finally {
1254         onChanged();
1255       } // finally
1256       return this;
1257     }
1258 
1259     private int bitField0_;
1260 
1261     private java.lang.Object instance_ = "";
1262     /**
1263      *
1264      *
1265      * <pre>
1266      * Name of the instance resource to update.
1267      * </pre>
1268      *
1269      * <code>string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];</code>
1270      *
1271      * @return The instance.
1272      */
getInstance()1273     public java.lang.String getInstance() {
1274       java.lang.Object ref = instance_;
1275       if (!(ref instanceof java.lang.String)) {
1276         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1277         java.lang.String s = bs.toStringUtf8();
1278         instance_ = s;
1279         return s;
1280       } else {
1281         return (java.lang.String) ref;
1282       }
1283     }
1284     /**
1285      *
1286      *
1287      * <pre>
1288      * Name of the instance resource to update.
1289      * </pre>
1290      *
1291      * <code>string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];</code>
1292      *
1293      * @return The bytes for instance.
1294      */
getInstanceBytes()1295     public com.google.protobuf.ByteString getInstanceBytes() {
1296       java.lang.Object ref = instance_;
1297       if (ref instanceof String) {
1298         com.google.protobuf.ByteString b =
1299             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1300         instance_ = b;
1301         return b;
1302       } else {
1303         return (com.google.protobuf.ByteString) ref;
1304       }
1305     }
1306     /**
1307      *
1308      *
1309      * <pre>
1310      * Name of the instance resource to update.
1311      * </pre>
1312      *
1313      * <code>string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];</code>
1314      *
1315      * @param value The instance to set.
1316      * @return This builder for chaining.
1317      */
setInstance(java.lang.String value)1318     public Builder setInstance(java.lang.String value) {
1319       if (value == null) {
1320         throw new NullPointerException();
1321       }
1322       instance_ = value;
1323       bitField0_ |= 0x00000001;
1324       onChanged();
1325       return this;
1326     }
1327     /**
1328      *
1329      *
1330      * <pre>
1331      * Name of the instance resource to update.
1332      * </pre>
1333      *
1334      * <code>string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];</code>
1335      *
1336      * @return This builder for chaining.
1337      */
clearInstance()1338     public Builder clearInstance() {
1339       instance_ = getDefaultInstance().getInstance();
1340       bitField0_ = (bitField0_ & ~0x00000001);
1341       onChanged();
1342       return this;
1343     }
1344     /**
1345      *
1346      *
1347      * <pre>
1348      * Name of the instance resource to update.
1349      * </pre>
1350      *
1351      * <code>string instance = 18257045 [(.google.api.field_behavior) = REQUIRED];</code>
1352      *
1353      * @param value The bytes for instance to set.
1354      * @return This builder for chaining.
1355      */
setInstanceBytes(com.google.protobuf.ByteString value)1356     public Builder setInstanceBytes(com.google.protobuf.ByteString value) {
1357       if (value == null) {
1358         throw new NullPointerException();
1359       }
1360       checkByteStringIsUtf8(value);
1361       instance_ = value;
1362       bitField0_ |= 0x00000001;
1363       onChanged();
1364       return this;
1365     }
1366 
1367     private com.google.cloud.compute.v1.Instance instanceResource_;
1368     private com.google.protobuf.SingleFieldBuilderV3<
1369             com.google.cloud.compute.v1.Instance,
1370             com.google.cloud.compute.v1.Instance.Builder,
1371             com.google.cloud.compute.v1.InstanceOrBuilder>
1372         instanceResourceBuilder_;
1373     /**
1374      *
1375      *
1376      * <pre>
1377      * The body resource for this request
1378      * </pre>
1379      *
1380      * <code>
1381      * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED];
1382      * </code>
1383      *
1384      * @return Whether the instanceResource field is set.
1385      */
hasInstanceResource()1386     public boolean hasInstanceResource() {
1387       return ((bitField0_ & 0x00000002) != 0);
1388     }
1389     /**
1390      *
1391      *
1392      * <pre>
1393      * The body resource for this request
1394      * </pre>
1395      *
1396      * <code>
1397      * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED];
1398      * </code>
1399      *
1400      * @return The instanceResource.
1401      */
getInstanceResource()1402     public com.google.cloud.compute.v1.Instance getInstanceResource() {
1403       if (instanceResourceBuilder_ == null) {
1404         return instanceResource_ == null
1405             ? com.google.cloud.compute.v1.Instance.getDefaultInstance()
1406             : instanceResource_;
1407       } else {
1408         return instanceResourceBuilder_.getMessage();
1409       }
1410     }
1411     /**
1412      *
1413      *
1414      * <pre>
1415      * The body resource for this request
1416      * </pre>
1417      *
1418      * <code>
1419      * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED];
1420      * </code>
1421      */
setInstanceResource(com.google.cloud.compute.v1.Instance value)1422     public Builder setInstanceResource(com.google.cloud.compute.v1.Instance value) {
1423       if (instanceResourceBuilder_ == null) {
1424         if (value == null) {
1425           throw new NullPointerException();
1426         }
1427         instanceResource_ = value;
1428       } else {
1429         instanceResourceBuilder_.setMessage(value);
1430       }
1431       bitField0_ |= 0x00000002;
1432       onChanged();
1433       return this;
1434     }
1435     /**
1436      *
1437      *
1438      * <pre>
1439      * The body resource for this request
1440      * </pre>
1441      *
1442      * <code>
1443      * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED];
1444      * </code>
1445      */
setInstanceResource( com.google.cloud.compute.v1.Instance.Builder builderForValue)1446     public Builder setInstanceResource(
1447         com.google.cloud.compute.v1.Instance.Builder builderForValue) {
1448       if (instanceResourceBuilder_ == null) {
1449         instanceResource_ = builderForValue.build();
1450       } else {
1451         instanceResourceBuilder_.setMessage(builderForValue.build());
1452       }
1453       bitField0_ |= 0x00000002;
1454       onChanged();
1455       return this;
1456     }
1457     /**
1458      *
1459      *
1460      * <pre>
1461      * The body resource for this request
1462      * </pre>
1463      *
1464      * <code>
1465      * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED];
1466      * </code>
1467      */
mergeInstanceResource(com.google.cloud.compute.v1.Instance value)1468     public Builder mergeInstanceResource(com.google.cloud.compute.v1.Instance value) {
1469       if (instanceResourceBuilder_ == null) {
1470         if (((bitField0_ & 0x00000002) != 0)
1471             && instanceResource_ != null
1472             && instanceResource_ != com.google.cloud.compute.v1.Instance.getDefaultInstance()) {
1473           getInstanceResourceBuilder().mergeFrom(value);
1474         } else {
1475           instanceResource_ = value;
1476         }
1477       } else {
1478         instanceResourceBuilder_.mergeFrom(value);
1479       }
1480       bitField0_ |= 0x00000002;
1481       onChanged();
1482       return this;
1483     }
1484     /**
1485      *
1486      *
1487      * <pre>
1488      * The body resource for this request
1489      * </pre>
1490      *
1491      * <code>
1492      * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED];
1493      * </code>
1494      */
clearInstanceResource()1495     public Builder clearInstanceResource() {
1496       bitField0_ = (bitField0_ & ~0x00000002);
1497       instanceResource_ = null;
1498       if (instanceResourceBuilder_ != null) {
1499         instanceResourceBuilder_.dispose();
1500         instanceResourceBuilder_ = null;
1501       }
1502       onChanged();
1503       return this;
1504     }
1505     /**
1506      *
1507      *
1508      * <pre>
1509      * The body resource for this request
1510      * </pre>
1511      *
1512      * <code>
1513      * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED];
1514      * </code>
1515      */
getInstanceResourceBuilder()1516     public com.google.cloud.compute.v1.Instance.Builder getInstanceResourceBuilder() {
1517       bitField0_ |= 0x00000002;
1518       onChanged();
1519       return getInstanceResourceFieldBuilder().getBuilder();
1520     }
1521     /**
1522      *
1523      *
1524      * <pre>
1525      * The body resource for this request
1526      * </pre>
1527      *
1528      * <code>
1529      * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED];
1530      * </code>
1531      */
getInstanceResourceOrBuilder()1532     public com.google.cloud.compute.v1.InstanceOrBuilder getInstanceResourceOrBuilder() {
1533       if (instanceResourceBuilder_ != null) {
1534         return instanceResourceBuilder_.getMessageOrBuilder();
1535       } else {
1536         return instanceResource_ == null
1537             ? com.google.cloud.compute.v1.Instance.getDefaultInstance()
1538             : instanceResource_;
1539       }
1540     }
1541     /**
1542      *
1543      *
1544      * <pre>
1545      * The body resource for this request
1546      * </pre>
1547      *
1548      * <code>
1549      * .google.cloud.compute.v1.Instance instance_resource = 215988344 [(.google.api.field_behavior) = REQUIRED];
1550      * </code>
1551      */
1552     private com.google.protobuf.SingleFieldBuilderV3<
1553             com.google.cloud.compute.v1.Instance,
1554             com.google.cloud.compute.v1.Instance.Builder,
1555             com.google.cloud.compute.v1.InstanceOrBuilder>
getInstanceResourceFieldBuilder()1556         getInstanceResourceFieldBuilder() {
1557       if (instanceResourceBuilder_ == null) {
1558         instanceResourceBuilder_ =
1559             new com.google.protobuf.SingleFieldBuilderV3<
1560                 com.google.cloud.compute.v1.Instance,
1561                 com.google.cloud.compute.v1.Instance.Builder,
1562                 com.google.cloud.compute.v1.InstanceOrBuilder>(
1563                 getInstanceResource(), getParentForChildren(), isClean());
1564         instanceResource_ = null;
1565       }
1566       return instanceResourceBuilder_;
1567     }
1568 
1569     private java.lang.Object minimalAction_ = "";
1570     /**
1571      *
1572      *
1573      * <pre>
1574      * Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
1575      * Check the MinimalAction enum for the list of possible values.
1576      * </pre>
1577      *
1578      * <code>optional string minimal_action = 270567060;</code>
1579      *
1580      * @return Whether the minimalAction field is set.
1581      */
hasMinimalAction()1582     public boolean hasMinimalAction() {
1583       return ((bitField0_ & 0x00000004) != 0);
1584     }
1585     /**
1586      *
1587      *
1588      * <pre>
1589      * Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
1590      * Check the MinimalAction enum for the list of possible values.
1591      * </pre>
1592      *
1593      * <code>optional string minimal_action = 270567060;</code>
1594      *
1595      * @return The minimalAction.
1596      */
getMinimalAction()1597     public java.lang.String getMinimalAction() {
1598       java.lang.Object ref = minimalAction_;
1599       if (!(ref instanceof java.lang.String)) {
1600         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1601         java.lang.String s = bs.toStringUtf8();
1602         minimalAction_ = s;
1603         return s;
1604       } else {
1605         return (java.lang.String) ref;
1606       }
1607     }
1608     /**
1609      *
1610      *
1611      * <pre>
1612      * Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
1613      * Check the MinimalAction enum for the list of possible values.
1614      * </pre>
1615      *
1616      * <code>optional string minimal_action = 270567060;</code>
1617      *
1618      * @return The bytes for minimalAction.
1619      */
getMinimalActionBytes()1620     public com.google.protobuf.ByteString getMinimalActionBytes() {
1621       java.lang.Object ref = minimalAction_;
1622       if (ref instanceof String) {
1623         com.google.protobuf.ByteString b =
1624             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1625         minimalAction_ = b;
1626         return b;
1627       } else {
1628         return (com.google.protobuf.ByteString) ref;
1629       }
1630     }
1631     /**
1632      *
1633      *
1634      * <pre>
1635      * Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
1636      * Check the MinimalAction enum for the list of possible values.
1637      * </pre>
1638      *
1639      * <code>optional string minimal_action = 270567060;</code>
1640      *
1641      * @param value The minimalAction to set.
1642      * @return This builder for chaining.
1643      */
setMinimalAction(java.lang.String value)1644     public Builder setMinimalAction(java.lang.String value) {
1645       if (value == null) {
1646         throw new NullPointerException();
1647       }
1648       minimalAction_ = value;
1649       bitField0_ |= 0x00000004;
1650       onChanged();
1651       return this;
1652     }
1653     /**
1654      *
1655      *
1656      * <pre>
1657      * Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
1658      * Check the MinimalAction enum for the list of possible values.
1659      * </pre>
1660      *
1661      * <code>optional string minimal_action = 270567060;</code>
1662      *
1663      * @return This builder for chaining.
1664      */
clearMinimalAction()1665     public Builder clearMinimalAction() {
1666       minimalAction_ = getDefaultInstance().getMinimalAction();
1667       bitField0_ = (bitField0_ & ~0x00000004);
1668       onChanged();
1669       return this;
1670     }
1671     /**
1672      *
1673      *
1674      * <pre>
1675      * Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
1676      * Check the MinimalAction enum for the list of possible values.
1677      * </pre>
1678      *
1679      * <code>optional string minimal_action = 270567060;</code>
1680      *
1681      * @param value The bytes for minimalAction to set.
1682      * @return This builder for chaining.
1683      */
setMinimalActionBytes(com.google.protobuf.ByteString value)1684     public Builder setMinimalActionBytes(com.google.protobuf.ByteString value) {
1685       if (value == null) {
1686         throw new NullPointerException();
1687       }
1688       checkByteStringIsUtf8(value);
1689       minimalAction_ = value;
1690       bitField0_ |= 0x00000004;
1691       onChanged();
1692       return this;
1693     }
1694 
1695     private java.lang.Object mostDisruptiveAllowedAction_ = "";
1696     /**
1697      *
1698      *
1699      * <pre>
1700      * Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
1701      * Check the MostDisruptiveAllowedAction enum for the list of possible values.
1702      * </pre>
1703      *
1704      * <code>optional string most_disruptive_allowed_action = 66103053;</code>
1705      *
1706      * @return Whether the mostDisruptiveAllowedAction field is set.
1707      */
hasMostDisruptiveAllowedAction()1708     public boolean hasMostDisruptiveAllowedAction() {
1709       return ((bitField0_ & 0x00000008) != 0);
1710     }
1711     /**
1712      *
1713      *
1714      * <pre>
1715      * Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
1716      * Check the MostDisruptiveAllowedAction enum for the list of possible values.
1717      * </pre>
1718      *
1719      * <code>optional string most_disruptive_allowed_action = 66103053;</code>
1720      *
1721      * @return The mostDisruptiveAllowedAction.
1722      */
getMostDisruptiveAllowedAction()1723     public java.lang.String getMostDisruptiveAllowedAction() {
1724       java.lang.Object ref = mostDisruptiveAllowedAction_;
1725       if (!(ref instanceof java.lang.String)) {
1726         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1727         java.lang.String s = bs.toStringUtf8();
1728         mostDisruptiveAllowedAction_ = s;
1729         return s;
1730       } else {
1731         return (java.lang.String) ref;
1732       }
1733     }
1734     /**
1735      *
1736      *
1737      * <pre>
1738      * Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
1739      * Check the MostDisruptiveAllowedAction enum for the list of possible values.
1740      * </pre>
1741      *
1742      * <code>optional string most_disruptive_allowed_action = 66103053;</code>
1743      *
1744      * @return The bytes for mostDisruptiveAllowedAction.
1745      */
getMostDisruptiveAllowedActionBytes()1746     public com.google.protobuf.ByteString getMostDisruptiveAllowedActionBytes() {
1747       java.lang.Object ref = mostDisruptiveAllowedAction_;
1748       if (ref instanceof String) {
1749         com.google.protobuf.ByteString b =
1750             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1751         mostDisruptiveAllowedAction_ = b;
1752         return b;
1753       } else {
1754         return (com.google.protobuf.ByteString) ref;
1755       }
1756     }
1757     /**
1758      *
1759      *
1760      * <pre>
1761      * Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
1762      * Check the MostDisruptiveAllowedAction enum for the list of possible values.
1763      * </pre>
1764      *
1765      * <code>optional string most_disruptive_allowed_action = 66103053;</code>
1766      *
1767      * @param value The mostDisruptiveAllowedAction to set.
1768      * @return This builder for chaining.
1769      */
setMostDisruptiveAllowedAction(java.lang.String value)1770     public Builder setMostDisruptiveAllowedAction(java.lang.String value) {
1771       if (value == null) {
1772         throw new NullPointerException();
1773       }
1774       mostDisruptiveAllowedAction_ = value;
1775       bitField0_ |= 0x00000008;
1776       onChanged();
1777       return this;
1778     }
1779     /**
1780      *
1781      *
1782      * <pre>
1783      * Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
1784      * Check the MostDisruptiveAllowedAction enum for the list of possible values.
1785      * </pre>
1786      *
1787      * <code>optional string most_disruptive_allowed_action = 66103053;</code>
1788      *
1789      * @return This builder for chaining.
1790      */
clearMostDisruptiveAllowedAction()1791     public Builder clearMostDisruptiveAllowedAction() {
1792       mostDisruptiveAllowedAction_ = getDefaultInstance().getMostDisruptiveAllowedAction();
1793       bitField0_ = (bitField0_ & ~0x00000008);
1794       onChanged();
1795       return this;
1796     }
1797     /**
1798      *
1799      *
1800      * <pre>
1801      * Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
1802      * Check the MostDisruptiveAllowedAction enum for the list of possible values.
1803      * </pre>
1804      *
1805      * <code>optional string most_disruptive_allowed_action = 66103053;</code>
1806      *
1807      * @param value The bytes for mostDisruptiveAllowedAction to set.
1808      * @return This builder for chaining.
1809      */
setMostDisruptiveAllowedActionBytes(com.google.protobuf.ByteString value)1810     public Builder setMostDisruptiveAllowedActionBytes(com.google.protobuf.ByteString value) {
1811       if (value == null) {
1812         throw new NullPointerException();
1813       }
1814       checkByteStringIsUtf8(value);
1815       mostDisruptiveAllowedAction_ = value;
1816       bitField0_ |= 0x00000008;
1817       onChanged();
1818       return this;
1819     }
1820 
1821     private java.lang.Object project_ = "";
1822     /**
1823      *
1824      *
1825      * <pre>
1826      * Project ID for this request.
1827      * </pre>
1828      *
1829      * <code>
1830      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
1831      * </code>
1832      *
1833      * @return The project.
1834      */
getProject()1835     public java.lang.String getProject() {
1836       java.lang.Object ref = project_;
1837       if (!(ref instanceof java.lang.String)) {
1838         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1839         java.lang.String s = bs.toStringUtf8();
1840         project_ = s;
1841         return s;
1842       } else {
1843         return (java.lang.String) ref;
1844       }
1845     }
1846     /**
1847      *
1848      *
1849      * <pre>
1850      * Project ID for this request.
1851      * </pre>
1852      *
1853      * <code>
1854      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
1855      * </code>
1856      *
1857      * @return The bytes for project.
1858      */
getProjectBytes()1859     public com.google.protobuf.ByteString getProjectBytes() {
1860       java.lang.Object ref = project_;
1861       if (ref instanceof String) {
1862         com.google.protobuf.ByteString b =
1863             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1864         project_ = b;
1865         return b;
1866       } else {
1867         return (com.google.protobuf.ByteString) ref;
1868       }
1869     }
1870     /**
1871      *
1872      *
1873      * <pre>
1874      * Project ID for this request.
1875      * </pre>
1876      *
1877      * <code>
1878      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
1879      * </code>
1880      *
1881      * @param value The project to set.
1882      * @return This builder for chaining.
1883      */
setProject(java.lang.String value)1884     public Builder setProject(java.lang.String value) {
1885       if (value == null) {
1886         throw new NullPointerException();
1887       }
1888       project_ = value;
1889       bitField0_ |= 0x00000010;
1890       onChanged();
1891       return this;
1892     }
1893     /**
1894      *
1895      *
1896      * <pre>
1897      * Project ID for this request.
1898      * </pre>
1899      *
1900      * <code>
1901      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
1902      * </code>
1903      *
1904      * @return This builder for chaining.
1905      */
clearProject()1906     public Builder clearProject() {
1907       project_ = getDefaultInstance().getProject();
1908       bitField0_ = (bitField0_ & ~0x00000010);
1909       onChanged();
1910       return this;
1911     }
1912     /**
1913      *
1914      *
1915      * <pre>
1916      * Project ID for this request.
1917      * </pre>
1918      *
1919      * <code>
1920      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
1921      * </code>
1922      *
1923      * @param value The bytes for project to set.
1924      * @return This builder for chaining.
1925      */
setProjectBytes(com.google.protobuf.ByteString value)1926     public Builder setProjectBytes(com.google.protobuf.ByteString value) {
1927       if (value == null) {
1928         throw new NullPointerException();
1929       }
1930       checkByteStringIsUtf8(value);
1931       project_ = value;
1932       bitField0_ |= 0x00000010;
1933       onChanged();
1934       return this;
1935     }
1936 
1937     private java.lang.Object requestId_ = "";
1938     /**
1939      *
1940      *
1941      * <pre>
1942      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1943      * </pre>
1944      *
1945      * <code>optional string request_id = 37109963;</code>
1946      *
1947      * @return Whether the requestId field is set.
1948      */
hasRequestId()1949     public boolean hasRequestId() {
1950       return ((bitField0_ & 0x00000020) != 0);
1951     }
1952     /**
1953      *
1954      *
1955      * <pre>
1956      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1957      * </pre>
1958      *
1959      * <code>optional string request_id = 37109963;</code>
1960      *
1961      * @return The requestId.
1962      */
getRequestId()1963     public java.lang.String getRequestId() {
1964       java.lang.Object ref = requestId_;
1965       if (!(ref instanceof java.lang.String)) {
1966         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1967         java.lang.String s = bs.toStringUtf8();
1968         requestId_ = s;
1969         return s;
1970       } else {
1971         return (java.lang.String) ref;
1972       }
1973     }
1974     /**
1975      *
1976      *
1977      * <pre>
1978      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1979      * </pre>
1980      *
1981      * <code>optional string request_id = 37109963;</code>
1982      *
1983      * @return The bytes for requestId.
1984      */
getRequestIdBytes()1985     public com.google.protobuf.ByteString getRequestIdBytes() {
1986       java.lang.Object ref = requestId_;
1987       if (ref instanceof String) {
1988         com.google.protobuf.ByteString b =
1989             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1990         requestId_ = b;
1991         return b;
1992       } else {
1993         return (com.google.protobuf.ByteString) ref;
1994       }
1995     }
1996     /**
1997      *
1998      *
1999      * <pre>
2000      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
2001      * </pre>
2002      *
2003      * <code>optional string request_id = 37109963;</code>
2004      *
2005      * @param value The requestId to set.
2006      * @return This builder for chaining.
2007      */
setRequestId(java.lang.String value)2008     public Builder setRequestId(java.lang.String value) {
2009       if (value == null) {
2010         throw new NullPointerException();
2011       }
2012       requestId_ = value;
2013       bitField0_ |= 0x00000020;
2014       onChanged();
2015       return this;
2016     }
2017     /**
2018      *
2019      *
2020      * <pre>
2021      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
2022      * </pre>
2023      *
2024      * <code>optional string request_id = 37109963;</code>
2025      *
2026      * @return This builder for chaining.
2027      */
clearRequestId()2028     public Builder clearRequestId() {
2029       requestId_ = getDefaultInstance().getRequestId();
2030       bitField0_ = (bitField0_ & ~0x00000020);
2031       onChanged();
2032       return this;
2033     }
2034     /**
2035      *
2036      *
2037      * <pre>
2038      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
2039      * </pre>
2040      *
2041      * <code>optional string request_id = 37109963;</code>
2042      *
2043      * @param value The bytes for requestId to set.
2044      * @return This builder for chaining.
2045      */
setRequestIdBytes(com.google.protobuf.ByteString value)2046     public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
2047       if (value == null) {
2048         throw new NullPointerException();
2049       }
2050       checkByteStringIsUtf8(value);
2051       requestId_ = value;
2052       bitField0_ |= 0x00000020;
2053       onChanged();
2054       return this;
2055     }
2056 
2057     private java.lang.Object zone_ = "";
2058     /**
2059      *
2060      *
2061      * <pre>
2062      * The name of the zone for this request.
2063      * </pre>
2064      *
2065      * <code>
2066      * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
2067      * </code>
2068      *
2069      * @return The zone.
2070      */
getZone()2071     public java.lang.String getZone() {
2072       java.lang.Object ref = zone_;
2073       if (!(ref instanceof java.lang.String)) {
2074         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2075         java.lang.String s = bs.toStringUtf8();
2076         zone_ = s;
2077         return s;
2078       } else {
2079         return (java.lang.String) ref;
2080       }
2081     }
2082     /**
2083      *
2084      *
2085      * <pre>
2086      * The name of the zone for this request.
2087      * </pre>
2088      *
2089      * <code>
2090      * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
2091      * </code>
2092      *
2093      * @return The bytes for zone.
2094      */
getZoneBytes()2095     public com.google.protobuf.ByteString getZoneBytes() {
2096       java.lang.Object ref = zone_;
2097       if (ref instanceof String) {
2098         com.google.protobuf.ByteString b =
2099             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2100         zone_ = b;
2101         return b;
2102       } else {
2103         return (com.google.protobuf.ByteString) ref;
2104       }
2105     }
2106     /**
2107      *
2108      *
2109      * <pre>
2110      * The name of the zone for this request.
2111      * </pre>
2112      *
2113      * <code>
2114      * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
2115      * </code>
2116      *
2117      * @param value The zone to set.
2118      * @return This builder for chaining.
2119      */
setZone(java.lang.String value)2120     public Builder setZone(java.lang.String value) {
2121       if (value == null) {
2122         throw new NullPointerException();
2123       }
2124       zone_ = value;
2125       bitField0_ |= 0x00000040;
2126       onChanged();
2127       return this;
2128     }
2129     /**
2130      *
2131      *
2132      * <pre>
2133      * The name of the zone for this request.
2134      * </pre>
2135      *
2136      * <code>
2137      * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
2138      * </code>
2139      *
2140      * @return This builder for chaining.
2141      */
clearZone()2142     public Builder clearZone() {
2143       zone_ = getDefaultInstance().getZone();
2144       bitField0_ = (bitField0_ & ~0x00000040);
2145       onChanged();
2146       return this;
2147     }
2148     /**
2149      *
2150      *
2151      * <pre>
2152      * The name of the zone for this request.
2153      * </pre>
2154      *
2155      * <code>
2156      * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"];
2157      * </code>
2158      *
2159      * @param value The bytes for zone to set.
2160      * @return This builder for chaining.
2161      */
setZoneBytes(com.google.protobuf.ByteString value)2162     public Builder setZoneBytes(com.google.protobuf.ByteString value) {
2163       if (value == null) {
2164         throw new NullPointerException();
2165       }
2166       checkByteStringIsUtf8(value);
2167       zone_ = value;
2168       bitField0_ |= 0x00000040;
2169       onChanged();
2170       return this;
2171     }
2172 
2173     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2174     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2175       return super.setUnknownFields(unknownFields);
2176     }
2177 
2178     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2179     public final Builder mergeUnknownFields(
2180         final com.google.protobuf.UnknownFieldSet unknownFields) {
2181       return super.mergeUnknownFields(unknownFields);
2182     }
2183 
2184     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.UpdateInstanceRequest)
2185   }
2186 
2187   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.UpdateInstanceRequest)
2188   private static final com.google.cloud.compute.v1.UpdateInstanceRequest DEFAULT_INSTANCE;
2189 
2190   static {
2191     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.UpdateInstanceRequest();
2192   }
2193 
getDefaultInstance()2194   public static com.google.cloud.compute.v1.UpdateInstanceRequest getDefaultInstance() {
2195     return DEFAULT_INSTANCE;
2196   }
2197 
2198   private static final com.google.protobuf.Parser<UpdateInstanceRequest> PARSER =
2199       new com.google.protobuf.AbstractParser<UpdateInstanceRequest>() {
2200         @java.lang.Override
2201         public UpdateInstanceRequest parsePartialFrom(
2202             com.google.protobuf.CodedInputStream input,
2203             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2204             throws com.google.protobuf.InvalidProtocolBufferException {
2205           Builder builder = newBuilder();
2206           try {
2207             builder.mergeFrom(input, extensionRegistry);
2208           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2209             throw e.setUnfinishedMessage(builder.buildPartial());
2210           } catch (com.google.protobuf.UninitializedMessageException e) {
2211             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2212           } catch (java.io.IOException e) {
2213             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2214                 .setUnfinishedMessage(builder.buildPartial());
2215           }
2216           return builder.buildPartial();
2217         }
2218       };
2219 
parser()2220   public static com.google.protobuf.Parser<UpdateInstanceRequest> parser() {
2221     return PARSER;
2222   }
2223 
2224   @java.lang.Override
getParserForType()2225   public com.google.protobuf.Parser<UpdateInstanceRequest> getParserForType() {
2226     return PARSER;
2227   }
2228 
2229   @java.lang.Override
getDefaultInstanceForType()2230   public com.google.cloud.compute.v1.UpdateInstanceRequest getDefaultInstanceForType() {
2231     return DEFAULT_INSTANCE;
2232   }
2233 }
2234