• 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 License Code resource. A License Code is a unique identifier used to represent a license resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.LicenseCode}
29  */
30 public final class LicenseCode extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.LicenseCode)
33     LicenseCodeOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use LicenseCode.newBuilder() to construct.
LicenseCode(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private LicenseCode(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
LicenseCode()40   private LicenseCode() {
41     creationTimestamp_ = "";
42     description_ = "";
43     kind_ = "";
44     licenseAlias_ = java.util.Collections.emptyList();
45     name_ = "";
46     selfLink_ = "";
47     state_ = "";
48   }
49 
50   @java.lang.Override
51   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)52   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
53     return new LicenseCode();
54   }
55 
56   @java.lang.Override
getUnknownFields()57   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
58     return this.unknownFields;
59   }
60 
getDescriptor()61   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
62     return com.google.cloud.compute.v1.Compute
63         .internal_static_google_cloud_compute_v1_LicenseCode_descriptor;
64   }
65 
66   @java.lang.Override
67   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()68       internalGetFieldAccessorTable() {
69     return com.google.cloud.compute.v1.Compute
70         .internal_static_google_cloud_compute_v1_LicenseCode_fieldAccessorTable
71         .ensureFieldAccessorsInitialized(
72             com.google.cloud.compute.v1.LicenseCode.class,
73             com.google.cloud.compute.v1.LicenseCode.Builder.class);
74   }
75 
76   /**
77    *
78    *
79    * <pre>
80    * [Output Only] Current state of this License Code.
81    * </pre>
82    *
83    * Protobuf enum {@code google.cloud.compute.v1.LicenseCode.State}
84    */
85   public enum State implements com.google.protobuf.ProtocolMessageEnum {
86     /**
87      *
88      *
89      * <pre>
90      * A value indicating that the enum field is not set.
91      * </pre>
92      *
93      * <code>UNDEFINED_STATE = 0;</code>
94      */
95     UNDEFINED_STATE(0),
96     /**
97      *
98      *
99      * <pre>
100      * Machines are not allowed to attach boot disks with this License Code. Requests to create new resources with this license will be rejected.
101      * </pre>
102      *
103      * <code>DISABLED = 516696700;</code>
104      */
105     DISABLED(516696700),
106     /**
107      *
108      *
109      * <pre>
110      * Use is allowed for anyone with USE_READ_ONLY access to this License Code.
111      * </pre>
112      *
113      * <code>ENABLED = 182130465;</code>
114      */
115     ENABLED(182130465),
116     /**
117      *
118      *
119      * <pre>
120      * Use of this license is limited to a project whitelist.
121      * </pre>
122      *
123      * <code>RESTRICTED = 261551195;</code>
124      */
125     RESTRICTED(261551195),
126     /** <code>STATE_UNSPECIFIED = 470755401;</code> */
127     STATE_UNSPECIFIED(470755401),
128     /**
129      *
130      *
131      * <pre>
132      * Reserved state.
133      * </pre>
134      *
135      * <code>TERMINATED = 250018339;</code>
136      */
137     TERMINATED(250018339),
138     UNRECOGNIZED(-1),
139     ;
140 
141     /**
142      *
143      *
144      * <pre>
145      * A value indicating that the enum field is not set.
146      * </pre>
147      *
148      * <code>UNDEFINED_STATE = 0;</code>
149      */
150     public static final int UNDEFINED_STATE_VALUE = 0;
151     /**
152      *
153      *
154      * <pre>
155      * Machines are not allowed to attach boot disks with this License Code. Requests to create new resources with this license will be rejected.
156      * </pre>
157      *
158      * <code>DISABLED = 516696700;</code>
159      */
160     public static final int DISABLED_VALUE = 516696700;
161     /**
162      *
163      *
164      * <pre>
165      * Use is allowed for anyone with USE_READ_ONLY access to this License Code.
166      * </pre>
167      *
168      * <code>ENABLED = 182130465;</code>
169      */
170     public static final int ENABLED_VALUE = 182130465;
171     /**
172      *
173      *
174      * <pre>
175      * Use of this license is limited to a project whitelist.
176      * </pre>
177      *
178      * <code>RESTRICTED = 261551195;</code>
179      */
180     public static final int RESTRICTED_VALUE = 261551195;
181     /** <code>STATE_UNSPECIFIED = 470755401;</code> */
182     public static final int STATE_UNSPECIFIED_VALUE = 470755401;
183     /**
184      *
185      *
186      * <pre>
187      * Reserved state.
188      * </pre>
189      *
190      * <code>TERMINATED = 250018339;</code>
191      */
192     public static final int TERMINATED_VALUE = 250018339;
193 
getNumber()194     public final int getNumber() {
195       if (this == UNRECOGNIZED) {
196         throw new java.lang.IllegalArgumentException(
197             "Can't get the number of an unknown enum value.");
198       }
199       return value;
200     }
201 
202     /**
203      * @param value The numeric wire value of the corresponding enum entry.
204      * @return The enum associated with the given numeric wire value.
205      * @deprecated Use {@link #forNumber(int)} instead.
206      */
207     @java.lang.Deprecated
valueOf(int value)208     public static State valueOf(int value) {
209       return forNumber(value);
210     }
211 
212     /**
213      * @param value The numeric wire value of the corresponding enum entry.
214      * @return The enum associated with the given numeric wire value.
215      */
forNumber(int value)216     public static State forNumber(int value) {
217       switch (value) {
218         case 0:
219           return UNDEFINED_STATE;
220         case 516696700:
221           return DISABLED;
222         case 182130465:
223           return ENABLED;
224         case 261551195:
225           return RESTRICTED;
226         case 470755401:
227           return STATE_UNSPECIFIED;
228         case 250018339:
229           return TERMINATED;
230         default:
231           return null;
232       }
233     }
234 
internalGetValueMap()235     public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
236       return internalValueMap;
237     }
238 
239     private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
240         new com.google.protobuf.Internal.EnumLiteMap<State>() {
241           public State findValueByNumber(int number) {
242             return State.forNumber(number);
243           }
244         };
245 
getValueDescriptor()246     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
247       if (this == UNRECOGNIZED) {
248         throw new java.lang.IllegalStateException(
249             "Can't get the descriptor of an unrecognized enum value.");
250       }
251       return getDescriptor().getValues().get(ordinal());
252     }
253 
getDescriptorForType()254     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
255       return getDescriptor();
256     }
257 
getDescriptor()258     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
259       return com.google.cloud.compute.v1.LicenseCode.getDescriptor().getEnumTypes().get(0);
260     }
261 
262     private static final State[] VALUES = values();
263 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)264     public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
265       if (desc.getType() != getDescriptor()) {
266         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
267       }
268       if (desc.getIndex() == -1) {
269         return UNRECOGNIZED;
270       }
271       return VALUES[desc.getIndex()];
272     }
273 
274     private final int value;
275 
State(int value)276     private State(int value) {
277       this.value = value;
278     }
279 
280     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.LicenseCode.State)
281   }
282 
283   private int bitField0_;
284   public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366;
285 
286   @SuppressWarnings("serial")
287   private volatile java.lang.Object creationTimestamp_ = "";
288   /**
289    *
290    *
291    * <pre>
292    * [Output Only] Creation timestamp in RFC3339 text format.
293    * </pre>
294    *
295    * <code>optional string creation_timestamp = 30525366;</code>
296    *
297    * @return Whether the creationTimestamp field is set.
298    */
299   @java.lang.Override
hasCreationTimestamp()300   public boolean hasCreationTimestamp() {
301     return ((bitField0_ & 0x00000001) != 0);
302   }
303   /**
304    *
305    *
306    * <pre>
307    * [Output Only] Creation timestamp in RFC3339 text format.
308    * </pre>
309    *
310    * <code>optional string creation_timestamp = 30525366;</code>
311    *
312    * @return The creationTimestamp.
313    */
314   @java.lang.Override
getCreationTimestamp()315   public java.lang.String getCreationTimestamp() {
316     java.lang.Object ref = creationTimestamp_;
317     if (ref instanceof java.lang.String) {
318       return (java.lang.String) ref;
319     } else {
320       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
321       java.lang.String s = bs.toStringUtf8();
322       creationTimestamp_ = s;
323       return s;
324     }
325   }
326   /**
327    *
328    *
329    * <pre>
330    * [Output Only] Creation timestamp in RFC3339 text format.
331    * </pre>
332    *
333    * <code>optional string creation_timestamp = 30525366;</code>
334    *
335    * @return The bytes for creationTimestamp.
336    */
337   @java.lang.Override
getCreationTimestampBytes()338   public com.google.protobuf.ByteString getCreationTimestampBytes() {
339     java.lang.Object ref = creationTimestamp_;
340     if (ref instanceof java.lang.String) {
341       com.google.protobuf.ByteString b =
342           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
343       creationTimestamp_ = b;
344       return b;
345     } else {
346       return (com.google.protobuf.ByteString) ref;
347     }
348   }
349 
350   public static final int DESCRIPTION_FIELD_NUMBER = 422937596;
351 
352   @SuppressWarnings("serial")
353   private volatile java.lang.Object description_ = "";
354   /**
355    *
356    *
357    * <pre>
358    * [Output Only] Description of this License Code.
359    * </pre>
360    *
361    * <code>optional string description = 422937596;</code>
362    *
363    * @return Whether the description field is set.
364    */
365   @java.lang.Override
hasDescription()366   public boolean hasDescription() {
367     return ((bitField0_ & 0x00000002) != 0);
368   }
369   /**
370    *
371    *
372    * <pre>
373    * [Output Only] Description of this License Code.
374    * </pre>
375    *
376    * <code>optional string description = 422937596;</code>
377    *
378    * @return The description.
379    */
380   @java.lang.Override
getDescription()381   public java.lang.String getDescription() {
382     java.lang.Object ref = description_;
383     if (ref instanceof java.lang.String) {
384       return (java.lang.String) ref;
385     } else {
386       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
387       java.lang.String s = bs.toStringUtf8();
388       description_ = s;
389       return s;
390     }
391   }
392   /**
393    *
394    *
395    * <pre>
396    * [Output Only] Description of this License Code.
397    * </pre>
398    *
399    * <code>optional string description = 422937596;</code>
400    *
401    * @return The bytes for description.
402    */
403   @java.lang.Override
getDescriptionBytes()404   public com.google.protobuf.ByteString getDescriptionBytes() {
405     java.lang.Object ref = description_;
406     if (ref instanceof java.lang.String) {
407       com.google.protobuf.ByteString b =
408           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
409       description_ = b;
410       return b;
411     } else {
412       return (com.google.protobuf.ByteString) ref;
413     }
414   }
415 
416   public static final int ID_FIELD_NUMBER = 3355;
417   private long id_ = 0L;
418   /**
419    *
420    *
421    * <pre>
422    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
423    * </pre>
424    *
425    * <code>optional uint64 id = 3355;</code>
426    *
427    * @return Whether the id field is set.
428    */
429   @java.lang.Override
hasId()430   public boolean hasId() {
431     return ((bitField0_ & 0x00000004) != 0);
432   }
433   /**
434    *
435    *
436    * <pre>
437    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
438    * </pre>
439    *
440    * <code>optional uint64 id = 3355;</code>
441    *
442    * @return The id.
443    */
444   @java.lang.Override
getId()445   public long getId() {
446     return id_;
447   }
448 
449   public static final int KIND_FIELD_NUMBER = 3292052;
450 
451   @SuppressWarnings("serial")
452   private volatile java.lang.Object kind_ = "";
453   /**
454    *
455    *
456    * <pre>
457    * [Output Only] Type of resource. Always compute#licenseCode for licenses.
458    * </pre>
459    *
460    * <code>optional string kind = 3292052;</code>
461    *
462    * @return Whether the kind field is set.
463    */
464   @java.lang.Override
hasKind()465   public boolean hasKind() {
466     return ((bitField0_ & 0x00000008) != 0);
467   }
468   /**
469    *
470    *
471    * <pre>
472    * [Output Only] Type of resource. Always compute#licenseCode for licenses.
473    * </pre>
474    *
475    * <code>optional string kind = 3292052;</code>
476    *
477    * @return The kind.
478    */
479   @java.lang.Override
getKind()480   public java.lang.String getKind() {
481     java.lang.Object ref = kind_;
482     if (ref instanceof java.lang.String) {
483       return (java.lang.String) ref;
484     } else {
485       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
486       java.lang.String s = bs.toStringUtf8();
487       kind_ = s;
488       return s;
489     }
490   }
491   /**
492    *
493    *
494    * <pre>
495    * [Output Only] Type of resource. Always compute#licenseCode for licenses.
496    * </pre>
497    *
498    * <code>optional string kind = 3292052;</code>
499    *
500    * @return The bytes for kind.
501    */
502   @java.lang.Override
getKindBytes()503   public com.google.protobuf.ByteString getKindBytes() {
504     java.lang.Object ref = kind_;
505     if (ref instanceof java.lang.String) {
506       com.google.protobuf.ByteString b =
507           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
508       kind_ = b;
509       return b;
510     } else {
511       return (com.google.protobuf.ByteString) ref;
512     }
513   }
514 
515   public static final int LICENSE_ALIAS_FIELD_NUMBER = 43550930;
516 
517   @SuppressWarnings("serial")
518   private java.util.List<com.google.cloud.compute.v1.LicenseCodeLicenseAlias> licenseAlias_;
519   /**
520    *
521    *
522    * <pre>
523    * [Output Only] URL and description aliases of Licenses with the same License Code.
524    * </pre>
525    *
526    * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
527    * </code>
528    */
529   @java.lang.Override
getLicenseAliasList()530   public java.util.List<com.google.cloud.compute.v1.LicenseCodeLicenseAlias> getLicenseAliasList() {
531     return licenseAlias_;
532   }
533   /**
534    *
535    *
536    * <pre>
537    * [Output Only] URL and description aliases of Licenses with the same License Code.
538    * </pre>
539    *
540    * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
541    * </code>
542    */
543   @java.lang.Override
544   public java.util.List<? extends com.google.cloud.compute.v1.LicenseCodeLicenseAliasOrBuilder>
getLicenseAliasOrBuilderList()545       getLicenseAliasOrBuilderList() {
546     return licenseAlias_;
547   }
548   /**
549    *
550    *
551    * <pre>
552    * [Output Only] URL and description aliases of Licenses with the same License Code.
553    * </pre>
554    *
555    * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
556    * </code>
557    */
558   @java.lang.Override
getLicenseAliasCount()559   public int getLicenseAliasCount() {
560     return licenseAlias_.size();
561   }
562   /**
563    *
564    *
565    * <pre>
566    * [Output Only] URL and description aliases of Licenses with the same License Code.
567    * </pre>
568    *
569    * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
570    * </code>
571    */
572   @java.lang.Override
getLicenseAlias(int index)573   public com.google.cloud.compute.v1.LicenseCodeLicenseAlias getLicenseAlias(int index) {
574     return licenseAlias_.get(index);
575   }
576   /**
577    *
578    *
579    * <pre>
580    * [Output Only] URL and description aliases of Licenses with the same License Code.
581    * </pre>
582    *
583    * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
584    * </code>
585    */
586   @java.lang.Override
getLicenseAliasOrBuilder( int index)587   public com.google.cloud.compute.v1.LicenseCodeLicenseAliasOrBuilder getLicenseAliasOrBuilder(
588       int index) {
589     return licenseAlias_.get(index);
590   }
591 
592   public static final int NAME_FIELD_NUMBER = 3373707;
593 
594   @SuppressWarnings("serial")
595   private volatile java.lang.Object name_ = "";
596   /**
597    *
598    *
599    * <pre>
600    * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
601    * </pre>
602    *
603    * <code>optional string name = 3373707;</code>
604    *
605    * @return Whether the name field is set.
606    */
607   @java.lang.Override
hasName()608   public boolean hasName() {
609     return ((bitField0_ & 0x00000010) != 0);
610   }
611   /**
612    *
613    *
614    * <pre>
615    * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
616    * </pre>
617    *
618    * <code>optional string name = 3373707;</code>
619    *
620    * @return The name.
621    */
622   @java.lang.Override
getName()623   public java.lang.String getName() {
624     java.lang.Object ref = name_;
625     if (ref instanceof java.lang.String) {
626       return (java.lang.String) ref;
627     } else {
628       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
629       java.lang.String s = bs.toStringUtf8();
630       name_ = s;
631       return s;
632     }
633   }
634   /**
635    *
636    *
637    * <pre>
638    * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
639    * </pre>
640    *
641    * <code>optional string name = 3373707;</code>
642    *
643    * @return The bytes for name.
644    */
645   @java.lang.Override
getNameBytes()646   public com.google.protobuf.ByteString getNameBytes() {
647     java.lang.Object ref = name_;
648     if (ref instanceof java.lang.String) {
649       com.google.protobuf.ByteString b =
650           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
651       name_ = b;
652       return b;
653     } else {
654       return (com.google.protobuf.ByteString) ref;
655     }
656   }
657 
658   public static final int SELF_LINK_FIELD_NUMBER = 456214797;
659 
660   @SuppressWarnings("serial")
661   private volatile java.lang.Object selfLink_ = "";
662   /**
663    *
664    *
665    * <pre>
666    * [Output Only] Server-defined URL for the resource.
667    * </pre>
668    *
669    * <code>optional string self_link = 456214797;</code>
670    *
671    * @return Whether the selfLink field is set.
672    */
673   @java.lang.Override
hasSelfLink()674   public boolean hasSelfLink() {
675     return ((bitField0_ & 0x00000020) != 0);
676   }
677   /**
678    *
679    *
680    * <pre>
681    * [Output Only] Server-defined URL for the resource.
682    * </pre>
683    *
684    * <code>optional string self_link = 456214797;</code>
685    *
686    * @return The selfLink.
687    */
688   @java.lang.Override
getSelfLink()689   public java.lang.String getSelfLink() {
690     java.lang.Object ref = selfLink_;
691     if (ref instanceof java.lang.String) {
692       return (java.lang.String) ref;
693     } else {
694       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
695       java.lang.String s = bs.toStringUtf8();
696       selfLink_ = s;
697       return s;
698     }
699   }
700   /**
701    *
702    *
703    * <pre>
704    * [Output Only] Server-defined URL for the resource.
705    * </pre>
706    *
707    * <code>optional string self_link = 456214797;</code>
708    *
709    * @return The bytes for selfLink.
710    */
711   @java.lang.Override
getSelfLinkBytes()712   public com.google.protobuf.ByteString getSelfLinkBytes() {
713     java.lang.Object ref = selfLink_;
714     if (ref instanceof java.lang.String) {
715       com.google.protobuf.ByteString b =
716           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
717       selfLink_ = b;
718       return b;
719     } else {
720       return (com.google.protobuf.ByteString) ref;
721     }
722   }
723 
724   public static final int STATE_FIELD_NUMBER = 109757585;
725 
726   @SuppressWarnings("serial")
727   private volatile java.lang.Object state_ = "";
728   /**
729    *
730    *
731    * <pre>
732    * [Output Only] Current state of this License Code.
733    * Check the State enum for the list of possible values.
734    * </pre>
735    *
736    * <code>optional string state = 109757585;</code>
737    *
738    * @return Whether the state field is set.
739    */
740   @java.lang.Override
hasState()741   public boolean hasState() {
742     return ((bitField0_ & 0x00000040) != 0);
743   }
744   /**
745    *
746    *
747    * <pre>
748    * [Output Only] Current state of this License Code.
749    * Check the State enum for the list of possible values.
750    * </pre>
751    *
752    * <code>optional string state = 109757585;</code>
753    *
754    * @return The state.
755    */
756   @java.lang.Override
getState()757   public java.lang.String getState() {
758     java.lang.Object ref = state_;
759     if (ref instanceof java.lang.String) {
760       return (java.lang.String) ref;
761     } else {
762       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
763       java.lang.String s = bs.toStringUtf8();
764       state_ = s;
765       return s;
766     }
767   }
768   /**
769    *
770    *
771    * <pre>
772    * [Output Only] Current state of this License Code.
773    * Check the State enum for the list of possible values.
774    * </pre>
775    *
776    * <code>optional string state = 109757585;</code>
777    *
778    * @return The bytes for state.
779    */
780   @java.lang.Override
getStateBytes()781   public com.google.protobuf.ByteString getStateBytes() {
782     java.lang.Object ref = state_;
783     if (ref instanceof java.lang.String) {
784       com.google.protobuf.ByteString b =
785           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
786       state_ = b;
787       return b;
788     } else {
789       return (com.google.protobuf.ByteString) ref;
790     }
791   }
792 
793   public static final int TRANSFERABLE_FIELD_NUMBER = 4349893;
794   private boolean transferable_ = false;
795   /**
796    *
797    *
798    * <pre>
799    * [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
800    * </pre>
801    *
802    * <code>optional bool transferable = 4349893;</code>
803    *
804    * @return Whether the transferable field is set.
805    */
806   @java.lang.Override
hasTransferable()807   public boolean hasTransferable() {
808     return ((bitField0_ & 0x00000080) != 0);
809   }
810   /**
811    *
812    *
813    * <pre>
814    * [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
815    * </pre>
816    *
817    * <code>optional bool transferable = 4349893;</code>
818    *
819    * @return The transferable.
820    */
821   @java.lang.Override
getTransferable()822   public boolean getTransferable() {
823     return transferable_;
824   }
825 
826   private byte memoizedIsInitialized = -1;
827 
828   @java.lang.Override
isInitialized()829   public final boolean isInitialized() {
830     byte isInitialized = memoizedIsInitialized;
831     if (isInitialized == 1) return true;
832     if (isInitialized == 0) return false;
833 
834     memoizedIsInitialized = 1;
835     return true;
836   }
837 
838   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)839   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
840     if (((bitField0_ & 0x00000004) != 0)) {
841       output.writeUInt64(3355, id_);
842     }
843     if (((bitField0_ & 0x00000008) != 0)) {
844       com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_);
845     }
846     if (((bitField0_ & 0x00000010) != 0)) {
847       com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_);
848     }
849     if (((bitField0_ & 0x00000080) != 0)) {
850       output.writeBool(4349893, transferable_);
851     }
852     if (((bitField0_ & 0x00000001) != 0)) {
853       com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_);
854     }
855     for (int i = 0; i < licenseAlias_.size(); i++) {
856       output.writeMessage(43550930, licenseAlias_.get(i));
857     }
858     if (((bitField0_ & 0x00000040) != 0)) {
859       com.google.protobuf.GeneratedMessageV3.writeString(output, 109757585, state_);
860     }
861     if (((bitField0_ & 0x00000002) != 0)) {
862       com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_);
863     }
864     if (((bitField0_ & 0x00000020) != 0)) {
865       com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_);
866     }
867     getUnknownFields().writeTo(output);
868   }
869 
870   @java.lang.Override
getSerializedSize()871   public int getSerializedSize() {
872     int size = memoizedSize;
873     if (size != -1) return size;
874 
875     size = 0;
876     if (((bitField0_ & 0x00000004) != 0)) {
877       size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_);
878     }
879     if (((bitField0_ & 0x00000008) != 0)) {
880       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_);
881     }
882     if (((bitField0_ & 0x00000010) != 0)) {
883       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_);
884     }
885     if (((bitField0_ & 0x00000080) != 0)) {
886       size += com.google.protobuf.CodedOutputStream.computeBoolSize(4349893, transferable_);
887     }
888     if (((bitField0_ & 0x00000001) != 0)) {
889       size +=
890           com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_);
891     }
892     for (int i = 0; i < licenseAlias_.size(); i++) {
893       size +=
894           com.google.protobuf.CodedOutputStream.computeMessageSize(43550930, licenseAlias_.get(i));
895     }
896     if (((bitField0_ & 0x00000040) != 0)) {
897       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(109757585, state_);
898     }
899     if (((bitField0_ & 0x00000002) != 0)) {
900       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_);
901     }
902     if (((bitField0_ & 0x00000020) != 0)) {
903       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_);
904     }
905     size += getUnknownFields().getSerializedSize();
906     memoizedSize = size;
907     return size;
908   }
909 
910   @java.lang.Override
equals(final java.lang.Object obj)911   public boolean equals(final java.lang.Object obj) {
912     if (obj == this) {
913       return true;
914     }
915     if (!(obj instanceof com.google.cloud.compute.v1.LicenseCode)) {
916       return super.equals(obj);
917     }
918     com.google.cloud.compute.v1.LicenseCode other = (com.google.cloud.compute.v1.LicenseCode) obj;
919 
920     if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false;
921     if (hasCreationTimestamp()) {
922       if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false;
923     }
924     if (hasDescription() != other.hasDescription()) return false;
925     if (hasDescription()) {
926       if (!getDescription().equals(other.getDescription())) return false;
927     }
928     if (hasId() != other.hasId()) return false;
929     if (hasId()) {
930       if (getId() != other.getId()) return false;
931     }
932     if (hasKind() != other.hasKind()) return false;
933     if (hasKind()) {
934       if (!getKind().equals(other.getKind())) return false;
935     }
936     if (!getLicenseAliasList().equals(other.getLicenseAliasList())) return false;
937     if (hasName() != other.hasName()) return false;
938     if (hasName()) {
939       if (!getName().equals(other.getName())) return false;
940     }
941     if (hasSelfLink() != other.hasSelfLink()) return false;
942     if (hasSelfLink()) {
943       if (!getSelfLink().equals(other.getSelfLink())) return false;
944     }
945     if (hasState() != other.hasState()) return false;
946     if (hasState()) {
947       if (!getState().equals(other.getState())) return false;
948     }
949     if (hasTransferable() != other.hasTransferable()) return false;
950     if (hasTransferable()) {
951       if (getTransferable() != other.getTransferable()) return false;
952     }
953     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
954     return true;
955   }
956 
957   @java.lang.Override
hashCode()958   public int hashCode() {
959     if (memoizedHashCode != 0) {
960       return memoizedHashCode;
961     }
962     int hash = 41;
963     hash = (19 * hash) + getDescriptor().hashCode();
964     if (hasCreationTimestamp()) {
965       hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER;
966       hash = (53 * hash) + getCreationTimestamp().hashCode();
967     }
968     if (hasDescription()) {
969       hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
970       hash = (53 * hash) + getDescription().hashCode();
971     }
972     if (hasId()) {
973       hash = (37 * hash) + ID_FIELD_NUMBER;
974       hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId());
975     }
976     if (hasKind()) {
977       hash = (37 * hash) + KIND_FIELD_NUMBER;
978       hash = (53 * hash) + getKind().hashCode();
979     }
980     if (getLicenseAliasCount() > 0) {
981       hash = (37 * hash) + LICENSE_ALIAS_FIELD_NUMBER;
982       hash = (53 * hash) + getLicenseAliasList().hashCode();
983     }
984     if (hasName()) {
985       hash = (37 * hash) + NAME_FIELD_NUMBER;
986       hash = (53 * hash) + getName().hashCode();
987     }
988     if (hasSelfLink()) {
989       hash = (37 * hash) + SELF_LINK_FIELD_NUMBER;
990       hash = (53 * hash) + getSelfLink().hashCode();
991     }
992     if (hasState()) {
993       hash = (37 * hash) + STATE_FIELD_NUMBER;
994       hash = (53 * hash) + getState().hashCode();
995     }
996     if (hasTransferable()) {
997       hash = (37 * hash) + TRANSFERABLE_FIELD_NUMBER;
998       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTransferable());
999     }
1000     hash = (29 * hash) + getUnknownFields().hashCode();
1001     memoizedHashCode = hash;
1002     return hash;
1003   }
1004 
parseFrom(java.nio.ByteBuffer data)1005   public static com.google.cloud.compute.v1.LicenseCode parseFrom(java.nio.ByteBuffer data)
1006       throws com.google.protobuf.InvalidProtocolBufferException {
1007     return PARSER.parseFrom(data);
1008   }
1009 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1010   public static com.google.cloud.compute.v1.LicenseCode parseFrom(
1011       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1012       throws com.google.protobuf.InvalidProtocolBufferException {
1013     return PARSER.parseFrom(data, extensionRegistry);
1014   }
1015 
parseFrom( com.google.protobuf.ByteString data)1016   public static com.google.cloud.compute.v1.LicenseCode parseFrom(
1017       com.google.protobuf.ByteString data)
1018       throws com.google.protobuf.InvalidProtocolBufferException {
1019     return PARSER.parseFrom(data);
1020   }
1021 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1022   public static com.google.cloud.compute.v1.LicenseCode parseFrom(
1023       com.google.protobuf.ByteString data,
1024       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1025       throws com.google.protobuf.InvalidProtocolBufferException {
1026     return PARSER.parseFrom(data, extensionRegistry);
1027   }
1028 
parseFrom(byte[] data)1029   public static com.google.cloud.compute.v1.LicenseCode parseFrom(byte[] data)
1030       throws com.google.protobuf.InvalidProtocolBufferException {
1031     return PARSER.parseFrom(data);
1032   }
1033 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1034   public static com.google.cloud.compute.v1.LicenseCode parseFrom(
1035       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1036       throws com.google.protobuf.InvalidProtocolBufferException {
1037     return PARSER.parseFrom(data, extensionRegistry);
1038   }
1039 
parseFrom(java.io.InputStream input)1040   public static com.google.cloud.compute.v1.LicenseCode parseFrom(java.io.InputStream input)
1041       throws java.io.IOException {
1042     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1043   }
1044 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1045   public static com.google.cloud.compute.v1.LicenseCode parseFrom(
1046       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1047       throws java.io.IOException {
1048     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1049         PARSER, input, extensionRegistry);
1050   }
1051 
parseDelimitedFrom( java.io.InputStream input)1052   public static com.google.cloud.compute.v1.LicenseCode parseDelimitedFrom(
1053       java.io.InputStream input) throws java.io.IOException {
1054     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1055   }
1056 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1057   public static com.google.cloud.compute.v1.LicenseCode parseDelimitedFrom(
1058       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1059       throws java.io.IOException {
1060     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1061         PARSER, input, extensionRegistry);
1062   }
1063 
parseFrom( com.google.protobuf.CodedInputStream input)1064   public static com.google.cloud.compute.v1.LicenseCode parseFrom(
1065       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1066     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1067   }
1068 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1069   public static com.google.cloud.compute.v1.LicenseCode parseFrom(
1070       com.google.protobuf.CodedInputStream input,
1071       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1072       throws java.io.IOException {
1073     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1074         PARSER, input, extensionRegistry);
1075   }
1076 
1077   @java.lang.Override
newBuilderForType()1078   public Builder newBuilderForType() {
1079     return newBuilder();
1080   }
1081 
newBuilder()1082   public static Builder newBuilder() {
1083     return DEFAULT_INSTANCE.toBuilder();
1084   }
1085 
newBuilder(com.google.cloud.compute.v1.LicenseCode prototype)1086   public static Builder newBuilder(com.google.cloud.compute.v1.LicenseCode prototype) {
1087     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1088   }
1089 
1090   @java.lang.Override
toBuilder()1091   public Builder toBuilder() {
1092     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1093   }
1094 
1095   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1096   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1097     Builder builder = new Builder(parent);
1098     return builder;
1099   }
1100   /**
1101    *
1102    *
1103    * <pre>
1104    * Represents a License Code resource. A License Code is a unique identifier used to represent a license resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
1105    * </pre>
1106    *
1107    * Protobuf type {@code google.cloud.compute.v1.LicenseCode}
1108    */
1109   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1110       implements
1111       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.LicenseCode)
1112       com.google.cloud.compute.v1.LicenseCodeOrBuilder {
getDescriptor()1113     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1114       return com.google.cloud.compute.v1.Compute
1115           .internal_static_google_cloud_compute_v1_LicenseCode_descriptor;
1116     }
1117 
1118     @java.lang.Override
1119     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1120         internalGetFieldAccessorTable() {
1121       return com.google.cloud.compute.v1.Compute
1122           .internal_static_google_cloud_compute_v1_LicenseCode_fieldAccessorTable
1123           .ensureFieldAccessorsInitialized(
1124               com.google.cloud.compute.v1.LicenseCode.class,
1125               com.google.cloud.compute.v1.LicenseCode.Builder.class);
1126     }
1127 
1128     // Construct using com.google.cloud.compute.v1.LicenseCode.newBuilder()
Builder()1129     private Builder() {}
1130 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1131     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1132       super(parent);
1133     }
1134 
1135     @java.lang.Override
clear()1136     public Builder clear() {
1137       super.clear();
1138       bitField0_ = 0;
1139       creationTimestamp_ = "";
1140       description_ = "";
1141       id_ = 0L;
1142       kind_ = "";
1143       if (licenseAliasBuilder_ == null) {
1144         licenseAlias_ = java.util.Collections.emptyList();
1145       } else {
1146         licenseAlias_ = null;
1147         licenseAliasBuilder_.clear();
1148       }
1149       bitField0_ = (bitField0_ & ~0x00000010);
1150       name_ = "";
1151       selfLink_ = "";
1152       state_ = "";
1153       transferable_ = false;
1154       return this;
1155     }
1156 
1157     @java.lang.Override
getDescriptorForType()1158     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1159       return com.google.cloud.compute.v1.Compute
1160           .internal_static_google_cloud_compute_v1_LicenseCode_descriptor;
1161     }
1162 
1163     @java.lang.Override
getDefaultInstanceForType()1164     public com.google.cloud.compute.v1.LicenseCode getDefaultInstanceForType() {
1165       return com.google.cloud.compute.v1.LicenseCode.getDefaultInstance();
1166     }
1167 
1168     @java.lang.Override
build()1169     public com.google.cloud.compute.v1.LicenseCode build() {
1170       com.google.cloud.compute.v1.LicenseCode result = buildPartial();
1171       if (!result.isInitialized()) {
1172         throw newUninitializedMessageException(result);
1173       }
1174       return result;
1175     }
1176 
1177     @java.lang.Override
buildPartial()1178     public com.google.cloud.compute.v1.LicenseCode buildPartial() {
1179       com.google.cloud.compute.v1.LicenseCode result =
1180           new com.google.cloud.compute.v1.LicenseCode(this);
1181       buildPartialRepeatedFields(result);
1182       if (bitField0_ != 0) {
1183         buildPartial0(result);
1184       }
1185       onBuilt();
1186       return result;
1187     }
1188 
buildPartialRepeatedFields(com.google.cloud.compute.v1.LicenseCode result)1189     private void buildPartialRepeatedFields(com.google.cloud.compute.v1.LicenseCode result) {
1190       if (licenseAliasBuilder_ == null) {
1191         if (((bitField0_ & 0x00000010) != 0)) {
1192           licenseAlias_ = java.util.Collections.unmodifiableList(licenseAlias_);
1193           bitField0_ = (bitField0_ & ~0x00000010);
1194         }
1195         result.licenseAlias_ = licenseAlias_;
1196       } else {
1197         result.licenseAlias_ = licenseAliasBuilder_.build();
1198       }
1199     }
1200 
buildPartial0(com.google.cloud.compute.v1.LicenseCode result)1201     private void buildPartial0(com.google.cloud.compute.v1.LicenseCode result) {
1202       int from_bitField0_ = bitField0_;
1203       int to_bitField0_ = 0;
1204       if (((from_bitField0_ & 0x00000001) != 0)) {
1205         result.creationTimestamp_ = creationTimestamp_;
1206         to_bitField0_ |= 0x00000001;
1207       }
1208       if (((from_bitField0_ & 0x00000002) != 0)) {
1209         result.description_ = description_;
1210         to_bitField0_ |= 0x00000002;
1211       }
1212       if (((from_bitField0_ & 0x00000004) != 0)) {
1213         result.id_ = id_;
1214         to_bitField0_ |= 0x00000004;
1215       }
1216       if (((from_bitField0_ & 0x00000008) != 0)) {
1217         result.kind_ = kind_;
1218         to_bitField0_ |= 0x00000008;
1219       }
1220       if (((from_bitField0_ & 0x00000020) != 0)) {
1221         result.name_ = name_;
1222         to_bitField0_ |= 0x00000010;
1223       }
1224       if (((from_bitField0_ & 0x00000040) != 0)) {
1225         result.selfLink_ = selfLink_;
1226         to_bitField0_ |= 0x00000020;
1227       }
1228       if (((from_bitField0_ & 0x00000080) != 0)) {
1229         result.state_ = state_;
1230         to_bitField0_ |= 0x00000040;
1231       }
1232       if (((from_bitField0_ & 0x00000100) != 0)) {
1233         result.transferable_ = transferable_;
1234         to_bitField0_ |= 0x00000080;
1235       }
1236       result.bitField0_ |= to_bitField0_;
1237     }
1238 
1239     @java.lang.Override
clone()1240     public Builder clone() {
1241       return super.clone();
1242     }
1243 
1244     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1245     public Builder setField(
1246         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1247       return super.setField(field, value);
1248     }
1249 
1250     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1251     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1252       return super.clearField(field);
1253     }
1254 
1255     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1256     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1257       return super.clearOneof(oneof);
1258     }
1259 
1260     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1261     public Builder setRepeatedField(
1262         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1263       return super.setRepeatedField(field, index, value);
1264     }
1265 
1266     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1267     public Builder addRepeatedField(
1268         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1269       return super.addRepeatedField(field, value);
1270     }
1271 
1272     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1273     public Builder mergeFrom(com.google.protobuf.Message other) {
1274       if (other instanceof com.google.cloud.compute.v1.LicenseCode) {
1275         return mergeFrom((com.google.cloud.compute.v1.LicenseCode) other);
1276       } else {
1277         super.mergeFrom(other);
1278         return this;
1279       }
1280     }
1281 
mergeFrom(com.google.cloud.compute.v1.LicenseCode other)1282     public Builder mergeFrom(com.google.cloud.compute.v1.LicenseCode other) {
1283       if (other == com.google.cloud.compute.v1.LicenseCode.getDefaultInstance()) return this;
1284       if (other.hasCreationTimestamp()) {
1285         creationTimestamp_ = other.creationTimestamp_;
1286         bitField0_ |= 0x00000001;
1287         onChanged();
1288       }
1289       if (other.hasDescription()) {
1290         description_ = other.description_;
1291         bitField0_ |= 0x00000002;
1292         onChanged();
1293       }
1294       if (other.hasId()) {
1295         setId(other.getId());
1296       }
1297       if (other.hasKind()) {
1298         kind_ = other.kind_;
1299         bitField0_ |= 0x00000008;
1300         onChanged();
1301       }
1302       if (licenseAliasBuilder_ == null) {
1303         if (!other.licenseAlias_.isEmpty()) {
1304           if (licenseAlias_.isEmpty()) {
1305             licenseAlias_ = other.licenseAlias_;
1306             bitField0_ = (bitField0_ & ~0x00000010);
1307           } else {
1308             ensureLicenseAliasIsMutable();
1309             licenseAlias_.addAll(other.licenseAlias_);
1310           }
1311           onChanged();
1312         }
1313       } else {
1314         if (!other.licenseAlias_.isEmpty()) {
1315           if (licenseAliasBuilder_.isEmpty()) {
1316             licenseAliasBuilder_.dispose();
1317             licenseAliasBuilder_ = null;
1318             licenseAlias_ = other.licenseAlias_;
1319             bitField0_ = (bitField0_ & ~0x00000010);
1320             licenseAliasBuilder_ =
1321                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1322                     ? getLicenseAliasFieldBuilder()
1323                     : null;
1324           } else {
1325             licenseAliasBuilder_.addAllMessages(other.licenseAlias_);
1326           }
1327         }
1328       }
1329       if (other.hasName()) {
1330         name_ = other.name_;
1331         bitField0_ |= 0x00000020;
1332         onChanged();
1333       }
1334       if (other.hasSelfLink()) {
1335         selfLink_ = other.selfLink_;
1336         bitField0_ |= 0x00000040;
1337         onChanged();
1338       }
1339       if (other.hasState()) {
1340         state_ = other.state_;
1341         bitField0_ |= 0x00000080;
1342         onChanged();
1343       }
1344       if (other.hasTransferable()) {
1345         setTransferable(other.getTransferable());
1346       }
1347       this.mergeUnknownFields(other.getUnknownFields());
1348       onChanged();
1349       return this;
1350     }
1351 
1352     @java.lang.Override
isInitialized()1353     public final boolean isInitialized() {
1354       return true;
1355     }
1356 
1357     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1358     public Builder mergeFrom(
1359         com.google.protobuf.CodedInputStream input,
1360         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1361         throws java.io.IOException {
1362       if (extensionRegistry == null) {
1363         throw new java.lang.NullPointerException();
1364       }
1365       try {
1366         boolean done = false;
1367         while (!done) {
1368           int tag = input.readTag();
1369           switch (tag) {
1370             case 0:
1371               done = true;
1372               break;
1373             case 26840:
1374               {
1375                 id_ = input.readUInt64();
1376                 bitField0_ |= 0x00000004;
1377                 break;
1378               } // case 26840
1379             case 26336418:
1380               {
1381                 kind_ = input.readStringRequireUtf8();
1382                 bitField0_ |= 0x00000008;
1383                 break;
1384               } // case 26336418
1385             case 26989658:
1386               {
1387                 name_ = input.readStringRequireUtf8();
1388                 bitField0_ |= 0x00000020;
1389                 break;
1390               } // case 26989658
1391             case 34799144:
1392               {
1393                 transferable_ = input.readBool();
1394                 bitField0_ |= 0x00000100;
1395                 break;
1396               } // case 34799144
1397             case 244202930:
1398               {
1399                 creationTimestamp_ = input.readStringRequireUtf8();
1400                 bitField0_ |= 0x00000001;
1401                 break;
1402               } // case 244202930
1403             case 348407442:
1404               {
1405                 com.google.cloud.compute.v1.LicenseCodeLicenseAlias m =
1406                     input.readMessage(
1407                         com.google.cloud.compute.v1.LicenseCodeLicenseAlias.parser(),
1408                         extensionRegistry);
1409                 if (licenseAliasBuilder_ == null) {
1410                   ensureLicenseAliasIsMutable();
1411                   licenseAlias_.add(m);
1412                 } else {
1413                   licenseAliasBuilder_.addMessage(m);
1414                 }
1415                 break;
1416               } // case 348407442
1417             case 878060682:
1418               {
1419                 state_ = input.readStringRequireUtf8();
1420                 bitField0_ |= 0x00000080;
1421                 break;
1422               } // case 878060682
1423             case -911466526:
1424               {
1425                 description_ = input.readStringRequireUtf8();
1426                 bitField0_ |= 0x00000002;
1427                 break;
1428               } // case -911466526
1429             case -645248918:
1430               {
1431                 selfLink_ = input.readStringRequireUtf8();
1432                 bitField0_ |= 0x00000040;
1433                 break;
1434               } // case -645248918
1435             default:
1436               {
1437                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1438                   done = true; // was an endgroup tag
1439                 }
1440                 break;
1441               } // default:
1442           } // switch (tag)
1443         } // while (!done)
1444       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1445         throw e.unwrapIOException();
1446       } finally {
1447         onChanged();
1448       } // finally
1449       return this;
1450     }
1451 
1452     private int bitField0_;
1453 
1454     private java.lang.Object creationTimestamp_ = "";
1455     /**
1456      *
1457      *
1458      * <pre>
1459      * [Output Only] Creation timestamp in RFC3339 text format.
1460      * </pre>
1461      *
1462      * <code>optional string creation_timestamp = 30525366;</code>
1463      *
1464      * @return Whether the creationTimestamp field is set.
1465      */
hasCreationTimestamp()1466     public boolean hasCreationTimestamp() {
1467       return ((bitField0_ & 0x00000001) != 0);
1468     }
1469     /**
1470      *
1471      *
1472      * <pre>
1473      * [Output Only] Creation timestamp in RFC3339 text format.
1474      * </pre>
1475      *
1476      * <code>optional string creation_timestamp = 30525366;</code>
1477      *
1478      * @return The creationTimestamp.
1479      */
getCreationTimestamp()1480     public java.lang.String getCreationTimestamp() {
1481       java.lang.Object ref = creationTimestamp_;
1482       if (!(ref instanceof java.lang.String)) {
1483         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1484         java.lang.String s = bs.toStringUtf8();
1485         creationTimestamp_ = s;
1486         return s;
1487       } else {
1488         return (java.lang.String) ref;
1489       }
1490     }
1491     /**
1492      *
1493      *
1494      * <pre>
1495      * [Output Only] Creation timestamp in RFC3339 text format.
1496      * </pre>
1497      *
1498      * <code>optional string creation_timestamp = 30525366;</code>
1499      *
1500      * @return The bytes for creationTimestamp.
1501      */
getCreationTimestampBytes()1502     public com.google.protobuf.ByteString getCreationTimestampBytes() {
1503       java.lang.Object ref = creationTimestamp_;
1504       if (ref instanceof String) {
1505         com.google.protobuf.ByteString b =
1506             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1507         creationTimestamp_ = b;
1508         return b;
1509       } else {
1510         return (com.google.protobuf.ByteString) ref;
1511       }
1512     }
1513     /**
1514      *
1515      *
1516      * <pre>
1517      * [Output Only] Creation timestamp in RFC3339 text format.
1518      * </pre>
1519      *
1520      * <code>optional string creation_timestamp = 30525366;</code>
1521      *
1522      * @param value The creationTimestamp to set.
1523      * @return This builder for chaining.
1524      */
setCreationTimestamp(java.lang.String value)1525     public Builder setCreationTimestamp(java.lang.String value) {
1526       if (value == null) {
1527         throw new NullPointerException();
1528       }
1529       creationTimestamp_ = value;
1530       bitField0_ |= 0x00000001;
1531       onChanged();
1532       return this;
1533     }
1534     /**
1535      *
1536      *
1537      * <pre>
1538      * [Output Only] Creation timestamp in RFC3339 text format.
1539      * </pre>
1540      *
1541      * <code>optional string creation_timestamp = 30525366;</code>
1542      *
1543      * @return This builder for chaining.
1544      */
clearCreationTimestamp()1545     public Builder clearCreationTimestamp() {
1546       creationTimestamp_ = getDefaultInstance().getCreationTimestamp();
1547       bitField0_ = (bitField0_ & ~0x00000001);
1548       onChanged();
1549       return this;
1550     }
1551     /**
1552      *
1553      *
1554      * <pre>
1555      * [Output Only] Creation timestamp in RFC3339 text format.
1556      * </pre>
1557      *
1558      * <code>optional string creation_timestamp = 30525366;</code>
1559      *
1560      * @param value The bytes for creationTimestamp to set.
1561      * @return This builder for chaining.
1562      */
setCreationTimestampBytes(com.google.protobuf.ByteString value)1563     public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) {
1564       if (value == null) {
1565         throw new NullPointerException();
1566       }
1567       checkByteStringIsUtf8(value);
1568       creationTimestamp_ = value;
1569       bitField0_ |= 0x00000001;
1570       onChanged();
1571       return this;
1572     }
1573 
1574     private java.lang.Object description_ = "";
1575     /**
1576      *
1577      *
1578      * <pre>
1579      * [Output Only] Description of this License Code.
1580      * </pre>
1581      *
1582      * <code>optional string description = 422937596;</code>
1583      *
1584      * @return Whether the description field is set.
1585      */
hasDescription()1586     public boolean hasDescription() {
1587       return ((bitField0_ & 0x00000002) != 0);
1588     }
1589     /**
1590      *
1591      *
1592      * <pre>
1593      * [Output Only] Description of this License Code.
1594      * </pre>
1595      *
1596      * <code>optional string description = 422937596;</code>
1597      *
1598      * @return The description.
1599      */
getDescription()1600     public java.lang.String getDescription() {
1601       java.lang.Object ref = description_;
1602       if (!(ref instanceof java.lang.String)) {
1603         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1604         java.lang.String s = bs.toStringUtf8();
1605         description_ = s;
1606         return s;
1607       } else {
1608         return (java.lang.String) ref;
1609       }
1610     }
1611     /**
1612      *
1613      *
1614      * <pre>
1615      * [Output Only] Description of this License Code.
1616      * </pre>
1617      *
1618      * <code>optional string description = 422937596;</code>
1619      *
1620      * @return The bytes for description.
1621      */
getDescriptionBytes()1622     public com.google.protobuf.ByteString getDescriptionBytes() {
1623       java.lang.Object ref = description_;
1624       if (ref instanceof String) {
1625         com.google.protobuf.ByteString b =
1626             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1627         description_ = b;
1628         return b;
1629       } else {
1630         return (com.google.protobuf.ByteString) ref;
1631       }
1632     }
1633     /**
1634      *
1635      *
1636      * <pre>
1637      * [Output Only] Description of this License Code.
1638      * </pre>
1639      *
1640      * <code>optional string description = 422937596;</code>
1641      *
1642      * @param value The description to set.
1643      * @return This builder for chaining.
1644      */
setDescription(java.lang.String value)1645     public Builder setDescription(java.lang.String value) {
1646       if (value == null) {
1647         throw new NullPointerException();
1648       }
1649       description_ = value;
1650       bitField0_ |= 0x00000002;
1651       onChanged();
1652       return this;
1653     }
1654     /**
1655      *
1656      *
1657      * <pre>
1658      * [Output Only] Description of this License Code.
1659      * </pre>
1660      *
1661      * <code>optional string description = 422937596;</code>
1662      *
1663      * @return This builder for chaining.
1664      */
clearDescription()1665     public Builder clearDescription() {
1666       description_ = getDefaultInstance().getDescription();
1667       bitField0_ = (bitField0_ & ~0x00000002);
1668       onChanged();
1669       return this;
1670     }
1671     /**
1672      *
1673      *
1674      * <pre>
1675      * [Output Only] Description of this License Code.
1676      * </pre>
1677      *
1678      * <code>optional string description = 422937596;</code>
1679      *
1680      * @param value The bytes for description to set.
1681      * @return This builder for chaining.
1682      */
setDescriptionBytes(com.google.protobuf.ByteString value)1683     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
1684       if (value == null) {
1685         throw new NullPointerException();
1686       }
1687       checkByteStringIsUtf8(value);
1688       description_ = value;
1689       bitField0_ |= 0x00000002;
1690       onChanged();
1691       return this;
1692     }
1693 
1694     private long id_;
1695     /**
1696      *
1697      *
1698      * <pre>
1699      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1700      * </pre>
1701      *
1702      * <code>optional uint64 id = 3355;</code>
1703      *
1704      * @return Whether the id field is set.
1705      */
1706     @java.lang.Override
hasId()1707     public boolean hasId() {
1708       return ((bitField0_ & 0x00000004) != 0);
1709     }
1710     /**
1711      *
1712      *
1713      * <pre>
1714      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1715      * </pre>
1716      *
1717      * <code>optional uint64 id = 3355;</code>
1718      *
1719      * @return The id.
1720      */
1721     @java.lang.Override
getId()1722     public long getId() {
1723       return id_;
1724     }
1725     /**
1726      *
1727      *
1728      * <pre>
1729      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1730      * </pre>
1731      *
1732      * <code>optional uint64 id = 3355;</code>
1733      *
1734      * @param value The id to set.
1735      * @return This builder for chaining.
1736      */
setId(long value)1737     public Builder setId(long value) {
1738 
1739       id_ = value;
1740       bitField0_ |= 0x00000004;
1741       onChanged();
1742       return this;
1743     }
1744     /**
1745      *
1746      *
1747      * <pre>
1748      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1749      * </pre>
1750      *
1751      * <code>optional uint64 id = 3355;</code>
1752      *
1753      * @return This builder for chaining.
1754      */
clearId()1755     public Builder clearId() {
1756       bitField0_ = (bitField0_ & ~0x00000004);
1757       id_ = 0L;
1758       onChanged();
1759       return this;
1760     }
1761 
1762     private java.lang.Object kind_ = "";
1763     /**
1764      *
1765      *
1766      * <pre>
1767      * [Output Only] Type of resource. Always compute#licenseCode for licenses.
1768      * </pre>
1769      *
1770      * <code>optional string kind = 3292052;</code>
1771      *
1772      * @return Whether the kind field is set.
1773      */
hasKind()1774     public boolean hasKind() {
1775       return ((bitField0_ & 0x00000008) != 0);
1776     }
1777     /**
1778      *
1779      *
1780      * <pre>
1781      * [Output Only] Type of resource. Always compute#licenseCode for licenses.
1782      * </pre>
1783      *
1784      * <code>optional string kind = 3292052;</code>
1785      *
1786      * @return The kind.
1787      */
getKind()1788     public java.lang.String getKind() {
1789       java.lang.Object ref = kind_;
1790       if (!(ref instanceof java.lang.String)) {
1791         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1792         java.lang.String s = bs.toStringUtf8();
1793         kind_ = s;
1794         return s;
1795       } else {
1796         return (java.lang.String) ref;
1797       }
1798     }
1799     /**
1800      *
1801      *
1802      * <pre>
1803      * [Output Only] Type of resource. Always compute#licenseCode for licenses.
1804      * </pre>
1805      *
1806      * <code>optional string kind = 3292052;</code>
1807      *
1808      * @return The bytes for kind.
1809      */
getKindBytes()1810     public com.google.protobuf.ByteString getKindBytes() {
1811       java.lang.Object ref = kind_;
1812       if (ref instanceof String) {
1813         com.google.protobuf.ByteString b =
1814             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1815         kind_ = b;
1816         return b;
1817       } else {
1818         return (com.google.protobuf.ByteString) ref;
1819       }
1820     }
1821     /**
1822      *
1823      *
1824      * <pre>
1825      * [Output Only] Type of resource. Always compute#licenseCode for licenses.
1826      * </pre>
1827      *
1828      * <code>optional string kind = 3292052;</code>
1829      *
1830      * @param value The kind to set.
1831      * @return This builder for chaining.
1832      */
setKind(java.lang.String value)1833     public Builder setKind(java.lang.String value) {
1834       if (value == null) {
1835         throw new NullPointerException();
1836       }
1837       kind_ = value;
1838       bitField0_ |= 0x00000008;
1839       onChanged();
1840       return this;
1841     }
1842     /**
1843      *
1844      *
1845      * <pre>
1846      * [Output Only] Type of resource. Always compute#licenseCode for licenses.
1847      * </pre>
1848      *
1849      * <code>optional string kind = 3292052;</code>
1850      *
1851      * @return This builder for chaining.
1852      */
clearKind()1853     public Builder clearKind() {
1854       kind_ = getDefaultInstance().getKind();
1855       bitField0_ = (bitField0_ & ~0x00000008);
1856       onChanged();
1857       return this;
1858     }
1859     /**
1860      *
1861      *
1862      * <pre>
1863      * [Output Only] Type of resource. Always compute#licenseCode for licenses.
1864      * </pre>
1865      *
1866      * <code>optional string kind = 3292052;</code>
1867      *
1868      * @param value The bytes for kind to set.
1869      * @return This builder for chaining.
1870      */
setKindBytes(com.google.protobuf.ByteString value)1871     public Builder setKindBytes(com.google.protobuf.ByteString value) {
1872       if (value == null) {
1873         throw new NullPointerException();
1874       }
1875       checkByteStringIsUtf8(value);
1876       kind_ = value;
1877       bitField0_ |= 0x00000008;
1878       onChanged();
1879       return this;
1880     }
1881 
1882     private java.util.List<com.google.cloud.compute.v1.LicenseCodeLicenseAlias> licenseAlias_ =
1883         java.util.Collections.emptyList();
1884 
ensureLicenseAliasIsMutable()1885     private void ensureLicenseAliasIsMutable() {
1886       if (!((bitField0_ & 0x00000010) != 0)) {
1887         licenseAlias_ =
1888             new java.util.ArrayList<com.google.cloud.compute.v1.LicenseCodeLicenseAlias>(
1889                 licenseAlias_);
1890         bitField0_ |= 0x00000010;
1891       }
1892     }
1893 
1894     private com.google.protobuf.RepeatedFieldBuilderV3<
1895             com.google.cloud.compute.v1.LicenseCodeLicenseAlias,
1896             com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder,
1897             com.google.cloud.compute.v1.LicenseCodeLicenseAliasOrBuilder>
1898         licenseAliasBuilder_;
1899 
1900     /**
1901      *
1902      *
1903      * <pre>
1904      * [Output Only] URL and description aliases of Licenses with the same License Code.
1905      * </pre>
1906      *
1907      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
1908      * </code>
1909      */
1910     public java.util.List<com.google.cloud.compute.v1.LicenseCodeLicenseAlias>
getLicenseAliasList()1911         getLicenseAliasList() {
1912       if (licenseAliasBuilder_ == null) {
1913         return java.util.Collections.unmodifiableList(licenseAlias_);
1914       } else {
1915         return licenseAliasBuilder_.getMessageList();
1916       }
1917     }
1918     /**
1919      *
1920      *
1921      * <pre>
1922      * [Output Only] URL and description aliases of Licenses with the same License Code.
1923      * </pre>
1924      *
1925      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
1926      * </code>
1927      */
getLicenseAliasCount()1928     public int getLicenseAliasCount() {
1929       if (licenseAliasBuilder_ == null) {
1930         return licenseAlias_.size();
1931       } else {
1932         return licenseAliasBuilder_.getCount();
1933       }
1934     }
1935     /**
1936      *
1937      *
1938      * <pre>
1939      * [Output Only] URL and description aliases of Licenses with the same License Code.
1940      * </pre>
1941      *
1942      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
1943      * </code>
1944      */
getLicenseAlias(int index)1945     public com.google.cloud.compute.v1.LicenseCodeLicenseAlias getLicenseAlias(int index) {
1946       if (licenseAliasBuilder_ == null) {
1947         return licenseAlias_.get(index);
1948       } else {
1949         return licenseAliasBuilder_.getMessage(index);
1950       }
1951     }
1952     /**
1953      *
1954      *
1955      * <pre>
1956      * [Output Only] URL and description aliases of Licenses with the same License Code.
1957      * </pre>
1958      *
1959      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
1960      * </code>
1961      */
setLicenseAlias( int index, com.google.cloud.compute.v1.LicenseCodeLicenseAlias value)1962     public Builder setLicenseAlias(
1963         int index, com.google.cloud.compute.v1.LicenseCodeLicenseAlias value) {
1964       if (licenseAliasBuilder_ == null) {
1965         if (value == null) {
1966           throw new NullPointerException();
1967         }
1968         ensureLicenseAliasIsMutable();
1969         licenseAlias_.set(index, value);
1970         onChanged();
1971       } else {
1972         licenseAliasBuilder_.setMessage(index, value);
1973       }
1974       return this;
1975     }
1976     /**
1977      *
1978      *
1979      * <pre>
1980      * [Output Only] URL and description aliases of Licenses with the same License Code.
1981      * </pre>
1982      *
1983      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
1984      * </code>
1985      */
setLicenseAlias( int index, com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder builderForValue)1986     public Builder setLicenseAlias(
1987         int index, com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder builderForValue) {
1988       if (licenseAliasBuilder_ == null) {
1989         ensureLicenseAliasIsMutable();
1990         licenseAlias_.set(index, builderForValue.build());
1991         onChanged();
1992       } else {
1993         licenseAliasBuilder_.setMessage(index, builderForValue.build());
1994       }
1995       return this;
1996     }
1997     /**
1998      *
1999      *
2000      * <pre>
2001      * [Output Only] URL and description aliases of Licenses with the same License Code.
2002      * </pre>
2003      *
2004      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2005      * </code>
2006      */
addLicenseAlias(com.google.cloud.compute.v1.LicenseCodeLicenseAlias value)2007     public Builder addLicenseAlias(com.google.cloud.compute.v1.LicenseCodeLicenseAlias value) {
2008       if (licenseAliasBuilder_ == null) {
2009         if (value == null) {
2010           throw new NullPointerException();
2011         }
2012         ensureLicenseAliasIsMutable();
2013         licenseAlias_.add(value);
2014         onChanged();
2015       } else {
2016         licenseAliasBuilder_.addMessage(value);
2017       }
2018       return this;
2019     }
2020     /**
2021      *
2022      *
2023      * <pre>
2024      * [Output Only] URL and description aliases of Licenses with the same License Code.
2025      * </pre>
2026      *
2027      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2028      * </code>
2029      */
addLicenseAlias( int index, com.google.cloud.compute.v1.LicenseCodeLicenseAlias value)2030     public Builder addLicenseAlias(
2031         int index, com.google.cloud.compute.v1.LicenseCodeLicenseAlias value) {
2032       if (licenseAliasBuilder_ == null) {
2033         if (value == null) {
2034           throw new NullPointerException();
2035         }
2036         ensureLicenseAliasIsMutable();
2037         licenseAlias_.add(index, value);
2038         onChanged();
2039       } else {
2040         licenseAliasBuilder_.addMessage(index, value);
2041       }
2042       return this;
2043     }
2044     /**
2045      *
2046      *
2047      * <pre>
2048      * [Output Only] URL and description aliases of Licenses with the same License Code.
2049      * </pre>
2050      *
2051      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2052      * </code>
2053      */
addLicenseAlias( com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder builderForValue)2054     public Builder addLicenseAlias(
2055         com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder builderForValue) {
2056       if (licenseAliasBuilder_ == null) {
2057         ensureLicenseAliasIsMutable();
2058         licenseAlias_.add(builderForValue.build());
2059         onChanged();
2060       } else {
2061         licenseAliasBuilder_.addMessage(builderForValue.build());
2062       }
2063       return this;
2064     }
2065     /**
2066      *
2067      *
2068      * <pre>
2069      * [Output Only] URL and description aliases of Licenses with the same License Code.
2070      * </pre>
2071      *
2072      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2073      * </code>
2074      */
addLicenseAlias( int index, com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder builderForValue)2075     public Builder addLicenseAlias(
2076         int index, com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder builderForValue) {
2077       if (licenseAliasBuilder_ == null) {
2078         ensureLicenseAliasIsMutable();
2079         licenseAlias_.add(index, builderForValue.build());
2080         onChanged();
2081       } else {
2082         licenseAliasBuilder_.addMessage(index, builderForValue.build());
2083       }
2084       return this;
2085     }
2086     /**
2087      *
2088      *
2089      * <pre>
2090      * [Output Only] URL and description aliases of Licenses with the same License Code.
2091      * </pre>
2092      *
2093      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2094      * </code>
2095      */
addAllLicenseAlias( java.lang.Iterable<? extends com.google.cloud.compute.v1.LicenseCodeLicenseAlias> values)2096     public Builder addAllLicenseAlias(
2097         java.lang.Iterable<? extends com.google.cloud.compute.v1.LicenseCodeLicenseAlias> values) {
2098       if (licenseAliasBuilder_ == null) {
2099         ensureLicenseAliasIsMutable();
2100         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, licenseAlias_);
2101         onChanged();
2102       } else {
2103         licenseAliasBuilder_.addAllMessages(values);
2104       }
2105       return this;
2106     }
2107     /**
2108      *
2109      *
2110      * <pre>
2111      * [Output Only] URL and description aliases of Licenses with the same License Code.
2112      * </pre>
2113      *
2114      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2115      * </code>
2116      */
clearLicenseAlias()2117     public Builder clearLicenseAlias() {
2118       if (licenseAliasBuilder_ == null) {
2119         licenseAlias_ = java.util.Collections.emptyList();
2120         bitField0_ = (bitField0_ & ~0x00000010);
2121         onChanged();
2122       } else {
2123         licenseAliasBuilder_.clear();
2124       }
2125       return this;
2126     }
2127     /**
2128      *
2129      *
2130      * <pre>
2131      * [Output Only] URL and description aliases of Licenses with the same License Code.
2132      * </pre>
2133      *
2134      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2135      * </code>
2136      */
removeLicenseAlias(int index)2137     public Builder removeLicenseAlias(int index) {
2138       if (licenseAliasBuilder_ == null) {
2139         ensureLicenseAliasIsMutable();
2140         licenseAlias_.remove(index);
2141         onChanged();
2142       } else {
2143         licenseAliasBuilder_.remove(index);
2144       }
2145       return this;
2146     }
2147     /**
2148      *
2149      *
2150      * <pre>
2151      * [Output Only] URL and description aliases of Licenses with the same License Code.
2152      * </pre>
2153      *
2154      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2155      * </code>
2156      */
getLicenseAliasBuilder( int index)2157     public com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder getLicenseAliasBuilder(
2158         int index) {
2159       return getLicenseAliasFieldBuilder().getBuilder(index);
2160     }
2161     /**
2162      *
2163      *
2164      * <pre>
2165      * [Output Only] URL and description aliases of Licenses with the same License Code.
2166      * </pre>
2167      *
2168      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2169      * </code>
2170      */
getLicenseAliasOrBuilder( int index)2171     public com.google.cloud.compute.v1.LicenseCodeLicenseAliasOrBuilder getLicenseAliasOrBuilder(
2172         int index) {
2173       if (licenseAliasBuilder_ == null) {
2174         return licenseAlias_.get(index);
2175       } else {
2176         return licenseAliasBuilder_.getMessageOrBuilder(index);
2177       }
2178     }
2179     /**
2180      *
2181      *
2182      * <pre>
2183      * [Output Only] URL and description aliases of Licenses with the same License Code.
2184      * </pre>
2185      *
2186      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2187      * </code>
2188      */
2189     public java.util.List<? extends com.google.cloud.compute.v1.LicenseCodeLicenseAliasOrBuilder>
getLicenseAliasOrBuilderList()2190         getLicenseAliasOrBuilderList() {
2191       if (licenseAliasBuilder_ != null) {
2192         return licenseAliasBuilder_.getMessageOrBuilderList();
2193       } else {
2194         return java.util.Collections.unmodifiableList(licenseAlias_);
2195       }
2196     }
2197     /**
2198      *
2199      *
2200      * <pre>
2201      * [Output Only] URL and description aliases of Licenses with the same License Code.
2202      * </pre>
2203      *
2204      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2205      * </code>
2206      */
addLicenseAliasBuilder()2207     public com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder addLicenseAliasBuilder() {
2208       return getLicenseAliasFieldBuilder()
2209           .addBuilder(com.google.cloud.compute.v1.LicenseCodeLicenseAlias.getDefaultInstance());
2210     }
2211     /**
2212      *
2213      *
2214      * <pre>
2215      * [Output Only] URL and description aliases of Licenses with the same License Code.
2216      * </pre>
2217      *
2218      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2219      * </code>
2220      */
addLicenseAliasBuilder( int index)2221     public com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder addLicenseAliasBuilder(
2222         int index) {
2223       return getLicenseAliasFieldBuilder()
2224           .addBuilder(
2225               index, com.google.cloud.compute.v1.LicenseCodeLicenseAlias.getDefaultInstance());
2226     }
2227     /**
2228      *
2229      *
2230      * <pre>
2231      * [Output Only] URL and description aliases of Licenses with the same License Code.
2232      * </pre>
2233      *
2234      * <code>repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930;
2235      * </code>
2236      */
2237     public java.util.List<com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder>
getLicenseAliasBuilderList()2238         getLicenseAliasBuilderList() {
2239       return getLicenseAliasFieldBuilder().getBuilderList();
2240     }
2241 
2242     private com.google.protobuf.RepeatedFieldBuilderV3<
2243             com.google.cloud.compute.v1.LicenseCodeLicenseAlias,
2244             com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder,
2245             com.google.cloud.compute.v1.LicenseCodeLicenseAliasOrBuilder>
getLicenseAliasFieldBuilder()2246         getLicenseAliasFieldBuilder() {
2247       if (licenseAliasBuilder_ == null) {
2248         licenseAliasBuilder_ =
2249             new com.google.protobuf.RepeatedFieldBuilderV3<
2250                 com.google.cloud.compute.v1.LicenseCodeLicenseAlias,
2251                 com.google.cloud.compute.v1.LicenseCodeLicenseAlias.Builder,
2252                 com.google.cloud.compute.v1.LicenseCodeLicenseAliasOrBuilder>(
2253                 licenseAlias_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
2254         licenseAlias_ = null;
2255       }
2256       return licenseAliasBuilder_;
2257     }
2258 
2259     private java.lang.Object name_ = "";
2260     /**
2261      *
2262      *
2263      * <pre>
2264      * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
2265      * </pre>
2266      *
2267      * <code>optional string name = 3373707;</code>
2268      *
2269      * @return Whether the name field is set.
2270      */
hasName()2271     public boolean hasName() {
2272       return ((bitField0_ & 0x00000020) != 0);
2273     }
2274     /**
2275      *
2276      *
2277      * <pre>
2278      * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
2279      * </pre>
2280      *
2281      * <code>optional string name = 3373707;</code>
2282      *
2283      * @return The name.
2284      */
getName()2285     public java.lang.String getName() {
2286       java.lang.Object ref = name_;
2287       if (!(ref instanceof java.lang.String)) {
2288         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2289         java.lang.String s = bs.toStringUtf8();
2290         name_ = s;
2291         return s;
2292       } else {
2293         return (java.lang.String) ref;
2294       }
2295     }
2296     /**
2297      *
2298      *
2299      * <pre>
2300      * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
2301      * </pre>
2302      *
2303      * <code>optional string name = 3373707;</code>
2304      *
2305      * @return The bytes for name.
2306      */
getNameBytes()2307     public com.google.protobuf.ByteString getNameBytes() {
2308       java.lang.Object ref = name_;
2309       if (ref instanceof String) {
2310         com.google.protobuf.ByteString b =
2311             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2312         name_ = b;
2313         return b;
2314       } else {
2315         return (com.google.protobuf.ByteString) ref;
2316       }
2317     }
2318     /**
2319      *
2320      *
2321      * <pre>
2322      * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
2323      * </pre>
2324      *
2325      * <code>optional string name = 3373707;</code>
2326      *
2327      * @param value The name to set.
2328      * @return This builder for chaining.
2329      */
setName(java.lang.String value)2330     public Builder setName(java.lang.String value) {
2331       if (value == null) {
2332         throw new NullPointerException();
2333       }
2334       name_ = value;
2335       bitField0_ |= 0x00000020;
2336       onChanged();
2337       return this;
2338     }
2339     /**
2340      *
2341      *
2342      * <pre>
2343      * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
2344      * </pre>
2345      *
2346      * <code>optional string name = 3373707;</code>
2347      *
2348      * @return This builder for chaining.
2349      */
clearName()2350     public Builder clearName() {
2351       name_ = getDefaultInstance().getName();
2352       bitField0_ = (bitField0_ & ~0x00000020);
2353       onChanged();
2354       return this;
2355     }
2356     /**
2357      *
2358      *
2359      * <pre>
2360      * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer.
2361      * </pre>
2362      *
2363      * <code>optional string name = 3373707;</code>
2364      *
2365      * @param value The bytes for name to set.
2366      * @return This builder for chaining.
2367      */
setNameBytes(com.google.protobuf.ByteString value)2368     public Builder setNameBytes(com.google.protobuf.ByteString value) {
2369       if (value == null) {
2370         throw new NullPointerException();
2371       }
2372       checkByteStringIsUtf8(value);
2373       name_ = value;
2374       bitField0_ |= 0x00000020;
2375       onChanged();
2376       return this;
2377     }
2378 
2379     private java.lang.Object selfLink_ = "";
2380     /**
2381      *
2382      *
2383      * <pre>
2384      * [Output Only] Server-defined URL for the resource.
2385      * </pre>
2386      *
2387      * <code>optional string self_link = 456214797;</code>
2388      *
2389      * @return Whether the selfLink field is set.
2390      */
hasSelfLink()2391     public boolean hasSelfLink() {
2392       return ((bitField0_ & 0x00000040) != 0);
2393     }
2394     /**
2395      *
2396      *
2397      * <pre>
2398      * [Output Only] Server-defined URL for the resource.
2399      * </pre>
2400      *
2401      * <code>optional string self_link = 456214797;</code>
2402      *
2403      * @return The selfLink.
2404      */
getSelfLink()2405     public java.lang.String getSelfLink() {
2406       java.lang.Object ref = selfLink_;
2407       if (!(ref instanceof java.lang.String)) {
2408         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2409         java.lang.String s = bs.toStringUtf8();
2410         selfLink_ = s;
2411         return s;
2412       } else {
2413         return (java.lang.String) ref;
2414       }
2415     }
2416     /**
2417      *
2418      *
2419      * <pre>
2420      * [Output Only] Server-defined URL for the resource.
2421      * </pre>
2422      *
2423      * <code>optional string self_link = 456214797;</code>
2424      *
2425      * @return The bytes for selfLink.
2426      */
getSelfLinkBytes()2427     public com.google.protobuf.ByteString getSelfLinkBytes() {
2428       java.lang.Object ref = selfLink_;
2429       if (ref instanceof String) {
2430         com.google.protobuf.ByteString b =
2431             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2432         selfLink_ = b;
2433         return b;
2434       } else {
2435         return (com.google.protobuf.ByteString) ref;
2436       }
2437     }
2438     /**
2439      *
2440      *
2441      * <pre>
2442      * [Output Only] Server-defined URL for the resource.
2443      * </pre>
2444      *
2445      * <code>optional string self_link = 456214797;</code>
2446      *
2447      * @param value The selfLink to set.
2448      * @return This builder for chaining.
2449      */
setSelfLink(java.lang.String value)2450     public Builder setSelfLink(java.lang.String value) {
2451       if (value == null) {
2452         throw new NullPointerException();
2453       }
2454       selfLink_ = value;
2455       bitField0_ |= 0x00000040;
2456       onChanged();
2457       return this;
2458     }
2459     /**
2460      *
2461      *
2462      * <pre>
2463      * [Output Only] Server-defined URL for the resource.
2464      * </pre>
2465      *
2466      * <code>optional string self_link = 456214797;</code>
2467      *
2468      * @return This builder for chaining.
2469      */
clearSelfLink()2470     public Builder clearSelfLink() {
2471       selfLink_ = getDefaultInstance().getSelfLink();
2472       bitField0_ = (bitField0_ & ~0x00000040);
2473       onChanged();
2474       return this;
2475     }
2476     /**
2477      *
2478      *
2479      * <pre>
2480      * [Output Only] Server-defined URL for the resource.
2481      * </pre>
2482      *
2483      * <code>optional string self_link = 456214797;</code>
2484      *
2485      * @param value The bytes for selfLink to set.
2486      * @return This builder for chaining.
2487      */
setSelfLinkBytes(com.google.protobuf.ByteString value)2488     public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) {
2489       if (value == null) {
2490         throw new NullPointerException();
2491       }
2492       checkByteStringIsUtf8(value);
2493       selfLink_ = value;
2494       bitField0_ |= 0x00000040;
2495       onChanged();
2496       return this;
2497     }
2498 
2499     private java.lang.Object state_ = "";
2500     /**
2501      *
2502      *
2503      * <pre>
2504      * [Output Only] Current state of this License Code.
2505      * Check the State enum for the list of possible values.
2506      * </pre>
2507      *
2508      * <code>optional string state = 109757585;</code>
2509      *
2510      * @return Whether the state field is set.
2511      */
hasState()2512     public boolean hasState() {
2513       return ((bitField0_ & 0x00000080) != 0);
2514     }
2515     /**
2516      *
2517      *
2518      * <pre>
2519      * [Output Only] Current state of this License Code.
2520      * Check the State enum for the list of possible values.
2521      * </pre>
2522      *
2523      * <code>optional string state = 109757585;</code>
2524      *
2525      * @return The state.
2526      */
getState()2527     public java.lang.String getState() {
2528       java.lang.Object ref = state_;
2529       if (!(ref instanceof java.lang.String)) {
2530         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2531         java.lang.String s = bs.toStringUtf8();
2532         state_ = s;
2533         return s;
2534       } else {
2535         return (java.lang.String) ref;
2536       }
2537     }
2538     /**
2539      *
2540      *
2541      * <pre>
2542      * [Output Only] Current state of this License Code.
2543      * Check the State enum for the list of possible values.
2544      * </pre>
2545      *
2546      * <code>optional string state = 109757585;</code>
2547      *
2548      * @return The bytes for state.
2549      */
getStateBytes()2550     public com.google.protobuf.ByteString getStateBytes() {
2551       java.lang.Object ref = state_;
2552       if (ref instanceof String) {
2553         com.google.protobuf.ByteString b =
2554             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2555         state_ = b;
2556         return b;
2557       } else {
2558         return (com.google.protobuf.ByteString) ref;
2559       }
2560     }
2561     /**
2562      *
2563      *
2564      * <pre>
2565      * [Output Only] Current state of this License Code.
2566      * Check the State enum for the list of possible values.
2567      * </pre>
2568      *
2569      * <code>optional string state = 109757585;</code>
2570      *
2571      * @param value The state to set.
2572      * @return This builder for chaining.
2573      */
setState(java.lang.String value)2574     public Builder setState(java.lang.String value) {
2575       if (value == null) {
2576         throw new NullPointerException();
2577       }
2578       state_ = value;
2579       bitField0_ |= 0x00000080;
2580       onChanged();
2581       return this;
2582     }
2583     /**
2584      *
2585      *
2586      * <pre>
2587      * [Output Only] Current state of this License Code.
2588      * Check the State enum for the list of possible values.
2589      * </pre>
2590      *
2591      * <code>optional string state = 109757585;</code>
2592      *
2593      * @return This builder for chaining.
2594      */
clearState()2595     public Builder clearState() {
2596       state_ = getDefaultInstance().getState();
2597       bitField0_ = (bitField0_ & ~0x00000080);
2598       onChanged();
2599       return this;
2600     }
2601     /**
2602      *
2603      *
2604      * <pre>
2605      * [Output Only] Current state of this License Code.
2606      * Check the State enum for the list of possible values.
2607      * </pre>
2608      *
2609      * <code>optional string state = 109757585;</code>
2610      *
2611      * @param value The bytes for state to set.
2612      * @return This builder for chaining.
2613      */
setStateBytes(com.google.protobuf.ByteString value)2614     public Builder setStateBytes(com.google.protobuf.ByteString value) {
2615       if (value == null) {
2616         throw new NullPointerException();
2617       }
2618       checkByteStringIsUtf8(value);
2619       state_ = value;
2620       bitField0_ |= 0x00000080;
2621       onChanged();
2622       return this;
2623     }
2624 
2625     private boolean transferable_;
2626     /**
2627      *
2628      *
2629      * <pre>
2630      * [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
2631      * </pre>
2632      *
2633      * <code>optional bool transferable = 4349893;</code>
2634      *
2635      * @return Whether the transferable field is set.
2636      */
2637     @java.lang.Override
hasTransferable()2638     public boolean hasTransferable() {
2639       return ((bitField0_ & 0x00000100) != 0);
2640     }
2641     /**
2642      *
2643      *
2644      * <pre>
2645      * [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
2646      * </pre>
2647      *
2648      * <code>optional bool transferable = 4349893;</code>
2649      *
2650      * @return The transferable.
2651      */
2652     @java.lang.Override
getTransferable()2653     public boolean getTransferable() {
2654       return transferable_;
2655     }
2656     /**
2657      *
2658      *
2659      * <pre>
2660      * [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
2661      * </pre>
2662      *
2663      * <code>optional bool transferable = 4349893;</code>
2664      *
2665      * @param value The transferable to set.
2666      * @return This builder for chaining.
2667      */
setTransferable(boolean value)2668     public Builder setTransferable(boolean value) {
2669 
2670       transferable_ = value;
2671       bitField0_ |= 0x00000100;
2672       onChanged();
2673       return this;
2674     }
2675     /**
2676      *
2677      *
2678      * <pre>
2679      * [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
2680      * </pre>
2681      *
2682      * <code>optional bool transferable = 4349893;</code>
2683      *
2684      * @return This builder for chaining.
2685      */
clearTransferable()2686     public Builder clearTransferable() {
2687       bitField0_ = (bitField0_ & ~0x00000100);
2688       transferable_ = false;
2689       onChanged();
2690       return this;
2691     }
2692 
2693     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2694     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2695       return super.setUnknownFields(unknownFields);
2696     }
2697 
2698     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2699     public final Builder mergeUnknownFields(
2700         final com.google.protobuf.UnknownFieldSet unknownFields) {
2701       return super.mergeUnknownFields(unknownFields);
2702     }
2703 
2704     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.LicenseCode)
2705   }
2706 
2707   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.LicenseCode)
2708   private static final com.google.cloud.compute.v1.LicenseCode DEFAULT_INSTANCE;
2709 
2710   static {
2711     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.LicenseCode();
2712   }
2713 
getDefaultInstance()2714   public static com.google.cloud.compute.v1.LicenseCode getDefaultInstance() {
2715     return DEFAULT_INSTANCE;
2716   }
2717 
2718   private static final com.google.protobuf.Parser<LicenseCode> PARSER =
2719       new com.google.protobuf.AbstractParser<LicenseCode>() {
2720         @java.lang.Override
2721         public LicenseCode parsePartialFrom(
2722             com.google.protobuf.CodedInputStream input,
2723             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2724             throws com.google.protobuf.InvalidProtocolBufferException {
2725           Builder builder = newBuilder();
2726           try {
2727             builder.mergeFrom(input, extensionRegistry);
2728           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2729             throw e.setUnfinishedMessage(builder.buildPartial());
2730           } catch (com.google.protobuf.UninitializedMessageException e) {
2731             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2732           } catch (java.io.IOException e) {
2733             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2734                 .setUnfinishedMessage(builder.buildPartial());
2735           }
2736           return builder.buildPartial();
2737         }
2738       };
2739 
parser()2740   public static com.google.protobuf.Parser<LicenseCode> parser() {
2741     return PARSER;
2742   }
2743 
2744   @java.lang.Override
getParserForType()2745   public com.google.protobuf.Parser<LicenseCode> getParserForType() {
2746     return PARSER;
2747   }
2748 
2749   @java.lang.Override
getDefaultInstanceForType()2750   public com.google.cloud.compute.v1.LicenseCode getDefaultInstanceForType() {
2751     return DEFAULT_INSTANCE;
2752   }
2753 }
2754