• 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  * </pre>
26  *
27  * Protobuf type {@code google.cloud.compute.v1.PerInstanceConfig}
28  */
29 public final class PerInstanceConfig extends com.google.protobuf.GeneratedMessageV3
30     implements
31     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.PerInstanceConfig)
32     PerInstanceConfigOrBuilder {
33   private static final long serialVersionUID = 0L;
34   // Use PerInstanceConfig.newBuilder() to construct.
PerInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)35   private PerInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
36     super(builder);
37   }
38 
PerInstanceConfig()39   private PerInstanceConfig() {
40     fingerprint_ = "";
41     name_ = "";
42     status_ = "";
43   }
44 
45   @java.lang.Override
46   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)47   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
48     return new PerInstanceConfig();
49   }
50 
51   @java.lang.Override
getUnknownFields()52   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53     return this.unknownFields;
54   }
55 
getDescriptor()56   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
57     return com.google.cloud.compute.v1.Compute
58         .internal_static_google_cloud_compute_v1_PerInstanceConfig_descriptor;
59   }
60 
61   @java.lang.Override
62   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()63       internalGetFieldAccessorTable() {
64     return com.google.cloud.compute.v1.Compute
65         .internal_static_google_cloud_compute_v1_PerInstanceConfig_fieldAccessorTable
66         .ensureFieldAccessorsInitialized(
67             com.google.cloud.compute.v1.PerInstanceConfig.class,
68             com.google.cloud.compute.v1.PerInstanceConfig.Builder.class);
69   }
70 
71   /**
72    *
73    *
74    * <pre>
75    * The status of applying this per-instance configuration on the corresponding managed instance.
76    * </pre>
77    *
78    * Protobuf enum {@code google.cloud.compute.v1.PerInstanceConfig.Status}
79    */
80   public enum Status implements com.google.protobuf.ProtocolMessageEnum {
81     /**
82      *
83      *
84      * <pre>
85      * A value indicating that the enum field is not set.
86      * </pre>
87      *
88      * <code>UNDEFINED_STATUS = 0;</code>
89      */
90     UNDEFINED_STATUS(0),
91     /**
92      *
93      *
94      * <pre>
95      * The per-instance configuration is being applied to the instance, but is not yet effective, possibly waiting for the instance to, for example, REFRESH.
96      * </pre>
97      *
98      * <code>APPLYING = 352003508;</code>
99      */
100     APPLYING(352003508),
101     /**
102      *
103      *
104      * <pre>
105      * The per-instance configuration deletion is being applied on the instance, possibly waiting for the instance to, for example, REFRESH.
106      * </pre>
107      *
108      * <code>DELETING = 528602024;</code>
109      */
110     DELETING(528602024),
111     /**
112      *
113      *
114      * <pre>
115      * The per-instance configuration is effective on the instance, meaning that all disks, ips and metadata specified in this configuration are attached or set on the instance.
116      * </pre>
117      *
118      * <code>EFFECTIVE = 244201863;</code>
119      */
120     EFFECTIVE(244201863),
121     /**
122      *
123      *
124      * <pre>
125      * *[Default]* The default status, when no per-instance configuration exists.
126      * </pre>
127      *
128      * <code>NONE = 2402104;</code>
129      */
130     NONE(2402104),
131     /**
132      *
133      *
134      * <pre>
135      * The per-instance configuration is set on an instance but not been applied yet.
136      * </pre>
137      *
138      * <code>UNAPPLIED = 483935140;</code>
139      */
140     UNAPPLIED(483935140),
141     /**
142      *
143      *
144      * <pre>
145      * The per-instance configuration has been deleted, but the deletion is not yet applied.
146      * </pre>
147      *
148      * <code>UNAPPLIED_DELETION = 313956873;</code>
149      */
150     UNAPPLIED_DELETION(313956873),
151     UNRECOGNIZED(-1),
152     ;
153 
154     /**
155      *
156      *
157      * <pre>
158      * A value indicating that the enum field is not set.
159      * </pre>
160      *
161      * <code>UNDEFINED_STATUS = 0;</code>
162      */
163     public static final int UNDEFINED_STATUS_VALUE = 0;
164     /**
165      *
166      *
167      * <pre>
168      * The per-instance configuration is being applied to the instance, but is not yet effective, possibly waiting for the instance to, for example, REFRESH.
169      * </pre>
170      *
171      * <code>APPLYING = 352003508;</code>
172      */
173     public static final int APPLYING_VALUE = 352003508;
174     /**
175      *
176      *
177      * <pre>
178      * The per-instance configuration deletion is being applied on the instance, possibly waiting for the instance to, for example, REFRESH.
179      * </pre>
180      *
181      * <code>DELETING = 528602024;</code>
182      */
183     public static final int DELETING_VALUE = 528602024;
184     /**
185      *
186      *
187      * <pre>
188      * The per-instance configuration is effective on the instance, meaning that all disks, ips and metadata specified in this configuration are attached or set on the instance.
189      * </pre>
190      *
191      * <code>EFFECTIVE = 244201863;</code>
192      */
193     public static final int EFFECTIVE_VALUE = 244201863;
194     /**
195      *
196      *
197      * <pre>
198      * *[Default]* The default status, when no per-instance configuration exists.
199      * </pre>
200      *
201      * <code>NONE = 2402104;</code>
202      */
203     public static final int NONE_VALUE = 2402104;
204     /**
205      *
206      *
207      * <pre>
208      * The per-instance configuration is set on an instance but not been applied yet.
209      * </pre>
210      *
211      * <code>UNAPPLIED = 483935140;</code>
212      */
213     public static final int UNAPPLIED_VALUE = 483935140;
214     /**
215      *
216      *
217      * <pre>
218      * The per-instance configuration has been deleted, but the deletion is not yet applied.
219      * </pre>
220      *
221      * <code>UNAPPLIED_DELETION = 313956873;</code>
222      */
223     public static final int UNAPPLIED_DELETION_VALUE = 313956873;
224 
getNumber()225     public final int getNumber() {
226       if (this == UNRECOGNIZED) {
227         throw new java.lang.IllegalArgumentException(
228             "Can't get the number of an unknown enum value.");
229       }
230       return value;
231     }
232 
233     /**
234      * @param value The numeric wire value of the corresponding enum entry.
235      * @return The enum associated with the given numeric wire value.
236      * @deprecated Use {@link #forNumber(int)} instead.
237      */
238     @java.lang.Deprecated
valueOf(int value)239     public static Status valueOf(int value) {
240       return forNumber(value);
241     }
242 
243     /**
244      * @param value The numeric wire value of the corresponding enum entry.
245      * @return The enum associated with the given numeric wire value.
246      */
forNumber(int value)247     public static Status forNumber(int value) {
248       switch (value) {
249         case 0:
250           return UNDEFINED_STATUS;
251         case 352003508:
252           return APPLYING;
253         case 528602024:
254           return DELETING;
255         case 244201863:
256           return EFFECTIVE;
257         case 2402104:
258           return NONE;
259         case 483935140:
260           return UNAPPLIED;
261         case 313956873:
262           return UNAPPLIED_DELETION;
263         default:
264           return null;
265       }
266     }
267 
internalGetValueMap()268     public static com.google.protobuf.Internal.EnumLiteMap<Status> internalGetValueMap() {
269       return internalValueMap;
270     }
271 
272     private static final com.google.protobuf.Internal.EnumLiteMap<Status> internalValueMap =
273         new com.google.protobuf.Internal.EnumLiteMap<Status>() {
274           public Status findValueByNumber(int number) {
275             return Status.forNumber(number);
276           }
277         };
278 
getValueDescriptor()279     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
280       if (this == UNRECOGNIZED) {
281         throw new java.lang.IllegalStateException(
282             "Can't get the descriptor of an unrecognized enum value.");
283       }
284       return getDescriptor().getValues().get(ordinal());
285     }
286 
getDescriptorForType()287     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
288       return getDescriptor();
289     }
290 
getDescriptor()291     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
292       return com.google.cloud.compute.v1.PerInstanceConfig.getDescriptor().getEnumTypes().get(0);
293     }
294 
295     private static final Status[] VALUES = values();
296 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)297     public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
298       if (desc.getType() != getDescriptor()) {
299         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
300       }
301       if (desc.getIndex() == -1) {
302         return UNRECOGNIZED;
303       }
304       return VALUES[desc.getIndex()];
305     }
306 
307     private final int value;
308 
Status(int value)309     private Status(int value) {
310       this.value = value;
311     }
312 
313     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.PerInstanceConfig.Status)
314   }
315 
316   private int bitField0_;
317   public static final int FINGERPRINT_FIELD_NUMBER = 234678500;
318 
319   @SuppressWarnings("serial")
320   private volatile java.lang.Object fingerprint_ = "";
321   /**
322    *
323    *
324    * <pre>
325    * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.
326    * </pre>
327    *
328    * <code>optional string fingerprint = 234678500;</code>
329    *
330    * @return Whether the fingerprint field is set.
331    */
332   @java.lang.Override
hasFingerprint()333   public boolean hasFingerprint() {
334     return ((bitField0_ & 0x00000001) != 0);
335   }
336   /**
337    *
338    *
339    * <pre>
340    * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.
341    * </pre>
342    *
343    * <code>optional string fingerprint = 234678500;</code>
344    *
345    * @return The fingerprint.
346    */
347   @java.lang.Override
getFingerprint()348   public java.lang.String getFingerprint() {
349     java.lang.Object ref = fingerprint_;
350     if (ref instanceof java.lang.String) {
351       return (java.lang.String) ref;
352     } else {
353       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
354       java.lang.String s = bs.toStringUtf8();
355       fingerprint_ = s;
356       return s;
357     }
358   }
359   /**
360    *
361    *
362    * <pre>
363    * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.
364    * </pre>
365    *
366    * <code>optional string fingerprint = 234678500;</code>
367    *
368    * @return The bytes for fingerprint.
369    */
370   @java.lang.Override
getFingerprintBytes()371   public com.google.protobuf.ByteString getFingerprintBytes() {
372     java.lang.Object ref = fingerprint_;
373     if (ref instanceof java.lang.String) {
374       com.google.protobuf.ByteString b =
375           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
376       fingerprint_ = b;
377       return b;
378     } else {
379       return (com.google.protobuf.ByteString) ref;
380     }
381   }
382 
383   public static final int NAME_FIELD_NUMBER = 3373707;
384 
385   @SuppressWarnings("serial")
386   private volatile java.lang.Object name_ = "";
387   /**
388    *
389    *
390    * <pre>
391    * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
392    * </pre>
393    *
394    * <code>optional string name = 3373707;</code>
395    *
396    * @return Whether the name field is set.
397    */
398   @java.lang.Override
hasName()399   public boolean hasName() {
400     return ((bitField0_ & 0x00000002) != 0);
401   }
402   /**
403    *
404    *
405    * <pre>
406    * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
407    * </pre>
408    *
409    * <code>optional string name = 3373707;</code>
410    *
411    * @return The name.
412    */
413   @java.lang.Override
getName()414   public java.lang.String getName() {
415     java.lang.Object ref = name_;
416     if (ref instanceof java.lang.String) {
417       return (java.lang.String) ref;
418     } else {
419       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
420       java.lang.String s = bs.toStringUtf8();
421       name_ = s;
422       return s;
423     }
424   }
425   /**
426    *
427    *
428    * <pre>
429    * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
430    * </pre>
431    *
432    * <code>optional string name = 3373707;</code>
433    *
434    * @return The bytes for name.
435    */
436   @java.lang.Override
getNameBytes()437   public com.google.protobuf.ByteString getNameBytes() {
438     java.lang.Object ref = name_;
439     if (ref instanceof java.lang.String) {
440       com.google.protobuf.ByteString b =
441           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
442       name_ = b;
443       return b;
444     } else {
445       return (com.google.protobuf.ByteString) ref;
446     }
447   }
448 
449   public static final int PRESERVED_STATE_FIELD_NUMBER = 2634026;
450   private com.google.cloud.compute.v1.PreservedState preservedState_;
451   /**
452    *
453    *
454    * <pre>
455    * The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
456    * </pre>
457    *
458    * <code>optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;</code>
459    *
460    * @return Whether the preservedState field is set.
461    */
462   @java.lang.Override
hasPreservedState()463   public boolean hasPreservedState() {
464     return ((bitField0_ & 0x00000004) != 0);
465   }
466   /**
467    *
468    *
469    * <pre>
470    * The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
471    * </pre>
472    *
473    * <code>optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;</code>
474    *
475    * @return The preservedState.
476    */
477   @java.lang.Override
getPreservedState()478   public com.google.cloud.compute.v1.PreservedState getPreservedState() {
479     return preservedState_ == null
480         ? com.google.cloud.compute.v1.PreservedState.getDefaultInstance()
481         : preservedState_;
482   }
483   /**
484    *
485    *
486    * <pre>
487    * The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
488    * </pre>
489    *
490    * <code>optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;</code>
491    */
492   @java.lang.Override
getPreservedStateOrBuilder()493   public com.google.cloud.compute.v1.PreservedStateOrBuilder getPreservedStateOrBuilder() {
494     return preservedState_ == null
495         ? com.google.cloud.compute.v1.PreservedState.getDefaultInstance()
496         : preservedState_;
497   }
498 
499   public static final int STATUS_FIELD_NUMBER = 181260274;
500 
501   @SuppressWarnings("serial")
502   private volatile java.lang.Object status_ = "";
503   /**
504    *
505    *
506    * <pre>
507    * The status of applying this per-instance configuration on the corresponding managed instance.
508    * Check the Status enum for the list of possible values.
509    * </pre>
510    *
511    * <code>optional string status = 181260274;</code>
512    *
513    * @return Whether the status field is set.
514    */
515   @java.lang.Override
hasStatus()516   public boolean hasStatus() {
517     return ((bitField0_ & 0x00000008) != 0);
518   }
519   /**
520    *
521    *
522    * <pre>
523    * The status of applying this per-instance configuration on the corresponding managed instance.
524    * Check the Status enum for the list of possible values.
525    * </pre>
526    *
527    * <code>optional string status = 181260274;</code>
528    *
529    * @return The status.
530    */
531   @java.lang.Override
getStatus()532   public java.lang.String getStatus() {
533     java.lang.Object ref = status_;
534     if (ref instanceof java.lang.String) {
535       return (java.lang.String) ref;
536     } else {
537       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
538       java.lang.String s = bs.toStringUtf8();
539       status_ = s;
540       return s;
541     }
542   }
543   /**
544    *
545    *
546    * <pre>
547    * The status of applying this per-instance configuration on the corresponding managed instance.
548    * Check the Status enum for the list of possible values.
549    * </pre>
550    *
551    * <code>optional string status = 181260274;</code>
552    *
553    * @return The bytes for status.
554    */
555   @java.lang.Override
getStatusBytes()556   public com.google.protobuf.ByteString getStatusBytes() {
557     java.lang.Object ref = status_;
558     if (ref instanceof java.lang.String) {
559       com.google.protobuf.ByteString b =
560           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
561       status_ = b;
562       return b;
563     } else {
564       return (com.google.protobuf.ByteString) ref;
565     }
566   }
567 
568   private byte memoizedIsInitialized = -1;
569 
570   @java.lang.Override
isInitialized()571   public final boolean isInitialized() {
572     byte isInitialized = memoizedIsInitialized;
573     if (isInitialized == 1) return true;
574     if (isInitialized == 0) return false;
575 
576     memoizedIsInitialized = 1;
577     return true;
578   }
579 
580   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)581   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
582     if (((bitField0_ & 0x00000004) != 0)) {
583       output.writeMessage(2634026, getPreservedState());
584     }
585     if (((bitField0_ & 0x00000002) != 0)) {
586       com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_);
587     }
588     if (((bitField0_ & 0x00000008) != 0)) {
589       com.google.protobuf.GeneratedMessageV3.writeString(output, 181260274, status_);
590     }
591     if (((bitField0_ & 0x00000001) != 0)) {
592       com.google.protobuf.GeneratedMessageV3.writeString(output, 234678500, fingerprint_);
593     }
594     getUnknownFields().writeTo(output);
595   }
596 
597   @java.lang.Override
getSerializedSize()598   public int getSerializedSize() {
599     int size = memoizedSize;
600     if (size != -1) return size;
601 
602     size = 0;
603     if (((bitField0_ & 0x00000004) != 0)) {
604       size +=
605           com.google.protobuf.CodedOutputStream.computeMessageSize(2634026, getPreservedState());
606     }
607     if (((bitField0_ & 0x00000002) != 0)) {
608       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_);
609     }
610     if (((bitField0_ & 0x00000008) != 0)) {
611       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(181260274, status_);
612     }
613     if (((bitField0_ & 0x00000001) != 0)) {
614       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(234678500, fingerprint_);
615     }
616     size += getUnknownFields().getSerializedSize();
617     memoizedSize = size;
618     return size;
619   }
620 
621   @java.lang.Override
equals(final java.lang.Object obj)622   public boolean equals(final java.lang.Object obj) {
623     if (obj == this) {
624       return true;
625     }
626     if (!(obj instanceof com.google.cloud.compute.v1.PerInstanceConfig)) {
627       return super.equals(obj);
628     }
629     com.google.cloud.compute.v1.PerInstanceConfig other =
630         (com.google.cloud.compute.v1.PerInstanceConfig) obj;
631 
632     if (hasFingerprint() != other.hasFingerprint()) return false;
633     if (hasFingerprint()) {
634       if (!getFingerprint().equals(other.getFingerprint())) return false;
635     }
636     if (hasName() != other.hasName()) return false;
637     if (hasName()) {
638       if (!getName().equals(other.getName())) return false;
639     }
640     if (hasPreservedState() != other.hasPreservedState()) return false;
641     if (hasPreservedState()) {
642       if (!getPreservedState().equals(other.getPreservedState())) return false;
643     }
644     if (hasStatus() != other.hasStatus()) return false;
645     if (hasStatus()) {
646       if (!getStatus().equals(other.getStatus())) return false;
647     }
648     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
649     return true;
650   }
651 
652   @java.lang.Override
hashCode()653   public int hashCode() {
654     if (memoizedHashCode != 0) {
655       return memoizedHashCode;
656     }
657     int hash = 41;
658     hash = (19 * hash) + getDescriptor().hashCode();
659     if (hasFingerprint()) {
660       hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER;
661       hash = (53 * hash) + getFingerprint().hashCode();
662     }
663     if (hasName()) {
664       hash = (37 * hash) + NAME_FIELD_NUMBER;
665       hash = (53 * hash) + getName().hashCode();
666     }
667     if (hasPreservedState()) {
668       hash = (37 * hash) + PRESERVED_STATE_FIELD_NUMBER;
669       hash = (53 * hash) + getPreservedState().hashCode();
670     }
671     if (hasStatus()) {
672       hash = (37 * hash) + STATUS_FIELD_NUMBER;
673       hash = (53 * hash) + getStatus().hashCode();
674     }
675     hash = (29 * hash) + getUnknownFields().hashCode();
676     memoizedHashCode = hash;
677     return hash;
678   }
679 
parseFrom(java.nio.ByteBuffer data)680   public static com.google.cloud.compute.v1.PerInstanceConfig parseFrom(java.nio.ByteBuffer data)
681       throws com.google.protobuf.InvalidProtocolBufferException {
682     return PARSER.parseFrom(data);
683   }
684 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)685   public static com.google.cloud.compute.v1.PerInstanceConfig parseFrom(
686       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
687       throws com.google.protobuf.InvalidProtocolBufferException {
688     return PARSER.parseFrom(data, extensionRegistry);
689   }
690 
parseFrom( com.google.protobuf.ByteString data)691   public static com.google.cloud.compute.v1.PerInstanceConfig parseFrom(
692       com.google.protobuf.ByteString data)
693       throws com.google.protobuf.InvalidProtocolBufferException {
694     return PARSER.parseFrom(data);
695   }
696 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)697   public static com.google.cloud.compute.v1.PerInstanceConfig parseFrom(
698       com.google.protobuf.ByteString data,
699       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
700       throws com.google.protobuf.InvalidProtocolBufferException {
701     return PARSER.parseFrom(data, extensionRegistry);
702   }
703 
parseFrom(byte[] data)704   public static com.google.cloud.compute.v1.PerInstanceConfig parseFrom(byte[] data)
705       throws com.google.protobuf.InvalidProtocolBufferException {
706     return PARSER.parseFrom(data);
707   }
708 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)709   public static com.google.cloud.compute.v1.PerInstanceConfig parseFrom(
710       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
711       throws com.google.protobuf.InvalidProtocolBufferException {
712     return PARSER.parseFrom(data, extensionRegistry);
713   }
714 
parseFrom(java.io.InputStream input)715   public static com.google.cloud.compute.v1.PerInstanceConfig parseFrom(java.io.InputStream input)
716       throws java.io.IOException {
717     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
718   }
719 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)720   public static com.google.cloud.compute.v1.PerInstanceConfig parseFrom(
721       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
722       throws java.io.IOException {
723     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
724         PARSER, input, extensionRegistry);
725   }
726 
parseDelimitedFrom( java.io.InputStream input)727   public static com.google.cloud.compute.v1.PerInstanceConfig parseDelimitedFrom(
728       java.io.InputStream input) throws java.io.IOException {
729     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
730   }
731 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)732   public static com.google.cloud.compute.v1.PerInstanceConfig parseDelimitedFrom(
733       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
734       throws java.io.IOException {
735     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
736         PARSER, input, extensionRegistry);
737   }
738 
parseFrom( com.google.protobuf.CodedInputStream input)739   public static com.google.cloud.compute.v1.PerInstanceConfig parseFrom(
740       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
741     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
742   }
743 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)744   public static com.google.cloud.compute.v1.PerInstanceConfig parseFrom(
745       com.google.protobuf.CodedInputStream input,
746       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
747       throws java.io.IOException {
748     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
749         PARSER, input, extensionRegistry);
750   }
751 
752   @java.lang.Override
newBuilderForType()753   public Builder newBuilderForType() {
754     return newBuilder();
755   }
756 
newBuilder()757   public static Builder newBuilder() {
758     return DEFAULT_INSTANCE.toBuilder();
759   }
760 
newBuilder(com.google.cloud.compute.v1.PerInstanceConfig prototype)761   public static Builder newBuilder(com.google.cloud.compute.v1.PerInstanceConfig prototype) {
762     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
763   }
764 
765   @java.lang.Override
toBuilder()766   public Builder toBuilder() {
767     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
768   }
769 
770   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)771   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
772     Builder builder = new Builder(parent);
773     return builder;
774   }
775   /**
776    *
777    *
778    * <pre>
779    * </pre>
780    *
781    * Protobuf type {@code google.cloud.compute.v1.PerInstanceConfig}
782    */
783   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
784       implements
785       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.PerInstanceConfig)
786       com.google.cloud.compute.v1.PerInstanceConfigOrBuilder {
getDescriptor()787     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
788       return com.google.cloud.compute.v1.Compute
789           .internal_static_google_cloud_compute_v1_PerInstanceConfig_descriptor;
790     }
791 
792     @java.lang.Override
793     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()794         internalGetFieldAccessorTable() {
795       return com.google.cloud.compute.v1.Compute
796           .internal_static_google_cloud_compute_v1_PerInstanceConfig_fieldAccessorTable
797           .ensureFieldAccessorsInitialized(
798               com.google.cloud.compute.v1.PerInstanceConfig.class,
799               com.google.cloud.compute.v1.PerInstanceConfig.Builder.class);
800     }
801 
802     // Construct using com.google.cloud.compute.v1.PerInstanceConfig.newBuilder()
Builder()803     private Builder() {
804       maybeForceBuilderInitialization();
805     }
806 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)807     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
808       super(parent);
809       maybeForceBuilderInitialization();
810     }
811 
maybeForceBuilderInitialization()812     private void maybeForceBuilderInitialization() {
813       if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
814         getPreservedStateFieldBuilder();
815       }
816     }
817 
818     @java.lang.Override
clear()819     public Builder clear() {
820       super.clear();
821       bitField0_ = 0;
822       fingerprint_ = "";
823       name_ = "";
824       preservedState_ = null;
825       if (preservedStateBuilder_ != null) {
826         preservedStateBuilder_.dispose();
827         preservedStateBuilder_ = null;
828       }
829       status_ = "";
830       return this;
831     }
832 
833     @java.lang.Override
getDescriptorForType()834     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
835       return com.google.cloud.compute.v1.Compute
836           .internal_static_google_cloud_compute_v1_PerInstanceConfig_descriptor;
837     }
838 
839     @java.lang.Override
getDefaultInstanceForType()840     public com.google.cloud.compute.v1.PerInstanceConfig getDefaultInstanceForType() {
841       return com.google.cloud.compute.v1.PerInstanceConfig.getDefaultInstance();
842     }
843 
844     @java.lang.Override
build()845     public com.google.cloud.compute.v1.PerInstanceConfig build() {
846       com.google.cloud.compute.v1.PerInstanceConfig result = buildPartial();
847       if (!result.isInitialized()) {
848         throw newUninitializedMessageException(result);
849       }
850       return result;
851     }
852 
853     @java.lang.Override
buildPartial()854     public com.google.cloud.compute.v1.PerInstanceConfig buildPartial() {
855       com.google.cloud.compute.v1.PerInstanceConfig result =
856           new com.google.cloud.compute.v1.PerInstanceConfig(this);
857       if (bitField0_ != 0) {
858         buildPartial0(result);
859       }
860       onBuilt();
861       return result;
862     }
863 
buildPartial0(com.google.cloud.compute.v1.PerInstanceConfig result)864     private void buildPartial0(com.google.cloud.compute.v1.PerInstanceConfig result) {
865       int from_bitField0_ = bitField0_;
866       int to_bitField0_ = 0;
867       if (((from_bitField0_ & 0x00000001) != 0)) {
868         result.fingerprint_ = fingerprint_;
869         to_bitField0_ |= 0x00000001;
870       }
871       if (((from_bitField0_ & 0x00000002) != 0)) {
872         result.name_ = name_;
873         to_bitField0_ |= 0x00000002;
874       }
875       if (((from_bitField0_ & 0x00000004) != 0)) {
876         result.preservedState_ =
877             preservedStateBuilder_ == null ? preservedState_ : preservedStateBuilder_.build();
878         to_bitField0_ |= 0x00000004;
879       }
880       if (((from_bitField0_ & 0x00000008) != 0)) {
881         result.status_ = status_;
882         to_bitField0_ |= 0x00000008;
883       }
884       result.bitField0_ |= to_bitField0_;
885     }
886 
887     @java.lang.Override
clone()888     public Builder clone() {
889       return super.clone();
890     }
891 
892     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)893     public Builder setField(
894         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
895       return super.setField(field, value);
896     }
897 
898     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)899     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
900       return super.clearField(field);
901     }
902 
903     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)904     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
905       return super.clearOneof(oneof);
906     }
907 
908     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)909     public Builder setRepeatedField(
910         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
911       return super.setRepeatedField(field, index, value);
912     }
913 
914     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)915     public Builder addRepeatedField(
916         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
917       return super.addRepeatedField(field, value);
918     }
919 
920     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)921     public Builder mergeFrom(com.google.protobuf.Message other) {
922       if (other instanceof com.google.cloud.compute.v1.PerInstanceConfig) {
923         return mergeFrom((com.google.cloud.compute.v1.PerInstanceConfig) other);
924       } else {
925         super.mergeFrom(other);
926         return this;
927       }
928     }
929 
mergeFrom(com.google.cloud.compute.v1.PerInstanceConfig other)930     public Builder mergeFrom(com.google.cloud.compute.v1.PerInstanceConfig other) {
931       if (other == com.google.cloud.compute.v1.PerInstanceConfig.getDefaultInstance()) return this;
932       if (other.hasFingerprint()) {
933         fingerprint_ = other.fingerprint_;
934         bitField0_ |= 0x00000001;
935         onChanged();
936       }
937       if (other.hasName()) {
938         name_ = other.name_;
939         bitField0_ |= 0x00000002;
940         onChanged();
941       }
942       if (other.hasPreservedState()) {
943         mergePreservedState(other.getPreservedState());
944       }
945       if (other.hasStatus()) {
946         status_ = other.status_;
947         bitField0_ |= 0x00000008;
948         onChanged();
949       }
950       this.mergeUnknownFields(other.getUnknownFields());
951       onChanged();
952       return this;
953     }
954 
955     @java.lang.Override
isInitialized()956     public final boolean isInitialized() {
957       return true;
958     }
959 
960     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)961     public Builder mergeFrom(
962         com.google.protobuf.CodedInputStream input,
963         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
964         throws java.io.IOException {
965       if (extensionRegistry == null) {
966         throw new java.lang.NullPointerException();
967       }
968       try {
969         boolean done = false;
970         while (!done) {
971           int tag = input.readTag();
972           switch (tag) {
973             case 0:
974               done = true;
975               break;
976             case 21072210:
977               {
978                 input.readMessage(getPreservedStateFieldBuilder().getBuilder(), extensionRegistry);
979                 bitField0_ |= 0x00000004;
980                 break;
981               } // case 21072210
982             case 26989658:
983               {
984                 name_ = input.readStringRequireUtf8();
985                 bitField0_ |= 0x00000002;
986                 break;
987               } // case 26989658
988             case 1450082194:
989               {
990                 status_ = input.readStringRequireUtf8();
991                 bitField0_ |= 0x00000008;
992                 break;
993               } // case 1450082194
994             case 1877428002:
995               {
996                 fingerprint_ = input.readStringRequireUtf8();
997                 bitField0_ |= 0x00000001;
998                 break;
999               } // case 1877428002
1000             default:
1001               {
1002                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1003                   done = true; // was an endgroup tag
1004                 }
1005                 break;
1006               } // default:
1007           } // switch (tag)
1008         } // while (!done)
1009       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1010         throw e.unwrapIOException();
1011       } finally {
1012         onChanged();
1013       } // finally
1014       return this;
1015     }
1016 
1017     private int bitField0_;
1018 
1019     private java.lang.Object fingerprint_ = "";
1020     /**
1021      *
1022      *
1023      * <pre>
1024      * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.
1025      * </pre>
1026      *
1027      * <code>optional string fingerprint = 234678500;</code>
1028      *
1029      * @return Whether the fingerprint field is set.
1030      */
hasFingerprint()1031     public boolean hasFingerprint() {
1032       return ((bitField0_ & 0x00000001) != 0);
1033     }
1034     /**
1035      *
1036      *
1037      * <pre>
1038      * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.
1039      * </pre>
1040      *
1041      * <code>optional string fingerprint = 234678500;</code>
1042      *
1043      * @return The fingerprint.
1044      */
getFingerprint()1045     public java.lang.String getFingerprint() {
1046       java.lang.Object ref = fingerprint_;
1047       if (!(ref instanceof java.lang.String)) {
1048         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1049         java.lang.String s = bs.toStringUtf8();
1050         fingerprint_ = s;
1051         return s;
1052       } else {
1053         return (java.lang.String) ref;
1054       }
1055     }
1056     /**
1057      *
1058      *
1059      * <pre>
1060      * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.
1061      * </pre>
1062      *
1063      * <code>optional string fingerprint = 234678500;</code>
1064      *
1065      * @return The bytes for fingerprint.
1066      */
getFingerprintBytes()1067     public com.google.protobuf.ByteString getFingerprintBytes() {
1068       java.lang.Object ref = fingerprint_;
1069       if (ref instanceof String) {
1070         com.google.protobuf.ByteString b =
1071             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1072         fingerprint_ = b;
1073         return b;
1074       } else {
1075         return (com.google.protobuf.ByteString) ref;
1076       }
1077     }
1078     /**
1079      *
1080      *
1081      * <pre>
1082      * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.
1083      * </pre>
1084      *
1085      * <code>optional string fingerprint = 234678500;</code>
1086      *
1087      * @param value The fingerprint to set.
1088      * @return This builder for chaining.
1089      */
setFingerprint(java.lang.String value)1090     public Builder setFingerprint(java.lang.String value) {
1091       if (value == null) {
1092         throw new NullPointerException();
1093       }
1094       fingerprint_ = value;
1095       bitField0_ |= 0x00000001;
1096       onChanged();
1097       return this;
1098     }
1099     /**
1100      *
1101      *
1102      * <pre>
1103      * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.
1104      * </pre>
1105      *
1106      * <code>optional string fingerprint = 234678500;</code>
1107      *
1108      * @return This builder for chaining.
1109      */
clearFingerprint()1110     public Builder clearFingerprint() {
1111       fingerprint_ = getDefaultInstance().getFingerprint();
1112       bitField0_ = (bitField0_ & ~0x00000001);
1113       onChanged();
1114       return this;
1115     }
1116     /**
1117      *
1118      *
1119      * <pre>
1120      * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.
1121      * </pre>
1122      *
1123      * <code>optional string fingerprint = 234678500;</code>
1124      *
1125      * @param value The bytes for fingerprint to set.
1126      * @return This builder for chaining.
1127      */
setFingerprintBytes(com.google.protobuf.ByteString value)1128     public Builder setFingerprintBytes(com.google.protobuf.ByteString value) {
1129       if (value == null) {
1130         throw new NullPointerException();
1131       }
1132       checkByteStringIsUtf8(value);
1133       fingerprint_ = value;
1134       bitField0_ |= 0x00000001;
1135       onChanged();
1136       return this;
1137     }
1138 
1139     private java.lang.Object name_ = "";
1140     /**
1141      *
1142      *
1143      * <pre>
1144      * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
1145      * </pre>
1146      *
1147      * <code>optional string name = 3373707;</code>
1148      *
1149      * @return Whether the name field is set.
1150      */
hasName()1151     public boolean hasName() {
1152       return ((bitField0_ & 0x00000002) != 0);
1153     }
1154     /**
1155      *
1156      *
1157      * <pre>
1158      * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
1159      * </pre>
1160      *
1161      * <code>optional string name = 3373707;</code>
1162      *
1163      * @return The name.
1164      */
getName()1165     public java.lang.String getName() {
1166       java.lang.Object ref = name_;
1167       if (!(ref instanceof java.lang.String)) {
1168         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1169         java.lang.String s = bs.toStringUtf8();
1170         name_ = s;
1171         return s;
1172       } else {
1173         return (java.lang.String) ref;
1174       }
1175     }
1176     /**
1177      *
1178      *
1179      * <pre>
1180      * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
1181      * </pre>
1182      *
1183      * <code>optional string name = 3373707;</code>
1184      *
1185      * @return The bytes for name.
1186      */
getNameBytes()1187     public com.google.protobuf.ByteString getNameBytes() {
1188       java.lang.Object ref = name_;
1189       if (ref instanceof String) {
1190         com.google.protobuf.ByteString b =
1191             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1192         name_ = b;
1193         return b;
1194       } else {
1195         return (com.google.protobuf.ByteString) ref;
1196       }
1197     }
1198     /**
1199      *
1200      *
1201      * <pre>
1202      * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
1203      * </pre>
1204      *
1205      * <code>optional string name = 3373707;</code>
1206      *
1207      * @param value The name to set.
1208      * @return This builder for chaining.
1209      */
setName(java.lang.String value)1210     public Builder setName(java.lang.String value) {
1211       if (value == null) {
1212         throw new NullPointerException();
1213       }
1214       name_ = value;
1215       bitField0_ |= 0x00000002;
1216       onChanged();
1217       return this;
1218     }
1219     /**
1220      *
1221      *
1222      * <pre>
1223      * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
1224      * </pre>
1225      *
1226      * <code>optional string name = 3373707;</code>
1227      *
1228      * @return This builder for chaining.
1229      */
clearName()1230     public Builder clearName() {
1231       name_ = getDefaultInstance().getName();
1232       bitField0_ = (bitField0_ & ~0x00000002);
1233       onChanged();
1234       return this;
1235     }
1236     /**
1237      *
1238      *
1239      * <pre>
1240      * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
1241      * </pre>
1242      *
1243      * <code>optional string name = 3373707;</code>
1244      *
1245      * @param value The bytes for name to set.
1246      * @return This builder for chaining.
1247      */
setNameBytes(com.google.protobuf.ByteString value)1248     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1249       if (value == null) {
1250         throw new NullPointerException();
1251       }
1252       checkByteStringIsUtf8(value);
1253       name_ = value;
1254       bitField0_ |= 0x00000002;
1255       onChanged();
1256       return this;
1257     }
1258 
1259     private com.google.cloud.compute.v1.PreservedState preservedState_;
1260     private com.google.protobuf.SingleFieldBuilderV3<
1261             com.google.cloud.compute.v1.PreservedState,
1262             com.google.cloud.compute.v1.PreservedState.Builder,
1263             com.google.cloud.compute.v1.PreservedStateOrBuilder>
1264         preservedStateBuilder_;
1265     /**
1266      *
1267      *
1268      * <pre>
1269      * The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
1270      * </pre>
1271      *
1272      * <code>optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;</code>
1273      *
1274      * @return Whether the preservedState field is set.
1275      */
hasPreservedState()1276     public boolean hasPreservedState() {
1277       return ((bitField0_ & 0x00000004) != 0);
1278     }
1279     /**
1280      *
1281      *
1282      * <pre>
1283      * The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
1284      * </pre>
1285      *
1286      * <code>optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;</code>
1287      *
1288      * @return The preservedState.
1289      */
getPreservedState()1290     public com.google.cloud.compute.v1.PreservedState getPreservedState() {
1291       if (preservedStateBuilder_ == null) {
1292         return preservedState_ == null
1293             ? com.google.cloud.compute.v1.PreservedState.getDefaultInstance()
1294             : preservedState_;
1295       } else {
1296         return preservedStateBuilder_.getMessage();
1297       }
1298     }
1299     /**
1300      *
1301      *
1302      * <pre>
1303      * The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
1304      * </pre>
1305      *
1306      * <code>optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;</code>
1307      */
setPreservedState(com.google.cloud.compute.v1.PreservedState value)1308     public Builder setPreservedState(com.google.cloud.compute.v1.PreservedState value) {
1309       if (preservedStateBuilder_ == null) {
1310         if (value == null) {
1311           throw new NullPointerException();
1312         }
1313         preservedState_ = value;
1314       } else {
1315         preservedStateBuilder_.setMessage(value);
1316       }
1317       bitField0_ |= 0x00000004;
1318       onChanged();
1319       return this;
1320     }
1321     /**
1322      *
1323      *
1324      * <pre>
1325      * The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
1326      * </pre>
1327      *
1328      * <code>optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;</code>
1329      */
setPreservedState( com.google.cloud.compute.v1.PreservedState.Builder builderForValue)1330     public Builder setPreservedState(
1331         com.google.cloud.compute.v1.PreservedState.Builder builderForValue) {
1332       if (preservedStateBuilder_ == null) {
1333         preservedState_ = builderForValue.build();
1334       } else {
1335         preservedStateBuilder_.setMessage(builderForValue.build());
1336       }
1337       bitField0_ |= 0x00000004;
1338       onChanged();
1339       return this;
1340     }
1341     /**
1342      *
1343      *
1344      * <pre>
1345      * The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
1346      * </pre>
1347      *
1348      * <code>optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;</code>
1349      */
mergePreservedState(com.google.cloud.compute.v1.PreservedState value)1350     public Builder mergePreservedState(com.google.cloud.compute.v1.PreservedState value) {
1351       if (preservedStateBuilder_ == null) {
1352         if (((bitField0_ & 0x00000004) != 0)
1353             && preservedState_ != null
1354             && preservedState_ != com.google.cloud.compute.v1.PreservedState.getDefaultInstance()) {
1355           getPreservedStateBuilder().mergeFrom(value);
1356         } else {
1357           preservedState_ = value;
1358         }
1359       } else {
1360         preservedStateBuilder_.mergeFrom(value);
1361       }
1362       bitField0_ |= 0x00000004;
1363       onChanged();
1364       return this;
1365     }
1366     /**
1367      *
1368      *
1369      * <pre>
1370      * The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
1371      * </pre>
1372      *
1373      * <code>optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;</code>
1374      */
clearPreservedState()1375     public Builder clearPreservedState() {
1376       bitField0_ = (bitField0_ & ~0x00000004);
1377       preservedState_ = null;
1378       if (preservedStateBuilder_ != null) {
1379         preservedStateBuilder_.dispose();
1380         preservedStateBuilder_ = null;
1381       }
1382       onChanged();
1383       return this;
1384     }
1385     /**
1386      *
1387      *
1388      * <pre>
1389      * The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
1390      * </pre>
1391      *
1392      * <code>optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;</code>
1393      */
getPreservedStateBuilder()1394     public com.google.cloud.compute.v1.PreservedState.Builder getPreservedStateBuilder() {
1395       bitField0_ |= 0x00000004;
1396       onChanged();
1397       return getPreservedStateFieldBuilder().getBuilder();
1398     }
1399     /**
1400      *
1401      *
1402      * <pre>
1403      * The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
1404      * </pre>
1405      *
1406      * <code>optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;</code>
1407      */
getPreservedStateOrBuilder()1408     public com.google.cloud.compute.v1.PreservedStateOrBuilder getPreservedStateOrBuilder() {
1409       if (preservedStateBuilder_ != null) {
1410         return preservedStateBuilder_.getMessageOrBuilder();
1411       } else {
1412         return preservedState_ == null
1413             ? com.google.cloud.compute.v1.PreservedState.getDefaultInstance()
1414             : preservedState_;
1415       }
1416     }
1417     /**
1418      *
1419      *
1420      * <pre>
1421      * The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy.
1422      * </pre>
1423      *
1424      * <code>optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;</code>
1425      */
1426     private com.google.protobuf.SingleFieldBuilderV3<
1427             com.google.cloud.compute.v1.PreservedState,
1428             com.google.cloud.compute.v1.PreservedState.Builder,
1429             com.google.cloud.compute.v1.PreservedStateOrBuilder>
getPreservedStateFieldBuilder()1430         getPreservedStateFieldBuilder() {
1431       if (preservedStateBuilder_ == null) {
1432         preservedStateBuilder_ =
1433             new com.google.protobuf.SingleFieldBuilderV3<
1434                 com.google.cloud.compute.v1.PreservedState,
1435                 com.google.cloud.compute.v1.PreservedState.Builder,
1436                 com.google.cloud.compute.v1.PreservedStateOrBuilder>(
1437                 getPreservedState(), getParentForChildren(), isClean());
1438         preservedState_ = null;
1439       }
1440       return preservedStateBuilder_;
1441     }
1442 
1443     private java.lang.Object status_ = "";
1444     /**
1445      *
1446      *
1447      * <pre>
1448      * The status of applying this per-instance configuration on the corresponding managed instance.
1449      * Check the Status enum for the list of possible values.
1450      * </pre>
1451      *
1452      * <code>optional string status = 181260274;</code>
1453      *
1454      * @return Whether the status field is set.
1455      */
hasStatus()1456     public boolean hasStatus() {
1457       return ((bitField0_ & 0x00000008) != 0);
1458     }
1459     /**
1460      *
1461      *
1462      * <pre>
1463      * The status of applying this per-instance configuration on the corresponding managed instance.
1464      * Check the Status enum for the list of possible values.
1465      * </pre>
1466      *
1467      * <code>optional string status = 181260274;</code>
1468      *
1469      * @return The status.
1470      */
getStatus()1471     public java.lang.String getStatus() {
1472       java.lang.Object ref = status_;
1473       if (!(ref instanceof java.lang.String)) {
1474         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1475         java.lang.String s = bs.toStringUtf8();
1476         status_ = s;
1477         return s;
1478       } else {
1479         return (java.lang.String) ref;
1480       }
1481     }
1482     /**
1483      *
1484      *
1485      * <pre>
1486      * The status of applying this per-instance configuration on the corresponding managed instance.
1487      * Check the Status enum for the list of possible values.
1488      * </pre>
1489      *
1490      * <code>optional string status = 181260274;</code>
1491      *
1492      * @return The bytes for status.
1493      */
getStatusBytes()1494     public com.google.protobuf.ByteString getStatusBytes() {
1495       java.lang.Object ref = status_;
1496       if (ref instanceof String) {
1497         com.google.protobuf.ByteString b =
1498             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1499         status_ = b;
1500         return b;
1501       } else {
1502         return (com.google.protobuf.ByteString) ref;
1503       }
1504     }
1505     /**
1506      *
1507      *
1508      * <pre>
1509      * The status of applying this per-instance configuration on the corresponding managed instance.
1510      * Check the Status enum for the list of possible values.
1511      * </pre>
1512      *
1513      * <code>optional string status = 181260274;</code>
1514      *
1515      * @param value The status to set.
1516      * @return This builder for chaining.
1517      */
setStatus(java.lang.String value)1518     public Builder setStatus(java.lang.String value) {
1519       if (value == null) {
1520         throw new NullPointerException();
1521       }
1522       status_ = value;
1523       bitField0_ |= 0x00000008;
1524       onChanged();
1525       return this;
1526     }
1527     /**
1528      *
1529      *
1530      * <pre>
1531      * The status of applying this per-instance configuration on the corresponding managed instance.
1532      * Check the Status enum for the list of possible values.
1533      * </pre>
1534      *
1535      * <code>optional string status = 181260274;</code>
1536      *
1537      * @return This builder for chaining.
1538      */
clearStatus()1539     public Builder clearStatus() {
1540       status_ = getDefaultInstance().getStatus();
1541       bitField0_ = (bitField0_ & ~0x00000008);
1542       onChanged();
1543       return this;
1544     }
1545     /**
1546      *
1547      *
1548      * <pre>
1549      * The status of applying this per-instance configuration on the corresponding managed instance.
1550      * Check the Status enum for the list of possible values.
1551      * </pre>
1552      *
1553      * <code>optional string status = 181260274;</code>
1554      *
1555      * @param value The bytes for status to set.
1556      * @return This builder for chaining.
1557      */
setStatusBytes(com.google.protobuf.ByteString value)1558     public Builder setStatusBytes(com.google.protobuf.ByteString value) {
1559       if (value == null) {
1560         throw new NullPointerException();
1561       }
1562       checkByteStringIsUtf8(value);
1563       status_ = value;
1564       bitField0_ |= 0x00000008;
1565       onChanged();
1566       return this;
1567     }
1568 
1569     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1570     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1571       return super.setUnknownFields(unknownFields);
1572     }
1573 
1574     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1575     public final Builder mergeUnknownFields(
1576         final com.google.protobuf.UnknownFieldSet unknownFields) {
1577       return super.mergeUnknownFields(unknownFields);
1578     }
1579 
1580     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.PerInstanceConfig)
1581   }
1582 
1583   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.PerInstanceConfig)
1584   private static final com.google.cloud.compute.v1.PerInstanceConfig DEFAULT_INSTANCE;
1585 
1586   static {
1587     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.PerInstanceConfig();
1588   }
1589 
getDefaultInstance()1590   public static com.google.cloud.compute.v1.PerInstanceConfig getDefaultInstance() {
1591     return DEFAULT_INSTANCE;
1592   }
1593 
1594   private static final com.google.protobuf.Parser<PerInstanceConfig> PARSER =
1595       new com.google.protobuf.AbstractParser<PerInstanceConfig>() {
1596         @java.lang.Override
1597         public PerInstanceConfig parsePartialFrom(
1598             com.google.protobuf.CodedInputStream input,
1599             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1600             throws com.google.protobuf.InvalidProtocolBufferException {
1601           Builder builder = newBuilder();
1602           try {
1603             builder.mergeFrom(input, extensionRegistry);
1604           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1605             throw e.setUnfinishedMessage(builder.buildPartial());
1606           } catch (com.google.protobuf.UninitializedMessageException e) {
1607             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1608           } catch (java.io.IOException e) {
1609             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1610                 .setUnfinishedMessage(builder.buildPartial());
1611           }
1612           return builder.buildPartial();
1613         }
1614       };
1615 
parser()1616   public static com.google.protobuf.Parser<PerInstanceConfig> parser() {
1617     return PARSER;
1618   }
1619 
1620   @java.lang.Override
getParserForType()1621   public com.google.protobuf.Parser<PerInstanceConfig> getParserForType() {
1622     return PARSER;
1623   }
1624 
1625   @java.lang.Override
getDefaultInstanceForType()1626   public com.google.cloud.compute.v1.PerInstanceConfig getDefaultInstanceForType() {
1627     return DEFAULT_INSTANCE;
1628   }
1629 }
1630