• 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  * Represents a regional Commitment resource. Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.Commitment}
29  */
30 public final class Commitment extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.Commitment)
33     CommitmentOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use Commitment.newBuilder() to construct.
Commitment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private Commitment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
Commitment()40   private Commitment() {
41     category_ = "";
42     creationTimestamp_ = "";
43     description_ = "";
44     endTimestamp_ = "";
45     kind_ = "";
46     mergeSourceCommitments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
47     name_ = "";
48     plan_ = "";
49     region_ = "";
50     reservations_ = java.util.Collections.emptyList();
51     resources_ = java.util.Collections.emptyList();
52     selfLink_ = "";
53     splitSourceCommitment_ = "";
54     startTimestamp_ = "";
55     status_ = "";
56     statusMessage_ = "";
57     type_ = "";
58   }
59 
60   @java.lang.Override
61   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)62   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
63     return new Commitment();
64   }
65 
66   @java.lang.Override
getUnknownFields()67   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
68     return this.unknownFields;
69   }
70 
getDescriptor()71   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
72     return com.google.cloud.compute.v1.Compute
73         .internal_static_google_cloud_compute_v1_Commitment_descriptor;
74   }
75 
76   @java.lang.Override
77   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()78       internalGetFieldAccessorTable() {
79     return com.google.cloud.compute.v1.Compute
80         .internal_static_google_cloud_compute_v1_Commitment_fieldAccessorTable
81         .ensureFieldAccessorsInitialized(
82             com.google.cloud.compute.v1.Commitment.class,
83             com.google.cloud.compute.v1.Commitment.Builder.class);
84   }
85 
86   /**
87    *
88    *
89    * <pre>
90    * The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
91    * </pre>
92    *
93    * Protobuf enum {@code google.cloud.compute.v1.Commitment.Category}
94    */
95   public enum Category implements com.google.protobuf.ProtocolMessageEnum {
96     /**
97      *
98      *
99      * <pre>
100      * A value indicating that the enum field is not set.
101      * </pre>
102      *
103      * <code>UNDEFINED_CATEGORY = 0;</code>
104      */
105     UNDEFINED_CATEGORY(0),
106     /** <code>CATEGORY_UNSPECIFIED = 509189462;</code> */
107     CATEGORY_UNSPECIFIED(509189462),
108     /** <code>LICENSE = 347869217;</code> */
109     LICENSE(347869217),
110     /** <code>MACHINE = 469553191;</code> */
111     MACHINE(469553191),
112     UNRECOGNIZED(-1),
113     ;
114 
115     /**
116      *
117      *
118      * <pre>
119      * A value indicating that the enum field is not set.
120      * </pre>
121      *
122      * <code>UNDEFINED_CATEGORY = 0;</code>
123      */
124     public static final int UNDEFINED_CATEGORY_VALUE = 0;
125     /** <code>CATEGORY_UNSPECIFIED = 509189462;</code> */
126     public static final int CATEGORY_UNSPECIFIED_VALUE = 509189462;
127     /** <code>LICENSE = 347869217;</code> */
128     public static final int LICENSE_VALUE = 347869217;
129     /** <code>MACHINE = 469553191;</code> */
130     public static final int MACHINE_VALUE = 469553191;
131 
getNumber()132     public final int getNumber() {
133       if (this == UNRECOGNIZED) {
134         throw new java.lang.IllegalArgumentException(
135             "Can't get the number of an unknown enum value.");
136       }
137       return value;
138     }
139 
140     /**
141      * @param value The numeric wire value of the corresponding enum entry.
142      * @return The enum associated with the given numeric wire value.
143      * @deprecated Use {@link #forNumber(int)} instead.
144      */
145     @java.lang.Deprecated
valueOf(int value)146     public static Category valueOf(int value) {
147       return forNumber(value);
148     }
149 
150     /**
151      * @param value The numeric wire value of the corresponding enum entry.
152      * @return The enum associated with the given numeric wire value.
153      */
forNumber(int value)154     public static Category forNumber(int value) {
155       switch (value) {
156         case 0:
157           return UNDEFINED_CATEGORY;
158         case 509189462:
159           return CATEGORY_UNSPECIFIED;
160         case 347869217:
161           return LICENSE;
162         case 469553191:
163           return MACHINE;
164         default:
165           return null;
166       }
167     }
168 
internalGetValueMap()169     public static com.google.protobuf.Internal.EnumLiteMap<Category> internalGetValueMap() {
170       return internalValueMap;
171     }
172 
173     private static final com.google.protobuf.Internal.EnumLiteMap<Category> internalValueMap =
174         new com.google.protobuf.Internal.EnumLiteMap<Category>() {
175           public Category findValueByNumber(int number) {
176             return Category.forNumber(number);
177           }
178         };
179 
getValueDescriptor()180     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
181       if (this == UNRECOGNIZED) {
182         throw new java.lang.IllegalStateException(
183             "Can't get the descriptor of an unrecognized enum value.");
184       }
185       return getDescriptor().getValues().get(ordinal());
186     }
187 
getDescriptorForType()188     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
189       return getDescriptor();
190     }
191 
getDescriptor()192     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
193       return com.google.cloud.compute.v1.Commitment.getDescriptor().getEnumTypes().get(0);
194     }
195 
196     private static final Category[] VALUES = values();
197 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)198     public static Category valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
199       if (desc.getType() != getDescriptor()) {
200         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
201       }
202       if (desc.getIndex() == -1) {
203         return UNRECOGNIZED;
204       }
205       return VALUES[desc.getIndex()];
206     }
207 
208     private final int value;
209 
Category(int value)210     private Category(int value) {
211       this.value = value;
212     }
213 
214     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Commitment.Category)
215   }
216 
217   /**
218    *
219    *
220    * <pre>
221    * The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
222    * </pre>
223    *
224    * Protobuf enum {@code google.cloud.compute.v1.Commitment.Plan}
225    */
226   public enum Plan implements com.google.protobuf.ProtocolMessageEnum {
227     /**
228      *
229      *
230      * <pre>
231      * A value indicating that the enum field is not set.
232      * </pre>
233      *
234      * <code>UNDEFINED_PLAN = 0;</code>
235      */
236     UNDEFINED_PLAN(0),
237     /** <code>INVALID = 530283991;</code> */
238     INVALID(530283991),
239     /** <code>THIRTY_SIX_MONTH = 266295942;</code> */
240     THIRTY_SIX_MONTH(266295942),
241     /** <code>TWELVE_MONTH = 173083962;</code> */
242     TWELVE_MONTH(173083962),
243     UNRECOGNIZED(-1),
244     ;
245 
246     /**
247      *
248      *
249      * <pre>
250      * A value indicating that the enum field is not set.
251      * </pre>
252      *
253      * <code>UNDEFINED_PLAN = 0;</code>
254      */
255     public static final int UNDEFINED_PLAN_VALUE = 0;
256     /** <code>INVALID = 530283991;</code> */
257     public static final int INVALID_VALUE = 530283991;
258     /** <code>THIRTY_SIX_MONTH = 266295942;</code> */
259     public static final int THIRTY_SIX_MONTH_VALUE = 266295942;
260     /** <code>TWELVE_MONTH = 173083962;</code> */
261     public static final int TWELVE_MONTH_VALUE = 173083962;
262 
getNumber()263     public final int getNumber() {
264       if (this == UNRECOGNIZED) {
265         throw new java.lang.IllegalArgumentException(
266             "Can't get the number of an unknown enum value.");
267       }
268       return value;
269     }
270 
271     /**
272      * @param value The numeric wire value of the corresponding enum entry.
273      * @return The enum associated with the given numeric wire value.
274      * @deprecated Use {@link #forNumber(int)} instead.
275      */
276     @java.lang.Deprecated
valueOf(int value)277     public static Plan valueOf(int value) {
278       return forNumber(value);
279     }
280 
281     /**
282      * @param value The numeric wire value of the corresponding enum entry.
283      * @return The enum associated with the given numeric wire value.
284      */
forNumber(int value)285     public static Plan forNumber(int value) {
286       switch (value) {
287         case 0:
288           return UNDEFINED_PLAN;
289         case 530283991:
290           return INVALID;
291         case 266295942:
292           return THIRTY_SIX_MONTH;
293         case 173083962:
294           return TWELVE_MONTH;
295         default:
296           return null;
297       }
298     }
299 
internalGetValueMap()300     public static com.google.protobuf.Internal.EnumLiteMap<Plan> internalGetValueMap() {
301       return internalValueMap;
302     }
303 
304     private static final com.google.protobuf.Internal.EnumLiteMap<Plan> internalValueMap =
305         new com.google.protobuf.Internal.EnumLiteMap<Plan>() {
306           public Plan findValueByNumber(int number) {
307             return Plan.forNumber(number);
308           }
309         };
310 
getValueDescriptor()311     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
312       if (this == UNRECOGNIZED) {
313         throw new java.lang.IllegalStateException(
314             "Can't get the descriptor of an unrecognized enum value.");
315       }
316       return getDescriptor().getValues().get(ordinal());
317     }
318 
getDescriptorForType()319     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
320       return getDescriptor();
321     }
322 
getDescriptor()323     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
324       return com.google.cloud.compute.v1.Commitment.getDescriptor().getEnumTypes().get(1);
325     }
326 
327     private static final Plan[] VALUES = values();
328 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)329     public static Plan valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
330       if (desc.getType() != getDescriptor()) {
331         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
332       }
333       if (desc.getIndex() == -1) {
334         return UNRECOGNIZED;
335       }
336       return VALUES[desc.getIndex()];
337     }
338 
339     private final int value;
340 
Plan(int value)341     private Plan(int value) {
342       this.value = value;
343     }
344 
345     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Commitment.Plan)
346   }
347 
348   /**
349    *
350    *
351    * <pre>
352    * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
353    * </pre>
354    *
355    * Protobuf enum {@code google.cloud.compute.v1.Commitment.Status}
356    */
357   public enum Status implements com.google.protobuf.ProtocolMessageEnum {
358     /**
359      *
360      *
361      * <pre>
362      * A value indicating that the enum field is not set.
363      * </pre>
364      *
365      * <code>UNDEFINED_STATUS = 0;</code>
366      */
367     UNDEFINED_STATUS(0),
368     /** <code>ACTIVE = 314733318;</code> */
369     ACTIVE(314733318),
370     /**
371      *
372      *
373      * <pre>
374      * Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
375      * </pre>
376      *
377      * <code>CANCELLED = 41957681;</code>
378      */
379     CANCELLED(41957681),
380     /** <code>CREATING = 455564985;</code> */
381     CREATING(455564985),
382     /** <code>EXPIRED = 482489093;</code> */
383     EXPIRED(482489093),
384     /** <code>NOT_YET_ACTIVE = 20607337;</code> */
385     NOT_YET_ACTIVE(20607337),
386     UNRECOGNIZED(-1),
387     ;
388 
389     /**
390      *
391      *
392      * <pre>
393      * A value indicating that the enum field is not set.
394      * </pre>
395      *
396      * <code>UNDEFINED_STATUS = 0;</code>
397      */
398     public static final int UNDEFINED_STATUS_VALUE = 0;
399     /** <code>ACTIVE = 314733318;</code> */
400     public static final int ACTIVE_VALUE = 314733318;
401     /**
402      *
403      *
404      * <pre>
405      * Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
406      * </pre>
407      *
408      * <code>CANCELLED = 41957681;</code>
409      */
410     public static final int CANCELLED_VALUE = 41957681;
411     /** <code>CREATING = 455564985;</code> */
412     public static final int CREATING_VALUE = 455564985;
413     /** <code>EXPIRED = 482489093;</code> */
414     public static final int EXPIRED_VALUE = 482489093;
415     /** <code>NOT_YET_ACTIVE = 20607337;</code> */
416     public static final int NOT_YET_ACTIVE_VALUE = 20607337;
417 
getNumber()418     public final int getNumber() {
419       if (this == UNRECOGNIZED) {
420         throw new java.lang.IllegalArgumentException(
421             "Can't get the number of an unknown enum value.");
422       }
423       return value;
424     }
425 
426     /**
427      * @param value The numeric wire value of the corresponding enum entry.
428      * @return The enum associated with the given numeric wire value.
429      * @deprecated Use {@link #forNumber(int)} instead.
430      */
431     @java.lang.Deprecated
valueOf(int value)432     public static Status valueOf(int value) {
433       return forNumber(value);
434     }
435 
436     /**
437      * @param value The numeric wire value of the corresponding enum entry.
438      * @return The enum associated with the given numeric wire value.
439      */
forNumber(int value)440     public static Status forNumber(int value) {
441       switch (value) {
442         case 0:
443           return UNDEFINED_STATUS;
444         case 314733318:
445           return ACTIVE;
446         case 41957681:
447           return CANCELLED;
448         case 455564985:
449           return CREATING;
450         case 482489093:
451           return EXPIRED;
452         case 20607337:
453           return NOT_YET_ACTIVE;
454         default:
455           return null;
456       }
457     }
458 
internalGetValueMap()459     public static com.google.protobuf.Internal.EnumLiteMap<Status> internalGetValueMap() {
460       return internalValueMap;
461     }
462 
463     private static final com.google.protobuf.Internal.EnumLiteMap<Status> internalValueMap =
464         new com.google.protobuf.Internal.EnumLiteMap<Status>() {
465           public Status findValueByNumber(int number) {
466             return Status.forNumber(number);
467           }
468         };
469 
getValueDescriptor()470     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
471       if (this == UNRECOGNIZED) {
472         throw new java.lang.IllegalStateException(
473             "Can't get the descriptor of an unrecognized enum value.");
474       }
475       return getDescriptor().getValues().get(ordinal());
476     }
477 
getDescriptorForType()478     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
479       return getDescriptor();
480     }
481 
getDescriptor()482     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
483       return com.google.cloud.compute.v1.Commitment.getDescriptor().getEnumTypes().get(2);
484     }
485 
486     private static final Status[] VALUES = values();
487 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)488     public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
489       if (desc.getType() != getDescriptor()) {
490         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
491       }
492       if (desc.getIndex() == -1) {
493         return UNRECOGNIZED;
494       }
495       return VALUES[desc.getIndex()];
496     }
497 
498     private final int value;
499 
Status(int value)500     private Status(int value) {
501       this.value = value;
502     }
503 
504     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Commitment.Status)
505   }
506 
507   /**
508    *
509    *
510    * <pre>
511    * The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
512    * </pre>
513    *
514    * Protobuf enum {@code google.cloud.compute.v1.Commitment.Type}
515    */
516   public enum Type implements com.google.protobuf.ProtocolMessageEnum {
517     /**
518      *
519      *
520      * <pre>
521      * A value indicating that the enum field is not set.
522      * </pre>
523      *
524      * <code>UNDEFINED_TYPE = 0;</code>
525      */
526     UNDEFINED_TYPE(0),
527     /** <code>ACCELERATOR_OPTIMIZED = 280848403;</code> */
528     ACCELERATOR_OPTIMIZED(280848403),
529     /** <code>COMPUTE_OPTIMIZED = 158349023;</code> */
530     COMPUTE_OPTIMIZED(158349023),
531     /** <code>COMPUTE_OPTIMIZED_C2D = 383246453;</code> */
532     COMPUTE_OPTIMIZED_C2D(383246453),
533     /** <code>COMPUTE_OPTIMIZED_C3 = 428004784;</code> */
534     COMPUTE_OPTIMIZED_C3(428004784),
535     /** <code>GENERAL_PURPOSE = 299793543;</code> */
536     GENERAL_PURPOSE(299793543),
537     /** <code>GENERAL_PURPOSE_E2 = 301911877;</code> */
538     GENERAL_PURPOSE_E2(301911877),
539     /** <code>GENERAL_PURPOSE_N2 = 301912156;</code> */
540     GENERAL_PURPOSE_N2(301912156),
541     /** <code>GENERAL_PURPOSE_N2D = 232471400;</code> */
542     GENERAL_PURPOSE_N2D(232471400),
543     /** <code>GENERAL_PURPOSE_T2D = 232477166;</code> */
544     GENERAL_PURPOSE_T2D(232477166),
545     /** <code>MEMORY_OPTIMIZED = 281753417;</code> */
546     MEMORY_OPTIMIZED(281753417),
547     /** <code>MEMORY_OPTIMIZED_M3 = 276301372;</code> */
548     MEMORY_OPTIMIZED_M3(276301372),
549     /** <code>TYPE_UNSPECIFIED = 437714322;</code> */
550     TYPE_UNSPECIFIED(437714322),
551     UNRECOGNIZED(-1),
552     ;
553 
554     /**
555      *
556      *
557      * <pre>
558      * A value indicating that the enum field is not set.
559      * </pre>
560      *
561      * <code>UNDEFINED_TYPE = 0;</code>
562      */
563     public static final int UNDEFINED_TYPE_VALUE = 0;
564     /** <code>ACCELERATOR_OPTIMIZED = 280848403;</code> */
565     public static final int ACCELERATOR_OPTIMIZED_VALUE = 280848403;
566     /** <code>COMPUTE_OPTIMIZED = 158349023;</code> */
567     public static final int COMPUTE_OPTIMIZED_VALUE = 158349023;
568     /** <code>COMPUTE_OPTIMIZED_C2D = 383246453;</code> */
569     public static final int COMPUTE_OPTIMIZED_C2D_VALUE = 383246453;
570     /** <code>COMPUTE_OPTIMIZED_C3 = 428004784;</code> */
571     public static final int COMPUTE_OPTIMIZED_C3_VALUE = 428004784;
572     /** <code>GENERAL_PURPOSE = 299793543;</code> */
573     public static final int GENERAL_PURPOSE_VALUE = 299793543;
574     /** <code>GENERAL_PURPOSE_E2 = 301911877;</code> */
575     public static final int GENERAL_PURPOSE_E2_VALUE = 301911877;
576     /** <code>GENERAL_PURPOSE_N2 = 301912156;</code> */
577     public static final int GENERAL_PURPOSE_N2_VALUE = 301912156;
578     /** <code>GENERAL_PURPOSE_N2D = 232471400;</code> */
579     public static final int GENERAL_PURPOSE_N2D_VALUE = 232471400;
580     /** <code>GENERAL_PURPOSE_T2D = 232477166;</code> */
581     public static final int GENERAL_PURPOSE_T2D_VALUE = 232477166;
582     /** <code>MEMORY_OPTIMIZED = 281753417;</code> */
583     public static final int MEMORY_OPTIMIZED_VALUE = 281753417;
584     /** <code>MEMORY_OPTIMIZED_M3 = 276301372;</code> */
585     public static final int MEMORY_OPTIMIZED_M3_VALUE = 276301372;
586     /** <code>TYPE_UNSPECIFIED = 437714322;</code> */
587     public static final int TYPE_UNSPECIFIED_VALUE = 437714322;
588 
getNumber()589     public final int getNumber() {
590       if (this == UNRECOGNIZED) {
591         throw new java.lang.IllegalArgumentException(
592             "Can't get the number of an unknown enum value.");
593       }
594       return value;
595     }
596 
597     /**
598      * @param value The numeric wire value of the corresponding enum entry.
599      * @return The enum associated with the given numeric wire value.
600      * @deprecated Use {@link #forNumber(int)} instead.
601      */
602     @java.lang.Deprecated
valueOf(int value)603     public static Type valueOf(int value) {
604       return forNumber(value);
605     }
606 
607     /**
608      * @param value The numeric wire value of the corresponding enum entry.
609      * @return The enum associated with the given numeric wire value.
610      */
forNumber(int value)611     public static Type forNumber(int value) {
612       switch (value) {
613         case 0:
614           return UNDEFINED_TYPE;
615         case 280848403:
616           return ACCELERATOR_OPTIMIZED;
617         case 158349023:
618           return COMPUTE_OPTIMIZED;
619         case 383246453:
620           return COMPUTE_OPTIMIZED_C2D;
621         case 428004784:
622           return COMPUTE_OPTIMIZED_C3;
623         case 299793543:
624           return GENERAL_PURPOSE;
625         case 301911877:
626           return GENERAL_PURPOSE_E2;
627         case 301912156:
628           return GENERAL_PURPOSE_N2;
629         case 232471400:
630           return GENERAL_PURPOSE_N2D;
631         case 232477166:
632           return GENERAL_PURPOSE_T2D;
633         case 281753417:
634           return MEMORY_OPTIMIZED;
635         case 276301372:
636           return MEMORY_OPTIMIZED_M3;
637         case 437714322:
638           return TYPE_UNSPECIFIED;
639         default:
640           return null;
641       }
642     }
643 
internalGetValueMap()644     public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() {
645       return internalValueMap;
646     }
647 
648     private static final com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap =
649         new com.google.protobuf.Internal.EnumLiteMap<Type>() {
650           public Type findValueByNumber(int number) {
651             return Type.forNumber(number);
652           }
653         };
654 
getValueDescriptor()655     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
656       if (this == UNRECOGNIZED) {
657         throw new java.lang.IllegalStateException(
658             "Can't get the descriptor of an unrecognized enum value.");
659       }
660       return getDescriptor().getValues().get(ordinal());
661     }
662 
getDescriptorForType()663     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
664       return getDescriptor();
665     }
666 
getDescriptor()667     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
668       return com.google.cloud.compute.v1.Commitment.getDescriptor().getEnumTypes().get(3);
669     }
670 
671     private static final Type[] VALUES = values();
672 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)673     public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
674       if (desc.getType() != getDescriptor()) {
675         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
676       }
677       if (desc.getIndex() == -1) {
678         return UNRECOGNIZED;
679       }
680       return VALUES[desc.getIndex()];
681     }
682 
683     private final int value;
684 
Type(int value)685     private Type(int value) {
686       this.value = value;
687     }
688 
689     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Commitment.Type)
690   }
691 
692   private int bitField0_;
693   public static final int AUTO_RENEW_FIELD_NUMBER = 495520765;
694   private boolean autoRenew_ = false;
695   /**
696    *
697    *
698    * <pre>
699    * Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
700    * </pre>
701    *
702    * <code>optional bool auto_renew = 495520765;</code>
703    *
704    * @return Whether the autoRenew field is set.
705    */
706   @java.lang.Override
hasAutoRenew()707   public boolean hasAutoRenew() {
708     return ((bitField0_ & 0x00000001) != 0);
709   }
710   /**
711    *
712    *
713    * <pre>
714    * Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
715    * </pre>
716    *
717    * <code>optional bool auto_renew = 495520765;</code>
718    *
719    * @return The autoRenew.
720    */
721   @java.lang.Override
getAutoRenew()722   public boolean getAutoRenew() {
723     return autoRenew_;
724   }
725 
726   public static final int CATEGORY_FIELD_NUMBER = 50511102;
727 
728   @SuppressWarnings("serial")
729   private volatile java.lang.Object category_ = "";
730   /**
731    *
732    *
733    * <pre>
734    * The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
735    * Check the Category enum for the list of possible values.
736    * </pre>
737    *
738    * <code>optional string category = 50511102;</code>
739    *
740    * @return Whether the category field is set.
741    */
742   @java.lang.Override
hasCategory()743   public boolean hasCategory() {
744     return ((bitField0_ & 0x00000002) != 0);
745   }
746   /**
747    *
748    *
749    * <pre>
750    * The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
751    * Check the Category enum for the list of possible values.
752    * </pre>
753    *
754    * <code>optional string category = 50511102;</code>
755    *
756    * @return The category.
757    */
758   @java.lang.Override
getCategory()759   public java.lang.String getCategory() {
760     java.lang.Object ref = category_;
761     if (ref instanceof java.lang.String) {
762       return (java.lang.String) ref;
763     } else {
764       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
765       java.lang.String s = bs.toStringUtf8();
766       category_ = s;
767       return s;
768     }
769   }
770   /**
771    *
772    *
773    * <pre>
774    * The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
775    * Check the Category enum for the list of possible values.
776    * </pre>
777    *
778    * <code>optional string category = 50511102;</code>
779    *
780    * @return The bytes for category.
781    */
782   @java.lang.Override
getCategoryBytes()783   public com.google.protobuf.ByteString getCategoryBytes() {
784     java.lang.Object ref = category_;
785     if (ref instanceof java.lang.String) {
786       com.google.protobuf.ByteString b =
787           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
788       category_ = b;
789       return b;
790     } else {
791       return (com.google.protobuf.ByteString) ref;
792     }
793   }
794 
795   public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366;
796 
797   @SuppressWarnings("serial")
798   private volatile java.lang.Object creationTimestamp_ = "";
799   /**
800    *
801    *
802    * <pre>
803    * [Output Only] Creation timestamp in RFC3339 text format.
804    * </pre>
805    *
806    * <code>optional string creation_timestamp = 30525366;</code>
807    *
808    * @return Whether the creationTimestamp field is set.
809    */
810   @java.lang.Override
hasCreationTimestamp()811   public boolean hasCreationTimestamp() {
812     return ((bitField0_ & 0x00000004) != 0);
813   }
814   /**
815    *
816    *
817    * <pre>
818    * [Output Only] Creation timestamp in RFC3339 text format.
819    * </pre>
820    *
821    * <code>optional string creation_timestamp = 30525366;</code>
822    *
823    * @return The creationTimestamp.
824    */
825   @java.lang.Override
getCreationTimestamp()826   public java.lang.String getCreationTimestamp() {
827     java.lang.Object ref = creationTimestamp_;
828     if (ref instanceof java.lang.String) {
829       return (java.lang.String) ref;
830     } else {
831       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
832       java.lang.String s = bs.toStringUtf8();
833       creationTimestamp_ = s;
834       return s;
835     }
836   }
837   /**
838    *
839    *
840    * <pre>
841    * [Output Only] Creation timestamp in RFC3339 text format.
842    * </pre>
843    *
844    * <code>optional string creation_timestamp = 30525366;</code>
845    *
846    * @return The bytes for creationTimestamp.
847    */
848   @java.lang.Override
getCreationTimestampBytes()849   public com.google.protobuf.ByteString getCreationTimestampBytes() {
850     java.lang.Object ref = creationTimestamp_;
851     if (ref instanceof java.lang.String) {
852       com.google.protobuf.ByteString b =
853           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
854       creationTimestamp_ = b;
855       return b;
856     } else {
857       return (com.google.protobuf.ByteString) ref;
858     }
859   }
860 
861   public static final int DESCRIPTION_FIELD_NUMBER = 422937596;
862 
863   @SuppressWarnings("serial")
864   private volatile java.lang.Object description_ = "";
865   /**
866    *
867    *
868    * <pre>
869    * An optional description of this resource. Provide this property when you create the resource.
870    * </pre>
871    *
872    * <code>optional string description = 422937596;</code>
873    *
874    * @return Whether the description field is set.
875    */
876   @java.lang.Override
hasDescription()877   public boolean hasDescription() {
878     return ((bitField0_ & 0x00000008) != 0);
879   }
880   /**
881    *
882    *
883    * <pre>
884    * An optional description of this resource. Provide this property when you create the resource.
885    * </pre>
886    *
887    * <code>optional string description = 422937596;</code>
888    *
889    * @return The description.
890    */
891   @java.lang.Override
getDescription()892   public java.lang.String getDescription() {
893     java.lang.Object ref = description_;
894     if (ref instanceof java.lang.String) {
895       return (java.lang.String) ref;
896     } else {
897       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
898       java.lang.String s = bs.toStringUtf8();
899       description_ = s;
900       return s;
901     }
902   }
903   /**
904    *
905    *
906    * <pre>
907    * An optional description of this resource. Provide this property when you create the resource.
908    * </pre>
909    *
910    * <code>optional string description = 422937596;</code>
911    *
912    * @return The bytes for description.
913    */
914   @java.lang.Override
getDescriptionBytes()915   public com.google.protobuf.ByteString getDescriptionBytes() {
916     java.lang.Object ref = description_;
917     if (ref instanceof java.lang.String) {
918       com.google.protobuf.ByteString b =
919           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
920       description_ = b;
921       return b;
922     } else {
923       return (com.google.protobuf.ByteString) ref;
924     }
925   }
926 
927   public static final int END_TIMESTAMP_FIELD_NUMBER = 468096690;
928 
929   @SuppressWarnings("serial")
930   private volatile java.lang.Object endTimestamp_ = "";
931   /**
932    *
933    *
934    * <pre>
935    * [Output Only] Commitment end time in RFC3339 text format.
936    * </pre>
937    *
938    * <code>optional string end_timestamp = 468096690;</code>
939    *
940    * @return Whether the endTimestamp field is set.
941    */
942   @java.lang.Override
hasEndTimestamp()943   public boolean hasEndTimestamp() {
944     return ((bitField0_ & 0x00000010) != 0);
945   }
946   /**
947    *
948    *
949    * <pre>
950    * [Output Only] Commitment end time in RFC3339 text format.
951    * </pre>
952    *
953    * <code>optional string end_timestamp = 468096690;</code>
954    *
955    * @return The endTimestamp.
956    */
957   @java.lang.Override
getEndTimestamp()958   public java.lang.String getEndTimestamp() {
959     java.lang.Object ref = endTimestamp_;
960     if (ref instanceof java.lang.String) {
961       return (java.lang.String) ref;
962     } else {
963       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
964       java.lang.String s = bs.toStringUtf8();
965       endTimestamp_ = s;
966       return s;
967     }
968   }
969   /**
970    *
971    *
972    * <pre>
973    * [Output Only] Commitment end time in RFC3339 text format.
974    * </pre>
975    *
976    * <code>optional string end_timestamp = 468096690;</code>
977    *
978    * @return The bytes for endTimestamp.
979    */
980   @java.lang.Override
getEndTimestampBytes()981   public com.google.protobuf.ByteString getEndTimestampBytes() {
982     java.lang.Object ref = endTimestamp_;
983     if (ref instanceof java.lang.String) {
984       com.google.protobuf.ByteString b =
985           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
986       endTimestamp_ = b;
987       return b;
988     } else {
989       return (com.google.protobuf.ByteString) ref;
990     }
991   }
992 
993   public static final int ID_FIELD_NUMBER = 3355;
994   private long id_ = 0L;
995   /**
996    *
997    *
998    * <pre>
999    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1000    * </pre>
1001    *
1002    * <code>optional uint64 id = 3355;</code>
1003    *
1004    * @return Whether the id field is set.
1005    */
1006   @java.lang.Override
hasId()1007   public boolean hasId() {
1008     return ((bitField0_ & 0x00000020) != 0);
1009   }
1010   /**
1011    *
1012    *
1013    * <pre>
1014    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1015    * </pre>
1016    *
1017    * <code>optional uint64 id = 3355;</code>
1018    *
1019    * @return The id.
1020    */
1021   @java.lang.Override
getId()1022   public long getId() {
1023     return id_;
1024   }
1025 
1026   public static final int KIND_FIELD_NUMBER = 3292052;
1027 
1028   @SuppressWarnings("serial")
1029   private volatile java.lang.Object kind_ = "";
1030   /**
1031    *
1032    *
1033    * <pre>
1034    * [Output Only] Type of the resource. Always compute#commitment for commitments.
1035    * </pre>
1036    *
1037    * <code>optional string kind = 3292052;</code>
1038    *
1039    * @return Whether the kind field is set.
1040    */
1041   @java.lang.Override
hasKind()1042   public boolean hasKind() {
1043     return ((bitField0_ & 0x00000040) != 0);
1044   }
1045   /**
1046    *
1047    *
1048    * <pre>
1049    * [Output Only] Type of the resource. Always compute#commitment for commitments.
1050    * </pre>
1051    *
1052    * <code>optional string kind = 3292052;</code>
1053    *
1054    * @return The kind.
1055    */
1056   @java.lang.Override
getKind()1057   public java.lang.String getKind() {
1058     java.lang.Object ref = kind_;
1059     if (ref instanceof java.lang.String) {
1060       return (java.lang.String) ref;
1061     } else {
1062       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1063       java.lang.String s = bs.toStringUtf8();
1064       kind_ = s;
1065       return s;
1066     }
1067   }
1068   /**
1069    *
1070    *
1071    * <pre>
1072    * [Output Only] Type of the resource. Always compute#commitment for commitments.
1073    * </pre>
1074    *
1075    * <code>optional string kind = 3292052;</code>
1076    *
1077    * @return The bytes for kind.
1078    */
1079   @java.lang.Override
getKindBytes()1080   public com.google.protobuf.ByteString getKindBytes() {
1081     java.lang.Object ref = kind_;
1082     if (ref instanceof java.lang.String) {
1083       com.google.protobuf.ByteString b =
1084           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1085       kind_ = b;
1086       return b;
1087     } else {
1088       return (com.google.protobuf.ByteString) ref;
1089     }
1090   }
1091 
1092   public static final int LICENSE_RESOURCE_FIELD_NUMBER = 437955148;
1093   private com.google.cloud.compute.v1.LicenseResourceCommitment licenseResource_;
1094   /**
1095    *
1096    *
1097    * <pre>
1098    * The license specification required as part of a license commitment.
1099    * </pre>
1100    *
1101    * <code>optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
1102    * </code>
1103    *
1104    * @return Whether the licenseResource field is set.
1105    */
1106   @java.lang.Override
hasLicenseResource()1107   public boolean hasLicenseResource() {
1108     return ((bitField0_ & 0x00000080) != 0);
1109   }
1110   /**
1111    *
1112    *
1113    * <pre>
1114    * The license specification required as part of a license commitment.
1115    * </pre>
1116    *
1117    * <code>optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
1118    * </code>
1119    *
1120    * @return The licenseResource.
1121    */
1122   @java.lang.Override
getLicenseResource()1123   public com.google.cloud.compute.v1.LicenseResourceCommitment getLicenseResource() {
1124     return licenseResource_ == null
1125         ? com.google.cloud.compute.v1.LicenseResourceCommitment.getDefaultInstance()
1126         : licenseResource_;
1127   }
1128   /**
1129    *
1130    *
1131    * <pre>
1132    * The license specification required as part of a license commitment.
1133    * </pre>
1134    *
1135    * <code>optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
1136    * </code>
1137    */
1138   @java.lang.Override
1139   public com.google.cloud.compute.v1.LicenseResourceCommitmentOrBuilder
getLicenseResourceOrBuilder()1140       getLicenseResourceOrBuilder() {
1141     return licenseResource_ == null
1142         ? com.google.cloud.compute.v1.LicenseResourceCommitment.getDefaultInstance()
1143         : licenseResource_;
1144   }
1145 
1146   public static final int MERGE_SOURCE_COMMITMENTS_FIELD_NUMBER = 188093761;
1147 
1148   @SuppressWarnings("serial")
1149   private com.google.protobuf.LazyStringList mergeSourceCommitments_;
1150   /**
1151    *
1152    *
1153    * <pre>
1154    * List of source commitments to be merged into a new commitment.
1155    * </pre>
1156    *
1157    * <code>repeated string merge_source_commitments = 188093761;</code>
1158    *
1159    * @return A list containing the mergeSourceCommitments.
1160    */
getMergeSourceCommitmentsList()1161   public com.google.protobuf.ProtocolStringList getMergeSourceCommitmentsList() {
1162     return mergeSourceCommitments_;
1163   }
1164   /**
1165    *
1166    *
1167    * <pre>
1168    * List of source commitments to be merged into a new commitment.
1169    * </pre>
1170    *
1171    * <code>repeated string merge_source_commitments = 188093761;</code>
1172    *
1173    * @return The count of mergeSourceCommitments.
1174    */
getMergeSourceCommitmentsCount()1175   public int getMergeSourceCommitmentsCount() {
1176     return mergeSourceCommitments_.size();
1177   }
1178   /**
1179    *
1180    *
1181    * <pre>
1182    * List of source commitments to be merged into a new commitment.
1183    * </pre>
1184    *
1185    * <code>repeated string merge_source_commitments = 188093761;</code>
1186    *
1187    * @param index The index of the element to return.
1188    * @return The mergeSourceCommitments at the given index.
1189    */
getMergeSourceCommitments(int index)1190   public java.lang.String getMergeSourceCommitments(int index) {
1191     return mergeSourceCommitments_.get(index);
1192   }
1193   /**
1194    *
1195    *
1196    * <pre>
1197    * List of source commitments to be merged into a new commitment.
1198    * </pre>
1199    *
1200    * <code>repeated string merge_source_commitments = 188093761;</code>
1201    *
1202    * @param index The index of the value to return.
1203    * @return The bytes of the mergeSourceCommitments at the given index.
1204    */
getMergeSourceCommitmentsBytes(int index)1205   public com.google.protobuf.ByteString getMergeSourceCommitmentsBytes(int index) {
1206     return mergeSourceCommitments_.getByteString(index);
1207   }
1208 
1209   public static final int NAME_FIELD_NUMBER = 3373707;
1210 
1211   @SuppressWarnings("serial")
1212   private volatile java.lang.Object name_ = "";
1213   /**
1214    *
1215    *
1216    * <pre>
1217    * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
1218    * </pre>
1219    *
1220    * <code>optional string name = 3373707;</code>
1221    *
1222    * @return Whether the name field is set.
1223    */
1224   @java.lang.Override
hasName()1225   public boolean hasName() {
1226     return ((bitField0_ & 0x00000100) != 0);
1227   }
1228   /**
1229    *
1230    *
1231    * <pre>
1232    * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
1233    * </pre>
1234    *
1235    * <code>optional string name = 3373707;</code>
1236    *
1237    * @return The name.
1238    */
1239   @java.lang.Override
getName()1240   public java.lang.String getName() {
1241     java.lang.Object ref = name_;
1242     if (ref instanceof java.lang.String) {
1243       return (java.lang.String) ref;
1244     } else {
1245       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1246       java.lang.String s = bs.toStringUtf8();
1247       name_ = s;
1248       return s;
1249     }
1250   }
1251   /**
1252    *
1253    *
1254    * <pre>
1255    * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
1256    * </pre>
1257    *
1258    * <code>optional string name = 3373707;</code>
1259    *
1260    * @return The bytes for name.
1261    */
1262   @java.lang.Override
getNameBytes()1263   public com.google.protobuf.ByteString getNameBytes() {
1264     java.lang.Object ref = name_;
1265     if (ref instanceof java.lang.String) {
1266       com.google.protobuf.ByteString b =
1267           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1268       name_ = b;
1269       return b;
1270     } else {
1271       return (com.google.protobuf.ByteString) ref;
1272     }
1273   }
1274 
1275   public static final int PLAN_FIELD_NUMBER = 3443497;
1276 
1277   @SuppressWarnings("serial")
1278   private volatile java.lang.Object plan_ = "";
1279   /**
1280    *
1281    *
1282    * <pre>
1283    * The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
1284    * Check the Plan enum for the list of possible values.
1285    * </pre>
1286    *
1287    * <code>optional string plan = 3443497;</code>
1288    *
1289    * @return Whether the plan field is set.
1290    */
1291   @java.lang.Override
hasPlan()1292   public boolean hasPlan() {
1293     return ((bitField0_ & 0x00000200) != 0);
1294   }
1295   /**
1296    *
1297    *
1298    * <pre>
1299    * The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
1300    * Check the Plan enum for the list of possible values.
1301    * </pre>
1302    *
1303    * <code>optional string plan = 3443497;</code>
1304    *
1305    * @return The plan.
1306    */
1307   @java.lang.Override
getPlan()1308   public java.lang.String getPlan() {
1309     java.lang.Object ref = plan_;
1310     if (ref instanceof java.lang.String) {
1311       return (java.lang.String) ref;
1312     } else {
1313       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1314       java.lang.String s = bs.toStringUtf8();
1315       plan_ = s;
1316       return s;
1317     }
1318   }
1319   /**
1320    *
1321    *
1322    * <pre>
1323    * The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
1324    * Check the Plan enum for the list of possible values.
1325    * </pre>
1326    *
1327    * <code>optional string plan = 3443497;</code>
1328    *
1329    * @return The bytes for plan.
1330    */
1331   @java.lang.Override
getPlanBytes()1332   public com.google.protobuf.ByteString getPlanBytes() {
1333     java.lang.Object ref = plan_;
1334     if (ref instanceof java.lang.String) {
1335       com.google.protobuf.ByteString b =
1336           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1337       plan_ = b;
1338       return b;
1339     } else {
1340       return (com.google.protobuf.ByteString) ref;
1341     }
1342   }
1343 
1344   public static final int REGION_FIELD_NUMBER = 138946292;
1345 
1346   @SuppressWarnings("serial")
1347   private volatile java.lang.Object region_ = "";
1348   /**
1349    *
1350    *
1351    * <pre>
1352    * [Output Only] URL of the region where this commitment may be used.
1353    * </pre>
1354    *
1355    * <code>optional string region = 138946292;</code>
1356    *
1357    * @return Whether the region field is set.
1358    */
1359   @java.lang.Override
hasRegion()1360   public boolean hasRegion() {
1361     return ((bitField0_ & 0x00000400) != 0);
1362   }
1363   /**
1364    *
1365    *
1366    * <pre>
1367    * [Output Only] URL of the region where this commitment may be used.
1368    * </pre>
1369    *
1370    * <code>optional string region = 138946292;</code>
1371    *
1372    * @return The region.
1373    */
1374   @java.lang.Override
getRegion()1375   public java.lang.String getRegion() {
1376     java.lang.Object ref = region_;
1377     if (ref instanceof java.lang.String) {
1378       return (java.lang.String) ref;
1379     } else {
1380       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1381       java.lang.String s = bs.toStringUtf8();
1382       region_ = s;
1383       return s;
1384     }
1385   }
1386   /**
1387    *
1388    *
1389    * <pre>
1390    * [Output Only] URL of the region where this commitment may be used.
1391    * </pre>
1392    *
1393    * <code>optional string region = 138946292;</code>
1394    *
1395    * @return The bytes for region.
1396    */
1397   @java.lang.Override
getRegionBytes()1398   public com.google.protobuf.ByteString getRegionBytes() {
1399     java.lang.Object ref = region_;
1400     if (ref instanceof java.lang.String) {
1401       com.google.protobuf.ByteString b =
1402           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1403       region_ = b;
1404       return b;
1405     } else {
1406       return (com.google.protobuf.ByteString) ref;
1407     }
1408   }
1409 
1410   public static final int RESERVATIONS_FIELD_NUMBER = 399717927;
1411 
1412   @SuppressWarnings("serial")
1413   private java.util.List<com.google.cloud.compute.v1.Reservation> reservations_;
1414   /**
1415    *
1416    *
1417    * <pre>
1418    * List of reservations in this commitment.
1419    * </pre>
1420    *
1421    * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
1422    */
1423   @java.lang.Override
getReservationsList()1424   public java.util.List<com.google.cloud.compute.v1.Reservation> getReservationsList() {
1425     return reservations_;
1426   }
1427   /**
1428    *
1429    *
1430    * <pre>
1431    * List of reservations in this commitment.
1432    * </pre>
1433    *
1434    * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
1435    */
1436   @java.lang.Override
1437   public java.util.List<? extends com.google.cloud.compute.v1.ReservationOrBuilder>
getReservationsOrBuilderList()1438       getReservationsOrBuilderList() {
1439     return reservations_;
1440   }
1441   /**
1442    *
1443    *
1444    * <pre>
1445    * List of reservations in this commitment.
1446    * </pre>
1447    *
1448    * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
1449    */
1450   @java.lang.Override
getReservationsCount()1451   public int getReservationsCount() {
1452     return reservations_.size();
1453   }
1454   /**
1455    *
1456    *
1457    * <pre>
1458    * List of reservations in this commitment.
1459    * </pre>
1460    *
1461    * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
1462    */
1463   @java.lang.Override
getReservations(int index)1464   public com.google.cloud.compute.v1.Reservation getReservations(int index) {
1465     return reservations_.get(index);
1466   }
1467   /**
1468    *
1469    *
1470    * <pre>
1471    * List of reservations in this commitment.
1472    * </pre>
1473    *
1474    * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
1475    */
1476   @java.lang.Override
getReservationsOrBuilder(int index)1477   public com.google.cloud.compute.v1.ReservationOrBuilder getReservationsOrBuilder(int index) {
1478     return reservations_.get(index);
1479   }
1480 
1481   public static final int RESOURCES_FIELD_NUMBER = 164412965;
1482 
1483   @SuppressWarnings("serial")
1484   private java.util.List<com.google.cloud.compute.v1.ResourceCommitment> resources_;
1485   /**
1486    *
1487    *
1488    * <pre>
1489    * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
1490    * </pre>
1491    *
1492    * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
1493    */
1494   @java.lang.Override
getResourcesList()1495   public java.util.List<com.google.cloud.compute.v1.ResourceCommitment> getResourcesList() {
1496     return resources_;
1497   }
1498   /**
1499    *
1500    *
1501    * <pre>
1502    * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
1503    * </pre>
1504    *
1505    * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
1506    */
1507   @java.lang.Override
1508   public java.util.List<? extends com.google.cloud.compute.v1.ResourceCommitmentOrBuilder>
getResourcesOrBuilderList()1509       getResourcesOrBuilderList() {
1510     return resources_;
1511   }
1512   /**
1513    *
1514    *
1515    * <pre>
1516    * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
1517    * </pre>
1518    *
1519    * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
1520    */
1521   @java.lang.Override
getResourcesCount()1522   public int getResourcesCount() {
1523     return resources_.size();
1524   }
1525   /**
1526    *
1527    *
1528    * <pre>
1529    * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
1530    * </pre>
1531    *
1532    * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
1533    */
1534   @java.lang.Override
getResources(int index)1535   public com.google.cloud.compute.v1.ResourceCommitment getResources(int index) {
1536     return resources_.get(index);
1537   }
1538   /**
1539    *
1540    *
1541    * <pre>
1542    * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
1543    * </pre>
1544    *
1545    * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
1546    */
1547   @java.lang.Override
getResourcesOrBuilder(int index)1548   public com.google.cloud.compute.v1.ResourceCommitmentOrBuilder getResourcesOrBuilder(int index) {
1549     return resources_.get(index);
1550   }
1551 
1552   public static final int SELF_LINK_FIELD_NUMBER = 456214797;
1553 
1554   @SuppressWarnings("serial")
1555   private volatile java.lang.Object selfLink_ = "";
1556   /**
1557    *
1558    *
1559    * <pre>
1560    * [Output Only] Server-defined URL for the resource.
1561    * </pre>
1562    *
1563    * <code>optional string self_link = 456214797;</code>
1564    *
1565    * @return Whether the selfLink field is set.
1566    */
1567   @java.lang.Override
hasSelfLink()1568   public boolean hasSelfLink() {
1569     return ((bitField0_ & 0x00000800) != 0);
1570   }
1571   /**
1572    *
1573    *
1574    * <pre>
1575    * [Output Only] Server-defined URL for the resource.
1576    * </pre>
1577    *
1578    * <code>optional string self_link = 456214797;</code>
1579    *
1580    * @return The selfLink.
1581    */
1582   @java.lang.Override
getSelfLink()1583   public java.lang.String getSelfLink() {
1584     java.lang.Object ref = selfLink_;
1585     if (ref instanceof java.lang.String) {
1586       return (java.lang.String) ref;
1587     } else {
1588       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1589       java.lang.String s = bs.toStringUtf8();
1590       selfLink_ = s;
1591       return s;
1592     }
1593   }
1594   /**
1595    *
1596    *
1597    * <pre>
1598    * [Output Only] Server-defined URL for the resource.
1599    * </pre>
1600    *
1601    * <code>optional string self_link = 456214797;</code>
1602    *
1603    * @return The bytes for selfLink.
1604    */
1605   @java.lang.Override
getSelfLinkBytes()1606   public com.google.protobuf.ByteString getSelfLinkBytes() {
1607     java.lang.Object ref = selfLink_;
1608     if (ref instanceof java.lang.String) {
1609       com.google.protobuf.ByteString b =
1610           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1611       selfLink_ = b;
1612       return b;
1613     } else {
1614       return (com.google.protobuf.ByteString) ref;
1615     }
1616   }
1617 
1618   public static final int SPLIT_SOURCE_COMMITMENT_FIELD_NUMBER = 402611156;
1619 
1620   @SuppressWarnings("serial")
1621   private volatile java.lang.Object splitSourceCommitment_ = "";
1622   /**
1623    *
1624    *
1625    * <pre>
1626    * Source commitment to be splitted into a new commitment.
1627    * </pre>
1628    *
1629    * <code>optional string split_source_commitment = 402611156;</code>
1630    *
1631    * @return Whether the splitSourceCommitment field is set.
1632    */
1633   @java.lang.Override
hasSplitSourceCommitment()1634   public boolean hasSplitSourceCommitment() {
1635     return ((bitField0_ & 0x00001000) != 0);
1636   }
1637   /**
1638    *
1639    *
1640    * <pre>
1641    * Source commitment to be splitted into a new commitment.
1642    * </pre>
1643    *
1644    * <code>optional string split_source_commitment = 402611156;</code>
1645    *
1646    * @return The splitSourceCommitment.
1647    */
1648   @java.lang.Override
getSplitSourceCommitment()1649   public java.lang.String getSplitSourceCommitment() {
1650     java.lang.Object ref = splitSourceCommitment_;
1651     if (ref instanceof java.lang.String) {
1652       return (java.lang.String) ref;
1653     } else {
1654       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1655       java.lang.String s = bs.toStringUtf8();
1656       splitSourceCommitment_ = s;
1657       return s;
1658     }
1659   }
1660   /**
1661    *
1662    *
1663    * <pre>
1664    * Source commitment to be splitted into a new commitment.
1665    * </pre>
1666    *
1667    * <code>optional string split_source_commitment = 402611156;</code>
1668    *
1669    * @return The bytes for splitSourceCommitment.
1670    */
1671   @java.lang.Override
getSplitSourceCommitmentBytes()1672   public com.google.protobuf.ByteString getSplitSourceCommitmentBytes() {
1673     java.lang.Object ref = splitSourceCommitment_;
1674     if (ref instanceof java.lang.String) {
1675       com.google.protobuf.ByteString b =
1676           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1677       splitSourceCommitment_ = b;
1678       return b;
1679     } else {
1680       return (com.google.protobuf.ByteString) ref;
1681     }
1682   }
1683 
1684   public static final int START_TIMESTAMP_FIELD_NUMBER = 83645817;
1685 
1686   @SuppressWarnings("serial")
1687   private volatile java.lang.Object startTimestamp_ = "";
1688   /**
1689    *
1690    *
1691    * <pre>
1692    * [Output Only] Commitment start time in RFC3339 text format.
1693    * </pre>
1694    *
1695    * <code>optional string start_timestamp = 83645817;</code>
1696    *
1697    * @return Whether the startTimestamp field is set.
1698    */
1699   @java.lang.Override
hasStartTimestamp()1700   public boolean hasStartTimestamp() {
1701     return ((bitField0_ & 0x00002000) != 0);
1702   }
1703   /**
1704    *
1705    *
1706    * <pre>
1707    * [Output Only] Commitment start time in RFC3339 text format.
1708    * </pre>
1709    *
1710    * <code>optional string start_timestamp = 83645817;</code>
1711    *
1712    * @return The startTimestamp.
1713    */
1714   @java.lang.Override
getStartTimestamp()1715   public java.lang.String getStartTimestamp() {
1716     java.lang.Object ref = startTimestamp_;
1717     if (ref instanceof java.lang.String) {
1718       return (java.lang.String) ref;
1719     } else {
1720       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1721       java.lang.String s = bs.toStringUtf8();
1722       startTimestamp_ = s;
1723       return s;
1724     }
1725   }
1726   /**
1727    *
1728    *
1729    * <pre>
1730    * [Output Only] Commitment start time in RFC3339 text format.
1731    * </pre>
1732    *
1733    * <code>optional string start_timestamp = 83645817;</code>
1734    *
1735    * @return The bytes for startTimestamp.
1736    */
1737   @java.lang.Override
getStartTimestampBytes()1738   public com.google.protobuf.ByteString getStartTimestampBytes() {
1739     java.lang.Object ref = startTimestamp_;
1740     if (ref instanceof java.lang.String) {
1741       com.google.protobuf.ByteString b =
1742           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1743       startTimestamp_ = b;
1744       return b;
1745     } else {
1746       return (com.google.protobuf.ByteString) ref;
1747     }
1748   }
1749 
1750   public static final int STATUS_FIELD_NUMBER = 181260274;
1751 
1752   @SuppressWarnings("serial")
1753   private volatile java.lang.Object status_ = "";
1754   /**
1755    *
1756    *
1757    * <pre>
1758    * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
1759    * Check the Status enum for the list of possible values.
1760    * </pre>
1761    *
1762    * <code>optional string status = 181260274;</code>
1763    *
1764    * @return Whether the status field is set.
1765    */
1766   @java.lang.Override
hasStatus()1767   public boolean hasStatus() {
1768     return ((bitField0_ & 0x00004000) != 0);
1769   }
1770   /**
1771    *
1772    *
1773    * <pre>
1774    * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
1775    * Check the Status enum for the list of possible values.
1776    * </pre>
1777    *
1778    * <code>optional string status = 181260274;</code>
1779    *
1780    * @return The status.
1781    */
1782   @java.lang.Override
getStatus()1783   public java.lang.String getStatus() {
1784     java.lang.Object ref = status_;
1785     if (ref instanceof java.lang.String) {
1786       return (java.lang.String) ref;
1787     } else {
1788       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1789       java.lang.String s = bs.toStringUtf8();
1790       status_ = s;
1791       return s;
1792     }
1793   }
1794   /**
1795    *
1796    *
1797    * <pre>
1798    * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
1799    * Check the Status enum for the list of possible values.
1800    * </pre>
1801    *
1802    * <code>optional string status = 181260274;</code>
1803    *
1804    * @return The bytes for status.
1805    */
1806   @java.lang.Override
getStatusBytes()1807   public com.google.protobuf.ByteString getStatusBytes() {
1808     java.lang.Object ref = status_;
1809     if (ref instanceof java.lang.String) {
1810       com.google.protobuf.ByteString b =
1811           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1812       status_ = b;
1813       return b;
1814     } else {
1815       return (com.google.protobuf.ByteString) ref;
1816     }
1817   }
1818 
1819   public static final int STATUS_MESSAGE_FIELD_NUMBER = 297428154;
1820 
1821   @SuppressWarnings("serial")
1822   private volatile java.lang.Object statusMessage_ = "";
1823   /**
1824    *
1825    *
1826    * <pre>
1827    * [Output Only] An optional, human-readable explanation of the status.
1828    * </pre>
1829    *
1830    * <code>optional string status_message = 297428154;</code>
1831    *
1832    * @return Whether the statusMessage field is set.
1833    */
1834   @java.lang.Override
hasStatusMessage()1835   public boolean hasStatusMessage() {
1836     return ((bitField0_ & 0x00008000) != 0);
1837   }
1838   /**
1839    *
1840    *
1841    * <pre>
1842    * [Output Only] An optional, human-readable explanation of the status.
1843    * </pre>
1844    *
1845    * <code>optional string status_message = 297428154;</code>
1846    *
1847    * @return The statusMessage.
1848    */
1849   @java.lang.Override
getStatusMessage()1850   public java.lang.String getStatusMessage() {
1851     java.lang.Object ref = statusMessage_;
1852     if (ref instanceof java.lang.String) {
1853       return (java.lang.String) ref;
1854     } else {
1855       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1856       java.lang.String s = bs.toStringUtf8();
1857       statusMessage_ = s;
1858       return s;
1859     }
1860   }
1861   /**
1862    *
1863    *
1864    * <pre>
1865    * [Output Only] An optional, human-readable explanation of the status.
1866    * </pre>
1867    *
1868    * <code>optional string status_message = 297428154;</code>
1869    *
1870    * @return The bytes for statusMessage.
1871    */
1872   @java.lang.Override
getStatusMessageBytes()1873   public com.google.protobuf.ByteString getStatusMessageBytes() {
1874     java.lang.Object ref = statusMessage_;
1875     if (ref instanceof java.lang.String) {
1876       com.google.protobuf.ByteString b =
1877           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1878       statusMessage_ = b;
1879       return b;
1880     } else {
1881       return (com.google.protobuf.ByteString) ref;
1882     }
1883   }
1884 
1885   public static final int TYPE_FIELD_NUMBER = 3575610;
1886 
1887   @SuppressWarnings("serial")
1888   private volatile java.lang.Object type_ = "";
1889   /**
1890    *
1891    *
1892    * <pre>
1893    * The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
1894    * Check the Type enum for the list of possible values.
1895    * </pre>
1896    *
1897    * <code>optional string type = 3575610;</code>
1898    *
1899    * @return Whether the type field is set.
1900    */
1901   @java.lang.Override
hasType()1902   public boolean hasType() {
1903     return ((bitField0_ & 0x00010000) != 0);
1904   }
1905   /**
1906    *
1907    *
1908    * <pre>
1909    * The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
1910    * Check the Type enum for the list of possible values.
1911    * </pre>
1912    *
1913    * <code>optional string type = 3575610;</code>
1914    *
1915    * @return The type.
1916    */
1917   @java.lang.Override
getType()1918   public java.lang.String getType() {
1919     java.lang.Object ref = type_;
1920     if (ref instanceof java.lang.String) {
1921       return (java.lang.String) ref;
1922     } else {
1923       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1924       java.lang.String s = bs.toStringUtf8();
1925       type_ = s;
1926       return s;
1927     }
1928   }
1929   /**
1930    *
1931    *
1932    * <pre>
1933    * The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
1934    * Check the Type enum for the list of possible values.
1935    * </pre>
1936    *
1937    * <code>optional string type = 3575610;</code>
1938    *
1939    * @return The bytes for type.
1940    */
1941   @java.lang.Override
getTypeBytes()1942   public com.google.protobuf.ByteString getTypeBytes() {
1943     java.lang.Object ref = type_;
1944     if (ref instanceof java.lang.String) {
1945       com.google.protobuf.ByteString b =
1946           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1947       type_ = b;
1948       return b;
1949     } else {
1950       return (com.google.protobuf.ByteString) ref;
1951     }
1952   }
1953 
1954   private byte memoizedIsInitialized = -1;
1955 
1956   @java.lang.Override
isInitialized()1957   public final boolean isInitialized() {
1958     byte isInitialized = memoizedIsInitialized;
1959     if (isInitialized == 1) return true;
1960     if (isInitialized == 0) return false;
1961 
1962     memoizedIsInitialized = 1;
1963     return true;
1964   }
1965 
1966   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1967   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1968     if (((bitField0_ & 0x00000020) != 0)) {
1969       output.writeUInt64(3355, id_);
1970     }
1971     if (((bitField0_ & 0x00000040) != 0)) {
1972       com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_);
1973     }
1974     if (((bitField0_ & 0x00000100) != 0)) {
1975       com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_);
1976     }
1977     if (((bitField0_ & 0x00000200) != 0)) {
1978       com.google.protobuf.GeneratedMessageV3.writeString(output, 3443497, plan_);
1979     }
1980     if (((bitField0_ & 0x00010000) != 0)) {
1981       com.google.protobuf.GeneratedMessageV3.writeString(output, 3575610, type_);
1982     }
1983     if (((bitField0_ & 0x00000004) != 0)) {
1984       com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_);
1985     }
1986     if (((bitField0_ & 0x00000002) != 0)) {
1987       com.google.protobuf.GeneratedMessageV3.writeString(output, 50511102, category_);
1988     }
1989     if (((bitField0_ & 0x00002000) != 0)) {
1990       com.google.protobuf.GeneratedMessageV3.writeString(output, 83645817, startTimestamp_);
1991     }
1992     if (((bitField0_ & 0x00000400) != 0)) {
1993       com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_);
1994     }
1995     for (int i = 0; i < resources_.size(); i++) {
1996       output.writeMessage(164412965, resources_.get(i));
1997     }
1998     if (((bitField0_ & 0x00004000) != 0)) {
1999       com.google.protobuf.GeneratedMessageV3.writeString(output, 181260274, status_);
2000     }
2001     for (int i = 0; i < mergeSourceCommitments_.size(); i++) {
2002       com.google.protobuf.GeneratedMessageV3.writeString(
2003           output, 188093761, mergeSourceCommitments_.getRaw(i));
2004     }
2005     if (((bitField0_ & 0x00008000) != 0)) {
2006       com.google.protobuf.GeneratedMessageV3.writeString(output, 297428154, statusMessage_);
2007     }
2008     for (int i = 0; i < reservations_.size(); i++) {
2009       output.writeMessage(399717927, reservations_.get(i));
2010     }
2011     if (((bitField0_ & 0x00001000) != 0)) {
2012       com.google.protobuf.GeneratedMessageV3.writeString(output, 402611156, splitSourceCommitment_);
2013     }
2014     if (((bitField0_ & 0x00000008) != 0)) {
2015       com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_);
2016     }
2017     if (((bitField0_ & 0x00000080) != 0)) {
2018       output.writeMessage(437955148, getLicenseResource());
2019     }
2020     if (((bitField0_ & 0x00000800) != 0)) {
2021       com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_);
2022     }
2023     if (((bitField0_ & 0x00000010) != 0)) {
2024       com.google.protobuf.GeneratedMessageV3.writeString(output, 468096690, endTimestamp_);
2025     }
2026     if (((bitField0_ & 0x00000001) != 0)) {
2027       output.writeBool(495520765, autoRenew_);
2028     }
2029     getUnknownFields().writeTo(output);
2030   }
2031 
2032   @java.lang.Override
getSerializedSize()2033   public int getSerializedSize() {
2034     int size = memoizedSize;
2035     if (size != -1) return size;
2036 
2037     size = 0;
2038     if (((bitField0_ & 0x00000020) != 0)) {
2039       size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_);
2040     }
2041     if (((bitField0_ & 0x00000040) != 0)) {
2042       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_);
2043     }
2044     if (((bitField0_ & 0x00000100) != 0)) {
2045       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_);
2046     }
2047     if (((bitField0_ & 0x00000200) != 0)) {
2048       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3443497, plan_);
2049     }
2050     if (((bitField0_ & 0x00010000) != 0)) {
2051       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3575610, type_);
2052     }
2053     if (((bitField0_ & 0x00000004) != 0)) {
2054       size +=
2055           com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_);
2056     }
2057     if (((bitField0_ & 0x00000002) != 0)) {
2058       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(50511102, category_);
2059     }
2060     if (((bitField0_ & 0x00002000) != 0)) {
2061       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(83645817, startTimestamp_);
2062     }
2063     if (((bitField0_ & 0x00000400) != 0)) {
2064       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_);
2065     }
2066     for (int i = 0; i < resources_.size(); i++) {
2067       size +=
2068           com.google.protobuf.CodedOutputStream.computeMessageSize(164412965, resources_.get(i));
2069     }
2070     if (((bitField0_ & 0x00004000) != 0)) {
2071       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(181260274, status_);
2072     }
2073     {
2074       int dataSize = 0;
2075       for (int i = 0; i < mergeSourceCommitments_.size(); i++) {
2076         dataSize += computeStringSizeNoTag(mergeSourceCommitments_.getRaw(i));
2077       }
2078       size += dataSize;
2079       size += 5 * getMergeSourceCommitmentsList().size();
2080     }
2081     if (((bitField0_ & 0x00008000) != 0)) {
2082       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(297428154, statusMessage_);
2083     }
2084     for (int i = 0; i < reservations_.size(); i++) {
2085       size +=
2086           com.google.protobuf.CodedOutputStream.computeMessageSize(399717927, reservations_.get(i));
2087     }
2088     if (((bitField0_ & 0x00001000) != 0)) {
2089       size +=
2090           com.google.protobuf.GeneratedMessageV3.computeStringSize(
2091               402611156, splitSourceCommitment_);
2092     }
2093     if (((bitField0_ & 0x00000008) != 0)) {
2094       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_);
2095     }
2096     if (((bitField0_ & 0x00000080) != 0)) {
2097       size +=
2098           com.google.protobuf.CodedOutputStream.computeMessageSize(437955148, getLicenseResource());
2099     }
2100     if (((bitField0_ & 0x00000800) != 0)) {
2101       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_);
2102     }
2103     if (((bitField0_ & 0x00000010) != 0)) {
2104       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(468096690, endTimestamp_);
2105     }
2106     if (((bitField0_ & 0x00000001) != 0)) {
2107       size += com.google.protobuf.CodedOutputStream.computeBoolSize(495520765, autoRenew_);
2108     }
2109     size += getUnknownFields().getSerializedSize();
2110     memoizedSize = size;
2111     return size;
2112   }
2113 
2114   @java.lang.Override
equals(final java.lang.Object obj)2115   public boolean equals(final java.lang.Object obj) {
2116     if (obj == this) {
2117       return true;
2118     }
2119     if (!(obj instanceof com.google.cloud.compute.v1.Commitment)) {
2120       return super.equals(obj);
2121     }
2122     com.google.cloud.compute.v1.Commitment other = (com.google.cloud.compute.v1.Commitment) obj;
2123 
2124     if (hasAutoRenew() != other.hasAutoRenew()) return false;
2125     if (hasAutoRenew()) {
2126       if (getAutoRenew() != other.getAutoRenew()) return false;
2127     }
2128     if (hasCategory() != other.hasCategory()) return false;
2129     if (hasCategory()) {
2130       if (!getCategory().equals(other.getCategory())) return false;
2131     }
2132     if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false;
2133     if (hasCreationTimestamp()) {
2134       if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false;
2135     }
2136     if (hasDescription() != other.hasDescription()) return false;
2137     if (hasDescription()) {
2138       if (!getDescription().equals(other.getDescription())) return false;
2139     }
2140     if (hasEndTimestamp() != other.hasEndTimestamp()) return false;
2141     if (hasEndTimestamp()) {
2142       if (!getEndTimestamp().equals(other.getEndTimestamp())) return false;
2143     }
2144     if (hasId() != other.hasId()) return false;
2145     if (hasId()) {
2146       if (getId() != other.getId()) return false;
2147     }
2148     if (hasKind() != other.hasKind()) return false;
2149     if (hasKind()) {
2150       if (!getKind().equals(other.getKind())) return false;
2151     }
2152     if (hasLicenseResource() != other.hasLicenseResource()) return false;
2153     if (hasLicenseResource()) {
2154       if (!getLicenseResource().equals(other.getLicenseResource())) return false;
2155     }
2156     if (!getMergeSourceCommitmentsList().equals(other.getMergeSourceCommitmentsList()))
2157       return false;
2158     if (hasName() != other.hasName()) return false;
2159     if (hasName()) {
2160       if (!getName().equals(other.getName())) return false;
2161     }
2162     if (hasPlan() != other.hasPlan()) return false;
2163     if (hasPlan()) {
2164       if (!getPlan().equals(other.getPlan())) return false;
2165     }
2166     if (hasRegion() != other.hasRegion()) return false;
2167     if (hasRegion()) {
2168       if (!getRegion().equals(other.getRegion())) return false;
2169     }
2170     if (!getReservationsList().equals(other.getReservationsList())) return false;
2171     if (!getResourcesList().equals(other.getResourcesList())) return false;
2172     if (hasSelfLink() != other.hasSelfLink()) return false;
2173     if (hasSelfLink()) {
2174       if (!getSelfLink().equals(other.getSelfLink())) return false;
2175     }
2176     if (hasSplitSourceCommitment() != other.hasSplitSourceCommitment()) return false;
2177     if (hasSplitSourceCommitment()) {
2178       if (!getSplitSourceCommitment().equals(other.getSplitSourceCommitment())) return false;
2179     }
2180     if (hasStartTimestamp() != other.hasStartTimestamp()) return false;
2181     if (hasStartTimestamp()) {
2182       if (!getStartTimestamp().equals(other.getStartTimestamp())) return false;
2183     }
2184     if (hasStatus() != other.hasStatus()) return false;
2185     if (hasStatus()) {
2186       if (!getStatus().equals(other.getStatus())) return false;
2187     }
2188     if (hasStatusMessage() != other.hasStatusMessage()) return false;
2189     if (hasStatusMessage()) {
2190       if (!getStatusMessage().equals(other.getStatusMessage())) return false;
2191     }
2192     if (hasType() != other.hasType()) return false;
2193     if (hasType()) {
2194       if (!getType().equals(other.getType())) return false;
2195     }
2196     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
2197     return true;
2198   }
2199 
2200   @java.lang.Override
hashCode()2201   public int hashCode() {
2202     if (memoizedHashCode != 0) {
2203       return memoizedHashCode;
2204     }
2205     int hash = 41;
2206     hash = (19 * hash) + getDescriptor().hashCode();
2207     if (hasAutoRenew()) {
2208       hash = (37 * hash) + AUTO_RENEW_FIELD_NUMBER;
2209       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoRenew());
2210     }
2211     if (hasCategory()) {
2212       hash = (37 * hash) + CATEGORY_FIELD_NUMBER;
2213       hash = (53 * hash) + getCategory().hashCode();
2214     }
2215     if (hasCreationTimestamp()) {
2216       hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER;
2217       hash = (53 * hash) + getCreationTimestamp().hashCode();
2218     }
2219     if (hasDescription()) {
2220       hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
2221       hash = (53 * hash) + getDescription().hashCode();
2222     }
2223     if (hasEndTimestamp()) {
2224       hash = (37 * hash) + END_TIMESTAMP_FIELD_NUMBER;
2225       hash = (53 * hash) + getEndTimestamp().hashCode();
2226     }
2227     if (hasId()) {
2228       hash = (37 * hash) + ID_FIELD_NUMBER;
2229       hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId());
2230     }
2231     if (hasKind()) {
2232       hash = (37 * hash) + KIND_FIELD_NUMBER;
2233       hash = (53 * hash) + getKind().hashCode();
2234     }
2235     if (hasLicenseResource()) {
2236       hash = (37 * hash) + LICENSE_RESOURCE_FIELD_NUMBER;
2237       hash = (53 * hash) + getLicenseResource().hashCode();
2238     }
2239     if (getMergeSourceCommitmentsCount() > 0) {
2240       hash = (37 * hash) + MERGE_SOURCE_COMMITMENTS_FIELD_NUMBER;
2241       hash = (53 * hash) + getMergeSourceCommitmentsList().hashCode();
2242     }
2243     if (hasName()) {
2244       hash = (37 * hash) + NAME_FIELD_NUMBER;
2245       hash = (53 * hash) + getName().hashCode();
2246     }
2247     if (hasPlan()) {
2248       hash = (37 * hash) + PLAN_FIELD_NUMBER;
2249       hash = (53 * hash) + getPlan().hashCode();
2250     }
2251     if (hasRegion()) {
2252       hash = (37 * hash) + REGION_FIELD_NUMBER;
2253       hash = (53 * hash) + getRegion().hashCode();
2254     }
2255     if (getReservationsCount() > 0) {
2256       hash = (37 * hash) + RESERVATIONS_FIELD_NUMBER;
2257       hash = (53 * hash) + getReservationsList().hashCode();
2258     }
2259     if (getResourcesCount() > 0) {
2260       hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
2261       hash = (53 * hash) + getResourcesList().hashCode();
2262     }
2263     if (hasSelfLink()) {
2264       hash = (37 * hash) + SELF_LINK_FIELD_NUMBER;
2265       hash = (53 * hash) + getSelfLink().hashCode();
2266     }
2267     if (hasSplitSourceCommitment()) {
2268       hash = (37 * hash) + SPLIT_SOURCE_COMMITMENT_FIELD_NUMBER;
2269       hash = (53 * hash) + getSplitSourceCommitment().hashCode();
2270     }
2271     if (hasStartTimestamp()) {
2272       hash = (37 * hash) + START_TIMESTAMP_FIELD_NUMBER;
2273       hash = (53 * hash) + getStartTimestamp().hashCode();
2274     }
2275     if (hasStatus()) {
2276       hash = (37 * hash) + STATUS_FIELD_NUMBER;
2277       hash = (53 * hash) + getStatus().hashCode();
2278     }
2279     if (hasStatusMessage()) {
2280       hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER;
2281       hash = (53 * hash) + getStatusMessage().hashCode();
2282     }
2283     if (hasType()) {
2284       hash = (37 * hash) + TYPE_FIELD_NUMBER;
2285       hash = (53 * hash) + getType().hashCode();
2286     }
2287     hash = (29 * hash) + getUnknownFields().hashCode();
2288     memoizedHashCode = hash;
2289     return hash;
2290   }
2291 
parseFrom(java.nio.ByteBuffer data)2292   public static com.google.cloud.compute.v1.Commitment parseFrom(java.nio.ByteBuffer data)
2293       throws com.google.protobuf.InvalidProtocolBufferException {
2294     return PARSER.parseFrom(data);
2295   }
2296 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2297   public static com.google.cloud.compute.v1.Commitment parseFrom(
2298       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2299       throws com.google.protobuf.InvalidProtocolBufferException {
2300     return PARSER.parseFrom(data, extensionRegistry);
2301   }
2302 
parseFrom( com.google.protobuf.ByteString data)2303   public static com.google.cloud.compute.v1.Commitment parseFrom(
2304       com.google.protobuf.ByteString data)
2305       throws com.google.protobuf.InvalidProtocolBufferException {
2306     return PARSER.parseFrom(data);
2307   }
2308 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2309   public static com.google.cloud.compute.v1.Commitment parseFrom(
2310       com.google.protobuf.ByteString data,
2311       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2312       throws com.google.protobuf.InvalidProtocolBufferException {
2313     return PARSER.parseFrom(data, extensionRegistry);
2314   }
2315 
parseFrom(byte[] data)2316   public static com.google.cloud.compute.v1.Commitment parseFrom(byte[] data)
2317       throws com.google.protobuf.InvalidProtocolBufferException {
2318     return PARSER.parseFrom(data);
2319   }
2320 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2321   public static com.google.cloud.compute.v1.Commitment parseFrom(
2322       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2323       throws com.google.protobuf.InvalidProtocolBufferException {
2324     return PARSER.parseFrom(data, extensionRegistry);
2325   }
2326 
parseFrom(java.io.InputStream input)2327   public static com.google.cloud.compute.v1.Commitment parseFrom(java.io.InputStream input)
2328       throws java.io.IOException {
2329     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2330   }
2331 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2332   public static com.google.cloud.compute.v1.Commitment parseFrom(
2333       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2334       throws java.io.IOException {
2335     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2336         PARSER, input, extensionRegistry);
2337   }
2338 
parseDelimitedFrom(java.io.InputStream input)2339   public static com.google.cloud.compute.v1.Commitment parseDelimitedFrom(java.io.InputStream input)
2340       throws java.io.IOException {
2341     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
2342   }
2343 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2344   public static com.google.cloud.compute.v1.Commitment parseDelimitedFrom(
2345       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2346       throws java.io.IOException {
2347     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
2348         PARSER, input, extensionRegistry);
2349   }
2350 
parseFrom( com.google.protobuf.CodedInputStream input)2351   public static com.google.cloud.compute.v1.Commitment parseFrom(
2352       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
2353     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2354   }
2355 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2356   public static com.google.cloud.compute.v1.Commitment parseFrom(
2357       com.google.protobuf.CodedInputStream input,
2358       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2359       throws java.io.IOException {
2360     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2361         PARSER, input, extensionRegistry);
2362   }
2363 
2364   @java.lang.Override
newBuilderForType()2365   public Builder newBuilderForType() {
2366     return newBuilder();
2367   }
2368 
newBuilder()2369   public static Builder newBuilder() {
2370     return DEFAULT_INSTANCE.toBuilder();
2371   }
2372 
newBuilder(com.google.cloud.compute.v1.Commitment prototype)2373   public static Builder newBuilder(com.google.cloud.compute.v1.Commitment prototype) {
2374     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2375   }
2376 
2377   @java.lang.Override
toBuilder()2378   public Builder toBuilder() {
2379     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
2380   }
2381 
2382   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2383   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2384     Builder builder = new Builder(parent);
2385     return builder;
2386   }
2387   /**
2388    *
2389    *
2390    * <pre>
2391    * Represents a regional Commitment resource. Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts.
2392    * </pre>
2393    *
2394    * Protobuf type {@code google.cloud.compute.v1.Commitment}
2395    */
2396   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
2397       implements
2398       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.Commitment)
2399       com.google.cloud.compute.v1.CommitmentOrBuilder {
getDescriptor()2400     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2401       return com.google.cloud.compute.v1.Compute
2402           .internal_static_google_cloud_compute_v1_Commitment_descriptor;
2403     }
2404 
2405     @java.lang.Override
2406     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2407         internalGetFieldAccessorTable() {
2408       return com.google.cloud.compute.v1.Compute
2409           .internal_static_google_cloud_compute_v1_Commitment_fieldAccessorTable
2410           .ensureFieldAccessorsInitialized(
2411               com.google.cloud.compute.v1.Commitment.class,
2412               com.google.cloud.compute.v1.Commitment.Builder.class);
2413     }
2414 
2415     // Construct using com.google.cloud.compute.v1.Commitment.newBuilder()
Builder()2416     private Builder() {
2417       maybeForceBuilderInitialization();
2418     }
2419 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2420     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2421       super(parent);
2422       maybeForceBuilderInitialization();
2423     }
2424 
maybeForceBuilderInitialization()2425     private void maybeForceBuilderInitialization() {
2426       if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
2427         getLicenseResourceFieldBuilder();
2428         getReservationsFieldBuilder();
2429         getResourcesFieldBuilder();
2430       }
2431     }
2432 
2433     @java.lang.Override
clear()2434     public Builder clear() {
2435       super.clear();
2436       bitField0_ = 0;
2437       autoRenew_ = false;
2438       category_ = "";
2439       creationTimestamp_ = "";
2440       description_ = "";
2441       endTimestamp_ = "";
2442       id_ = 0L;
2443       kind_ = "";
2444       licenseResource_ = null;
2445       if (licenseResourceBuilder_ != null) {
2446         licenseResourceBuilder_.dispose();
2447         licenseResourceBuilder_ = null;
2448       }
2449       mergeSourceCommitments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
2450       bitField0_ = (bitField0_ & ~0x00000100);
2451       name_ = "";
2452       plan_ = "";
2453       region_ = "";
2454       if (reservationsBuilder_ == null) {
2455         reservations_ = java.util.Collections.emptyList();
2456       } else {
2457         reservations_ = null;
2458         reservationsBuilder_.clear();
2459       }
2460       bitField0_ = (bitField0_ & ~0x00001000);
2461       if (resourcesBuilder_ == null) {
2462         resources_ = java.util.Collections.emptyList();
2463       } else {
2464         resources_ = null;
2465         resourcesBuilder_.clear();
2466       }
2467       bitField0_ = (bitField0_ & ~0x00002000);
2468       selfLink_ = "";
2469       splitSourceCommitment_ = "";
2470       startTimestamp_ = "";
2471       status_ = "";
2472       statusMessage_ = "";
2473       type_ = "";
2474       return this;
2475     }
2476 
2477     @java.lang.Override
getDescriptorForType()2478     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
2479       return com.google.cloud.compute.v1.Compute
2480           .internal_static_google_cloud_compute_v1_Commitment_descriptor;
2481     }
2482 
2483     @java.lang.Override
getDefaultInstanceForType()2484     public com.google.cloud.compute.v1.Commitment getDefaultInstanceForType() {
2485       return com.google.cloud.compute.v1.Commitment.getDefaultInstance();
2486     }
2487 
2488     @java.lang.Override
build()2489     public com.google.cloud.compute.v1.Commitment build() {
2490       com.google.cloud.compute.v1.Commitment result = buildPartial();
2491       if (!result.isInitialized()) {
2492         throw newUninitializedMessageException(result);
2493       }
2494       return result;
2495     }
2496 
2497     @java.lang.Override
buildPartial()2498     public com.google.cloud.compute.v1.Commitment buildPartial() {
2499       com.google.cloud.compute.v1.Commitment result =
2500           new com.google.cloud.compute.v1.Commitment(this);
2501       buildPartialRepeatedFields(result);
2502       if (bitField0_ != 0) {
2503         buildPartial0(result);
2504       }
2505       onBuilt();
2506       return result;
2507     }
2508 
buildPartialRepeatedFields(com.google.cloud.compute.v1.Commitment result)2509     private void buildPartialRepeatedFields(com.google.cloud.compute.v1.Commitment result) {
2510       if (((bitField0_ & 0x00000100) != 0)) {
2511         mergeSourceCommitments_ = mergeSourceCommitments_.getUnmodifiableView();
2512         bitField0_ = (bitField0_ & ~0x00000100);
2513       }
2514       result.mergeSourceCommitments_ = mergeSourceCommitments_;
2515       if (reservationsBuilder_ == null) {
2516         if (((bitField0_ & 0x00001000) != 0)) {
2517           reservations_ = java.util.Collections.unmodifiableList(reservations_);
2518           bitField0_ = (bitField0_ & ~0x00001000);
2519         }
2520         result.reservations_ = reservations_;
2521       } else {
2522         result.reservations_ = reservationsBuilder_.build();
2523       }
2524       if (resourcesBuilder_ == null) {
2525         if (((bitField0_ & 0x00002000) != 0)) {
2526           resources_ = java.util.Collections.unmodifiableList(resources_);
2527           bitField0_ = (bitField0_ & ~0x00002000);
2528         }
2529         result.resources_ = resources_;
2530       } else {
2531         result.resources_ = resourcesBuilder_.build();
2532       }
2533     }
2534 
buildPartial0(com.google.cloud.compute.v1.Commitment result)2535     private void buildPartial0(com.google.cloud.compute.v1.Commitment result) {
2536       int from_bitField0_ = bitField0_;
2537       int to_bitField0_ = 0;
2538       if (((from_bitField0_ & 0x00000001) != 0)) {
2539         result.autoRenew_ = autoRenew_;
2540         to_bitField0_ |= 0x00000001;
2541       }
2542       if (((from_bitField0_ & 0x00000002) != 0)) {
2543         result.category_ = category_;
2544         to_bitField0_ |= 0x00000002;
2545       }
2546       if (((from_bitField0_ & 0x00000004) != 0)) {
2547         result.creationTimestamp_ = creationTimestamp_;
2548         to_bitField0_ |= 0x00000004;
2549       }
2550       if (((from_bitField0_ & 0x00000008) != 0)) {
2551         result.description_ = description_;
2552         to_bitField0_ |= 0x00000008;
2553       }
2554       if (((from_bitField0_ & 0x00000010) != 0)) {
2555         result.endTimestamp_ = endTimestamp_;
2556         to_bitField0_ |= 0x00000010;
2557       }
2558       if (((from_bitField0_ & 0x00000020) != 0)) {
2559         result.id_ = id_;
2560         to_bitField0_ |= 0x00000020;
2561       }
2562       if (((from_bitField0_ & 0x00000040) != 0)) {
2563         result.kind_ = kind_;
2564         to_bitField0_ |= 0x00000040;
2565       }
2566       if (((from_bitField0_ & 0x00000080) != 0)) {
2567         result.licenseResource_ =
2568             licenseResourceBuilder_ == null ? licenseResource_ : licenseResourceBuilder_.build();
2569         to_bitField0_ |= 0x00000080;
2570       }
2571       if (((from_bitField0_ & 0x00000200) != 0)) {
2572         result.name_ = name_;
2573         to_bitField0_ |= 0x00000100;
2574       }
2575       if (((from_bitField0_ & 0x00000400) != 0)) {
2576         result.plan_ = plan_;
2577         to_bitField0_ |= 0x00000200;
2578       }
2579       if (((from_bitField0_ & 0x00000800) != 0)) {
2580         result.region_ = region_;
2581         to_bitField0_ |= 0x00000400;
2582       }
2583       if (((from_bitField0_ & 0x00004000) != 0)) {
2584         result.selfLink_ = selfLink_;
2585         to_bitField0_ |= 0x00000800;
2586       }
2587       if (((from_bitField0_ & 0x00008000) != 0)) {
2588         result.splitSourceCommitment_ = splitSourceCommitment_;
2589         to_bitField0_ |= 0x00001000;
2590       }
2591       if (((from_bitField0_ & 0x00010000) != 0)) {
2592         result.startTimestamp_ = startTimestamp_;
2593         to_bitField0_ |= 0x00002000;
2594       }
2595       if (((from_bitField0_ & 0x00020000) != 0)) {
2596         result.status_ = status_;
2597         to_bitField0_ |= 0x00004000;
2598       }
2599       if (((from_bitField0_ & 0x00040000) != 0)) {
2600         result.statusMessage_ = statusMessage_;
2601         to_bitField0_ |= 0x00008000;
2602       }
2603       if (((from_bitField0_ & 0x00080000) != 0)) {
2604         result.type_ = type_;
2605         to_bitField0_ |= 0x00010000;
2606       }
2607       result.bitField0_ |= to_bitField0_;
2608     }
2609 
2610     @java.lang.Override
clone()2611     public Builder clone() {
2612       return super.clone();
2613     }
2614 
2615     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2616     public Builder setField(
2617         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2618       return super.setField(field, value);
2619     }
2620 
2621     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2622     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
2623       return super.clearField(field);
2624     }
2625 
2626     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2627     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2628       return super.clearOneof(oneof);
2629     }
2630 
2631     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2632     public Builder setRepeatedField(
2633         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
2634       return super.setRepeatedField(field, index, value);
2635     }
2636 
2637     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2638     public Builder addRepeatedField(
2639         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2640       return super.addRepeatedField(field, value);
2641     }
2642 
2643     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)2644     public Builder mergeFrom(com.google.protobuf.Message other) {
2645       if (other instanceof com.google.cloud.compute.v1.Commitment) {
2646         return mergeFrom((com.google.cloud.compute.v1.Commitment) other);
2647       } else {
2648         super.mergeFrom(other);
2649         return this;
2650       }
2651     }
2652 
mergeFrom(com.google.cloud.compute.v1.Commitment other)2653     public Builder mergeFrom(com.google.cloud.compute.v1.Commitment other) {
2654       if (other == com.google.cloud.compute.v1.Commitment.getDefaultInstance()) return this;
2655       if (other.hasAutoRenew()) {
2656         setAutoRenew(other.getAutoRenew());
2657       }
2658       if (other.hasCategory()) {
2659         category_ = other.category_;
2660         bitField0_ |= 0x00000002;
2661         onChanged();
2662       }
2663       if (other.hasCreationTimestamp()) {
2664         creationTimestamp_ = other.creationTimestamp_;
2665         bitField0_ |= 0x00000004;
2666         onChanged();
2667       }
2668       if (other.hasDescription()) {
2669         description_ = other.description_;
2670         bitField0_ |= 0x00000008;
2671         onChanged();
2672       }
2673       if (other.hasEndTimestamp()) {
2674         endTimestamp_ = other.endTimestamp_;
2675         bitField0_ |= 0x00000010;
2676         onChanged();
2677       }
2678       if (other.hasId()) {
2679         setId(other.getId());
2680       }
2681       if (other.hasKind()) {
2682         kind_ = other.kind_;
2683         bitField0_ |= 0x00000040;
2684         onChanged();
2685       }
2686       if (other.hasLicenseResource()) {
2687         mergeLicenseResource(other.getLicenseResource());
2688       }
2689       if (!other.mergeSourceCommitments_.isEmpty()) {
2690         if (mergeSourceCommitments_.isEmpty()) {
2691           mergeSourceCommitments_ = other.mergeSourceCommitments_;
2692           bitField0_ = (bitField0_ & ~0x00000100);
2693         } else {
2694           ensureMergeSourceCommitmentsIsMutable();
2695           mergeSourceCommitments_.addAll(other.mergeSourceCommitments_);
2696         }
2697         onChanged();
2698       }
2699       if (other.hasName()) {
2700         name_ = other.name_;
2701         bitField0_ |= 0x00000200;
2702         onChanged();
2703       }
2704       if (other.hasPlan()) {
2705         plan_ = other.plan_;
2706         bitField0_ |= 0x00000400;
2707         onChanged();
2708       }
2709       if (other.hasRegion()) {
2710         region_ = other.region_;
2711         bitField0_ |= 0x00000800;
2712         onChanged();
2713       }
2714       if (reservationsBuilder_ == null) {
2715         if (!other.reservations_.isEmpty()) {
2716           if (reservations_.isEmpty()) {
2717             reservations_ = other.reservations_;
2718             bitField0_ = (bitField0_ & ~0x00001000);
2719           } else {
2720             ensureReservationsIsMutable();
2721             reservations_.addAll(other.reservations_);
2722           }
2723           onChanged();
2724         }
2725       } else {
2726         if (!other.reservations_.isEmpty()) {
2727           if (reservationsBuilder_.isEmpty()) {
2728             reservationsBuilder_.dispose();
2729             reservationsBuilder_ = null;
2730             reservations_ = other.reservations_;
2731             bitField0_ = (bitField0_ & ~0x00001000);
2732             reservationsBuilder_ =
2733                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
2734                     ? getReservationsFieldBuilder()
2735                     : null;
2736           } else {
2737             reservationsBuilder_.addAllMessages(other.reservations_);
2738           }
2739         }
2740       }
2741       if (resourcesBuilder_ == null) {
2742         if (!other.resources_.isEmpty()) {
2743           if (resources_.isEmpty()) {
2744             resources_ = other.resources_;
2745             bitField0_ = (bitField0_ & ~0x00002000);
2746           } else {
2747             ensureResourcesIsMutable();
2748             resources_.addAll(other.resources_);
2749           }
2750           onChanged();
2751         }
2752       } else {
2753         if (!other.resources_.isEmpty()) {
2754           if (resourcesBuilder_.isEmpty()) {
2755             resourcesBuilder_.dispose();
2756             resourcesBuilder_ = null;
2757             resources_ = other.resources_;
2758             bitField0_ = (bitField0_ & ~0x00002000);
2759             resourcesBuilder_ =
2760                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
2761                     ? getResourcesFieldBuilder()
2762                     : null;
2763           } else {
2764             resourcesBuilder_.addAllMessages(other.resources_);
2765           }
2766         }
2767       }
2768       if (other.hasSelfLink()) {
2769         selfLink_ = other.selfLink_;
2770         bitField0_ |= 0x00004000;
2771         onChanged();
2772       }
2773       if (other.hasSplitSourceCommitment()) {
2774         splitSourceCommitment_ = other.splitSourceCommitment_;
2775         bitField0_ |= 0x00008000;
2776         onChanged();
2777       }
2778       if (other.hasStartTimestamp()) {
2779         startTimestamp_ = other.startTimestamp_;
2780         bitField0_ |= 0x00010000;
2781         onChanged();
2782       }
2783       if (other.hasStatus()) {
2784         status_ = other.status_;
2785         bitField0_ |= 0x00020000;
2786         onChanged();
2787       }
2788       if (other.hasStatusMessage()) {
2789         statusMessage_ = other.statusMessage_;
2790         bitField0_ |= 0x00040000;
2791         onChanged();
2792       }
2793       if (other.hasType()) {
2794         type_ = other.type_;
2795         bitField0_ |= 0x00080000;
2796         onChanged();
2797       }
2798       this.mergeUnknownFields(other.getUnknownFields());
2799       onChanged();
2800       return this;
2801     }
2802 
2803     @java.lang.Override
isInitialized()2804     public final boolean isInitialized() {
2805       return true;
2806     }
2807 
2808     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2809     public Builder mergeFrom(
2810         com.google.protobuf.CodedInputStream input,
2811         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2812         throws java.io.IOException {
2813       if (extensionRegistry == null) {
2814         throw new java.lang.NullPointerException();
2815       }
2816       try {
2817         boolean done = false;
2818         while (!done) {
2819           int tag = input.readTag();
2820           switch (tag) {
2821             case 0:
2822               done = true;
2823               break;
2824             case 26840:
2825               {
2826                 id_ = input.readUInt64();
2827                 bitField0_ |= 0x00000020;
2828                 break;
2829               } // case 26840
2830             case 26336418:
2831               {
2832                 kind_ = input.readStringRequireUtf8();
2833                 bitField0_ |= 0x00000040;
2834                 break;
2835               } // case 26336418
2836             case 26989658:
2837               {
2838                 name_ = input.readStringRequireUtf8();
2839                 bitField0_ |= 0x00000200;
2840                 break;
2841               } // case 26989658
2842             case 27547978:
2843               {
2844                 plan_ = input.readStringRequireUtf8();
2845                 bitField0_ |= 0x00000400;
2846                 break;
2847               } // case 27547978
2848             case 28604882:
2849               {
2850                 type_ = input.readStringRequireUtf8();
2851                 bitField0_ |= 0x00080000;
2852                 break;
2853               } // case 28604882
2854             case 244202930:
2855               {
2856                 creationTimestamp_ = input.readStringRequireUtf8();
2857                 bitField0_ |= 0x00000004;
2858                 break;
2859               } // case 244202930
2860             case 404088818:
2861               {
2862                 category_ = input.readStringRequireUtf8();
2863                 bitField0_ |= 0x00000002;
2864                 break;
2865               } // case 404088818
2866             case 669166538:
2867               {
2868                 startTimestamp_ = input.readStringRequireUtf8();
2869                 bitField0_ |= 0x00010000;
2870                 break;
2871               } // case 669166538
2872             case 1111570338:
2873               {
2874                 region_ = input.readStringRequireUtf8();
2875                 bitField0_ |= 0x00000800;
2876                 break;
2877               } // case 1111570338
2878             case 1315303722:
2879               {
2880                 com.google.cloud.compute.v1.ResourceCommitment m =
2881                     input.readMessage(
2882                         com.google.cloud.compute.v1.ResourceCommitment.parser(), extensionRegistry);
2883                 if (resourcesBuilder_ == null) {
2884                   ensureResourcesIsMutable();
2885                   resources_.add(m);
2886                 } else {
2887                   resourcesBuilder_.addMessage(m);
2888                 }
2889                 break;
2890               } // case 1315303722
2891             case 1450082194:
2892               {
2893                 status_ = input.readStringRequireUtf8();
2894                 bitField0_ |= 0x00020000;
2895                 break;
2896               } // case 1450082194
2897             case 1504750090:
2898               {
2899                 java.lang.String s = input.readStringRequireUtf8();
2900                 ensureMergeSourceCommitmentsIsMutable();
2901                 mergeSourceCommitments_.add(s);
2902                 break;
2903               } // case 1504750090
2904             case -1915542062:
2905               {
2906                 statusMessage_ = input.readStringRequireUtf8();
2907                 bitField0_ |= 0x00040000;
2908                 break;
2909               } // case -1915542062
2910             case -1097223878:
2911               {
2912                 com.google.cloud.compute.v1.Reservation m =
2913                     input.readMessage(
2914                         com.google.cloud.compute.v1.Reservation.parser(), extensionRegistry);
2915                 if (reservationsBuilder_ == null) {
2916                   ensureReservationsIsMutable();
2917                   reservations_.add(m);
2918                 } else {
2919                   reservationsBuilder_.addMessage(m);
2920                 }
2921                 break;
2922               } // case -1097223878
2923             case -1074078046:
2924               {
2925                 splitSourceCommitment_ = input.readStringRequireUtf8();
2926                 bitField0_ |= 0x00008000;
2927                 break;
2928               } // case -1074078046
2929             case -911466526:
2930               {
2931                 description_ = input.readStringRequireUtf8();
2932                 bitField0_ |= 0x00000008;
2933                 break;
2934               } // case -911466526
2935             case -791326110:
2936               {
2937                 input.readMessage(getLicenseResourceFieldBuilder().getBuilder(), extensionRegistry);
2938                 bitField0_ |= 0x00000080;
2939                 break;
2940               } // case -791326110
2941             case -645248918:
2942               {
2943                 selfLink_ = input.readStringRequireUtf8();
2944                 bitField0_ |= 0x00004000;
2945                 break;
2946               } // case -645248918
2947             case -550193774:
2948               {
2949                 endTimestamp_ = input.readStringRequireUtf8();
2950                 bitField0_ |= 0x00000010;
2951                 break;
2952               } // case -550193774
2953             case -330801176:
2954               {
2955                 autoRenew_ = input.readBool();
2956                 bitField0_ |= 0x00000001;
2957                 break;
2958               } // case -330801176
2959             default:
2960               {
2961                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2962                   done = true; // was an endgroup tag
2963                 }
2964                 break;
2965               } // default:
2966           } // switch (tag)
2967         } // while (!done)
2968       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2969         throw e.unwrapIOException();
2970       } finally {
2971         onChanged();
2972       } // finally
2973       return this;
2974     }
2975 
2976     private int bitField0_;
2977 
2978     private boolean autoRenew_;
2979     /**
2980      *
2981      *
2982      * <pre>
2983      * Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
2984      * </pre>
2985      *
2986      * <code>optional bool auto_renew = 495520765;</code>
2987      *
2988      * @return Whether the autoRenew field is set.
2989      */
2990     @java.lang.Override
hasAutoRenew()2991     public boolean hasAutoRenew() {
2992       return ((bitField0_ & 0x00000001) != 0);
2993     }
2994     /**
2995      *
2996      *
2997      * <pre>
2998      * Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
2999      * </pre>
3000      *
3001      * <code>optional bool auto_renew = 495520765;</code>
3002      *
3003      * @return The autoRenew.
3004      */
3005     @java.lang.Override
getAutoRenew()3006     public boolean getAutoRenew() {
3007       return autoRenew_;
3008     }
3009     /**
3010      *
3011      *
3012      * <pre>
3013      * Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
3014      * </pre>
3015      *
3016      * <code>optional bool auto_renew = 495520765;</code>
3017      *
3018      * @param value The autoRenew to set.
3019      * @return This builder for chaining.
3020      */
setAutoRenew(boolean value)3021     public Builder setAutoRenew(boolean value) {
3022 
3023       autoRenew_ = value;
3024       bitField0_ |= 0x00000001;
3025       onChanged();
3026       return this;
3027     }
3028     /**
3029      *
3030      *
3031      * <pre>
3032      * Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
3033      * </pre>
3034      *
3035      * <code>optional bool auto_renew = 495520765;</code>
3036      *
3037      * @return This builder for chaining.
3038      */
clearAutoRenew()3039     public Builder clearAutoRenew() {
3040       bitField0_ = (bitField0_ & ~0x00000001);
3041       autoRenew_ = false;
3042       onChanged();
3043       return this;
3044     }
3045 
3046     private java.lang.Object category_ = "";
3047     /**
3048      *
3049      *
3050      * <pre>
3051      * The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
3052      * Check the Category enum for the list of possible values.
3053      * </pre>
3054      *
3055      * <code>optional string category = 50511102;</code>
3056      *
3057      * @return Whether the category field is set.
3058      */
hasCategory()3059     public boolean hasCategory() {
3060       return ((bitField0_ & 0x00000002) != 0);
3061     }
3062     /**
3063      *
3064      *
3065      * <pre>
3066      * The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
3067      * Check the Category enum for the list of possible values.
3068      * </pre>
3069      *
3070      * <code>optional string category = 50511102;</code>
3071      *
3072      * @return The category.
3073      */
getCategory()3074     public java.lang.String getCategory() {
3075       java.lang.Object ref = category_;
3076       if (!(ref instanceof java.lang.String)) {
3077         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3078         java.lang.String s = bs.toStringUtf8();
3079         category_ = s;
3080         return s;
3081       } else {
3082         return (java.lang.String) ref;
3083       }
3084     }
3085     /**
3086      *
3087      *
3088      * <pre>
3089      * The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
3090      * Check the Category enum for the list of possible values.
3091      * </pre>
3092      *
3093      * <code>optional string category = 50511102;</code>
3094      *
3095      * @return The bytes for category.
3096      */
getCategoryBytes()3097     public com.google.protobuf.ByteString getCategoryBytes() {
3098       java.lang.Object ref = category_;
3099       if (ref instanceof String) {
3100         com.google.protobuf.ByteString b =
3101             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3102         category_ = b;
3103         return b;
3104       } else {
3105         return (com.google.protobuf.ByteString) ref;
3106       }
3107     }
3108     /**
3109      *
3110      *
3111      * <pre>
3112      * The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
3113      * Check the Category enum for the list of possible values.
3114      * </pre>
3115      *
3116      * <code>optional string category = 50511102;</code>
3117      *
3118      * @param value The category to set.
3119      * @return This builder for chaining.
3120      */
setCategory(java.lang.String value)3121     public Builder setCategory(java.lang.String value) {
3122       if (value == null) {
3123         throw new NullPointerException();
3124       }
3125       category_ = value;
3126       bitField0_ |= 0x00000002;
3127       onChanged();
3128       return this;
3129     }
3130     /**
3131      *
3132      *
3133      * <pre>
3134      * The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
3135      * Check the Category enum for the list of possible values.
3136      * </pre>
3137      *
3138      * <code>optional string category = 50511102;</code>
3139      *
3140      * @return This builder for chaining.
3141      */
clearCategory()3142     public Builder clearCategory() {
3143       category_ = getDefaultInstance().getCategory();
3144       bitField0_ = (bitField0_ & ~0x00000002);
3145       onChanged();
3146       return this;
3147     }
3148     /**
3149      *
3150      *
3151      * <pre>
3152      * The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
3153      * Check the Category enum for the list of possible values.
3154      * </pre>
3155      *
3156      * <code>optional string category = 50511102;</code>
3157      *
3158      * @param value The bytes for category to set.
3159      * @return This builder for chaining.
3160      */
setCategoryBytes(com.google.protobuf.ByteString value)3161     public Builder setCategoryBytes(com.google.protobuf.ByteString value) {
3162       if (value == null) {
3163         throw new NullPointerException();
3164       }
3165       checkByteStringIsUtf8(value);
3166       category_ = value;
3167       bitField0_ |= 0x00000002;
3168       onChanged();
3169       return this;
3170     }
3171 
3172     private java.lang.Object creationTimestamp_ = "";
3173     /**
3174      *
3175      *
3176      * <pre>
3177      * [Output Only] Creation timestamp in RFC3339 text format.
3178      * </pre>
3179      *
3180      * <code>optional string creation_timestamp = 30525366;</code>
3181      *
3182      * @return Whether the creationTimestamp field is set.
3183      */
hasCreationTimestamp()3184     public boolean hasCreationTimestamp() {
3185       return ((bitField0_ & 0x00000004) != 0);
3186     }
3187     /**
3188      *
3189      *
3190      * <pre>
3191      * [Output Only] Creation timestamp in RFC3339 text format.
3192      * </pre>
3193      *
3194      * <code>optional string creation_timestamp = 30525366;</code>
3195      *
3196      * @return The creationTimestamp.
3197      */
getCreationTimestamp()3198     public java.lang.String getCreationTimestamp() {
3199       java.lang.Object ref = creationTimestamp_;
3200       if (!(ref instanceof java.lang.String)) {
3201         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3202         java.lang.String s = bs.toStringUtf8();
3203         creationTimestamp_ = s;
3204         return s;
3205       } else {
3206         return (java.lang.String) ref;
3207       }
3208     }
3209     /**
3210      *
3211      *
3212      * <pre>
3213      * [Output Only] Creation timestamp in RFC3339 text format.
3214      * </pre>
3215      *
3216      * <code>optional string creation_timestamp = 30525366;</code>
3217      *
3218      * @return The bytes for creationTimestamp.
3219      */
getCreationTimestampBytes()3220     public com.google.protobuf.ByteString getCreationTimestampBytes() {
3221       java.lang.Object ref = creationTimestamp_;
3222       if (ref instanceof String) {
3223         com.google.protobuf.ByteString b =
3224             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3225         creationTimestamp_ = b;
3226         return b;
3227       } else {
3228         return (com.google.protobuf.ByteString) ref;
3229       }
3230     }
3231     /**
3232      *
3233      *
3234      * <pre>
3235      * [Output Only] Creation timestamp in RFC3339 text format.
3236      * </pre>
3237      *
3238      * <code>optional string creation_timestamp = 30525366;</code>
3239      *
3240      * @param value The creationTimestamp to set.
3241      * @return This builder for chaining.
3242      */
setCreationTimestamp(java.lang.String value)3243     public Builder setCreationTimestamp(java.lang.String value) {
3244       if (value == null) {
3245         throw new NullPointerException();
3246       }
3247       creationTimestamp_ = value;
3248       bitField0_ |= 0x00000004;
3249       onChanged();
3250       return this;
3251     }
3252     /**
3253      *
3254      *
3255      * <pre>
3256      * [Output Only] Creation timestamp in RFC3339 text format.
3257      * </pre>
3258      *
3259      * <code>optional string creation_timestamp = 30525366;</code>
3260      *
3261      * @return This builder for chaining.
3262      */
clearCreationTimestamp()3263     public Builder clearCreationTimestamp() {
3264       creationTimestamp_ = getDefaultInstance().getCreationTimestamp();
3265       bitField0_ = (bitField0_ & ~0x00000004);
3266       onChanged();
3267       return this;
3268     }
3269     /**
3270      *
3271      *
3272      * <pre>
3273      * [Output Only] Creation timestamp in RFC3339 text format.
3274      * </pre>
3275      *
3276      * <code>optional string creation_timestamp = 30525366;</code>
3277      *
3278      * @param value The bytes for creationTimestamp to set.
3279      * @return This builder for chaining.
3280      */
setCreationTimestampBytes(com.google.protobuf.ByteString value)3281     public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) {
3282       if (value == null) {
3283         throw new NullPointerException();
3284       }
3285       checkByteStringIsUtf8(value);
3286       creationTimestamp_ = value;
3287       bitField0_ |= 0x00000004;
3288       onChanged();
3289       return this;
3290     }
3291 
3292     private java.lang.Object description_ = "";
3293     /**
3294      *
3295      *
3296      * <pre>
3297      * An optional description of this resource. Provide this property when you create the resource.
3298      * </pre>
3299      *
3300      * <code>optional string description = 422937596;</code>
3301      *
3302      * @return Whether the description field is set.
3303      */
hasDescription()3304     public boolean hasDescription() {
3305       return ((bitField0_ & 0x00000008) != 0);
3306     }
3307     /**
3308      *
3309      *
3310      * <pre>
3311      * An optional description of this resource. Provide this property when you create the resource.
3312      * </pre>
3313      *
3314      * <code>optional string description = 422937596;</code>
3315      *
3316      * @return The description.
3317      */
getDescription()3318     public java.lang.String getDescription() {
3319       java.lang.Object ref = description_;
3320       if (!(ref instanceof java.lang.String)) {
3321         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3322         java.lang.String s = bs.toStringUtf8();
3323         description_ = s;
3324         return s;
3325       } else {
3326         return (java.lang.String) ref;
3327       }
3328     }
3329     /**
3330      *
3331      *
3332      * <pre>
3333      * An optional description of this resource. Provide this property when you create the resource.
3334      * </pre>
3335      *
3336      * <code>optional string description = 422937596;</code>
3337      *
3338      * @return The bytes for description.
3339      */
getDescriptionBytes()3340     public com.google.protobuf.ByteString getDescriptionBytes() {
3341       java.lang.Object ref = description_;
3342       if (ref instanceof String) {
3343         com.google.protobuf.ByteString b =
3344             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3345         description_ = b;
3346         return b;
3347       } else {
3348         return (com.google.protobuf.ByteString) ref;
3349       }
3350     }
3351     /**
3352      *
3353      *
3354      * <pre>
3355      * An optional description of this resource. Provide this property when you create the resource.
3356      * </pre>
3357      *
3358      * <code>optional string description = 422937596;</code>
3359      *
3360      * @param value The description to set.
3361      * @return This builder for chaining.
3362      */
setDescription(java.lang.String value)3363     public Builder setDescription(java.lang.String value) {
3364       if (value == null) {
3365         throw new NullPointerException();
3366       }
3367       description_ = value;
3368       bitField0_ |= 0x00000008;
3369       onChanged();
3370       return this;
3371     }
3372     /**
3373      *
3374      *
3375      * <pre>
3376      * An optional description of this resource. Provide this property when you create the resource.
3377      * </pre>
3378      *
3379      * <code>optional string description = 422937596;</code>
3380      *
3381      * @return This builder for chaining.
3382      */
clearDescription()3383     public Builder clearDescription() {
3384       description_ = getDefaultInstance().getDescription();
3385       bitField0_ = (bitField0_ & ~0x00000008);
3386       onChanged();
3387       return this;
3388     }
3389     /**
3390      *
3391      *
3392      * <pre>
3393      * An optional description of this resource. Provide this property when you create the resource.
3394      * </pre>
3395      *
3396      * <code>optional string description = 422937596;</code>
3397      *
3398      * @param value The bytes for description to set.
3399      * @return This builder for chaining.
3400      */
setDescriptionBytes(com.google.protobuf.ByteString value)3401     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
3402       if (value == null) {
3403         throw new NullPointerException();
3404       }
3405       checkByteStringIsUtf8(value);
3406       description_ = value;
3407       bitField0_ |= 0x00000008;
3408       onChanged();
3409       return this;
3410     }
3411 
3412     private java.lang.Object endTimestamp_ = "";
3413     /**
3414      *
3415      *
3416      * <pre>
3417      * [Output Only] Commitment end time in RFC3339 text format.
3418      * </pre>
3419      *
3420      * <code>optional string end_timestamp = 468096690;</code>
3421      *
3422      * @return Whether the endTimestamp field is set.
3423      */
hasEndTimestamp()3424     public boolean hasEndTimestamp() {
3425       return ((bitField0_ & 0x00000010) != 0);
3426     }
3427     /**
3428      *
3429      *
3430      * <pre>
3431      * [Output Only] Commitment end time in RFC3339 text format.
3432      * </pre>
3433      *
3434      * <code>optional string end_timestamp = 468096690;</code>
3435      *
3436      * @return The endTimestamp.
3437      */
getEndTimestamp()3438     public java.lang.String getEndTimestamp() {
3439       java.lang.Object ref = endTimestamp_;
3440       if (!(ref instanceof java.lang.String)) {
3441         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3442         java.lang.String s = bs.toStringUtf8();
3443         endTimestamp_ = s;
3444         return s;
3445       } else {
3446         return (java.lang.String) ref;
3447       }
3448     }
3449     /**
3450      *
3451      *
3452      * <pre>
3453      * [Output Only] Commitment end time in RFC3339 text format.
3454      * </pre>
3455      *
3456      * <code>optional string end_timestamp = 468096690;</code>
3457      *
3458      * @return The bytes for endTimestamp.
3459      */
getEndTimestampBytes()3460     public com.google.protobuf.ByteString getEndTimestampBytes() {
3461       java.lang.Object ref = endTimestamp_;
3462       if (ref instanceof String) {
3463         com.google.protobuf.ByteString b =
3464             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3465         endTimestamp_ = b;
3466         return b;
3467       } else {
3468         return (com.google.protobuf.ByteString) ref;
3469       }
3470     }
3471     /**
3472      *
3473      *
3474      * <pre>
3475      * [Output Only] Commitment end time in RFC3339 text format.
3476      * </pre>
3477      *
3478      * <code>optional string end_timestamp = 468096690;</code>
3479      *
3480      * @param value The endTimestamp to set.
3481      * @return This builder for chaining.
3482      */
setEndTimestamp(java.lang.String value)3483     public Builder setEndTimestamp(java.lang.String value) {
3484       if (value == null) {
3485         throw new NullPointerException();
3486       }
3487       endTimestamp_ = value;
3488       bitField0_ |= 0x00000010;
3489       onChanged();
3490       return this;
3491     }
3492     /**
3493      *
3494      *
3495      * <pre>
3496      * [Output Only] Commitment end time in RFC3339 text format.
3497      * </pre>
3498      *
3499      * <code>optional string end_timestamp = 468096690;</code>
3500      *
3501      * @return This builder for chaining.
3502      */
clearEndTimestamp()3503     public Builder clearEndTimestamp() {
3504       endTimestamp_ = getDefaultInstance().getEndTimestamp();
3505       bitField0_ = (bitField0_ & ~0x00000010);
3506       onChanged();
3507       return this;
3508     }
3509     /**
3510      *
3511      *
3512      * <pre>
3513      * [Output Only] Commitment end time in RFC3339 text format.
3514      * </pre>
3515      *
3516      * <code>optional string end_timestamp = 468096690;</code>
3517      *
3518      * @param value The bytes for endTimestamp to set.
3519      * @return This builder for chaining.
3520      */
setEndTimestampBytes(com.google.protobuf.ByteString value)3521     public Builder setEndTimestampBytes(com.google.protobuf.ByteString value) {
3522       if (value == null) {
3523         throw new NullPointerException();
3524       }
3525       checkByteStringIsUtf8(value);
3526       endTimestamp_ = value;
3527       bitField0_ |= 0x00000010;
3528       onChanged();
3529       return this;
3530     }
3531 
3532     private long id_;
3533     /**
3534      *
3535      *
3536      * <pre>
3537      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3538      * </pre>
3539      *
3540      * <code>optional uint64 id = 3355;</code>
3541      *
3542      * @return Whether the id field is set.
3543      */
3544     @java.lang.Override
hasId()3545     public boolean hasId() {
3546       return ((bitField0_ & 0x00000020) != 0);
3547     }
3548     /**
3549      *
3550      *
3551      * <pre>
3552      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3553      * </pre>
3554      *
3555      * <code>optional uint64 id = 3355;</code>
3556      *
3557      * @return The id.
3558      */
3559     @java.lang.Override
getId()3560     public long getId() {
3561       return id_;
3562     }
3563     /**
3564      *
3565      *
3566      * <pre>
3567      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3568      * </pre>
3569      *
3570      * <code>optional uint64 id = 3355;</code>
3571      *
3572      * @param value The id to set.
3573      * @return This builder for chaining.
3574      */
setId(long value)3575     public Builder setId(long value) {
3576 
3577       id_ = value;
3578       bitField0_ |= 0x00000020;
3579       onChanged();
3580       return this;
3581     }
3582     /**
3583      *
3584      *
3585      * <pre>
3586      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3587      * </pre>
3588      *
3589      * <code>optional uint64 id = 3355;</code>
3590      *
3591      * @return This builder for chaining.
3592      */
clearId()3593     public Builder clearId() {
3594       bitField0_ = (bitField0_ & ~0x00000020);
3595       id_ = 0L;
3596       onChanged();
3597       return this;
3598     }
3599 
3600     private java.lang.Object kind_ = "";
3601     /**
3602      *
3603      *
3604      * <pre>
3605      * [Output Only] Type of the resource. Always compute#commitment for commitments.
3606      * </pre>
3607      *
3608      * <code>optional string kind = 3292052;</code>
3609      *
3610      * @return Whether the kind field is set.
3611      */
hasKind()3612     public boolean hasKind() {
3613       return ((bitField0_ & 0x00000040) != 0);
3614     }
3615     /**
3616      *
3617      *
3618      * <pre>
3619      * [Output Only] Type of the resource. Always compute#commitment for commitments.
3620      * </pre>
3621      *
3622      * <code>optional string kind = 3292052;</code>
3623      *
3624      * @return The kind.
3625      */
getKind()3626     public java.lang.String getKind() {
3627       java.lang.Object ref = kind_;
3628       if (!(ref instanceof java.lang.String)) {
3629         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3630         java.lang.String s = bs.toStringUtf8();
3631         kind_ = s;
3632         return s;
3633       } else {
3634         return (java.lang.String) ref;
3635       }
3636     }
3637     /**
3638      *
3639      *
3640      * <pre>
3641      * [Output Only] Type of the resource. Always compute#commitment for commitments.
3642      * </pre>
3643      *
3644      * <code>optional string kind = 3292052;</code>
3645      *
3646      * @return The bytes for kind.
3647      */
getKindBytes()3648     public com.google.protobuf.ByteString getKindBytes() {
3649       java.lang.Object ref = kind_;
3650       if (ref instanceof String) {
3651         com.google.protobuf.ByteString b =
3652             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3653         kind_ = b;
3654         return b;
3655       } else {
3656         return (com.google.protobuf.ByteString) ref;
3657       }
3658     }
3659     /**
3660      *
3661      *
3662      * <pre>
3663      * [Output Only] Type of the resource. Always compute#commitment for commitments.
3664      * </pre>
3665      *
3666      * <code>optional string kind = 3292052;</code>
3667      *
3668      * @param value The kind to set.
3669      * @return This builder for chaining.
3670      */
setKind(java.lang.String value)3671     public Builder setKind(java.lang.String value) {
3672       if (value == null) {
3673         throw new NullPointerException();
3674       }
3675       kind_ = value;
3676       bitField0_ |= 0x00000040;
3677       onChanged();
3678       return this;
3679     }
3680     /**
3681      *
3682      *
3683      * <pre>
3684      * [Output Only] Type of the resource. Always compute#commitment for commitments.
3685      * </pre>
3686      *
3687      * <code>optional string kind = 3292052;</code>
3688      *
3689      * @return This builder for chaining.
3690      */
clearKind()3691     public Builder clearKind() {
3692       kind_ = getDefaultInstance().getKind();
3693       bitField0_ = (bitField0_ & ~0x00000040);
3694       onChanged();
3695       return this;
3696     }
3697     /**
3698      *
3699      *
3700      * <pre>
3701      * [Output Only] Type of the resource. Always compute#commitment for commitments.
3702      * </pre>
3703      *
3704      * <code>optional string kind = 3292052;</code>
3705      *
3706      * @param value The bytes for kind to set.
3707      * @return This builder for chaining.
3708      */
setKindBytes(com.google.protobuf.ByteString value)3709     public Builder setKindBytes(com.google.protobuf.ByteString value) {
3710       if (value == null) {
3711         throw new NullPointerException();
3712       }
3713       checkByteStringIsUtf8(value);
3714       kind_ = value;
3715       bitField0_ |= 0x00000040;
3716       onChanged();
3717       return this;
3718     }
3719 
3720     private com.google.cloud.compute.v1.LicenseResourceCommitment licenseResource_;
3721     private com.google.protobuf.SingleFieldBuilderV3<
3722             com.google.cloud.compute.v1.LicenseResourceCommitment,
3723             com.google.cloud.compute.v1.LicenseResourceCommitment.Builder,
3724             com.google.cloud.compute.v1.LicenseResourceCommitmentOrBuilder>
3725         licenseResourceBuilder_;
3726     /**
3727      *
3728      *
3729      * <pre>
3730      * The license specification required as part of a license commitment.
3731      * </pre>
3732      *
3733      * <code>
3734      * optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
3735      * </code>
3736      *
3737      * @return Whether the licenseResource field is set.
3738      */
hasLicenseResource()3739     public boolean hasLicenseResource() {
3740       return ((bitField0_ & 0x00000080) != 0);
3741     }
3742     /**
3743      *
3744      *
3745      * <pre>
3746      * The license specification required as part of a license commitment.
3747      * </pre>
3748      *
3749      * <code>
3750      * optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
3751      * </code>
3752      *
3753      * @return The licenseResource.
3754      */
getLicenseResource()3755     public com.google.cloud.compute.v1.LicenseResourceCommitment getLicenseResource() {
3756       if (licenseResourceBuilder_ == null) {
3757         return licenseResource_ == null
3758             ? com.google.cloud.compute.v1.LicenseResourceCommitment.getDefaultInstance()
3759             : licenseResource_;
3760       } else {
3761         return licenseResourceBuilder_.getMessage();
3762       }
3763     }
3764     /**
3765      *
3766      *
3767      * <pre>
3768      * The license specification required as part of a license commitment.
3769      * </pre>
3770      *
3771      * <code>
3772      * optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
3773      * </code>
3774      */
setLicenseResource(com.google.cloud.compute.v1.LicenseResourceCommitment value)3775     public Builder setLicenseResource(com.google.cloud.compute.v1.LicenseResourceCommitment value) {
3776       if (licenseResourceBuilder_ == null) {
3777         if (value == null) {
3778           throw new NullPointerException();
3779         }
3780         licenseResource_ = value;
3781       } else {
3782         licenseResourceBuilder_.setMessage(value);
3783       }
3784       bitField0_ |= 0x00000080;
3785       onChanged();
3786       return this;
3787     }
3788     /**
3789      *
3790      *
3791      * <pre>
3792      * The license specification required as part of a license commitment.
3793      * </pre>
3794      *
3795      * <code>
3796      * optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
3797      * </code>
3798      */
setLicenseResource( com.google.cloud.compute.v1.LicenseResourceCommitment.Builder builderForValue)3799     public Builder setLicenseResource(
3800         com.google.cloud.compute.v1.LicenseResourceCommitment.Builder builderForValue) {
3801       if (licenseResourceBuilder_ == null) {
3802         licenseResource_ = builderForValue.build();
3803       } else {
3804         licenseResourceBuilder_.setMessage(builderForValue.build());
3805       }
3806       bitField0_ |= 0x00000080;
3807       onChanged();
3808       return this;
3809     }
3810     /**
3811      *
3812      *
3813      * <pre>
3814      * The license specification required as part of a license commitment.
3815      * </pre>
3816      *
3817      * <code>
3818      * optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
3819      * </code>
3820      */
mergeLicenseResource( com.google.cloud.compute.v1.LicenseResourceCommitment value)3821     public Builder mergeLicenseResource(
3822         com.google.cloud.compute.v1.LicenseResourceCommitment value) {
3823       if (licenseResourceBuilder_ == null) {
3824         if (((bitField0_ & 0x00000080) != 0)
3825             && licenseResource_ != null
3826             && licenseResource_
3827                 != com.google.cloud.compute.v1.LicenseResourceCommitment.getDefaultInstance()) {
3828           getLicenseResourceBuilder().mergeFrom(value);
3829         } else {
3830           licenseResource_ = value;
3831         }
3832       } else {
3833         licenseResourceBuilder_.mergeFrom(value);
3834       }
3835       bitField0_ |= 0x00000080;
3836       onChanged();
3837       return this;
3838     }
3839     /**
3840      *
3841      *
3842      * <pre>
3843      * The license specification required as part of a license commitment.
3844      * </pre>
3845      *
3846      * <code>
3847      * optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
3848      * </code>
3849      */
clearLicenseResource()3850     public Builder clearLicenseResource() {
3851       bitField0_ = (bitField0_ & ~0x00000080);
3852       licenseResource_ = null;
3853       if (licenseResourceBuilder_ != null) {
3854         licenseResourceBuilder_.dispose();
3855         licenseResourceBuilder_ = null;
3856       }
3857       onChanged();
3858       return this;
3859     }
3860     /**
3861      *
3862      *
3863      * <pre>
3864      * The license specification required as part of a license commitment.
3865      * </pre>
3866      *
3867      * <code>
3868      * optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
3869      * </code>
3870      */
3871     public com.google.cloud.compute.v1.LicenseResourceCommitment.Builder
getLicenseResourceBuilder()3872         getLicenseResourceBuilder() {
3873       bitField0_ |= 0x00000080;
3874       onChanged();
3875       return getLicenseResourceFieldBuilder().getBuilder();
3876     }
3877     /**
3878      *
3879      *
3880      * <pre>
3881      * The license specification required as part of a license commitment.
3882      * </pre>
3883      *
3884      * <code>
3885      * optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
3886      * </code>
3887      */
3888     public com.google.cloud.compute.v1.LicenseResourceCommitmentOrBuilder
getLicenseResourceOrBuilder()3889         getLicenseResourceOrBuilder() {
3890       if (licenseResourceBuilder_ != null) {
3891         return licenseResourceBuilder_.getMessageOrBuilder();
3892       } else {
3893         return licenseResource_ == null
3894             ? com.google.cloud.compute.v1.LicenseResourceCommitment.getDefaultInstance()
3895             : licenseResource_;
3896       }
3897     }
3898     /**
3899      *
3900      *
3901      * <pre>
3902      * The license specification required as part of a license commitment.
3903      * </pre>
3904      *
3905      * <code>
3906      * optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
3907      * </code>
3908      */
3909     private com.google.protobuf.SingleFieldBuilderV3<
3910             com.google.cloud.compute.v1.LicenseResourceCommitment,
3911             com.google.cloud.compute.v1.LicenseResourceCommitment.Builder,
3912             com.google.cloud.compute.v1.LicenseResourceCommitmentOrBuilder>
getLicenseResourceFieldBuilder()3913         getLicenseResourceFieldBuilder() {
3914       if (licenseResourceBuilder_ == null) {
3915         licenseResourceBuilder_ =
3916             new com.google.protobuf.SingleFieldBuilderV3<
3917                 com.google.cloud.compute.v1.LicenseResourceCommitment,
3918                 com.google.cloud.compute.v1.LicenseResourceCommitment.Builder,
3919                 com.google.cloud.compute.v1.LicenseResourceCommitmentOrBuilder>(
3920                 getLicenseResource(), getParentForChildren(), isClean());
3921         licenseResource_ = null;
3922       }
3923       return licenseResourceBuilder_;
3924     }
3925 
3926     private com.google.protobuf.LazyStringList mergeSourceCommitments_ =
3927         com.google.protobuf.LazyStringArrayList.EMPTY;
3928 
ensureMergeSourceCommitmentsIsMutable()3929     private void ensureMergeSourceCommitmentsIsMutable() {
3930       if (!((bitField0_ & 0x00000100) != 0)) {
3931         mergeSourceCommitments_ =
3932             new com.google.protobuf.LazyStringArrayList(mergeSourceCommitments_);
3933         bitField0_ |= 0x00000100;
3934       }
3935     }
3936     /**
3937      *
3938      *
3939      * <pre>
3940      * List of source commitments to be merged into a new commitment.
3941      * </pre>
3942      *
3943      * <code>repeated string merge_source_commitments = 188093761;</code>
3944      *
3945      * @return A list containing the mergeSourceCommitments.
3946      */
getMergeSourceCommitmentsList()3947     public com.google.protobuf.ProtocolStringList getMergeSourceCommitmentsList() {
3948       return mergeSourceCommitments_.getUnmodifiableView();
3949     }
3950     /**
3951      *
3952      *
3953      * <pre>
3954      * List of source commitments to be merged into a new commitment.
3955      * </pre>
3956      *
3957      * <code>repeated string merge_source_commitments = 188093761;</code>
3958      *
3959      * @return The count of mergeSourceCommitments.
3960      */
getMergeSourceCommitmentsCount()3961     public int getMergeSourceCommitmentsCount() {
3962       return mergeSourceCommitments_.size();
3963     }
3964     /**
3965      *
3966      *
3967      * <pre>
3968      * List of source commitments to be merged into a new commitment.
3969      * </pre>
3970      *
3971      * <code>repeated string merge_source_commitments = 188093761;</code>
3972      *
3973      * @param index The index of the element to return.
3974      * @return The mergeSourceCommitments at the given index.
3975      */
getMergeSourceCommitments(int index)3976     public java.lang.String getMergeSourceCommitments(int index) {
3977       return mergeSourceCommitments_.get(index);
3978     }
3979     /**
3980      *
3981      *
3982      * <pre>
3983      * List of source commitments to be merged into a new commitment.
3984      * </pre>
3985      *
3986      * <code>repeated string merge_source_commitments = 188093761;</code>
3987      *
3988      * @param index The index of the value to return.
3989      * @return The bytes of the mergeSourceCommitments at the given index.
3990      */
getMergeSourceCommitmentsBytes(int index)3991     public com.google.protobuf.ByteString getMergeSourceCommitmentsBytes(int index) {
3992       return mergeSourceCommitments_.getByteString(index);
3993     }
3994     /**
3995      *
3996      *
3997      * <pre>
3998      * List of source commitments to be merged into a new commitment.
3999      * </pre>
4000      *
4001      * <code>repeated string merge_source_commitments = 188093761;</code>
4002      *
4003      * @param index The index to set the value at.
4004      * @param value The mergeSourceCommitments to set.
4005      * @return This builder for chaining.
4006      */
setMergeSourceCommitments(int index, java.lang.String value)4007     public Builder setMergeSourceCommitments(int index, java.lang.String value) {
4008       if (value == null) {
4009         throw new NullPointerException();
4010       }
4011       ensureMergeSourceCommitmentsIsMutable();
4012       mergeSourceCommitments_.set(index, value);
4013       onChanged();
4014       return this;
4015     }
4016     /**
4017      *
4018      *
4019      * <pre>
4020      * List of source commitments to be merged into a new commitment.
4021      * </pre>
4022      *
4023      * <code>repeated string merge_source_commitments = 188093761;</code>
4024      *
4025      * @param value The mergeSourceCommitments to add.
4026      * @return This builder for chaining.
4027      */
addMergeSourceCommitments(java.lang.String value)4028     public Builder addMergeSourceCommitments(java.lang.String value) {
4029       if (value == null) {
4030         throw new NullPointerException();
4031       }
4032       ensureMergeSourceCommitmentsIsMutable();
4033       mergeSourceCommitments_.add(value);
4034       onChanged();
4035       return this;
4036     }
4037     /**
4038      *
4039      *
4040      * <pre>
4041      * List of source commitments to be merged into a new commitment.
4042      * </pre>
4043      *
4044      * <code>repeated string merge_source_commitments = 188093761;</code>
4045      *
4046      * @param values The mergeSourceCommitments to add.
4047      * @return This builder for chaining.
4048      */
addAllMergeSourceCommitments(java.lang.Iterable<java.lang.String> values)4049     public Builder addAllMergeSourceCommitments(java.lang.Iterable<java.lang.String> values) {
4050       ensureMergeSourceCommitmentsIsMutable();
4051       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mergeSourceCommitments_);
4052       onChanged();
4053       return this;
4054     }
4055     /**
4056      *
4057      *
4058      * <pre>
4059      * List of source commitments to be merged into a new commitment.
4060      * </pre>
4061      *
4062      * <code>repeated string merge_source_commitments = 188093761;</code>
4063      *
4064      * @return This builder for chaining.
4065      */
clearMergeSourceCommitments()4066     public Builder clearMergeSourceCommitments() {
4067       mergeSourceCommitments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
4068       bitField0_ = (bitField0_ & ~0x00000100);
4069       onChanged();
4070       return this;
4071     }
4072     /**
4073      *
4074      *
4075      * <pre>
4076      * List of source commitments to be merged into a new commitment.
4077      * </pre>
4078      *
4079      * <code>repeated string merge_source_commitments = 188093761;</code>
4080      *
4081      * @param value The bytes of the mergeSourceCommitments to add.
4082      * @return This builder for chaining.
4083      */
addMergeSourceCommitmentsBytes(com.google.protobuf.ByteString value)4084     public Builder addMergeSourceCommitmentsBytes(com.google.protobuf.ByteString value) {
4085       if (value == null) {
4086         throw new NullPointerException();
4087       }
4088       checkByteStringIsUtf8(value);
4089       ensureMergeSourceCommitmentsIsMutable();
4090       mergeSourceCommitments_.add(value);
4091       onChanged();
4092       return this;
4093     }
4094 
4095     private java.lang.Object name_ = "";
4096     /**
4097      *
4098      *
4099      * <pre>
4100      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
4101      * </pre>
4102      *
4103      * <code>optional string name = 3373707;</code>
4104      *
4105      * @return Whether the name field is set.
4106      */
hasName()4107     public boolean hasName() {
4108       return ((bitField0_ & 0x00000200) != 0);
4109     }
4110     /**
4111      *
4112      *
4113      * <pre>
4114      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
4115      * </pre>
4116      *
4117      * <code>optional string name = 3373707;</code>
4118      *
4119      * @return The name.
4120      */
getName()4121     public java.lang.String getName() {
4122       java.lang.Object ref = name_;
4123       if (!(ref instanceof java.lang.String)) {
4124         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4125         java.lang.String s = bs.toStringUtf8();
4126         name_ = s;
4127         return s;
4128       } else {
4129         return (java.lang.String) ref;
4130       }
4131     }
4132     /**
4133      *
4134      *
4135      * <pre>
4136      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
4137      * </pre>
4138      *
4139      * <code>optional string name = 3373707;</code>
4140      *
4141      * @return The bytes for name.
4142      */
getNameBytes()4143     public com.google.protobuf.ByteString getNameBytes() {
4144       java.lang.Object ref = name_;
4145       if (ref instanceof String) {
4146         com.google.protobuf.ByteString b =
4147             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4148         name_ = b;
4149         return b;
4150       } else {
4151         return (com.google.protobuf.ByteString) ref;
4152       }
4153     }
4154     /**
4155      *
4156      *
4157      * <pre>
4158      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
4159      * </pre>
4160      *
4161      * <code>optional string name = 3373707;</code>
4162      *
4163      * @param value The name to set.
4164      * @return This builder for chaining.
4165      */
setName(java.lang.String value)4166     public Builder setName(java.lang.String value) {
4167       if (value == null) {
4168         throw new NullPointerException();
4169       }
4170       name_ = value;
4171       bitField0_ |= 0x00000200;
4172       onChanged();
4173       return this;
4174     }
4175     /**
4176      *
4177      *
4178      * <pre>
4179      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
4180      * </pre>
4181      *
4182      * <code>optional string name = 3373707;</code>
4183      *
4184      * @return This builder for chaining.
4185      */
clearName()4186     public Builder clearName() {
4187       name_ = getDefaultInstance().getName();
4188       bitField0_ = (bitField0_ & ~0x00000200);
4189       onChanged();
4190       return this;
4191     }
4192     /**
4193      *
4194      *
4195      * <pre>
4196      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
4197      * </pre>
4198      *
4199      * <code>optional string name = 3373707;</code>
4200      *
4201      * @param value The bytes for name to set.
4202      * @return This builder for chaining.
4203      */
setNameBytes(com.google.protobuf.ByteString value)4204     public Builder setNameBytes(com.google.protobuf.ByteString value) {
4205       if (value == null) {
4206         throw new NullPointerException();
4207       }
4208       checkByteStringIsUtf8(value);
4209       name_ = value;
4210       bitField0_ |= 0x00000200;
4211       onChanged();
4212       return this;
4213     }
4214 
4215     private java.lang.Object plan_ = "";
4216     /**
4217      *
4218      *
4219      * <pre>
4220      * The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
4221      * Check the Plan enum for the list of possible values.
4222      * </pre>
4223      *
4224      * <code>optional string plan = 3443497;</code>
4225      *
4226      * @return Whether the plan field is set.
4227      */
hasPlan()4228     public boolean hasPlan() {
4229       return ((bitField0_ & 0x00000400) != 0);
4230     }
4231     /**
4232      *
4233      *
4234      * <pre>
4235      * The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
4236      * Check the Plan enum for the list of possible values.
4237      * </pre>
4238      *
4239      * <code>optional string plan = 3443497;</code>
4240      *
4241      * @return The plan.
4242      */
getPlan()4243     public java.lang.String getPlan() {
4244       java.lang.Object ref = plan_;
4245       if (!(ref instanceof java.lang.String)) {
4246         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4247         java.lang.String s = bs.toStringUtf8();
4248         plan_ = s;
4249         return s;
4250       } else {
4251         return (java.lang.String) ref;
4252       }
4253     }
4254     /**
4255      *
4256      *
4257      * <pre>
4258      * The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
4259      * Check the Plan enum for the list of possible values.
4260      * </pre>
4261      *
4262      * <code>optional string plan = 3443497;</code>
4263      *
4264      * @return The bytes for plan.
4265      */
getPlanBytes()4266     public com.google.protobuf.ByteString getPlanBytes() {
4267       java.lang.Object ref = plan_;
4268       if (ref instanceof String) {
4269         com.google.protobuf.ByteString b =
4270             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4271         plan_ = b;
4272         return b;
4273       } else {
4274         return (com.google.protobuf.ByteString) ref;
4275       }
4276     }
4277     /**
4278      *
4279      *
4280      * <pre>
4281      * The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
4282      * Check the Plan enum for the list of possible values.
4283      * </pre>
4284      *
4285      * <code>optional string plan = 3443497;</code>
4286      *
4287      * @param value The plan to set.
4288      * @return This builder for chaining.
4289      */
setPlan(java.lang.String value)4290     public Builder setPlan(java.lang.String value) {
4291       if (value == null) {
4292         throw new NullPointerException();
4293       }
4294       plan_ = value;
4295       bitField0_ |= 0x00000400;
4296       onChanged();
4297       return this;
4298     }
4299     /**
4300      *
4301      *
4302      * <pre>
4303      * The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
4304      * Check the Plan enum for the list of possible values.
4305      * </pre>
4306      *
4307      * <code>optional string plan = 3443497;</code>
4308      *
4309      * @return This builder for chaining.
4310      */
clearPlan()4311     public Builder clearPlan() {
4312       plan_ = getDefaultInstance().getPlan();
4313       bitField0_ = (bitField0_ & ~0x00000400);
4314       onChanged();
4315       return this;
4316     }
4317     /**
4318      *
4319      *
4320      * <pre>
4321      * The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
4322      * Check the Plan enum for the list of possible values.
4323      * </pre>
4324      *
4325      * <code>optional string plan = 3443497;</code>
4326      *
4327      * @param value The bytes for plan to set.
4328      * @return This builder for chaining.
4329      */
setPlanBytes(com.google.protobuf.ByteString value)4330     public Builder setPlanBytes(com.google.protobuf.ByteString value) {
4331       if (value == null) {
4332         throw new NullPointerException();
4333       }
4334       checkByteStringIsUtf8(value);
4335       plan_ = value;
4336       bitField0_ |= 0x00000400;
4337       onChanged();
4338       return this;
4339     }
4340 
4341     private java.lang.Object region_ = "";
4342     /**
4343      *
4344      *
4345      * <pre>
4346      * [Output Only] URL of the region where this commitment may be used.
4347      * </pre>
4348      *
4349      * <code>optional string region = 138946292;</code>
4350      *
4351      * @return Whether the region field is set.
4352      */
hasRegion()4353     public boolean hasRegion() {
4354       return ((bitField0_ & 0x00000800) != 0);
4355     }
4356     /**
4357      *
4358      *
4359      * <pre>
4360      * [Output Only] URL of the region where this commitment may be used.
4361      * </pre>
4362      *
4363      * <code>optional string region = 138946292;</code>
4364      *
4365      * @return The region.
4366      */
getRegion()4367     public java.lang.String getRegion() {
4368       java.lang.Object ref = region_;
4369       if (!(ref instanceof java.lang.String)) {
4370         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4371         java.lang.String s = bs.toStringUtf8();
4372         region_ = s;
4373         return s;
4374       } else {
4375         return (java.lang.String) ref;
4376       }
4377     }
4378     /**
4379      *
4380      *
4381      * <pre>
4382      * [Output Only] URL of the region where this commitment may be used.
4383      * </pre>
4384      *
4385      * <code>optional string region = 138946292;</code>
4386      *
4387      * @return The bytes for region.
4388      */
getRegionBytes()4389     public com.google.protobuf.ByteString getRegionBytes() {
4390       java.lang.Object ref = region_;
4391       if (ref instanceof String) {
4392         com.google.protobuf.ByteString b =
4393             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4394         region_ = b;
4395         return b;
4396       } else {
4397         return (com.google.protobuf.ByteString) ref;
4398       }
4399     }
4400     /**
4401      *
4402      *
4403      * <pre>
4404      * [Output Only] URL of the region where this commitment may be used.
4405      * </pre>
4406      *
4407      * <code>optional string region = 138946292;</code>
4408      *
4409      * @param value The region to set.
4410      * @return This builder for chaining.
4411      */
setRegion(java.lang.String value)4412     public Builder setRegion(java.lang.String value) {
4413       if (value == null) {
4414         throw new NullPointerException();
4415       }
4416       region_ = value;
4417       bitField0_ |= 0x00000800;
4418       onChanged();
4419       return this;
4420     }
4421     /**
4422      *
4423      *
4424      * <pre>
4425      * [Output Only] URL of the region where this commitment may be used.
4426      * </pre>
4427      *
4428      * <code>optional string region = 138946292;</code>
4429      *
4430      * @return This builder for chaining.
4431      */
clearRegion()4432     public Builder clearRegion() {
4433       region_ = getDefaultInstance().getRegion();
4434       bitField0_ = (bitField0_ & ~0x00000800);
4435       onChanged();
4436       return this;
4437     }
4438     /**
4439      *
4440      *
4441      * <pre>
4442      * [Output Only] URL of the region where this commitment may be used.
4443      * </pre>
4444      *
4445      * <code>optional string region = 138946292;</code>
4446      *
4447      * @param value The bytes for region to set.
4448      * @return This builder for chaining.
4449      */
setRegionBytes(com.google.protobuf.ByteString value)4450     public Builder setRegionBytes(com.google.protobuf.ByteString value) {
4451       if (value == null) {
4452         throw new NullPointerException();
4453       }
4454       checkByteStringIsUtf8(value);
4455       region_ = value;
4456       bitField0_ |= 0x00000800;
4457       onChanged();
4458       return this;
4459     }
4460 
4461     private java.util.List<com.google.cloud.compute.v1.Reservation> reservations_ =
4462         java.util.Collections.emptyList();
4463 
ensureReservationsIsMutable()4464     private void ensureReservationsIsMutable() {
4465       if (!((bitField0_ & 0x00001000) != 0)) {
4466         reservations_ =
4467             new java.util.ArrayList<com.google.cloud.compute.v1.Reservation>(reservations_);
4468         bitField0_ |= 0x00001000;
4469       }
4470     }
4471 
4472     private com.google.protobuf.RepeatedFieldBuilderV3<
4473             com.google.cloud.compute.v1.Reservation,
4474             com.google.cloud.compute.v1.Reservation.Builder,
4475             com.google.cloud.compute.v1.ReservationOrBuilder>
4476         reservationsBuilder_;
4477 
4478     /**
4479      *
4480      *
4481      * <pre>
4482      * List of reservations in this commitment.
4483      * </pre>
4484      *
4485      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4486      */
getReservationsList()4487     public java.util.List<com.google.cloud.compute.v1.Reservation> getReservationsList() {
4488       if (reservationsBuilder_ == null) {
4489         return java.util.Collections.unmodifiableList(reservations_);
4490       } else {
4491         return reservationsBuilder_.getMessageList();
4492       }
4493     }
4494     /**
4495      *
4496      *
4497      * <pre>
4498      * List of reservations in this commitment.
4499      * </pre>
4500      *
4501      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4502      */
getReservationsCount()4503     public int getReservationsCount() {
4504       if (reservationsBuilder_ == null) {
4505         return reservations_.size();
4506       } else {
4507         return reservationsBuilder_.getCount();
4508       }
4509     }
4510     /**
4511      *
4512      *
4513      * <pre>
4514      * List of reservations in this commitment.
4515      * </pre>
4516      *
4517      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4518      */
getReservations(int index)4519     public com.google.cloud.compute.v1.Reservation getReservations(int index) {
4520       if (reservationsBuilder_ == null) {
4521         return reservations_.get(index);
4522       } else {
4523         return reservationsBuilder_.getMessage(index);
4524       }
4525     }
4526     /**
4527      *
4528      *
4529      * <pre>
4530      * List of reservations in this commitment.
4531      * </pre>
4532      *
4533      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4534      */
setReservations(int index, com.google.cloud.compute.v1.Reservation value)4535     public Builder setReservations(int index, com.google.cloud.compute.v1.Reservation value) {
4536       if (reservationsBuilder_ == null) {
4537         if (value == null) {
4538           throw new NullPointerException();
4539         }
4540         ensureReservationsIsMutable();
4541         reservations_.set(index, value);
4542         onChanged();
4543       } else {
4544         reservationsBuilder_.setMessage(index, value);
4545       }
4546       return this;
4547     }
4548     /**
4549      *
4550      *
4551      * <pre>
4552      * List of reservations in this commitment.
4553      * </pre>
4554      *
4555      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4556      */
setReservations( int index, com.google.cloud.compute.v1.Reservation.Builder builderForValue)4557     public Builder setReservations(
4558         int index, com.google.cloud.compute.v1.Reservation.Builder builderForValue) {
4559       if (reservationsBuilder_ == null) {
4560         ensureReservationsIsMutable();
4561         reservations_.set(index, builderForValue.build());
4562         onChanged();
4563       } else {
4564         reservationsBuilder_.setMessage(index, builderForValue.build());
4565       }
4566       return this;
4567     }
4568     /**
4569      *
4570      *
4571      * <pre>
4572      * List of reservations in this commitment.
4573      * </pre>
4574      *
4575      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4576      */
addReservations(com.google.cloud.compute.v1.Reservation value)4577     public Builder addReservations(com.google.cloud.compute.v1.Reservation value) {
4578       if (reservationsBuilder_ == null) {
4579         if (value == null) {
4580           throw new NullPointerException();
4581         }
4582         ensureReservationsIsMutable();
4583         reservations_.add(value);
4584         onChanged();
4585       } else {
4586         reservationsBuilder_.addMessage(value);
4587       }
4588       return this;
4589     }
4590     /**
4591      *
4592      *
4593      * <pre>
4594      * List of reservations in this commitment.
4595      * </pre>
4596      *
4597      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4598      */
addReservations(int index, com.google.cloud.compute.v1.Reservation value)4599     public Builder addReservations(int index, com.google.cloud.compute.v1.Reservation value) {
4600       if (reservationsBuilder_ == null) {
4601         if (value == null) {
4602           throw new NullPointerException();
4603         }
4604         ensureReservationsIsMutable();
4605         reservations_.add(index, value);
4606         onChanged();
4607       } else {
4608         reservationsBuilder_.addMessage(index, value);
4609       }
4610       return this;
4611     }
4612     /**
4613      *
4614      *
4615      * <pre>
4616      * List of reservations in this commitment.
4617      * </pre>
4618      *
4619      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4620      */
addReservations( com.google.cloud.compute.v1.Reservation.Builder builderForValue)4621     public Builder addReservations(
4622         com.google.cloud.compute.v1.Reservation.Builder builderForValue) {
4623       if (reservationsBuilder_ == null) {
4624         ensureReservationsIsMutable();
4625         reservations_.add(builderForValue.build());
4626         onChanged();
4627       } else {
4628         reservationsBuilder_.addMessage(builderForValue.build());
4629       }
4630       return this;
4631     }
4632     /**
4633      *
4634      *
4635      * <pre>
4636      * List of reservations in this commitment.
4637      * </pre>
4638      *
4639      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4640      */
addReservations( int index, com.google.cloud.compute.v1.Reservation.Builder builderForValue)4641     public Builder addReservations(
4642         int index, com.google.cloud.compute.v1.Reservation.Builder builderForValue) {
4643       if (reservationsBuilder_ == null) {
4644         ensureReservationsIsMutable();
4645         reservations_.add(index, builderForValue.build());
4646         onChanged();
4647       } else {
4648         reservationsBuilder_.addMessage(index, builderForValue.build());
4649       }
4650       return this;
4651     }
4652     /**
4653      *
4654      *
4655      * <pre>
4656      * List of reservations in this commitment.
4657      * </pre>
4658      *
4659      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4660      */
addAllReservations( java.lang.Iterable<? extends com.google.cloud.compute.v1.Reservation> values)4661     public Builder addAllReservations(
4662         java.lang.Iterable<? extends com.google.cloud.compute.v1.Reservation> values) {
4663       if (reservationsBuilder_ == null) {
4664         ensureReservationsIsMutable();
4665         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservations_);
4666         onChanged();
4667       } else {
4668         reservationsBuilder_.addAllMessages(values);
4669       }
4670       return this;
4671     }
4672     /**
4673      *
4674      *
4675      * <pre>
4676      * List of reservations in this commitment.
4677      * </pre>
4678      *
4679      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4680      */
clearReservations()4681     public Builder clearReservations() {
4682       if (reservationsBuilder_ == null) {
4683         reservations_ = java.util.Collections.emptyList();
4684         bitField0_ = (bitField0_ & ~0x00001000);
4685         onChanged();
4686       } else {
4687         reservationsBuilder_.clear();
4688       }
4689       return this;
4690     }
4691     /**
4692      *
4693      *
4694      * <pre>
4695      * List of reservations in this commitment.
4696      * </pre>
4697      *
4698      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4699      */
removeReservations(int index)4700     public Builder removeReservations(int index) {
4701       if (reservationsBuilder_ == null) {
4702         ensureReservationsIsMutable();
4703         reservations_.remove(index);
4704         onChanged();
4705       } else {
4706         reservationsBuilder_.remove(index);
4707       }
4708       return this;
4709     }
4710     /**
4711      *
4712      *
4713      * <pre>
4714      * List of reservations in this commitment.
4715      * </pre>
4716      *
4717      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4718      */
getReservationsBuilder(int index)4719     public com.google.cloud.compute.v1.Reservation.Builder getReservationsBuilder(int index) {
4720       return getReservationsFieldBuilder().getBuilder(index);
4721     }
4722     /**
4723      *
4724      *
4725      * <pre>
4726      * List of reservations in this commitment.
4727      * </pre>
4728      *
4729      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4730      */
getReservationsOrBuilder(int index)4731     public com.google.cloud.compute.v1.ReservationOrBuilder getReservationsOrBuilder(int index) {
4732       if (reservationsBuilder_ == null) {
4733         return reservations_.get(index);
4734       } else {
4735         return reservationsBuilder_.getMessageOrBuilder(index);
4736       }
4737     }
4738     /**
4739      *
4740      *
4741      * <pre>
4742      * List of reservations in this commitment.
4743      * </pre>
4744      *
4745      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4746      */
4747     public java.util.List<? extends com.google.cloud.compute.v1.ReservationOrBuilder>
getReservationsOrBuilderList()4748         getReservationsOrBuilderList() {
4749       if (reservationsBuilder_ != null) {
4750         return reservationsBuilder_.getMessageOrBuilderList();
4751       } else {
4752         return java.util.Collections.unmodifiableList(reservations_);
4753       }
4754     }
4755     /**
4756      *
4757      *
4758      * <pre>
4759      * List of reservations in this commitment.
4760      * </pre>
4761      *
4762      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4763      */
addReservationsBuilder()4764     public com.google.cloud.compute.v1.Reservation.Builder addReservationsBuilder() {
4765       return getReservationsFieldBuilder()
4766           .addBuilder(com.google.cloud.compute.v1.Reservation.getDefaultInstance());
4767     }
4768     /**
4769      *
4770      *
4771      * <pre>
4772      * List of reservations in this commitment.
4773      * </pre>
4774      *
4775      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4776      */
addReservationsBuilder(int index)4777     public com.google.cloud.compute.v1.Reservation.Builder addReservationsBuilder(int index) {
4778       return getReservationsFieldBuilder()
4779           .addBuilder(index, com.google.cloud.compute.v1.Reservation.getDefaultInstance());
4780     }
4781     /**
4782      *
4783      *
4784      * <pre>
4785      * List of reservations in this commitment.
4786      * </pre>
4787      *
4788      * <code>repeated .google.cloud.compute.v1.Reservation reservations = 399717927;</code>
4789      */
4790     public java.util.List<com.google.cloud.compute.v1.Reservation.Builder>
getReservationsBuilderList()4791         getReservationsBuilderList() {
4792       return getReservationsFieldBuilder().getBuilderList();
4793     }
4794 
4795     private com.google.protobuf.RepeatedFieldBuilderV3<
4796             com.google.cloud.compute.v1.Reservation,
4797             com.google.cloud.compute.v1.Reservation.Builder,
4798             com.google.cloud.compute.v1.ReservationOrBuilder>
getReservationsFieldBuilder()4799         getReservationsFieldBuilder() {
4800       if (reservationsBuilder_ == null) {
4801         reservationsBuilder_ =
4802             new com.google.protobuf.RepeatedFieldBuilderV3<
4803                 com.google.cloud.compute.v1.Reservation,
4804                 com.google.cloud.compute.v1.Reservation.Builder,
4805                 com.google.cloud.compute.v1.ReservationOrBuilder>(
4806                 reservations_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean());
4807         reservations_ = null;
4808       }
4809       return reservationsBuilder_;
4810     }
4811 
4812     private java.util.List<com.google.cloud.compute.v1.ResourceCommitment> resources_ =
4813         java.util.Collections.emptyList();
4814 
ensureResourcesIsMutable()4815     private void ensureResourcesIsMutable() {
4816       if (!((bitField0_ & 0x00002000) != 0)) {
4817         resources_ =
4818             new java.util.ArrayList<com.google.cloud.compute.v1.ResourceCommitment>(resources_);
4819         bitField0_ |= 0x00002000;
4820       }
4821     }
4822 
4823     private com.google.protobuf.RepeatedFieldBuilderV3<
4824             com.google.cloud.compute.v1.ResourceCommitment,
4825             com.google.cloud.compute.v1.ResourceCommitment.Builder,
4826             com.google.cloud.compute.v1.ResourceCommitmentOrBuilder>
4827         resourcesBuilder_;
4828 
4829     /**
4830      *
4831      *
4832      * <pre>
4833      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
4834      * </pre>
4835      *
4836      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
4837      */
getResourcesList()4838     public java.util.List<com.google.cloud.compute.v1.ResourceCommitment> getResourcesList() {
4839       if (resourcesBuilder_ == null) {
4840         return java.util.Collections.unmodifiableList(resources_);
4841       } else {
4842         return resourcesBuilder_.getMessageList();
4843       }
4844     }
4845     /**
4846      *
4847      *
4848      * <pre>
4849      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
4850      * </pre>
4851      *
4852      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
4853      */
getResourcesCount()4854     public int getResourcesCount() {
4855       if (resourcesBuilder_ == null) {
4856         return resources_.size();
4857       } else {
4858         return resourcesBuilder_.getCount();
4859       }
4860     }
4861     /**
4862      *
4863      *
4864      * <pre>
4865      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
4866      * </pre>
4867      *
4868      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
4869      */
getResources(int index)4870     public com.google.cloud.compute.v1.ResourceCommitment getResources(int index) {
4871       if (resourcesBuilder_ == null) {
4872         return resources_.get(index);
4873       } else {
4874         return resourcesBuilder_.getMessage(index);
4875       }
4876     }
4877     /**
4878      *
4879      *
4880      * <pre>
4881      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
4882      * </pre>
4883      *
4884      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
4885      */
setResources(int index, com.google.cloud.compute.v1.ResourceCommitment value)4886     public Builder setResources(int index, com.google.cloud.compute.v1.ResourceCommitment value) {
4887       if (resourcesBuilder_ == null) {
4888         if (value == null) {
4889           throw new NullPointerException();
4890         }
4891         ensureResourcesIsMutable();
4892         resources_.set(index, value);
4893         onChanged();
4894       } else {
4895         resourcesBuilder_.setMessage(index, value);
4896       }
4897       return this;
4898     }
4899     /**
4900      *
4901      *
4902      * <pre>
4903      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
4904      * </pre>
4905      *
4906      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
4907      */
setResources( int index, com.google.cloud.compute.v1.ResourceCommitment.Builder builderForValue)4908     public Builder setResources(
4909         int index, com.google.cloud.compute.v1.ResourceCommitment.Builder builderForValue) {
4910       if (resourcesBuilder_ == null) {
4911         ensureResourcesIsMutable();
4912         resources_.set(index, builderForValue.build());
4913         onChanged();
4914       } else {
4915         resourcesBuilder_.setMessage(index, builderForValue.build());
4916       }
4917       return this;
4918     }
4919     /**
4920      *
4921      *
4922      * <pre>
4923      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
4924      * </pre>
4925      *
4926      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
4927      */
addResources(com.google.cloud.compute.v1.ResourceCommitment value)4928     public Builder addResources(com.google.cloud.compute.v1.ResourceCommitment value) {
4929       if (resourcesBuilder_ == null) {
4930         if (value == null) {
4931           throw new NullPointerException();
4932         }
4933         ensureResourcesIsMutable();
4934         resources_.add(value);
4935         onChanged();
4936       } else {
4937         resourcesBuilder_.addMessage(value);
4938       }
4939       return this;
4940     }
4941     /**
4942      *
4943      *
4944      * <pre>
4945      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
4946      * </pre>
4947      *
4948      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
4949      */
addResources(int index, com.google.cloud.compute.v1.ResourceCommitment value)4950     public Builder addResources(int index, com.google.cloud.compute.v1.ResourceCommitment value) {
4951       if (resourcesBuilder_ == null) {
4952         if (value == null) {
4953           throw new NullPointerException();
4954         }
4955         ensureResourcesIsMutable();
4956         resources_.add(index, value);
4957         onChanged();
4958       } else {
4959         resourcesBuilder_.addMessage(index, value);
4960       }
4961       return this;
4962     }
4963     /**
4964      *
4965      *
4966      * <pre>
4967      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
4968      * </pre>
4969      *
4970      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
4971      */
addResources( com.google.cloud.compute.v1.ResourceCommitment.Builder builderForValue)4972     public Builder addResources(
4973         com.google.cloud.compute.v1.ResourceCommitment.Builder builderForValue) {
4974       if (resourcesBuilder_ == null) {
4975         ensureResourcesIsMutable();
4976         resources_.add(builderForValue.build());
4977         onChanged();
4978       } else {
4979         resourcesBuilder_.addMessage(builderForValue.build());
4980       }
4981       return this;
4982     }
4983     /**
4984      *
4985      *
4986      * <pre>
4987      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
4988      * </pre>
4989      *
4990      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
4991      */
addResources( int index, com.google.cloud.compute.v1.ResourceCommitment.Builder builderForValue)4992     public Builder addResources(
4993         int index, com.google.cloud.compute.v1.ResourceCommitment.Builder builderForValue) {
4994       if (resourcesBuilder_ == null) {
4995         ensureResourcesIsMutable();
4996         resources_.add(index, builderForValue.build());
4997         onChanged();
4998       } else {
4999         resourcesBuilder_.addMessage(index, builderForValue.build());
5000       }
5001       return this;
5002     }
5003     /**
5004      *
5005      *
5006      * <pre>
5007      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
5008      * </pre>
5009      *
5010      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
5011      */
addAllResources( java.lang.Iterable<? extends com.google.cloud.compute.v1.ResourceCommitment> values)5012     public Builder addAllResources(
5013         java.lang.Iterable<? extends com.google.cloud.compute.v1.ResourceCommitment> values) {
5014       if (resourcesBuilder_ == null) {
5015         ensureResourcesIsMutable();
5016         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_);
5017         onChanged();
5018       } else {
5019         resourcesBuilder_.addAllMessages(values);
5020       }
5021       return this;
5022     }
5023     /**
5024      *
5025      *
5026      * <pre>
5027      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
5028      * </pre>
5029      *
5030      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
5031      */
clearResources()5032     public Builder clearResources() {
5033       if (resourcesBuilder_ == null) {
5034         resources_ = java.util.Collections.emptyList();
5035         bitField0_ = (bitField0_ & ~0x00002000);
5036         onChanged();
5037       } else {
5038         resourcesBuilder_.clear();
5039       }
5040       return this;
5041     }
5042     /**
5043      *
5044      *
5045      * <pre>
5046      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
5047      * </pre>
5048      *
5049      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
5050      */
removeResources(int index)5051     public Builder removeResources(int index) {
5052       if (resourcesBuilder_ == null) {
5053         ensureResourcesIsMutable();
5054         resources_.remove(index);
5055         onChanged();
5056       } else {
5057         resourcesBuilder_.remove(index);
5058       }
5059       return this;
5060     }
5061     /**
5062      *
5063      *
5064      * <pre>
5065      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
5066      * </pre>
5067      *
5068      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
5069      */
getResourcesBuilder(int index)5070     public com.google.cloud.compute.v1.ResourceCommitment.Builder getResourcesBuilder(int index) {
5071       return getResourcesFieldBuilder().getBuilder(index);
5072     }
5073     /**
5074      *
5075      *
5076      * <pre>
5077      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
5078      * </pre>
5079      *
5080      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
5081      */
getResourcesOrBuilder( int index)5082     public com.google.cloud.compute.v1.ResourceCommitmentOrBuilder getResourcesOrBuilder(
5083         int index) {
5084       if (resourcesBuilder_ == null) {
5085         return resources_.get(index);
5086       } else {
5087         return resourcesBuilder_.getMessageOrBuilder(index);
5088       }
5089     }
5090     /**
5091      *
5092      *
5093      * <pre>
5094      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
5095      * </pre>
5096      *
5097      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
5098      */
5099     public java.util.List<? extends com.google.cloud.compute.v1.ResourceCommitmentOrBuilder>
getResourcesOrBuilderList()5100         getResourcesOrBuilderList() {
5101       if (resourcesBuilder_ != null) {
5102         return resourcesBuilder_.getMessageOrBuilderList();
5103       } else {
5104         return java.util.Collections.unmodifiableList(resources_);
5105       }
5106     }
5107     /**
5108      *
5109      *
5110      * <pre>
5111      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
5112      * </pre>
5113      *
5114      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
5115      */
addResourcesBuilder()5116     public com.google.cloud.compute.v1.ResourceCommitment.Builder addResourcesBuilder() {
5117       return getResourcesFieldBuilder()
5118           .addBuilder(com.google.cloud.compute.v1.ResourceCommitment.getDefaultInstance());
5119     }
5120     /**
5121      *
5122      *
5123      * <pre>
5124      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
5125      * </pre>
5126      *
5127      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
5128      */
addResourcesBuilder(int index)5129     public com.google.cloud.compute.v1.ResourceCommitment.Builder addResourcesBuilder(int index) {
5130       return getResourcesFieldBuilder()
5131           .addBuilder(index, com.google.cloud.compute.v1.ResourceCommitment.getDefaultInstance());
5132     }
5133     /**
5134      *
5135      *
5136      * <pre>
5137      * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
5138      * </pre>
5139      *
5140      * <code>repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;</code>
5141      */
5142     public java.util.List<com.google.cloud.compute.v1.ResourceCommitment.Builder>
getResourcesBuilderList()5143         getResourcesBuilderList() {
5144       return getResourcesFieldBuilder().getBuilderList();
5145     }
5146 
5147     private com.google.protobuf.RepeatedFieldBuilderV3<
5148             com.google.cloud.compute.v1.ResourceCommitment,
5149             com.google.cloud.compute.v1.ResourceCommitment.Builder,
5150             com.google.cloud.compute.v1.ResourceCommitmentOrBuilder>
getResourcesFieldBuilder()5151         getResourcesFieldBuilder() {
5152       if (resourcesBuilder_ == null) {
5153         resourcesBuilder_ =
5154             new com.google.protobuf.RepeatedFieldBuilderV3<
5155                 com.google.cloud.compute.v1.ResourceCommitment,
5156                 com.google.cloud.compute.v1.ResourceCommitment.Builder,
5157                 com.google.cloud.compute.v1.ResourceCommitmentOrBuilder>(
5158                 resources_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean());
5159         resources_ = null;
5160       }
5161       return resourcesBuilder_;
5162     }
5163 
5164     private java.lang.Object selfLink_ = "";
5165     /**
5166      *
5167      *
5168      * <pre>
5169      * [Output Only] Server-defined URL for the resource.
5170      * </pre>
5171      *
5172      * <code>optional string self_link = 456214797;</code>
5173      *
5174      * @return Whether the selfLink field is set.
5175      */
hasSelfLink()5176     public boolean hasSelfLink() {
5177       return ((bitField0_ & 0x00004000) != 0);
5178     }
5179     /**
5180      *
5181      *
5182      * <pre>
5183      * [Output Only] Server-defined URL for the resource.
5184      * </pre>
5185      *
5186      * <code>optional string self_link = 456214797;</code>
5187      *
5188      * @return The selfLink.
5189      */
getSelfLink()5190     public java.lang.String getSelfLink() {
5191       java.lang.Object ref = selfLink_;
5192       if (!(ref instanceof java.lang.String)) {
5193         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5194         java.lang.String s = bs.toStringUtf8();
5195         selfLink_ = s;
5196         return s;
5197       } else {
5198         return (java.lang.String) ref;
5199       }
5200     }
5201     /**
5202      *
5203      *
5204      * <pre>
5205      * [Output Only] Server-defined URL for the resource.
5206      * </pre>
5207      *
5208      * <code>optional string self_link = 456214797;</code>
5209      *
5210      * @return The bytes for selfLink.
5211      */
getSelfLinkBytes()5212     public com.google.protobuf.ByteString getSelfLinkBytes() {
5213       java.lang.Object ref = selfLink_;
5214       if (ref instanceof String) {
5215         com.google.protobuf.ByteString b =
5216             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5217         selfLink_ = b;
5218         return b;
5219       } else {
5220         return (com.google.protobuf.ByteString) ref;
5221       }
5222     }
5223     /**
5224      *
5225      *
5226      * <pre>
5227      * [Output Only] Server-defined URL for the resource.
5228      * </pre>
5229      *
5230      * <code>optional string self_link = 456214797;</code>
5231      *
5232      * @param value The selfLink to set.
5233      * @return This builder for chaining.
5234      */
setSelfLink(java.lang.String value)5235     public Builder setSelfLink(java.lang.String value) {
5236       if (value == null) {
5237         throw new NullPointerException();
5238       }
5239       selfLink_ = value;
5240       bitField0_ |= 0x00004000;
5241       onChanged();
5242       return this;
5243     }
5244     /**
5245      *
5246      *
5247      * <pre>
5248      * [Output Only] Server-defined URL for the resource.
5249      * </pre>
5250      *
5251      * <code>optional string self_link = 456214797;</code>
5252      *
5253      * @return This builder for chaining.
5254      */
clearSelfLink()5255     public Builder clearSelfLink() {
5256       selfLink_ = getDefaultInstance().getSelfLink();
5257       bitField0_ = (bitField0_ & ~0x00004000);
5258       onChanged();
5259       return this;
5260     }
5261     /**
5262      *
5263      *
5264      * <pre>
5265      * [Output Only] Server-defined URL for the resource.
5266      * </pre>
5267      *
5268      * <code>optional string self_link = 456214797;</code>
5269      *
5270      * @param value The bytes for selfLink to set.
5271      * @return This builder for chaining.
5272      */
setSelfLinkBytes(com.google.protobuf.ByteString value)5273     public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) {
5274       if (value == null) {
5275         throw new NullPointerException();
5276       }
5277       checkByteStringIsUtf8(value);
5278       selfLink_ = value;
5279       bitField0_ |= 0x00004000;
5280       onChanged();
5281       return this;
5282     }
5283 
5284     private java.lang.Object splitSourceCommitment_ = "";
5285     /**
5286      *
5287      *
5288      * <pre>
5289      * Source commitment to be splitted into a new commitment.
5290      * </pre>
5291      *
5292      * <code>optional string split_source_commitment = 402611156;</code>
5293      *
5294      * @return Whether the splitSourceCommitment field is set.
5295      */
hasSplitSourceCommitment()5296     public boolean hasSplitSourceCommitment() {
5297       return ((bitField0_ & 0x00008000) != 0);
5298     }
5299     /**
5300      *
5301      *
5302      * <pre>
5303      * Source commitment to be splitted into a new commitment.
5304      * </pre>
5305      *
5306      * <code>optional string split_source_commitment = 402611156;</code>
5307      *
5308      * @return The splitSourceCommitment.
5309      */
getSplitSourceCommitment()5310     public java.lang.String getSplitSourceCommitment() {
5311       java.lang.Object ref = splitSourceCommitment_;
5312       if (!(ref instanceof java.lang.String)) {
5313         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5314         java.lang.String s = bs.toStringUtf8();
5315         splitSourceCommitment_ = s;
5316         return s;
5317       } else {
5318         return (java.lang.String) ref;
5319       }
5320     }
5321     /**
5322      *
5323      *
5324      * <pre>
5325      * Source commitment to be splitted into a new commitment.
5326      * </pre>
5327      *
5328      * <code>optional string split_source_commitment = 402611156;</code>
5329      *
5330      * @return The bytes for splitSourceCommitment.
5331      */
getSplitSourceCommitmentBytes()5332     public com.google.protobuf.ByteString getSplitSourceCommitmentBytes() {
5333       java.lang.Object ref = splitSourceCommitment_;
5334       if (ref instanceof String) {
5335         com.google.protobuf.ByteString b =
5336             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5337         splitSourceCommitment_ = b;
5338         return b;
5339       } else {
5340         return (com.google.protobuf.ByteString) ref;
5341       }
5342     }
5343     /**
5344      *
5345      *
5346      * <pre>
5347      * Source commitment to be splitted into a new commitment.
5348      * </pre>
5349      *
5350      * <code>optional string split_source_commitment = 402611156;</code>
5351      *
5352      * @param value The splitSourceCommitment to set.
5353      * @return This builder for chaining.
5354      */
setSplitSourceCommitment(java.lang.String value)5355     public Builder setSplitSourceCommitment(java.lang.String value) {
5356       if (value == null) {
5357         throw new NullPointerException();
5358       }
5359       splitSourceCommitment_ = value;
5360       bitField0_ |= 0x00008000;
5361       onChanged();
5362       return this;
5363     }
5364     /**
5365      *
5366      *
5367      * <pre>
5368      * Source commitment to be splitted into a new commitment.
5369      * </pre>
5370      *
5371      * <code>optional string split_source_commitment = 402611156;</code>
5372      *
5373      * @return This builder for chaining.
5374      */
clearSplitSourceCommitment()5375     public Builder clearSplitSourceCommitment() {
5376       splitSourceCommitment_ = getDefaultInstance().getSplitSourceCommitment();
5377       bitField0_ = (bitField0_ & ~0x00008000);
5378       onChanged();
5379       return this;
5380     }
5381     /**
5382      *
5383      *
5384      * <pre>
5385      * Source commitment to be splitted into a new commitment.
5386      * </pre>
5387      *
5388      * <code>optional string split_source_commitment = 402611156;</code>
5389      *
5390      * @param value The bytes for splitSourceCommitment to set.
5391      * @return This builder for chaining.
5392      */
setSplitSourceCommitmentBytes(com.google.protobuf.ByteString value)5393     public Builder setSplitSourceCommitmentBytes(com.google.protobuf.ByteString value) {
5394       if (value == null) {
5395         throw new NullPointerException();
5396       }
5397       checkByteStringIsUtf8(value);
5398       splitSourceCommitment_ = value;
5399       bitField0_ |= 0x00008000;
5400       onChanged();
5401       return this;
5402     }
5403 
5404     private java.lang.Object startTimestamp_ = "";
5405     /**
5406      *
5407      *
5408      * <pre>
5409      * [Output Only] Commitment start time in RFC3339 text format.
5410      * </pre>
5411      *
5412      * <code>optional string start_timestamp = 83645817;</code>
5413      *
5414      * @return Whether the startTimestamp field is set.
5415      */
hasStartTimestamp()5416     public boolean hasStartTimestamp() {
5417       return ((bitField0_ & 0x00010000) != 0);
5418     }
5419     /**
5420      *
5421      *
5422      * <pre>
5423      * [Output Only] Commitment start time in RFC3339 text format.
5424      * </pre>
5425      *
5426      * <code>optional string start_timestamp = 83645817;</code>
5427      *
5428      * @return The startTimestamp.
5429      */
getStartTimestamp()5430     public java.lang.String getStartTimestamp() {
5431       java.lang.Object ref = startTimestamp_;
5432       if (!(ref instanceof java.lang.String)) {
5433         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5434         java.lang.String s = bs.toStringUtf8();
5435         startTimestamp_ = s;
5436         return s;
5437       } else {
5438         return (java.lang.String) ref;
5439       }
5440     }
5441     /**
5442      *
5443      *
5444      * <pre>
5445      * [Output Only] Commitment start time in RFC3339 text format.
5446      * </pre>
5447      *
5448      * <code>optional string start_timestamp = 83645817;</code>
5449      *
5450      * @return The bytes for startTimestamp.
5451      */
getStartTimestampBytes()5452     public com.google.protobuf.ByteString getStartTimestampBytes() {
5453       java.lang.Object ref = startTimestamp_;
5454       if (ref instanceof String) {
5455         com.google.protobuf.ByteString b =
5456             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5457         startTimestamp_ = b;
5458         return b;
5459       } else {
5460         return (com.google.protobuf.ByteString) ref;
5461       }
5462     }
5463     /**
5464      *
5465      *
5466      * <pre>
5467      * [Output Only] Commitment start time in RFC3339 text format.
5468      * </pre>
5469      *
5470      * <code>optional string start_timestamp = 83645817;</code>
5471      *
5472      * @param value The startTimestamp to set.
5473      * @return This builder for chaining.
5474      */
setStartTimestamp(java.lang.String value)5475     public Builder setStartTimestamp(java.lang.String value) {
5476       if (value == null) {
5477         throw new NullPointerException();
5478       }
5479       startTimestamp_ = value;
5480       bitField0_ |= 0x00010000;
5481       onChanged();
5482       return this;
5483     }
5484     /**
5485      *
5486      *
5487      * <pre>
5488      * [Output Only] Commitment start time in RFC3339 text format.
5489      * </pre>
5490      *
5491      * <code>optional string start_timestamp = 83645817;</code>
5492      *
5493      * @return This builder for chaining.
5494      */
clearStartTimestamp()5495     public Builder clearStartTimestamp() {
5496       startTimestamp_ = getDefaultInstance().getStartTimestamp();
5497       bitField0_ = (bitField0_ & ~0x00010000);
5498       onChanged();
5499       return this;
5500     }
5501     /**
5502      *
5503      *
5504      * <pre>
5505      * [Output Only] Commitment start time in RFC3339 text format.
5506      * </pre>
5507      *
5508      * <code>optional string start_timestamp = 83645817;</code>
5509      *
5510      * @param value The bytes for startTimestamp to set.
5511      * @return This builder for chaining.
5512      */
setStartTimestampBytes(com.google.protobuf.ByteString value)5513     public Builder setStartTimestampBytes(com.google.protobuf.ByteString value) {
5514       if (value == null) {
5515         throw new NullPointerException();
5516       }
5517       checkByteStringIsUtf8(value);
5518       startTimestamp_ = value;
5519       bitField0_ |= 0x00010000;
5520       onChanged();
5521       return this;
5522     }
5523 
5524     private java.lang.Object status_ = "";
5525     /**
5526      *
5527      *
5528      * <pre>
5529      * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
5530      * Check the Status enum for the list of possible values.
5531      * </pre>
5532      *
5533      * <code>optional string status = 181260274;</code>
5534      *
5535      * @return Whether the status field is set.
5536      */
hasStatus()5537     public boolean hasStatus() {
5538       return ((bitField0_ & 0x00020000) != 0);
5539     }
5540     /**
5541      *
5542      *
5543      * <pre>
5544      * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
5545      * Check the Status enum for the list of possible values.
5546      * </pre>
5547      *
5548      * <code>optional string status = 181260274;</code>
5549      *
5550      * @return The status.
5551      */
getStatus()5552     public java.lang.String getStatus() {
5553       java.lang.Object ref = status_;
5554       if (!(ref instanceof java.lang.String)) {
5555         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5556         java.lang.String s = bs.toStringUtf8();
5557         status_ = s;
5558         return s;
5559       } else {
5560         return (java.lang.String) ref;
5561       }
5562     }
5563     /**
5564      *
5565      *
5566      * <pre>
5567      * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
5568      * Check the Status enum for the list of possible values.
5569      * </pre>
5570      *
5571      * <code>optional string status = 181260274;</code>
5572      *
5573      * @return The bytes for status.
5574      */
getStatusBytes()5575     public com.google.protobuf.ByteString getStatusBytes() {
5576       java.lang.Object ref = status_;
5577       if (ref instanceof String) {
5578         com.google.protobuf.ByteString b =
5579             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5580         status_ = b;
5581         return b;
5582       } else {
5583         return (com.google.protobuf.ByteString) ref;
5584       }
5585     }
5586     /**
5587      *
5588      *
5589      * <pre>
5590      * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
5591      * Check the Status enum for the list of possible values.
5592      * </pre>
5593      *
5594      * <code>optional string status = 181260274;</code>
5595      *
5596      * @param value The status to set.
5597      * @return This builder for chaining.
5598      */
setStatus(java.lang.String value)5599     public Builder setStatus(java.lang.String value) {
5600       if (value == null) {
5601         throw new NullPointerException();
5602       }
5603       status_ = value;
5604       bitField0_ |= 0x00020000;
5605       onChanged();
5606       return this;
5607     }
5608     /**
5609      *
5610      *
5611      * <pre>
5612      * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
5613      * Check the Status enum for the list of possible values.
5614      * </pre>
5615      *
5616      * <code>optional string status = 181260274;</code>
5617      *
5618      * @return This builder for chaining.
5619      */
clearStatus()5620     public Builder clearStatus() {
5621       status_ = getDefaultInstance().getStatus();
5622       bitField0_ = (bitField0_ & ~0x00020000);
5623       onChanged();
5624       return this;
5625     }
5626     /**
5627      *
5628      *
5629      * <pre>
5630      * [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
5631      * Check the Status enum for the list of possible values.
5632      * </pre>
5633      *
5634      * <code>optional string status = 181260274;</code>
5635      *
5636      * @param value The bytes for status to set.
5637      * @return This builder for chaining.
5638      */
setStatusBytes(com.google.protobuf.ByteString value)5639     public Builder setStatusBytes(com.google.protobuf.ByteString value) {
5640       if (value == null) {
5641         throw new NullPointerException();
5642       }
5643       checkByteStringIsUtf8(value);
5644       status_ = value;
5645       bitField0_ |= 0x00020000;
5646       onChanged();
5647       return this;
5648     }
5649 
5650     private java.lang.Object statusMessage_ = "";
5651     /**
5652      *
5653      *
5654      * <pre>
5655      * [Output Only] An optional, human-readable explanation of the status.
5656      * </pre>
5657      *
5658      * <code>optional string status_message = 297428154;</code>
5659      *
5660      * @return Whether the statusMessage field is set.
5661      */
hasStatusMessage()5662     public boolean hasStatusMessage() {
5663       return ((bitField0_ & 0x00040000) != 0);
5664     }
5665     /**
5666      *
5667      *
5668      * <pre>
5669      * [Output Only] An optional, human-readable explanation of the status.
5670      * </pre>
5671      *
5672      * <code>optional string status_message = 297428154;</code>
5673      *
5674      * @return The statusMessage.
5675      */
getStatusMessage()5676     public java.lang.String getStatusMessage() {
5677       java.lang.Object ref = statusMessage_;
5678       if (!(ref instanceof java.lang.String)) {
5679         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5680         java.lang.String s = bs.toStringUtf8();
5681         statusMessage_ = s;
5682         return s;
5683       } else {
5684         return (java.lang.String) ref;
5685       }
5686     }
5687     /**
5688      *
5689      *
5690      * <pre>
5691      * [Output Only] An optional, human-readable explanation of the status.
5692      * </pre>
5693      *
5694      * <code>optional string status_message = 297428154;</code>
5695      *
5696      * @return The bytes for statusMessage.
5697      */
getStatusMessageBytes()5698     public com.google.protobuf.ByteString getStatusMessageBytes() {
5699       java.lang.Object ref = statusMessage_;
5700       if (ref instanceof String) {
5701         com.google.protobuf.ByteString b =
5702             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5703         statusMessage_ = b;
5704         return b;
5705       } else {
5706         return (com.google.protobuf.ByteString) ref;
5707       }
5708     }
5709     /**
5710      *
5711      *
5712      * <pre>
5713      * [Output Only] An optional, human-readable explanation of the status.
5714      * </pre>
5715      *
5716      * <code>optional string status_message = 297428154;</code>
5717      *
5718      * @param value The statusMessage to set.
5719      * @return This builder for chaining.
5720      */
setStatusMessage(java.lang.String value)5721     public Builder setStatusMessage(java.lang.String value) {
5722       if (value == null) {
5723         throw new NullPointerException();
5724       }
5725       statusMessage_ = value;
5726       bitField0_ |= 0x00040000;
5727       onChanged();
5728       return this;
5729     }
5730     /**
5731      *
5732      *
5733      * <pre>
5734      * [Output Only] An optional, human-readable explanation of the status.
5735      * </pre>
5736      *
5737      * <code>optional string status_message = 297428154;</code>
5738      *
5739      * @return This builder for chaining.
5740      */
clearStatusMessage()5741     public Builder clearStatusMessage() {
5742       statusMessage_ = getDefaultInstance().getStatusMessage();
5743       bitField0_ = (bitField0_ & ~0x00040000);
5744       onChanged();
5745       return this;
5746     }
5747     /**
5748      *
5749      *
5750      * <pre>
5751      * [Output Only] An optional, human-readable explanation of the status.
5752      * </pre>
5753      *
5754      * <code>optional string status_message = 297428154;</code>
5755      *
5756      * @param value The bytes for statusMessage to set.
5757      * @return This builder for chaining.
5758      */
setStatusMessageBytes(com.google.protobuf.ByteString value)5759     public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
5760       if (value == null) {
5761         throw new NullPointerException();
5762       }
5763       checkByteStringIsUtf8(value);
5764       statusMessage_ = value;
5765       bitField0_ |= 0x00040000;
5766       onChanged();
5767       return this;
5768     }
5769 
5770     private java.lang.Object type_ = "";
5771     /**
5772      *
5773      *
5774      * <pre>
5775      * The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
5776      * Check the Type enum for the list of possible values.
5777      * </pre>
5778      *
5779      * <code>optional string type = 3575610;</code>
5780      *
5781      * @return Whether the type field is set.
5782      */
hasType()5783     public boolean hasType() {
5784       return ((bitField0_ & 0x00080000) != 0);
5785     }
5786     /**
5787      *
5788      *
5789      * <pre>
5790      * The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
5791      * Check the Type enum for the list of possible values.
5792      * </pre>
5793      *
5794      * <code>optional string type = 3575610;</code>
5795      *
5796      * @return The type.
5797      */
getType()5798     public java.lang.String getType() {
5799       java.lang.Object ref = type_;
5800       if (!(ref instanceof java.lang.String)) {
5801         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5802         java.lang.String s = bs.toStringUtf8();
5803         type_ = s;
5804         return s;
5805       } else {
5806         return (java.lang.String) ref;
5807       }
5808     }
5809     /**
5810      *
5811      *
5812      * <pre>
5813      * The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
5814      * Check the Type enum for the list of possible values.
5815      * </pre>
5816      *
5817      * <code>optional string type = 3575610;</code>
5818      *
5819      * @return The bytes for type.
5820      */
getTypeBytes()5821     public com.google.protobuf.ByteString getTypeBytes() {
5822       java.lang.Object ref = type_;
5823       if (ref instanceof String) {
5824         com.google.protobuf.ByteString b =
5825             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5826         type_ = b;
5827         return b;
5828       } else {
5829         return (com.google.protobuf.ByteString) ref;
5830       }
5831     }
5832     /**
5833      *
5834      *
5835      * <pre>
5836      * The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
5837      * Check the Type enum for the list of possible values.
5838      * </pre>
5839      *
5840      * <code>optional string type = 3575610;</code>
5841      *
5842      * @param value The type to set.
5843      * @return This builder for chaining.
5844      */
setType(java.lang.String value)5845     public Builder setType(java.lang.String value) {
5846       if (value == null) {
5847         throw new NullPointerException();
5848       }
5849       type_ = value;
5850       bitField0_ |= 0x00080000;
5851       onChanged();
5852       return this;
5853     }
5854     /**
5855      *
5856      *
5857      * <pre>
5858      * The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
5859      * Check the Type enum for the list of possible values.
5860      * </pre>
5861      *
5862      * <code>optional string type = 3575610;</code>
5863      *
5864      * @return This builder for chaining.
5865      */
clearType()5866     public Builder clearType() {
5867       type_ = getDefaultInstance().getType();
5868       bitField0_ = (bitField0_ & ~0x00080000);
5869       onChanged();
5870       return this;
5871     }
5872     /**
5873      *
5874      *
5875      * <pre>
5876      * The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
5877      * Check the Type enum for the list of possible values.
5878      * </pre>
5879      *
5880      * <code>optional string type = 3575610;</code>
5881      *
5882      * @param value The bytes for type to set.
5883      * @return This builder for chaining.
5884      */
setTypeBytes(com.google.protobuf.ByteString value)5885     public Builder setTypeBytes(com.google.protobuf.ByteString value) {
5886       if (value == null) {
5887         throw new NullPointerException();
5888       }
5889       checkByteStringIsUtf8(value);
5890       type_ = value;
5891       bitField0_ |= 0x00080000;
5892       onChanged();
5893       return this;
5894     }
5895 
5896     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)5897     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
5898       return super.setUnknownFields(unknownFields);
5899     }
5900 
5901     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5902     public final Builder mergeUnknownFields(
5903         final com.google.protobuf.UnknownFieldSet unknownFields) {
5904       return super.mergeUnknownFields(unknownFields);
5905     }
5906 
5907     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.Commitment)
5908   }
5909 
5910   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.Commitment)
5911   private static final com.google.cloud.compute.v1.Commitment DEFAULT_INSTANCE;
5912 
5913   static {
5914     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.Commitment();
5915   }
5916 
getDefaultInstance()5917   public static com.google.cloud.compute.v1.Commitment getDefaultInstance() {
5918     return DEFAULT_INSTANCE;
5919   }
5920 
5921   private static final com.google.protobuf.Parser<Commitment> PARSER =
5922       new com.google.protobuf.AbstractParser<Commitment>() {
5923         @java.lang.Override
5924         public Commitment parsePartialFrom(
5925             com.google.protobuf.CodedInputStream input,
5926             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5927             throws com.google.protobuf.InvalidProtocolBufferException {
5928           Builder builder = newBuilder();
5929           try {
5930             builder.mergeFrom(input, extensionRegistry);
5931           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5932             throw e.setUnfinishedMessage(builder.buildPartial());
5933           } catch (com.google.protobuf.UninitializedMessageException e) {
5934             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
5935           } catch (java.io.IOException e) {
5936             throw new com.google.protobuf.InvalidProtocolBufferException(e)
5937                 .setUnfinishedMessage(builder.buildPartial());
5938           }
5939           return builder.buildPartial();
5940         }
5941       };
5942 
parser()5943   public static com.google.protobuf.Parser<Commitment> parser() {
5944     return PARSER;
5945   }
5946 
5947   @java.lang.Override
getParserForType()5948   public com.google.protobuf.Parser<Commitment> getParserForType() {
5949     return PARSER;
5950   }
5951 
5952   @java.lang.Override
getDefaultInstanceForType()5953   public com.google.cloud.compute.v1.Commitment getDefaultInstanceForType() {
5954     return DEFAULT_INSTANCE;
5955   }
5956 }
5957