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