• 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/domains/v1beta1/domains.proto
18 
19 package com.google.cloud.domains.v1beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * The `Registration` resource facilitates managing and configuring domain name
26  * registrations.
27  * There are several ways to create a new `Registration` resource:
28  * To create a new `Registration` resource, find a suitable domain name by
29  * calling the `SearchDomains` method with a query to see available domain name
30  * options. After choosing a name, call `RetrieveRegisterParameters` to
31  * ensure availability and obtain information like pricing, which is needed to
32  * build a call to `RegisterDomain`.
33  * Another way to create a new `Registration` is to transfer an existing
34  * domain from another registrar. First, go to the current registrar to unlock
35  * the domain for transfer and retrieve the domain's transfer authorization
36  * code. Then call `RetrieveTransferParameters` to confirm that the domain is
37  * unlocked and to get values needed to build a call to `TransferDomain`.
38  * </pre>
39  *
40  * Protobuf type {@code google.cloud.domains.v1beta1.Registration}
41  */
42 public final class Registration extends com.google.protobuf.GeneratedMessageV3
43     implements
44     // @@protoc_insertion_point(message_implements:google.cloud.domains.v1beta1.Registration)
45     RegistrationOrBuilder {
46   private static final long serialVersionUID = 0L;
47   // Use Registration.newBuilder() to construct.
Registration(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)48   private Registration(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
49     super(builder);
50   }
51 
Registration()52   private Registration() {
53     name_ = "";
54     domainName_ = "";
55     state_ = 0;
56     issues_ = java.util.Collections.emptyList();
57     supportedPrivacy_ = java.util.Collections.emptyList();
58   }
59 
60   @java.lang.Override
61   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)62   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
63     return new Registration();
64   }
65 
66   @java.lang.Override
getUnknownFields()67   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
68     return this.unknownFields;
69   }
70 
getDescriptor()71   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
72     return com.google.cloud.domains.v1beta1.DomainsProto
73         .internal_static_google_cloud_domains_v1beta1_Registration_descriptor;
74   }
75 
76   @SuppressWarnings({"rawtypes"})
77   @java.lang.Override
internalGetMapField(int number)78   protected com.google.protobuf.MapField internalGetMapField(int number) {
79     switch (number) {
80       case 9:
81         return internalGetLabels();
82       default:
83         throw new RuntimeException("Invalid map field number: " + number);
84     }
85   }
86 
87   @java.lang.Override
88   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()89       internalGetFieldAccessorTable() {
90     return com.google.cloud.domains.v1beta1.DomainsProto
91         .internal_static_google_cloud_domains_v1beta1_Registration_fieldAccessorTable
92         .ensureFieldAccessorsInitialized(
93             com.google.cloud.domains.v1beta1.Registration.class,
94             com.google.cloud.domains.v1beta1.Registration.Builder.class);
95   }
96 
97   /**
98    *
99    *
100    * <pre>
101    * Possible states of a `Registration`.
102    * </pre>
103    *
104    * Protobuf enum {@code google.cloud.domains.v1beta1.Registration.State}
105    */
106   public enum State implements com.google.protobuf.ProtocolMessageEnum {
107     /**
108      *
109      *
110      * <pre>
111      * The state is undefined.
112      * </pre>
113      *
114      * <code>STATE_UNSPECIFIED = 0;</code>
115      */
116     STATE_UNSPECIFIED(0),
117     /**
118      *
119      *
120      * <pre>
121      * The domain is being registered.
122      * </pre>
123      *
124      * <code>REGISTRATION_PENDING = 1;</code>
125      */
126     REGISTRATION_PENDING(1),
127     /**
128      *
129      *
130      * <pre>
131      * The domain registration failed. You can delete resources in this state
132      * to allow registration to be retried.
133      * </pre>
134      *
135      * <code>REGISTRATION_FAILED = 2;</code>
136      */
137     REGISTRATION_FAILED(2),
138     /**
139      *
140      *
141      * <pre>
142      * The domain is being transferred from another registrar to Cloud Domains.
143      * </pre>
144      *
145      * <code>TRANSFER_PENDING = 3;</code>
146      */
147     TRANSFER_PENDING(3),
148     /**
149      *
150      *
151      * <pre>
152      * The attempt to transfer the domain from another registrar to
153      * Cloud Domains failed. You can delete resources in this state and retry
154      * the transfer.
155      * </pre>
156      *
157      * <code>TRANSFER_FAILED = 4;</code>
158      */
159     TRANSFER_FAILED(4),
160     /**
161      *
162      *
163      * <pre>
164      * The domain is registered and operational. The domain renews automatically
165      * as long as it remains in this state.
166      * </pre>
167      *
168      * <code>ACTIVE = 6;</code>
169      */
170     ACTIVE(6),
171     /**
172      *
173      *
174      * <pre>
175      * The domain is suspended and inoperative. For more details, see the
176      * `issues` field.
177      * </pre>
178      *
179      * <code>SUSPENDED = 7;</code>
180      */
181     SUSPENDED(7),
182     /**
183      *
184      *
185      * <pre>
186      * The domain is no longer managed with Cloud Domains. It may have been
187      * transferred to another registrar or exported for management in
188      * [Google Domains](https://domains.google/). You can no longer update it
189      * with this API, and information shown about it may be stale. Domains in
190      * this state are not automatically renewed by Cloud Domains.
191      * </pre>
192      *
193      * <code>EXPORTED = 8;</code>
194      */
195     EXPORTED(8),
196     UNRECOGNIZED(-1),
197     ;
198 
199     /**
200      *
201      *
202      * <pre>
203      * The state is undefined.
204      * </pre>
205      *
206      * <code>STATE_UNSPECIFIED = 0;</code>
207      */
208     public static final int STATE_UNSPECIFIED_VALUE = 0;
209     /**
210      *
211      *
212      * <pre>
213      * The domain is being registered.
214      * </pre>
215      *
216      * <code>REGISTRATION_PENDING = 1;</code>
217      */
218     public static final int REGISTRATION_PENDING_VALUE = 1;
219     /**
220      *
221      *
222      * <pre>
223      * The domain registration failed. You can delete resources in this state
224      * to allow registration to be retried.
225      * </pre>
226      *
227      * <code>REGISTRATION_FAILED = 2;</code>
228      */
229     public static final int REGISTRATION_FAILED_VALUE = 2;
230     /**
231      *
232      *
233      * <pre>
234      * The domain is being transferred from another registrar to Cloud Domains.
235      * </pre>
236      *
237      * <code>TRANSFER_PENDING = 3;</code>
238      */
239     public static final int TRANSFER_PENDING_VALUE = 3;
240     /**
241      *
242      *
243      * <pre>
244      * The attempt to transfer the domain from another registrar to
245      * Cloud Domains failed. You can delete resources in this state and retry
246      * the transfer.
247      * </pre>
248      *
249      * <code>TRANSFER_FAILED = 4;</code>
250      */
251     public static final int TRANSFER_FAILED_VALUE = 4;
252     /**
253      *
254      *
255      * <pre>
256      * The domain is registered and operational. The domain renews automatically
257      * as long as it remains in this state.
258      * </pre>
259      *
260      * <code>ACTIVE = 6;</code>
261      */
262     public static final int ACTIVE_VALUE = 6;
263     /**
264      *
265      *
266      * <pre>
267      * The domain is suspended and inoperative. For more details, see the
268      * `issues` field.
269      * </pre>
270      *
271      * <code>SUSPENDED = 7;</code>
272      */
273     public static final int SUSPENDED_VALUE = 7;
274     /**
275      *
276      *
277      * <pre>
278      * The domain is no longer managed with Cloud Domains. It may have been
279      * transferred to another registrar or exported for management in
280      * [Google Domains](https://domains.google/). You can no longer update it
281      * with this API, and information shown about it may be stale. Domains in
282      * this state are not automatically renewed by Cloud Domains.
283      * </pre>
284      *
285      * <code>EXPORTED = 8;</code>
286      */
287     public static final int EXPORTED_VALUE = 8;
288 
getNumber()289     public final int getNumber() {
290       if (this == UNRECOGNIZED) {
291         throw new java.lang.IllegalArgumentException(
292             "Can't get the number of an unknown enum value.");
293       }
294       return value;
295     }
296 
297     /**
298      * @param value The numeric wire value of the corresponding enum entry.
299      * @return The enum associated with the given numeric wire value.
300      * @deprecated Use {@link #forNumber(int)} instead.
301      */
302     @java.lang.Deprecated
valueOf(int value)303     public static State valueOf(int value) {
304       return forNumber(value);
305     }
306 
307     /**
308      * @param value The numeric wire value of the corresponding enum entry.
309      * @return The enum associated with the given numeric wire value.
310      */
forNumber(int value)311     public static State forNumber(int value) {
312       switch (value) {
313         case 0:
314           return STATE_UNSPECIFIED;
315         case 1:
316           return REGISTRATION_PENDING;
317         case 2:
318           return REGISTRATION_FAILED;
319         case 3:
320           return TRANSFER_PENDING;
321         case 4:
322           return TRANSFER_FAILED;
323         case 6:
324           return ACTIVE;
325         case 7:
326           return SUSPENDED;
327         case 8:
328           return EXPORTED;
329         default:
330           return null;
331       }
332     }
333 
internalGetValueMap()334     public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
335       return internalValueMap;
336     }
337 
338     private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
339         new com.google.protobuf.Internal.EnumLiteMap<State>() {
340           public State findValueByNumber(int number) {
341             return State.forNumber(number);
342           }
343         };
344 
getValueDescriptor()345     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
346       if (this == UNRECOGNIZED) {
347         throw new java.lang.IllegalStateException(
348             "Can't get the descriptor of an unrecognized enum value.");
349       }
350       return getDescriptor().getValues().get(ordinal());
351     }
352 
getDescriptorForType()353     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
354       return getDescriptor();
355     }
356 
getDescriptor()357     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
358       return com.google.cloud.domains.v1beta1.Registration.getDescriptor().getEnumTypes().get(0);
359     }
360 
361     private static final State[] VALUES = values();
362 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)363     public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
364       if (desc.getType() != getDescriptor()) {
365         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
366       }
367       if (desc.getIndex() == -1) {
368         return UNRECOGNIZED;
369       }
370       return VALUES[desc.getIndex()];
371     }
372 
373     private final int value;
374 
State(int value)375     private State(int value) {
376       this.value = value;
377     }
378 
379     // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.Registration.State)
380   }
381 
382   /**
383    *
384    *
385    * <pre>
386    * Possible issues with a `Registration` that require attention.
387    * </pre>
388    *
389    * Protobuf enum {@code google.cloud.domains.v1beta1.Registration.Issue}
390    */
391   public enum Issue implements com.google.protobuf.ProtocolMessageEnum {
392     /**
393      *
394      *
395      * <pre>
396      * The issue is undefined.
397      * </pre>
398      *
399      * <code>ISSUE_UNSPECIFIED = 0;</code>
400      */
401     ISSUE_UNSPECIFIED(0),
402     /**
403      *
404      *
405      * <pre>
406      * Contact the Cloud Support team to resolve a problem with this domain.
407      * </pre>
408      *
409      * <code>CONTACT_SUPPORT = 1;</code>
410      */
411     CONTACT_SUPPORT(1),
412     /**
413      *
414      *
415      * <pre>
416      * [ICANN](https://icann.org/) requires verification of the email address
417      * in the `Registration`'s `contact_settings.registrant_contact` field. To
418      * verify the email address, follow the
419      * instructions in the email the `registrant_contact` receives following
420      * registration. If you do not complete email verification within
421      * 15 days of registration, the domain is suspended. To resend the
422      * verification email, call ConfigureContactSettings and provide the current
423      * `registrant_contact.email`.
424      * </pre>
425      *
426      * <code>UNVERIFIED_EMAIL = 2;</code>
427      */
428     UNVERIFIED_EMAIL(2),
429     UNRECOGNIZED(-1),
430     ;
431 
432     /**
433      *
434      *
435      * <pre>
436      * The issue is undefined.
437      * </pre>
438      *
439      * <code>ISSUE_UNSPECIFIED = 0;</code>
440      */
441     public static final int ISSUE_UNSPECIFIED_VALUE = 0;
442     /**
443      *
444      *
445      * <pre>
446      * Contact the Cloud Support team to resolve a problem with this domain.
447      * </pre>
448      *
449      * <code>CONTACT_SUPPORT = 1;</code>
450      */
451     public static final int CONTACT_SUPPORT_VALUE = 1;
452     /**
453      *
454      *
455      * <pre>
456      * [ICANN](https://icann.org/) requires verification of the email address
457      * in the `Registration`'s `contact_settings.registrant_contact` field. To
458      * verify the email address, follow the
459      * instructions in the email the `registrant_contact` receives following
460      * registration. If you do not complete email verification within
461      * 15 days of registration, the domain is suspended. To resend the
462      * verification email, call ConfigureContactSettings and provide the current
463      * `registrant_contact.email`.
464      * </pre>
465      *
466      * <code>UNVERIFIED_EMAIL = 2;</code>
467      */
468     public static final int UNVERIFIED_EMAIL_VALUE = 2;
469 
getNumber()470     public final int getNumber() {
471       if (this == UNRECOGNIZED) {
472         throw new java.lang.IllegalArgumentException(
473             "Can't get the number of an unknown enum value.");
474       }
475       return value;
476     }
477 
478     /**
479      * @param value The numeric wire value of the corresponding enum entry.
480      * @return The enum associated with the given numeric wire value.
481      * @deprecated Use {@link #forNumber(int)} instead.
482      */
483     @java.lang.Deprecated
valueOf(int value)484     public static Issue valueOf(int value) {
485       return forNumber(value);
486     }
487 
488     /**
489      * @param value The numeric wire value of the corresponding enum entry.
490      * @return The enum associated with the given numeric wire value.
491      */
forNumber(int value)492     public static Issue forNumber(int value) {
493       switch (value) {
494         case 0:
495           return ISSUE_UNSPECIFIED;
496         case 1:
497           return CONTACT_SUPPORT;
498         case 2:
499           return UNVERIFIED_EMAIL;
500         default:
501           return null;
502       }
503     }
504 
internalGetValueMap()505     public static com.google.protobuf.Internal.EnumLiteMap<Issue> internalGetValueMap() {
506       return internalValueMap;
507     }
508 
509     private static final com.google.protobuf.Internal.EnumLiteMap<Issue> internalValueMap =
510         new com.google.protobuf.Internal.EnumLiteMap<Issue>() {
511           public Issue findValueByNumber(int number) {
512             return Issue.forNumber(number);
513           }
514         };
515 
getValueDescriptor()516     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
517       if (this == UNRECOGNIZED) {
518         throw new java.lang.IllegalStateException(
519             "Can't get the descriptor of an unrecognized enum value.");
520       }
521       return getDescriptor().getValues().get(ordinal());
522     }
523 
getDescriptorForType()524     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
525       return getDescriptor();
526     }
527 
getDescriptor()528     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
529       return com.google.cloud.domains.v1beta1.Registration.getDescriptor().getEnumTypes().get(1);
530     }
531 
532     private static final Issue[] VALUES = values();
533 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)534     public static Issue valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
535       if (desc.getType() != getDescriptor()) {
536         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
537       }
538       if (desc.getIndex() == -1) {
539         return UNRECOGNIZED;
540       }
541       return VALUES[desc.getIndex()];
542     }
543 
544     private final int value;
545 
Issue(int value)546     private Issue(int value) {
547       this.value = value;
548     }
549 
550     // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.Registration.Issue)
551   }
552 
553   public static final int NAME_FIELD_NUMBER = 1;
554 
555   @SuppressWarnings("serial")
556   private volatile java.lang.Object name_ = "";
557   /**
558    *
559    *
560    * <pre>
561    * Output only. Name of the `Registration` resource, in the format
562    * `projects/&#42;&#47;locations/&#42;&#47;registrations/&lt;domain_name&gt;`.
563    * </pre>
564    *
565    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
566    *
567    * @return The name.
568    */
569   @java.lang.Override
getName()570   public java.lang.String getName() {
571     java.lang.Object ref = name_;
572     if (ref instanceof java.lang.String) {
573       return (java.lang.String) ref;
574     } else {
575       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
576       java.lang.String s = bs.toStringUtf8();
577       name_ = s;
578       return s;
579     }
580   }
581   /**
582    *
583    *
584    * <pre>
585    * Output only. Name of the `Registration` resource, in the format
586    * `projects/&#42;&#47;locations/&#42;&#47;registrations/&lt;domain_name&gt;`.
587    * </pre>
588    *
589    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
590    *
591    * @return The bytes for name.
592    */
593   @java.lang.Override
getNameBytes()594   public com.google.protobuf.ByteString getNameBytes() {
595     java.lang.Object ref = name_;
596     if (ref instanceof java.lang.String) {
597       com.google.protobuf.ByteString b =
598           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
599       name_ = b;
600       return b;
601     } else {
602       return (com.google.protobuf.ByteString) ref;
603     }
604   }
605 
606   public static final int DOMAIN_NAME_FIELD_NUMBER = 2;
607 
608   @SuppressWarnings("serial")
609   private volatile java.lang.Object domainName_ = "";
610   /**
611    *
612    *
613    * <pre>
614    * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
615    * </pre>
616    *
617    * <code>
618    * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
619    * </code>
620    *
621    * @return The domainName.
622    */
623   @java.lang.Override
getDomainName()624   public java.lang.String getDomainName() {
625     java.lang.Object ref = domainName_;
626     if (ref instanceof java.lang.String) {
627       return (java.lang.String) ref;
628     } else {
629       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
630       java.lang.String s = bs.toStringUtf8();
631       domainName_ = s;
632       return s;
633     }
634   }
635   /**
636    *
637    *
638    * <pre>
639    * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
640    * </pre>
641    *
642    * <code>
643    * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
644    * </code>
645    *
646    * @return The bytes for domainName.
647    */
648   @java.lang.Override
getDomainNameBytes()649   public com.google.protobuf.ByteString getDomainNameBytes() {
650     java.lang.Object ref = domainName_;
651     if (ref instanceof java.lang.String) {
652       com.google.protobuf.ByteString b =
653           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
654       domainName_ = b;
655       return b;
656     } else {
657       return (com.google.protobuf.ByteString) ref;
658     }
659   }
660 
661   public static final int CREATE_TIME_FIELD_NUMBER = 3;
662   private com.google.protobuf.Timestamp createTime_;
663   /**
664    *
665    *
666    * <pre>
667    * Output only. The creation timestamp of the `Registration` resource.
668    * </pre>
669    *
670    * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
671    * </code>
672    *
673    * @return Whether the createTime field is set.
674    */
675   @java.lang.Override
hasCreateTime()676   public boolean hasCreateTime() {
677     return createTime_ != null;
678   }
679   /**
680    *
681    *
682    * <pre>
683    * Output only. The creation timestamp of the `Registration` resource.
684    * </pre>
685    *
686    * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
687    * </code>
688    *
689    * @return The createTime.
690    */
691   @java.lang.Override
getCreateTime()692   public com.google.protobuf.Timestamp getCreateTime() {
693     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
694   }
695   /**
696    *
697    *
698    * <pre>
699    * Output only. The creation timestamp of the `Registration` resource.
700    * </pre>
701    *
702    * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
703    * </code>
704    */
705   @java.lang.Override
getCreateTimeOrBuilder()706   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
707     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
708   }
709 
710   public static final int EXPIRE_TIME_FIELD_NUMBER = 6;
711   private com.google.protobuf.Timestamp expireTime_;
712   /**
713    *
714    *
715    * <pre>
716    * Output only. The expiration timestamp of the `Registration`.
717    * </pre>
718    *
719    * <code>.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
720    * </code>
721    *
722    * @return Whether the expireTime field is set.
723    */
724   @java.lang.Override
hasExpireTime()725   public boolean hasExpireTime() {
726     return expireTime_ != null;
727   }
728   /**
729    *
730    *
731    * <pre>
732    * Output only. The expiration timestamp of the `Registration`.
733    * </pre>
734    *
735    * <code>.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
736    * </code>
737    *
738    * @return The expireTime.
739    */
740   @java.lang.Override
getExpireTime()741   public com.google.protobuf.Timestamp getExpireTime() {
742     return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
743   }
744   /**
745    *
746    *
747    * <pre>
748    * Output only. The expiration timestamp of the `Registration`.
749    * </pre>
750    *
751    * <code>.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
752    * </code>
753    */
754   @java.lang.Override
getExpireTimeOrBuilder()755   public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
756     return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
757   }
758 
759   public static final int STATE_FIELD_NUMBER = 7;
760   private int state_ = 0;
761   /**
762    *
763    *
764    * <pre>
765    * Output only. The state of the `Registration`
766    * </pre>
767    *
768    * <code>
769    * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
770    * </code>
771    *
772    * @return The enum numeric value on the wire for state.
773    */
774   @java.lang.Override
getStateValue()775   public int getStateValue() {
776     return state_;
777   }
778   /**
779    *
780    *
781    * <pre>
782    * Output only. The state of the `Registration`
783    * </pre>
784    *
785    * <code>
786    * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
787    * </code>
788    *
789    * @return The state.
790    */
791   @java.lang.Override
getState()792   public com.google.cloud.domains.v1beta1.Registration.State getState() {
793     com.google.cloud.domains.v1beta1.Registration.State result =
794         com.google.cloud.domains.v1beta1.Registration.State.forNumber(state_);
795     return result == null
796         ? com.google.cloud.domains.v1beta1.Registration.State.UNRECOGNIZED
797         : result;
798   }
799 
800   public static final int ISSUES_FIELD_NUMBER = 8;
801 
802   @SuppressWarnings("serial")
803   private java.util.List<java.lang.Integer> issues_;
804 
805   private static final com.google.protobuf.Internal.ListAdapter.Converter<
806           java.lang.Integer, com.google.cloud.domains.v1beta1.Registration.Issue>
807       issues_converter_ =
808           new com.google.protobuf.Internal.ListAdapter.Converter<
809               java.lang.Integer, com.google.cloud.domains.v1beta1.Registration.Issue>() {
810             public com.google.cloud.domains.v1beta1.Registration.Issue convert(
811                 java.lang.Integer from) {
812               com.google.cloud.domains.v1beta1.Registration.Issue result =
813                   com.google.cloud.domains.v1beta1.Registration.Issue.forNumber(from);
814               return result == null
815                   ? com.google.cloud.domains.v1beta1.Registration.Issue.UNRECOGNIZED
816                   : result;
817             }
818           };
819   /**
820    *
821    *
822    * <pre>
823    * Output only. The set of issues with the `Registration` that require attention.
824    * </pre>
825    *
826    * <code>
827    * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
828    * </code>
829    *
830    * @return A list containing the issues.
831    */
832   @java.lang.Override
getIssuesList()833   public java.util.List<com.google.cloud.domains.v1beta1.Registration.Issue> getIssuesList() {
834     return new com.google.protobuf.Internal.ListAdapter<
835         java.lang.Integer, com.google.cloud.domains.v1beta1.Registration.Issue>(
836         issues_, issues_converter_);
837   }
838   /**
839    *
840    *
841    * <pre>
842    * Output only. The set of issues with the `Registration` that require attention.
843    * </pre>
844    *
845    * <code>
846    * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
847    * </code>
848    *
849    * @return The count of issues.
850    */
851   @java.lang.Override
getIssuesCount()852   public int getIssuesCount() {
853     return issues_.size();
854   }
855   /**
856    *
857    *
858    * <pre>
859    * Output only. The set of issues with the `Registration` that require attention.
860    * </pre>
861    *
862    * <code>
863    * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
864    * </code>
865    *
866    * @param index The index of the element to return.
867    * @return The issues at the given index.
868    */
869   @java.lang.Override
getIssues(int index)870   public com.google.cloud.domains.v1beta1.Registration.Issue getIssues(int index) {
871     return issues_converter_.convert(issues_.get(index));
872   }
873   /**
874    *
875    *
876    * <pre>
877    * Output only. The set of issues with the `Registration` that require attention.
878    * </pre>
879    *
880    * <code>
881    * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
882    * </code>
883    *
884    * @return A list containing the enum numeric values on the wire for issues.
885    */
886   @java.lang.Override
getIssuesValueList()887   public java.util.List<java.lang.Integer> getIssuesValueList() {
888     return issues_;
889   }
890   /**
891    *
892    *
893    * <pre>
894    * Output only. The set of issues with the `Registration` that require attention.
895    * </pre>
896    *
897    * <code>
898    * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
899    * </code>
900    *
901    * @param index The index of the value to return.
902    * @return The enum numeric value on the wire of issues at the given index.
903    */
904   @java.lang.Override
getIssuesValue(int index)905   public int getIssuesValue(int index) {
906     return issues_.get(index);
907   }
908 
909   private int issuesMemoizedSerializedSize;
910 
911   public static final int LABELS_FIELD_NUMBER = 9;
912 
913   private static final class LabelsDefaultEntryHolder {
914     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
915         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
916             com.google.cloud.domains.v1beta1.DomainsProto
917                 .internal_static_google_cloud_domains_v1beta1_Registration_LabelsEntry_descriptor,
918             com.google.protobuf.WireFormat.FieldType.STRING,
919             "",
920             com.google.protobuf.WireFormat.FieldType.STRING,
921             "");
922   }
923 
924   @SuppressWarnings("serial")
925   private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
926 
internalGetLabels()927   private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
928     if (labels_ == null) {
929       return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
930     }
931     return labels_;
932   }
933 
getLabelsCount()934   public int getLabelsCount() {
935     return internalGetLabels().getMap().size();
936   }
937   /**
938    *
939    *
940    * <pre>
941    * Set of labels associated with the `Registration`.
942    * </pre>
943    *
944    * <code>map&lt;string, string&gt; labels = 9;</code>
945    */
946   @java.lang.Override
containsLabels(java.lang.String key)947   public boolean containsLabels(java.lang.String key) {
948     if (key == null) {
949       throw new NullPointerException("map key");
950     }
951     return internalGetLabels().getMap().containsKey(key);
952   }
953   /** Use {@link #getLabelsMap()} instead. */
954   @java.lang.Override
955   @java.lang.Deprecated
getLabels()956   public java.util.Map<java.lang.String, java.lang.String> getLabels() {
957     return getLabelsMap();
958   }
959   /**
960    *
961    *
962    * <pre>
963    * Set of labels associated with the `Registration`.
964    * </pre>
965    *
966    * <code>map&lt;string, string&gt; labels = 9;</code>
967    */
968   @java.lang.Override
getLabelsMap()969   public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
970     return internalGetLabels().getMap();
971   }
972   /**
973    *
974    *
975    * <pre>
976    * Set of labels associated with the `Registration`.
977    * </pre>
978    *
979    * <code>map&lt;string, string&gt; labels = 9;</code>
980    */
981   @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)982   public /* nullable */ java.lang.String getLabelsOrDefault(
983       java.lang.String key,
984       /* nullable */
985       java.lang.String defaultValue) {
986     if (key == null) {
987       throw new NullPointerException("map key");
988     }
989     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
990     return map.containsKey(key) ? map.get(key) : defaultValue;
991   }
992   /**
993    *
994    *
995    * <pre>
996    * Set of labels associated with the `Registration`.
997    * </pre>
998    *
999    * <code>map&lt;string, string&gt; labels = 9;</code>
1000    */
1001   @java.lang.Override
getLabelsOrThrow(java.lang.String key)1002   public java.lang.String getLabelsOrThrow(java.lang.String key) {
1003     if (key == null) {
1004       throw new NullPointerException("map key");
1005     }
1006     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
1007     if (!map.containsKey(key)) {
1008       throw new java.lang.IllegalArgumentException();
1009     }
1010     return map.get(key);
1011   }
1012 
1013   public static final int MANAGEMENT_SETTINGS_FIELD_NUMBER = 10;
1014   private com.google.cloud.domains.v1beta1.ManagementSettings managementSettings_;
1015   /**
1016    *
1017    *
1018    * <pre>
1019    * Settings for management of the `Registration`, including renewal, billing,
1020    * and transfer. You cannot update these with the `UpdateRegistration`
1021    * method. To update these settings, use the `ConfigureManagementSettings`
1022    * method.
1023    * </pre>
1024    *
1025    * <code>.google.cloud.domains.v1beta1.ManagementSettings management_settings = 10;</code>
1026    *
1027    * @return Whether the managementSettings field is set.
1028    */
1029   @java.lang.Override
hasManagementSettings()1030   public boolean hasManagementSettings() {
1031     return managementSettings_ != null;
1032   }
1033   /**
1034    *
1035    *
1036    * <pre>
1037    * Settings for management of the `Registration`, including renewal, billing,
1038    * and transfer. You cannot update these with the `UpdateRegistration`
1039    * method. To update these settings, use the `ConfigureManagementSettings`
1040    * method.
1041    * </pre>
1042    *
1043    * <code>.google.cloud.domains.v1beta1.ManagementSettings management_settings = 10;</code>
1044    *
1045    * @return The managementSettings.
1046    */
1047   @java.lang.Override
getManagementSettings()1048   public com.google.cloud.domains.v1beta1.ManagementSettings getManagementSettings() {
1049     return managementSettings_ == null
1050         ? com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance()
1051         : managementSettings_;
1052   }
1053   /**
1054    *
1055    *
1056    * <pre>
1057    * Settings for management of the `Registration`, including renewal, billing,
1058    * and transfer. You cannot update these with the `UpdateRegistration`
1059    * method. To update these settings, use the `ConfigureManagementSettings`
1060    * method.
1061    * </pre>
1062    *
1063    * <code>.google.cloud.domains.v1beta1.ManagementSettings management_settings = 10;</code>
1064    */
1065   @java.lang.Override
1066   public com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder
getManagementSettingsOrBuilder()1067       getManagementSettingsOrBuilder() {
1068     return managementSettings_ == null
1069         ? com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance()
1070         : managementSettings_;
1071   }
1072 
1073   public static final int DNS_SETTINGS_FIELD_NUMBER = 11;
1074   private com.google.cloud.domains.v1beta1.DnsSettings dnsSettings_;
1075   /**
1076    *
1077    *
1078    * <pre>
1079    * Settings controlling the DNS configuration of the `Registration`. You
1080    * cannot update these with the `UpdateRegistration` method. To update these
1081    * settings, use the `ConfigureDnsSettings` method.
1082    * </pre>
1083    *
1084    * <code>.google.cloud.domains.v1beta1.DnsSettings dns_settings = 11;</code>
1085    *
1086    * @return Whether the dnsSettings field is set.
1087    */
1088   @java.lang.Override
hasDnsSettings()1089   public boolean hasDnsSettings() {
1090     return dnsSettings_ != null;
1091   }
1092   /**
1093    *
1094    *
1095    * <pre>
1096    * Settings controlling the DNS configuration of the `Registration`. You
1097    * cannot update these with the `UpdateRegistration` method. To update these
1098    * settings, use the `ConfigureDnsSettings` method.
1099    * </pre>
1100    *
1101    * <code>.google.cloud.domains.v1beta1.DnsSettings dns_settings = 11;</code>
1102    *
1103    * @return The dnsSettings.
1104    */
1105   @java.lang.Override
getDnsSettings()1106   public com.google.cloud.domains.v1beta1.DnsSettings getDnsSettings() {
1107     return dnsSettings_ == null
1108         ? com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance()
1109         : dnsSettings_;
1110   }
1111   /**
1112    *
1113    *
1114    * <pre>
1115    * Settings controlling the DNS configuration of the `Registration`. You
1116    * cannot update these with the `UpdateRegistration` method. To update these
1117    * settings, use the `ConfigureDnsSettings` method.
1118    * </pre>
1119    *
1120    * <code>.google.cloud.domains.v1beta1.DnsSettings dns_settings = 11;</code>
1121    */
1122   @java.lang.Override
getDnsSettingsOrBuilder()1123   public com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder getDnsSettingsOrBuilder() {
1124     return dnsSettings_ == null
1125         ? com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance()
1126         : dnsSettings_;
1127   }
1128 
1129   public static final int CONTACT_SETTINGS_FIELD_NUMBER = 12;
1130   private com.google.cloud.domains.v1beta1.ContactSettings contactSettings_;
1131   /**
1132    *
1133    *
1134    * <pre>
1135    * Required. Settings for contact information linked to the `Registration`. You cannot
1136    * update these with the `UpdateRegistration` method. To update these
1137    * settings, use the `ConfigureContactSettings` method.
1138    * </pre>
1139    *
1140    * <code>
1141    * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED];
1142    * </code>
1143    *
1144    * @return Whether the contactSettings field is set.
1145    */
1146   @java.lang.Override
hasContactSettings()1147   public boolean hasContactSettings() {
1148     return contactSettings_ != null;
1149   }
1150   /**
1151    *
1152    *
1153    * <pre>
1154    * Required. Settings for contact information linked to the `Registration`. You cannot
1155    * update these with the `UpdateRegistration` method. To update these
1156    * settings, use the `ConfigureContactSettings` method.
1157    * </pre>
1158    *
1159    * <code>
1160    * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED];
1161    * </code>
1162    *
1163    * @return The contactSettings.
1164    */
1165   @java.lang.Override
getContactSettings()1166   public com.google.cloud.domains.v1beta1.ContactSettings getContactSettings() {
1167     return contactSettings_ == null
1168         ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance()
1169         : contactSettings_;
1170   }
1171   /**
1172    *
1173    *
1174    * <pre>
1175    * Required. Settings for contact information linked to the `Registration`. You cannot
1176    * update these with the `UpdateRegistration` method. To update these
1177    * settings, use the `ConfigureContactSettings` method.
1178    * </pre>
1179    *
1180    * <code>
1181    * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED];
1182    * </code>
1183    */
1184   @java.lang.Override
getContactSettingsOrBuilder()1185   public com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder getContactSettingsOrBuilder() {
1186     return contactSettings_ == null
1187         ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance()
1188         : contactSettings_;
1189   }
1190 
1191   public static final int PENDING_CONTACT_SETTINGS_FIELD_NUMBER = 13;
1192   private com.google.cloud.domains.v1beta1.ContactSettings pendingContactSettings_;
1193   /**
1194    *
1195    *
1196    * <pre>
1197    * Output only. Pending contact settings for the `Registration`. Updates to the
1198    * `contact_settings` field that change its `registrant_contact` or `privacy`
1199    * fields require email confirmation by the `registrant_contact`
1200    * before taking effect. This field is set only if there are pending updates
1201    * to the `contact_settings` that have not been confirmed. To confirm the
1202    * changes, the `registrant_contact` must follow the instructions in the
1203    * email they receive.
1204    * </pre>
1205    *
1206    * <code>
1207    * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
1208    * </code>
1209    *
1210    * @return Whether the pendingContactSettings field is set.
1211    */
1212   @java.lang.Override
hasPendingContactSettings()1213   public boolean hasPendingContactSettings() {
1214     return pendingContactSettings_ != null;
1215   }
1216   /**
1217    *
1218    *
1219    * <pre>
1220    * Output only. Pending contact settings for the `Registration`. Updates to the
1221    * `contact_settings` field that change its `registrant_contact` or `privacy`
1222    * fields require email confirmation by the `registrant_contact`
1223    * before taking effect. This field is set only if there are pending updates
1224    * to the `contact_settings` that have not been confirmed. To confirm the
1225    * changes, the `registrant_contact` must follow the instructions in the
1226    * email they receive.
1227    * </pre>
1228    *
1229    * <code>
1230    * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
1231    * </code>
1232    *
1233    * @return The pendingContactSettings.
1234    */
1235   @java.lang.Override
getPendingContactSettings()1236   public com.google.cloud.domains.v1beta1.ContactSettings getPendingContactSettings() {
1237     return pendingContactSettings_ == null
1238         ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance()
1239         : pendingContactSettings_;
1240   }
1241   /**
1242    *
1243    *
1244    * <pre>
1245    * Output only. Pending contact settings for the `Registration`. Updates to the
1246    * `contact_settings` field that change its `registrant_contact` or `privacy`
1247    * fields require email confirmation by the `registrant_contact`
1248    * before taking effect. This field is set only if there are pending updates
1249    * to the `contact_settings` that have not been confirmed. To confirm the
1250    * changes, the `registrant_contact` must follow the instructions in the
1251    * email they receive.
1252    * </pre>
1253    *
1254    * <code>
1255    * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
1256    * </code>
1257    */
1258   @java.lang.Override
1259   public com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder
getPendingContactSettingsOrBuilder()1260       getPendingContactSettingsOrBuilder() {
1261     return pendingContactSettings_ == null
1262         ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance()
1263         : pendingContactSettings_;
1264   }
1265 
1266   public static final int SUPPORTED_PRIVACY_FIELD_NUMBER = 14;
1267 
1268   @SuppressWarnings("serial")
1269   private java.util.List<java.lang.Integer> supportedPrivacy_;
1270 
1271   private static final com.google.protobuf.Internal.ListAdapter.Converter<
1272           java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>
1273       supportedPrivacy_converter_ =
1274           new com.google.protobuf.Internal.ListAdapter.Converter<
1275               java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>() {
1276             public com.google.cloud.domains.v1beta1.ContactPrivacy convert(java.lang.Integer from) {
1277               com.google.cloud.domains.v1beta1.ContactPrivacy result =
1278                   com.google.cloud.domains.v1beta1.ContactPrivacy.forNumber(from);
1279               return result == null
1280                   ? com.google.cloud.domains.v1beta1.ContactPrivacy.UNRECOGNIZED
1281                   : result;
1282             }
1283           };
1284   /**
1285    *
1286    *
1287    * <pre>
1288    * Output only. Set of options for the `contact_settings.privacy` field that this
1289    * `Registration` supports.
1290    * </pre>
1291    *
1292    * <code>
1293    * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
1294    * </code>
1295    *
1296    * @return A list containing the supportedPrivacy.
1297    */
1298   @java.lang.Override
getSupportedPrivacyList()1299   public java.util.List<com.google.cloud.domains.v1beta1.ContactPrivacy> getSupportedPrivacyList() {
1300     return new com.google.protobuf.Internal.ListAdapter<
1301         java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>(
1302         supportedPrivacy_, supportedPrivacy_converter_);
1303   }
1304   /**
1305    *
1306    *
1307    * <pre>
1308    * Output only. Set of options for the `contact_settings.privacy` field that this
1309    * `Registration` supports.
1310    * </pre>
1311    *
1312    * <code>
1313    * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
1314    * </code>
1315    *
1316    * @return The count of supportedPrivacy.
1317    */
1318   @java.lang.Override
getSupportedPrivacyCount()1319   public int getSupportedPrivacyCount() {
1320     return supportedPrivacy_.size();
1321   }
1322   /**
1323    *
1324    *
1325    * <pre>
1326    * Output only. Set of options for the `contact_settings.privacy` field that this
1327    * `Registration` supports.
1328    * </pre>
1329    *
1330    * <code>
1331    * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
1332    * </code>
1333    *
1334    * @param index The index of the element to return.
1335    * @return The supportedPrivacy at the given index.
1336    */
1337   @java.lang.Override
getSupportedPrivacy(int index)1338   public com.google.cloud.domains.v1beta1.ContactPrivacy getSupportedPrivacy(int index) {
1339     return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index));
1340   }
1341   /**
1342    *
1343    *
1344    * <pre>
1345    * Output only. Set of options for the `contact_settings.privacy` field that this
1346    * `Registration` supports.
1347    * </pre>
1348    *
1349    * <code>
1350    * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
1351    * </code>
1352    *
1353    * @return A list containing the enum numeric values on the wire for supportedPrivacy.
1354    */
1355   @java.lang.Override
getSupportedPrivacyValueList()1356   public java.util.List<java.lang.Integer> getSupportedPrivacyValueList() {
1357     return supportedPrivacy_;
1358   }
1359   /**
1360    *
1361    *
1362    * <pre>
1363    * Output only. Set of options for the `contact_settings.privacy` field that this
1364    * `Registration` supports.
1365    * </pre>
1366    *
1367    * <code>
1368    * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
1369    * </code>
1370    *
1371    * @param index The index of the value to return.
1372    * @return The enum numeric value on the wire of supportedPrivacy at the given index.
1373    */
1374   @java.lang.Override
getSupportedPrivacyValue(int index)1375   public int getSupportedPrivacyValue(int index) {
1376     return supportedPrivacy_.get(index);
1377   }
1378 
1379   private int supportedPrivacyMemoizedSerializedSize;
1380 
1381   private byte memoizedIsInitialized = -1;
1382 
1383   @java.lang.Override
isInitialized()1384   public final boolean isInitialized() {
1385     byte isInitialized = memoizedIsInitialized;
1386     if (isInitialized == 1) return true;
1387     if (isInitialized == 0) return false;
1388 
1389     memoizedIsInitialized = 1;
1390     return true;
1391   }
1392 
1393   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1394   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1395     getSerializedSize();
1396     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1397       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1398     }
1399     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) {
1400       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domainName_);
1401     }
1402     if (createTime_ != null) {
1403       output.writeMessage(3, getCreateTime());
1404     }
1405     if (expireTime_ != null) {
1406       output.writeMessage(6, getExpireTime());
1407     }
1408     if (state_
1409         != com.google.cloud.domains.v1beta1.Registration.State.STATE_UNSPECIFIED.getNumber()) {
1410       output.writeEnum(7, state_);
1411     }
1412     if (getIssuesList().size() > 0) {
1413       output.writeUInt32NoTag(66);
1414       output.writeUInt32NoTag(issuesMemoizedSerializedSize);
1415     }
1416     for (int i = 0; i < issues_.size(); i++) {
1417       output.writeEnumNoTag(issues_.get(i));
1418     }
1419     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
1420         output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
1421     if (managementSettings_ != null) {
1422       output.writeMessage(10, getManagementSettings());
1423     }
1424     if (dnsSettings_ != null) {
1425       output.writeMessage(11, getDnsSettings());
1426     }
1427     if (contactSettings_ != null) {
1428       output.writeMessage(12, getContactSettings());
1429     }
1430     if (pendingContactSettings_ != null) {
1431       output.writeMessage(13, getPendingContactSettings());
1432     }
1433     if (getSupportedPrivacyList().size() > 0) {
1434       output.writeUInt32NoTag(114);
1435       output.writeUInt32NoTag(supportedPrivacyMemoizedSerializedSize);
1436     }
1437     for (int i = 0; i < supportedPrivacy_.size(); i++) {
1438       output.writeEnumNoTag(supportedPrivacy_.get(i));
1439     }
1440     getUnknownFields().writeTo(output);
1441   }
1442 
1443   @java.lang.Override
getSerializedSize()1444   public int getSerializedSize() {
1445     int size = memoizedSize;
1446     if (size != -1) return size;
1447 
1448     size = 0;
1449     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1450       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1451     }
1452     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domainName_)) {
1453       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domainName_);
1454     }
1455     if (createTime_ != null) {
1456       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime());
1457     }
1458     if (expireTime_ != null) {
1459       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpireTime());
1460     }
1461     if (state_
1462         != com.google.cloud.domains.v1beta1.Registration.State.STATE_UNSPECIFIED.getNumber()) {
1463       size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_);
1464     }
1465     {
1466       int dataSize = 0;
1467       for (int i = 0; i < issues_.size(); i++) {
1468         dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(issues_.get(i));
1469       }
1470       size += dataSize;
1471       if (!getIssuesList().isEmpty()) {
1472         size += 1;
1473         size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
1474       }
1475       issuesMemoizedSerializedSize = dataSize;
1476     }
1477     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
1478         internalGetLabels().getMap().entrySet()) {
1479       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
1480           LabelsDefaultEntryHolder.defaultEntry
1481               .newBuilderForType()
1482               .setKey(entry.getKey())
1483               .setValue(entry.getValue())
1484               .build();
1485       size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
1486     }
1487     if (managementSettings_ != null) {
1488       size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getManagementSettings());
1489     }
1490     if (dnsSettings_ != null) {
1491       size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDnsSettings());
1492     }
1493     if (contactSettings_ != null) {
1494       size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getContactSettings());
1495     }
1496     if (pendingContactSettings_ != null) {
1497       size +=
1498           com.google.protobuf.CodedOutputStream.computeMessageSize(13, getPendingContactSettings());
1499     }
1500     {
1501       int dataSize = 0;
1502       for (int i = 0; i < supportedPrivacy_.size(); i++) {
1503         dataSize +=
1504             com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(supportedPrivacy_.get(i));
1505       }
1506       size += dataSize;
1507       if (!getSupportedPrivacyList().isEmpty()) {
1508         size += 1;
1509         size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
1510       }
1511       supportedPrivacyMemoizedSerializedSize = dataSize;
1512     }
1513     size += getUnknownFields().getSerializedSize();
1514     memoizedSize = size;
1515     return size;
1516   }
1517 
1518   @java.lang.Override
equals(final java.lang.Object obj)1519   public boolean equals(final java.lang.Object obj) {
1520     if (obj == this) {
1521       return true;
1522     }
1523     if (!(obj instanceof com.google.cloud.domains.v1beta1.Registration)) {
1524       return super.equals(obj);
1525     }
1526     com.google.cloud.domains.v1beta1.Registration other =
1527         (com.google.cloud.domains.v1beta1.Registration) obj;
1528 
1529     if (!getName().equals(other.getName())) return false;
1530     if (!getDomainName().equals(other.getDomainName())) return false;
1531     if (hasCreateTime() != other.hasCreateTime()) return false;
1532     if (hasCreateTime()) {
1533       if (!getCreateTime().equals(other.getCreateTime())) return false;
1534     }
1535     if (hasExpireTime() != other.hasExpireTime()) return false;
1536     if (hasExpireTime()) {
1537       if (!getExpireTime().equals(other.getExpireTime())) return false;
1538     }
1539     if (state_ != other.state_) return false;
1540     if (!issues_.equals(other.issues_)) return false;
1541     if (!internalGetLabels().equals(other.internalGetLabels())) return false;
1542     if (hasManagementSettings() != other.hasManagementSettings()) return false;
1543     if (hasManagementSettings()) {
1544       if (!getManagementSettings().equals(other.getManagementSettings())) return false;
1545     }
1546     if (hasDnsSettings() != other.hasDnsSettings()) return false;
1547     if (hasDnsSettings()) {
1548       if (!getDnsSettings().equals(other.getDnsSettings())) return false;
1549     }
1550     if (hasContactSettings() != other.hasContactSettings()) return false;
1551     if (hasContactSettings()) {
1552       if (!getContactSettings().equals(other.getContactSettings())) return false;
1553     }
1554     if (hasPendingContactSettings() != other.hasPendingContactSettings()) return false;
1555     if (hasPendingContactSettings()) {
1556       if (!getPendingContactSettings().equals(other.getPendingContactSettings())) return false;
1557     }
1558     if (!supportedPrivacy_.equals(other.supportedPrivacy_)) return false;
1559     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1560     return true;
1561   }
1562 
1563   @java.lang.Override
hashCode()1564   public int hashCode() {
1565     if (memoizedHashCode != 0) {
1566       return memoizedHashCode;
1567     }
1568     int hash = 41;
1569     hash = (19 * hash) + getDescriptor().hashCode();
1570     hash = (37 * hash) + NAME_FIELD_NUMBER;
1571     hash = (53 * hash) + getName().hashCode();
1572     hash = (37 * hash) + DOMAIN_NAME_FIELD_NUMBER;
1573     hash = (53 * hash) + getDomainName().hashCode();
1574     if (hasCreateTime()) {
1575       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
1576       hash = (53 * hash) + getCreateTime().hashCode();
1577     }
1578     if (hasExpireTime()) {
1579       hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
1580       hash = (53 * hash) + getExpireTime().hashCode();
1581     }
1582     hash = (37 * hash) + STATE_FIELD_NUMBER;
1583     hash = (53 * hash) + state_;
1584     if (getIssuesCount() > 0) {
1585       hash = (37 * hash) + ISSUES_FIELD_NUMBER;
1586       hash = (53 * hash) + issues_.hashCode();
1587     }
1588     if (!internalGetLabels().getMap().isEmpty()) {
1589       hash = (37 * hash) + LABELS_FIELD_NUMBER;
1590       hash = (53 * hash) + internalGetLabels().hashCode();
1591     }
1592     if (hasManagementSettings()) {
1593       hash = (37 * hash) + MANAGEMENT_SETTINGS_FIELD_NUMBER;
1594       hash = (53 * hash) + getManagementSettings().hashCode();
1595     }
1596     if (hasDnsSettings()) {
1597       hash = (37 * hash) + DNS_SETTINGS_FIELD_NUMBER;
1598       hash = (53 * hash) + getDnsSettings().hashCode();
1599     }
1600     if (hasContactSettings()) {
1601       hash = (37 * hash) + CONTACT_SETTINGS_FIELD_NUMBER;
1602       hash = (53 * hash) + getContactSettings().hashCode();
1603     }
1604     if (hasPendingContactSettings()) {
1605       hash = (37 * hash) + PENDING_CONTACT_SETTINGS_FIELD_NUMBER;
1606       hash = (53 * hash) + getPendingContactSettings().hashCode();
1607     }
1608     if (getSupportedPrivacyCount() > 0) {
1609       hash = (37 * hash) + SUPPORTED_PRIVACY_FIELD_NUMBER;
1610       hash = (53 * hash) + supportedPrivacy_.hashCode();
1611     }
1612     hash = (29 * hash) + getUnknownFields().hashCode();
1613     memoizedHashCode = hash;
1614     return hash;
1615   }
1616 
parseFrom(java.nio.ByteBuffer data)1617   public static com.google.cloud.domains.v1beta1.Registration parseFrom(java.nio.ByteBuffer data)
1618       throws com.google.protobuf.InvalidProtocolBufferException {
1619     return PARSER.parseFrom(data);
1620   }
1621 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1622   public static com.google.cloud.domains.v1beta1.Registration parseFrom(
1623       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1624       throws com.google.protobuf.InvalidProtocolBufferException {
1625     return PARSER.parseFrom(data, extensionRegistry);
1626   }
1627 
parseFrom( com.google.protobuf.ByteString data)1628   public static com.google.cloud.domains.v1beta1.Registration parseFrom(
1629       com.google.protobuf.ByteString data)
1630       throws com.google.protobuf.InvalidProtocolBufferException {
1631     return PARSER.parseFrom(data);
1632   }
1633 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1634   public static com.google.cloud.domains.v1beta1.Registration parseFrom(
1635       com.google.protobuf.ByteString data,
1636       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1637       throws com.google.protobuf.InvalidProtocolBufferException {
1638     return PARSER.parseFrom(data, extensionRegistry);
1639   }
1640 
parseFrom(byte[] data)1641   public static com.google.cloud.domains.v1beta1.Registration parseFrom(byte[] data)
1642       throws com.google.protobuf.InvalidProtocolBufferException {
1643     return PARSER.parseFrom(data);
1644   }
1645 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1646   public static com.google.cloud.domains.v1beta1.Registration parseFrom(
1647       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1648       throws com.google.protobuf.InvalidProtocolBufferException {
1649     return PARSER.parseFrom(data, extensionRegistry);
1650   }
1651 
parseFrom(java.io.InputStream input)1652   public static com.google.cloud.domains.v1beta1.Registration parseFrom(java.io.InputStream input)
1653       throws java.io.IOException {
1654     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1655   }
1656 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1657   public static com.google.cloud.domains.v1beta1.Registration parseFrom(
1658       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1659       throws java.io.IOException {
1660     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1661         PARSER, input, extensionRegistry);
1662   }
1663 
parseDelimitedFrom( java.io.InputStream input)1664   public static com.google.cloud.domains.v1beta1.Registration parseDelimitedFrom(
1665       java.io.InputStream input) throws java.io.IOException {
1666     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1667   }
1668 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1669   public static com.google.cloud.domains.v1beta1.Registration parseDelimitedFrom(
1670       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1671       throws java.io.IOException {
1672     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1673         PARSER, input, extensionRegistry);
1674   }
1675 
parseFrom( com.google.protobuf.CodedInputStream input)1676   public static com.google.cloud.domains.v1beta1.Registration parseFrom(
1677       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1678     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1679   }
1680 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1681   public static com.google.cloud.domains.v1beta1.Registration parseFrom(
1682       com.google.protobuf.CodedInputStream input,
1683       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1684       throws java.io.IOException {
1685     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1686         PARSER, input, extensionRegistry);
1687   }
1688 
1689   @java.lang.Override
newBuilderForType()1690   public Builder newBuilderForType() {
1691     return newBuilder();
1692   }
1693 
newBuilder()1694   public static Builder newBuilder() {
1695     return DEFAULT_INSTANCE.toBuilder();
1696   }
1697 
newBuilder(com.google.cloud.domains.v1beta1.Registration prototype)1698   public static Builder newBuilder(com.google.cloud.domains.v1beta1.Registration prototype) {
1699     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1700   }
1701 
1702   @java.lang.Override
toBuilder()1703   public Builder toBuilder() {
1704     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1705   }
1706 
1707   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1708   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1709     Builder builder = new Builder(parent);
1710     return builder;
1711   }
1712   /**
1713    *
1714    *
1715    * <pre>
1716    * The `Registration` resource facilitates managing and configuring domain name
1717    * registrations.
1718    * There are several ways to create a new `Registration` resource:
1719    * To create a new `Registration` resource, find a suitable domain name by
1720    * calling the `SearchDomains` method with a query to see available domain name
1721    * options. After choosing a name, call `RetrieveRegisterParameters` to
1722    * ensure availability and obtain information like pricing, which is needed to
1723    * build a call to `RegisterDomain`.
1724    * Another way to create a new `Registration` is to transfer an existing
1725    * domain from another registrar. First, go to the current registrar to unlock
1726    * the domain for transfer and retrieve the domain's transfer authorization
1727    * code. Then call `RetrieveTransferParameters` to confirm that the domain is
1728    * unlocked and to get values needed to build a call to `TransferDomain`.
1729    * </pre>
1730    *
1731    * Protobuf type {@code google.cloud.domains.v1beta1.Registration}
1732    */
1733   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1734       implements
1735       // @@protoc_insertion_point(builder_implements:google.cloud.domains.v1beta1.Registration)
1736       com.google.cloud.domains.v1beta1.RegistrationOrBuilder {
getDescriptor()1737     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1738       return com.google.cloud.domains.v1beta1.DomainsProto
1739           .internal_static_google_cloud_domains_v1beta1_Registration_descriptor;
1740     }
1741 
1742     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)1743     protected com.google.protobuf.MapField internalGetMapField(int number) {
1744       switch (number) {
1745         case 9:
1746           return internalGetLabels();
1747         default:
1748           throw new RuntimeException("Invalid map field number: " + number);
1749       }
1750     }
1751 
1752     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)1753     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
1754       switch (number) {
1755         case 9:
1756           return internalGetMutableLabels();
1757         default:
1758           throw new RuntimeException("Invalid map field number: " + number);
1759       }
1760     }
1761 
1762     @java.lang.Override
1763     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1764         internalGetFieldAccessorTable() {
1765       return com.google.cloud.domains.v1beta1.DomainsProto
1766           .internal_static_google_cloud_domains_v1beta1_Registration_fieldAccessorTable
1767           .ensureFieldAccessorsInitialized(
1768               com.google.cloud.domains.v1beta1.Registration.class,
1769               com.google.cloud.domains.v1beta1.Registration.Builder.class);
1770     }
1771 
1772     // Construct using com.google.cloud.domains.v1beta1.Registration.newBuilder()
Builder()1773     private Builder() {}
1774 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1775     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1776       super(parent);
1777     }
1778 
1779     @java.lang.Override
clear()1780     public Builder clear() {
1781       super.clear();
1782       bitField0_ = 0;
1783       name_ = "";
1784       domainName_ = "";
1785       createTime_ = null;
1786       if (createTimeBuilder_ != null) {
1787         createTimeBuilder_.dispose();
1788         createTimeBuilder_ = null;
1789       }
1790       expireTime_ = null;
1791       if (expireTimeBuilder_ != null) {
1792         expireTimeBuilder_.dispose();
1793         expireTimeBuilder_ = null;
1794       }
1795       state_ = 0;
1796       issues_ = java.util.Collections.emptyList();
1797       bitField0_ = (bitField0_ & ~0x00000020);
1798       internalGetMutableLabels().clear();
1799       managementSettings_ = null;
1800       if (managementSettingsBuilder_ != null) {
1801         managementSettingsBuilder_.dispose();
1802         managementSettingsBuilder_ = null;
1803       }
1804       dnsSettings_ = null;
1805       if (dnsSettingsBuilder_ != null) {
1806         dnsSettingsBuilder_.dispose();
1807         dnsSettingsBuilder_ = null;
1808       }
1809       contactSettings_ = null;
1810       if (contactSettingsBuilder_ != null) {
1811         contactSettingsBuilder_.dispose();
1812         contactSettingsBuilder_ = null;
1813       }
1814       pendingContactSettings_ = null;
1815       if (pendingContactSettingsBuilder_ != null) {
1816         pendingContactSettingsBuilder_.dispose();
1817         pendingContactSettingsBuilder_ = null;
1818       }
1819       supportedPrivacy_ = java.util.Collections.emptyList();
1820       bitField0_ = (bitField0_ & ~0x00000800);
1821       return this;
1822     }
1823 
1824     @java.lang.Override
getDescriptorForType()1825     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1826       return com.google.cloud.domains.v1beta1.DomainsProto
1827           .internal_static_google_cloud_domains_v1beta1_Registration_descriptor;
1828     }
1829 
1830     @java.lang.Override
getDefaultInstanceForType()1831     public com.google.cloud.domains.v1beta1.Registration getDefaultInstanceForType() {
1832       return com.google.cloud.domains.v1beta1.Registration.getDefaultInstance();
1833     }
1834 
1835     @java.lang.Override
build()1836     public com.google.cloud.domains.v1beta1.Registration build() {
1837       com.google.cloud.domains.v1beta1.Registration result = buildPartial();
1838       if (!result.isInitialized()) {
1839         throw newUninitializedMessageException(result);
1840       }
1841       return result;
1842     }
1843 
1844     @java.lang.Override
buildPartial()1845     public com.google.cloud.domains.v1beta1.Registration buildPartial() {
1846       com.google.cloud.domains.v1beta1.Registration result =
1847           new com.google.cloud.domains.v1beta1.Registration(this);
1848       buildPartialRepeatedFields(result);
1849       if (bitField0_ != 0) {
1850         buildPartial0(result);
1851       }
1852       onBuilt();
1853       return result;
1854     }
1855 
buildPartialRepeatedFields(com.google.cloud.domains.v1beta1.Registration result)1856     private void buildPartialRepeatedFields(com.google.cloud.domains.v1beta1.Registration result) {
1857       if (((bitField0_ & 0x00000020) != 0)) {
1858         issues_ = java.util.Collections.unmodifiableList(issues_);
1859         bitField0_ = (bitField0_ & ~0x00000020);
1860       }
1861       result.issues_ = issues_;
1862       if (((bitField0_ & 0x00000800) != 0)) {
1863         supportedPrivacy_ = java.util.Collections.unmodifiableList(supportedPrivacy_);
1864         bitField0_ = (bitField0_ & ~0x00000800);
1865       }
1866       result.supportedPrivacy_ = supportedPrivacy_;
1867     }
1868 
buildPartial0(com.google.cloud.domains.v1beta1.Registration result)1869     private void buildPartial0(com.google.cloud.domains.v1beta1.Registration result) {
1870       int from_bitField0_ = bitField0_;
1871       if (((from_bitField0_ & 0x00000001) != 0)) {
1872         result.name_ = name_;
1873       }
1874       if (((from_bitField0_ & 0x00000002) != 0)) {
1875         result.domainName_ = domainName_;
1876       }
1877       if (((from_bitField0_ & 0x00000004) != 0)) {
1878         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
1879       }
1880       if (((from_bitField0_ & 0x00000008) != 0)) {
1881         result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
1882       }
1883       if (((from_bitField0_ & 0x00000010) != 0)) {
1884         result.state_ = state_;
1885       }
1886       if (((from_bitField0_ & 0x00000040) != 0)) {
1887         result.labels_ = internalGetLabels();
1888         result.labels_.makeImmutable();
1889       }
1890       if (((from_bitField0_ & 0x00000080) != 0)) {
1891         result.managementSettings_ =
1892             managementSettingsBuilder_ == null
1893                 ? managementSettings_
1894                 : managementSettingsBuilder_.build();
1895       }
1896       if (((from_bitField0_ & 0x00000100) != 0)) {
1897         result.dnsSettings_ =
1898             dnsSettingsBuilder_ == null ? dnsSettings_ : dnsSettingsBuilder_.build();
1899       }
1900       if (((from_bitField0_ & 0x00000200) != 0)) {
1901         result.contactSettings_ =
1902             contactSettingsBuilder_ == null ? contactSettings_ : contactSettingsBuilder_.build();
1903       }
1904       if (((from_bitField0_ & 0x00000400) != 0)) {
1905         result.pendingContactSettings_ =
1906             pendingContactSettingsBuilder_ == null
1907                 ? pendingContactSettings_
1908                 : pendingContactSettingsBuilder_.build();
1909       }
1910     }
1911 
1912     @java.lang.Override
clone()1913     public Builder clone() {
1914       return super.clone();
1915     }
1916 
1917     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1918     public Builder setField(
1919         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1920       return super.setField(field, value);
1921     }
1922 
1923     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1924     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1925       return super.clearField(field);
1926     }
1927 
1928     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1929     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1930       return super.clearOneof(oneof);
1931     }
1932 
1933     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1934     public Builder setRepeatedField(
1935         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1936       return super.setRepeatedField(field, index, value);
1937     }
1938 
1939     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1940     public Builder addRepeatedField(
1941         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1942       return super.addRepeatedField(field, value);
1943     }
1944 
1945     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1946     public Builder mergeFrom(com.google.protobuf.Message other) {
1947       if (other instanceof com.google.cloud.domains.v1beta1.Registration) {
1948         return mergeFrom((com.google.cloud.domains.v1beta1.Registration) other);
1949       } else {
1950         super.mergeFrom(other);
1951         return this;
1952       }
1953     }
1954 
mergeFrom(com.google.cloud.domains.v1beta1.Registration other)1955     public Builder mergeFrom(com.google.cloud.domains.v1beta1.Registration other) {
1956       if (other == com.google.cloud.domains.v1beta1.Registration.getDefaultInstance()) return this;
1957       if (!other.getName().isEmpty()) {
1958         name_ = other.name_;
1959         bitField0_ |= 0x00000001;
1960         onChanged();
1961       }
1962       if (!other.getDomainName().isEmpty()) {
1963         domainName_ = other.domainName_;
1964         bitField0_ |= 0x00000002;
1965         onChanged();
1966       }
1967       if (other.hasCreateTime()) {
1968         mergeCreateTime(other.getCreateTime());
1969       }
1970       if (other.hasExpireTime()) {
1971         mergeExpireTime(other.getExpireTime());
1972       }
1973       if (other.state_ != 0) {
1974         setStateValue(other.getStateValue());
1975       }
1976       if (!other.issues_.isEmpty()) {
1977         if (issues_.isEmpty()) {
1978           issues_ = other.issues_;
1979           bitField0_ = (bitField0_ & ~0x00000020);
1980         } else {
1981           ensureIssuesIsMutable();
1982           issues_.addAll(other.issues_);
1983         }
1984         onChanged();
1985       }
1986       internalGetMutableLabels().mergeFrom(other.internalGetLabels());
1987       bitField0_ |= 0x00000040;
1988       if (other.hasManagementSettings()) {
1989         mergeManagementSettings(other.getManagementSettings());
1990       }
1991       if (other.hasDnsSettings()) {
1992         mergeDnsSettings(other.getDnsSettings());
1993       }
1994       if (other.hasContactSettings()) {
1995         mergeContactSettings(other.getContactSettings());
1996       }
1997       if (other.hasPendingContactSettings()) {
1998         mergePendingContactSettings(other.getPendingContactSettings());
1999       }
2000       if (!other.supportedPrivacy_.isEmpty()) {
2001         if (supportedPrivacy_.isEmpty()) {
2002           supportedPrivacy_ = other.supportedPrivacy_;
2003           bitField0_ = (bitField0_ & ~0x00000800);
2004         } else {
2005           ensureSupportedPrivacyIsMutable();
2006           supportedPrivacy_.addAll(other.supportedPrivacy_);
2007         }
2008         onChanged();
2009       }
2010       this.mergeUnknownFields(other.getUnknownFields());
2011       onChanged();
2012       return this;
2013     }
2014 
2015     @java.lang.Override
isInitialized()2016     public final boolean isInitialized() {
2017       return true;
2018     }
2019 
2020     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2021     public Builder mergeFrom(
2022         com.google.protobuf.CodedInputStream input,
2023         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2024         throws java.io.IOException {
2025       if (extensionRegistry == null) {
2026         throw new java.lang.NullPointerException();
2027       }
2028       try {
2029         boolean done = false;
2030         while (!done) {
2031           int tag = input.readTag();
2032           switch (tag) {
2033             case 0:
2034               done = true;
2035               break;
2036             case 10:
2037               {
2038                 name_ = input.readStringRequireUtf8();
2039                 bitField0_ |= 0x00000001;
2040                 break;
2041               } // case 10
2042             case 18:
2043               {
2044                 domainName_ = input.readStringRequireUtf8();
2045                 bitField0_ |= 0x00000002;
2046                 break;
2047               } // case 18
2048             case 26:
2049               {
2050                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
2051                 bitField0_ |= 0x00000004;
2052                 break;
2053               } // case 26
2054             case 50:
2055               {
2056                 input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
2057                 bitField0_ |= 0x00000008;
2058                 break;
2059               } // case 50
2060             case 56:
2061               {
2062                 state_ = input.readEnum();
2063                 bitField0_ |= 0x00000010;
2064                 break;
2065               } // case 56
2066             case 64:
2067               {
2068                 int tmpRaw = input.readEnum();
2069                 ensureIssuesIsMutable();
2070                 issues_.add(tmpRaw);
2071                 break;
2072               } // case 64
2073             case 66:
2074               {
2075                 int length = input.readRawVarint32();
2076                 int oldLimit = input.pushLimit(length);
2077                 while (input.getBytesUntilLimit() > 0) {
2078                   int tmpRaw = input.readEnum();
2079                   ensureIssuesIsMutable();
2080                   issues_.add(tmpRaw);
2081                 }
2082                 input.popLimit(oldLimit);
2083                 break;
2084               } // case 66
2085             case 74:
2086               {
2087                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
2088                     input.readMessage(
2089                         LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
2090                         extensionRegistry);
2091                 internalGetMutableLabels()
2092                     .getMutableMap()
2093                     .put(labels__.getKey(), labels__.getValue());
2094                 bitField0_ |= 0x00000040;
2095                 break;
2096               } // case 74
2097             case 82:
2098               {
2099                 input.readMessage(
2100                     getManagementSettingsFieldBuilder().getBuilder(), extensionRegistry);
2101                 bitField0_ |= 0x00000080;
2102                 break;
2103               } // case 82
2104             case 90:
2105               {
2106                 input.readMessage(getDnsSettingsFieldBuilder().getBuilder(), extensionRegistry);
2107                 bitField0_ |= 0x00000100;
2108                 break;
2109               } // case 90
2110             case 98:
2111               {
2112                 input.readMessage(getContactSettingsFieldBuilder().getBuilder(), extensionRegistry);
2113                 bitField0_ |= 0x00000200;
2114                 break;
2115               } // case 98
2116             case 106:
2117               {
2118                 input.readMessage(
2119                     getPendingContactSettingsFieldBuilder().getBuilder(), extensionRegistry);
2120                 bitField0_ |= 0x00000400;
2121                 break;
2122               } // case 106
2123             case 112:
2124               {
2125                 int tmpRaw = input.readEnum();
2126                 ensureSupportedPrivacyIsMutable();
2127                 supportedPrivacy_.add(tmpRaw);
2128                 break;
2129               } // case 112
2130             case 114:
2131               {
2132                 int length = input.readRawVarint32();
2133                 int oldLimit = input.pushLimit(length);
2134                 while (input.getBytesUntilLimit() > 0) {
2135                   int tmpRaw = input.readEnum();
2136                   ensureSupportedPrivacyIsMutable();
2137                   supportedPrivacy_.add(tmpRaw);
2138                 }
2139                 input.popLimit(oldLimit);
2140                 break;
2141               } // case 114
2142             default:
2143               {
2144                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2145                   done = true; // was an endgroup tag
2146                 }
2147                 break;
2148               } // default:
2149           } // switch (tag)
2150         } // while (!done)
2151       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2152         throw e.unwrapIOException();
2153       } finally {
2154         onChanged();
2155       } // finally
2156       return this;
2157     }
2158 
2159     private int bitField0_;
2160 
2161     private java.lang.Object name_ = "";
2162     /**
2163      *
2164      *
2165      * <pre>
2166      * Output only. Name of the `Registration` resource, in the format
2167      * `projects/&#42;&#47;locations/&#42;&#47;registrations/&lt;domain_name&gt;`.
2168      * </pre>
2169      *
2170      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2171      *
2172      * @return The name.
2173      */
getName()2174     public java.lang.String getName() {
2175       java.lang.Object ref = name_;
2176       if (!(ref instanceof java.lang.String)) {
2177         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2178         java.lang.String s = bs.toStringUtf8();
2179         name_ = s;
2180         return s;
2181       } else {
2182         return (java.lang.String) ref;
2183       }
2184     }
2185     /**
2186      *
2187      *
2188      * <pre>
2189      * Output only. Name of the `Registration` resource, in the format
2190      * `projects/&#42;&#47;locations/&#42;&#47;registrations/&lt;domain_name&gt;`.
2191      * </pre>
2192      *
2193      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2194      *
2195      * @return The bytes for name.
2196      */
getNameBytes()2197     public com.google.protobuf.ByteString getNameBytes() {
2198       java.lang.Object ref = name_;
2199       if (ref instanceof String) {
2200         com.google.protobuf.ByteString b =
2201             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2202         name_ = b;
2203         return b;
2204       } else {
2205         return (com.google.protobuf.ByteString) ref;
2206       }
2207     }
2208     /**
2209      *
2210      *
2211      * <pre>
2212      * Output only. Name of the `Registration` resource, in the format
2213      * `projects/&#42;&#47;locations/&#42;&#47;registrations/&lt;domain_name&gt;`.
2214      * </pre>
2215      *
2216      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2217      *
2218      * @param value The name to set.
2219      * @return This builder for chaining.
2220      */
setName(java.lang.String value)2221     public Builder setName(java.lang.String value) {
2222       if (value == null) {
2223         throw new NullPointerException();
2224       }
2225       name_ = value;
2226       bitField0_ |= 0x00000001;
2227       onChanged();
2228       return this;
2229     }
2230     /**
2231      *
2232      *
2233      * <pre>
2234      * Output only. Name of the `Registration` resource, in the format
2235      * `projects/&#42;&#47;locations/&#42;&#47;registrations/&lt;domain_name&gt;`.
2236      * </pre>
2237      *
2238      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2239      *
2240      * @return This builder for chaining.
2241      */
clearName()2242     public Builder clearName() {
2243       name_ = getDefaultInstance().getName();
2244       bitField0_ = (bitField0_ & ~0x00000001);
2245       onChanged();
2246       return this;
2247     }
2248     /**
2249      *
2250      *
2251      * <pre>
2252      * Output only. Name of the `Registration` resource, in the format
2253      * `projects/&#42;&#47;locations/&#42;&#47;registrations/&lt;domain_name&gt;`.
2254      * </pre>
2255      *
2256      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2257      *
2258      * @param value The bytes for name to set.
2259      * @return This builder for chaining.
2260      */
setNameBytes(com.google.protobuf.ByteString value)2261     public Builder setNameBytes(com.google.protobuf.ByteString value) {
2262       if (value == null) {
2263         throw new NullPointerException();
2264       }
2265       checkByteStringIsUtf8(value);
2266       name_ = value;
2267       bitField0_ |= 0x00000001;
2268       onChanged();
2269       return this;
2270     }
2271 
2272     private java.lang.Object domainName_ = "";
2273     /**
2274      *
2275      *
2276      * <pre>
2277      * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
2278      * </pre>
2279      *
2280      * <code>
2281      * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
2282      * </code>
2283      *
2284      * @return The domainName.
2285      */
getDomainName()2286     public java.lang.String getDomainName() {
2287       java.lang.Object ref = domainName_;
2288       if (!(ref instanceof java.lang.String)) {
2289         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2290         java.lang.String s = bs.toStringUtf8();
2291         domainName_ = s;
2292         return s;
2293       } else {
2294         return (java.lang.String) ref;
2295       }
2296     }
2297     /**
2298      *
2299      *
2300      * <pre>
2301      * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
2302      * </pre>
2303      *
2304      * <code>
2305      * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
2306      * </code>
2307      *
2308      * @return The bytes for domainName.
2309      */
getDomainNameBytes()2310     public com.google.protobuf.ByteString getDomainNameBytes() {
2311       java.lang.Object ref = domainName_;
2312       if (ref instanceof String) {
2313         com.google.protobuf.ByteString b =
2314             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2315         domainName_ = b;
2316         return b;
2317       } else {
2318         return (com.google.protobuf.ByteString) ref;
2319       }
2320     }
2321     /**
2322      *
2323      *
2324      * <pre>
2325      * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
2326      * </pre>
2327      *
2328      * <code>
2329      * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
2330      * </code>
2331      *
2332      * @param value The domainName to set.
2333      * @return This builder for chaining.
2334      */
setDomainName(java.lang.String value)2335     public Builder setDomainName(java.lang.String value) {
2336       if (value == null) {
2337         throw new NullPointerException();
2338       }
2339       domainName_ = value;
2340       bitField0_ |= 0x00000002;
2341       onChanged();
2342       return this;
2343     }
2344     /**
2345      *
2346      *
2347      * <pre>
2348      * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
2349      * </pre>
2350      *
2351      * <code>
2352      * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
2353      * </code>
2354      *
2355      * @return This builder for chaining.
2356      */
clearDomainName()2357     public Builder clearDomainName() {
2358       domainName_ = getDefaultInstance().getDomainName();
2359       bitField0_ = (bitField0_ & ~0x00000002);
2360       onChanged();
2361       return this;
2362     }
2363     /**
2364      *
2365      *
2366      * <pre>
2367      * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
2368      * </pre>
2369      *
2370      * <code>
2371      * string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
2372      * </code>
2373      *
2374      * @param value The bytes for domainName to set.
2375      * @return This builder for chaining.
2376      */
setDomainNameBytes(com.google.protobuf.ByteString value)2377     public Builder setDomainNameBytes(com.google.protobuf.ByteString value) {
2378       if (value == null) {
2379         throw new NullPointerException();
2380       }
2381       checkByteStringIsUtf8(value);
2382       domainName_ = value;
2383       bitField0_ |= 0x00000002;
2384       onChanged();
2385       return this;
2386     }
2387 
2388     private com.google.protobuf.Timestamp createTime_;
2389     private com.google.protobuf.SingleFieldBuilderV3<
2390             com.google.protobuf.Timestamp,
2391             com.google.protobuf.Timestamp.Builder,
2392             com.google.protobuf.TimestampOrBuilder>
2393         createTimeBuilder_;
2394     /**
2395      *
2396      *
2397      * <pre>
2398      * Output only. The creation timestamp of the `Registration` resource.
2399      * </pre>
2400      *
2401      * <code>
2402      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2403      * </code>
2404      *
2405      * @return Whether the createTime field is set.
2406      */
hasCreateTime()2407     public boolean hasCreateTime() {
2408       return ((bitField0_ & 0x00000004) != 0);
2409     }
2410     /**
2411      *
2412      *
2413      * <pre>
2414      * Output only. The creation timestamp of the `Registration` resource.
2415      * </pre>
2416      *
2417      * <code>
2418      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2419      * </code>
2420      *
2421      * @return The createTime.
2422      */
getCreateTime()2423     public com.google.protobuf.Timestamp getCreateTime() {
2424       if (createTimeBuilder_ == null) {
2425         return createTime_ == null
2426             ? com.google.protobuf.Timestamp.getDefaultInstance()
2427             : createTime_;
2428       } else {
2429         return createTimeBuilder_.getMessage();
2430       }
2431     }
2432     /**
2433      *
2434      *
2435      * <pre>
2436      * Output only. The creation timestamp of the `Registration` resource.
2437      * </pre>
2438      *
2439      * <code>
2440      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2441      * </code>
2442      */
setCreateTime(com.google.protobuf.Timestamp value)2443     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
2444       if (createTimeBuilder_ == null) {
2445         if (value == null) {
2446           throw new NullPointerException();
2447         }
2448         createTime_ = value;
2449       } else {
2450         createTimeBuilder_.setMessage(value);
2451       }
2452       bitField0_ |= 0x00000004;
2453       onChanged();
2454       return this;
2455     }
2456     /**
2457      *
2458      *
2459      * <pre>
2460      * Output only. The creation timestamp of the `Registration` resource.
2461      * </pre>
2462      *
2463      * <code>
2464      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2465      * </code>
2466      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)2467     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2468       if (createTimeBuilder_ == null) {
2469         createTime_ = builderForValue.build();
2470       } else {
2471         createTimeBuilder_.setMessage(builderForValue.build());
2472       }
2473       bitField0_ |= 0x00000004;
2474       onChanged();
2475       return this;
2476     }
2477     /**
2478      *
2479      *
2480      * <pre>
2481      * Output only. The creation timestamp of the `Registration` resource.
2482      * </pre>
2483      *
2484      * <code>
2485      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2486      * </code>
2487      */
mergeCreateTime(com.google.protobuf.Timestamp value)2488     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
2489       if (createTimeBuilder_ == null) {
2490         if (((bitField0_ & 0x00000004) != 0)
2491             && createTime_ != null
2492             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2493           getCreateTimeBuilder().mergeFrom(value);
2494         } else {
2495           createTime_ = value;
2496         }
2497       } else {
2498         createTimeBuilder_.mergeFrom(value);
2499       }
2500       bitField0_ |= 0x00000004;
2501       onChanged();
2502       return this;
2503     }
2504     /**
2505      *
2506      *
2507      * <pre>
2508      * Output only. The creation timestamp of the `Registration` resource.
2509      * </pre>
2510      *
2511      * <code>
2512      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2513      * </code>
2514      */
clearCreateTime()2515     public Builder clearCreateTime() {
2516       bitField0_ = (bitField0_ & ~0x00000004);
2517       createTime_ = null;
2518       if (createTimeBuilder_ != null) {
2519         createTimeBuilder_.dispose();
2520         createTimeBuilder_ = null;
2521       }
2522       onChanged();
2523       return this;
2524     }
2525     /**
2526      *
2527      *
2528      * <pre>
2529      * Output only. The creation timestamp of the `Registration` resource.
2530      * </pre>
2531      *
2532      * <code>
2533      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2534      * </code>
2535      */
getCreateTimeBuilder()2536     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
2537       bitField0_ |= 0x00000004;
2538       onChanged();
2539       return getCreateTimeFieldBuilder().getBuilder();
2540     }
2541     /**
2542      *
2543      *
2544      * <pre>
2545      * Output only. The creation timestamp of the `Registration` resource.
2546      * </pre>
2547      *
2548      * <code>
2549      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2550      * </code>
2551      */
getCreateTimeOrBuilder()2552     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
2553       if (createTimeBuilder_ != null) {
2554         return createTimeBuilder_.getMessageOrBuilder();
2555       } else {
2556         return createTime_ == null
2557             ? com.google.protobuf.Timestamp.getDefaultInstance()
2558             : createTime_;
2559       }
2560     }
2561     /**
2562      *
2563      *
2564      * <pre>
2565      * Output only. The creation timestamp of the `Registration` resource.
2566      * </pre>
2567      *
2568      * <code>
2569      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
2570      * </code>
2571      */
2572     private com.google.protobuf.SingleFieldBuilderV3<
2573             com.google.protobuf.Timestamp,
2574             com.google.protobuf.Timestamp.Builder,
2575             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()2576         getCreateTimeFieldBuilder() {
2577       if (createTimeBuilder_ == null) {
2578         createTimeBuilder_ =
2579             new com.google.protobuf.SingleFieldBuilderV3<
2580                 com.google.protobuf.Timestamp,
2581                 com.google.protobuf.Timestamp.Builder,
2582                 com.google.protobuf.TimestampOrBuilder>(
2583                 getCreateTime(), getParentForChildren(), isClean());
2584         createTime_ = null;
2585       }
2586       return createTimeBuilder_;
2587     }
2588 
2589     private com.google.protobuf.Timestamp expireTime_;
2590     private com.google.protobuf.SingleFieldBuilderV3<
2591             com.google.protobuf.Timestamp,
2592             com.google.protobuf.Timestamp.Builder,
2593             com.google.protobuf.TimestampOrBuilder>
2594         expireTimeBuilder_;
2595     /**
2596      *
2597      *
2598      * <pre>
2599      * Output only. The expiration timestamp of the `Registration`.
2600      * </pre>
2601      *
2602      * <code>
2603      * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2604      * </code>
2605      *
2606      * @return Whether the expireTime field is set.
2607      */
hasExpireTime()2608     public boolean hasExpireTime() {
2609       return ((bitField0_ & 0x00000008) != 0);
2610     }
2611     /**
2612      *
2613      *
2614      * <pre>
2615      * Output only. The expiration timestamp of the `Registration`.
2616      * </pre>
2617      *
2618      * <code>
2619      * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2620      * </code>
2621      *
2622      * @return The expireTime.
2623      */
getExpireTime()2624     public com.google.protobuf.Timestamp getExpireTime() {
2625       if (expireTimeBuilder_ == null) {
2626         return expireTime_ == null
2627             ? com.google.protobuf.Timestamp.getDefaultInstance()
2628             : expireTime_;
2629       } else {
2630         return expireTimeBuilder_.getMessage();
2631       }
2632     }
2633     /**
2634      *
2635      *
2636      * <pre>
2637      * Output only. The expiration timestamp of the `Registration`.
2638      * </pre>
2639      *
2640      * <code>
2641      * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2642      * </code>
2643      */
setExpireTime(com.google.protobuf.Timestamp value)2644     public Builder setExpireTime(com.google.protobuf.Timestamp value) {
2645       if (expireTimeBuilder_ == null) {
2646         if (value == null) {
2647           throw new NullPointerException();
2648         }
2649         expireTime_ = value;
2650       } else {
2651         expireTimeBuilder_.setMessage(value);
2652       }
2653       bitField0_ |= 0x00000008;
2654       onChanged();
2655       return this;
2656     }
2657     /**
2658      *
2659      *
2660      * <pre>
2661      * Output only. The expiration timestamp of the `Registration`.
2662      * </pre>
2663      *
2664      * <code>
2665      * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2666      * </code>
2667      */
setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)2668     public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2669       if (expireTimeBuilder_ == null) {
2670         expireTime_ = builderForValue.build();
2671       } else {
2672         expireTimeBuilder_.setMessage(builderForValue.build());
2673       }
2674       bitField0_ |= 0x00000008;
2675       onChanged();
2676       return this;
2677     }
2678     /**
2679      *
2680      *
2681      * <pre>
2682      * Output only. The expiration timestamp of the `Registration`.
2683      * </pre>
2684      *
2685      * <code>
2686      * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2687      * </code>
2688      */
mergeExpireTime(com.google.protobuf.Timestamp value)2689     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
2690       if (expireTimeBuilder_ == null) {
2691         if (((bitField0_ & 0x00000008) != 0)
2692             && expireTime_ != null
2693             && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2694           getExpireTimeBuilder().mergeFrom(value);
2695         } else {
2696           expireTime_ = value;
2697         }
2698       } else {
2699         expireTimeBuilder_.mergeFrom(value);
2700       }
2701       bitField0_ |= 0x00000008;
2702       onChanged();
2703       return this;
2704     }
2705     /**
2706      *
2707      *
2708      * <pre>
2709      * Output only. The expiration timestamp of the `Registration`.
2710      * </pre>
2711      *
2712      * <code>
2713      * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2714      * </code>
2715      */
clearExpireTime()2716     public Builder clearExpireTime() {
2717       bitField0_ = (bitField0_ & ~0x00000008);
2718       expireTime_ = null;
2719       if (expireTimeBuilder_ != null) {
2720         expireTimeBuilder_.dispose();
2721         expireTimeBuilder_ = null;
2722       }
2723       onChanged();
2724       return this;
2725     }
2726     /**
2727      *
2728      *
2729      * <pre>
2730      * Output only. The expiration timestamp of the `Registration`.
2731      * </pre>
2732      *
2733      * <code>
2734      * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2735      * </code>
2736      */
getExpireTimeBuilder()2737     public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
2738       bitField0_ |= 0x00000008;
2739       onChanged();
2740       return getExpireTimeFieldBuilder().getBuilder();
2741     }
2742     /**
2743      *
2744      *
2745      * <pre>
2746      * Output only. The expiration timestamp of the `Registration`.
2747      * </pre>
2748      *
2749      * <code>
2750      * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2751      * </code>
2752      */
getExpireTimeOrBuilder()2753     public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
2754       if (expireTimeBuilder_ != null) {
2755         return expireTimeBuilder_.getMessageOrBuilder();
2756       } else {
2757         return expireTime_ == null
2758             ? com.google.protobuf.Timestamp.getDefaultInstance()
2759             : expireTime_;
2760       }
2761     }
2762     /**
2763      *
2764      *
2765      * <pre>
2766      * Output only. The expiration timestamp of the `Registration`.
2767      * </pre>
2768      *
2769      * <code>
2770      * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2771      * </code>
2772      */
2773     private com.google.protobuf.SingleFieldBuilderV3<
2774             com.google.protobuf.Timestamp,
2775             com.google.protobuf.Timestamp.Builder,
2776             com.google.protobuf.TimestampOrBuilder>
getExpireTimeFieldBuilder()2777         getExpireTimeFieldBuilder() {
2778       if (expireTimeBuilder_ == null) {
2779         expireTimeBuilder_ =
2780             new com.google.protobuf.SingleFieldBuilderV3<
2781                 com.google.protobuf.Timestamp,
2782                 com.google.protobuf.Timestamp.Builder,
2783                 com.google.protobuf.TimestampOrBuilder>(
2784                 getExpireTime(), getParentForChildren(), isClean());
2785         expireTime_ = null;
2786       }
2787       return expireTimeBuilder_;
2788     }
2789 
2790     private int state_ = 0;
2791     /**
2792      *
2793      *
2794      * <pre>
2795      * Output only. The state of the `Registration`
2796      * </pre>
2797      *
2798      * <code>
2799      * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2800      * </code>
2801      *
2802      * @return The enum numeric value on the wire for state.
2803      */
2804     @java.lang.Override
getStateValue()2805     public int getStateValue() {
2806       return state_;
2807     }
2808     /**
2809      *
2810      *
2811      * <pre>
2812      * Output only. The state of the `Registration`
2813      * </pre>
2814      *
2815      * <code>
2816      * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2817      * </code>
2818      *
2819      * @param value The enum numeric value on the wire for state to set.
2820      * @return This builder for chaining.
2821      */
setStateValue(int value)2822     public Builder setStateValue(int value) {
2823       state_ = value;
2824       bitField0_ |= 0x00000010;
2825       onChanged();
2826       return this;
2827     }
2828     /**
2829      *
2830      *
2831      * <pre>
2832      * Output only. The state of the `Registration`
2833      * </pre>
2834      *
2835      * <code>
2836      * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2837      * </code>
2838      *
2839      * @return The state.
2840      */
2841     @java.lang.Override
getState()2842     public com.google.cloud.domains.v1beta1.Registration.State getState() {
2843       com.google.cloud.domains.v1beta1.Registration.State result =
2844           com.google.cloud.domains.v1beta1.Registration.State.forNumber(state_);
2845       return result == null
2846           ? com.google.cloud.domains.v1beta1.Registration.State.UNRECOGNIZED
2847           : result;
2848     }
2849     /**
2850      *
2851      *
2852      * <pre>
2853      * Output only. The state of the `Registration`
2854      * </pre>
2855      *
2856      * <code>
2857      * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2858      * </code>
2859      *
2860      * @param value The state to set.
2861      * @return This builder for chaining.
2862      */
setState(com.google.cloud.domains.v1beta1.Registration.State value)2863     public Builder setState(com.google.cloud.domains.v1beta1.Registration.State value) {
2864       if (value == null) {
2865         throw new NullPointerException();
2866       }
2867       bitField0_ |= 0x00000010;
2868       state_ = value.getNumber();
2869       onChanged();
2870       return this;
2871     }
2872     /**
2873      *
2874      *
2875      * <pre>
2876      * Output only. The state of the `Registration`
2877      * </pre>
2878      *
2879      * <code>
2880      * .google.cloud.domains.v1beta1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2881      * </code>
2882      *
2883      * @return This builder for chaining.
2884      */
clearState()2885     public Builder clearState() {
2886       bitField0_ = (bitField0_ & ~0x00000010);
2887       state_ = 0;
2888       onChanged();
2889       return this;
2890     }
2891 
2892     private java.util.List<java.lang.Integer> issues_ = java.util.Collections.emptyList();
2893 
ensureIssuesIsMutable()2894     private void ensureIssuesIsMutable() {
2895       if (!((bitField0_ & 0x00000020) != 0)) {
2896         issues_ = new java.util.ArrayList<java.lang.Integer>(issues_);
2897         bitField0_ |= 0x00000020;
2898       }
2899     }
2900     /**
2901      *
2902      *
2903      * <pre>
2904      * Output only. The set of issues with the `Registration` that require attention.
2905      * </pre>
2906      *
2907      * <code>
2908      * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2909      * </code>
2910      *
2911      * @return A list containing the issues.
2912      */
getIssuesList()2913     public java.util.List<com.google.cloud.domains.v1beta1.Registration.Issue> getIssuesList() {
2914       return new com.google.protobuf.Internal.ListAdapter<
2915           java.lang.Integer, com.google.cloud.domains.v1beta1.Registration.Issue>(
2916           issues_, issues_converter_);
2917     }
2918     /**
2919      *
2920      *
2921      * <pre>
2922      * Output only. The set of issues with the `Registration` that require attention.
2923      * </pre>
2924      *
2925      * <code>
2926      * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2927      * </code>
2928      *
2929      * @return The count of issues.
2930      */
getIssuesCount()2931     public int getIssuesCount() {
2932       return issues_.size();
2933     }
2934     /**
2935      *
2936      *
2937      * <pre>
2938      * Output only. The set of issues with the `Registration` that require attention.
2939      * </pre>
2940      *
2941      * <code>
2942      * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2943      * </code>
2944      *
2945      * @param index The index of the element to return.
2946      * @return The issues at the given index.
2947      */
getIssues(int index)2948     public com.google.cloud.domains.v1beta1.Registration.Issue getIssues(int index) {
2949       return issues_converter_.convert(issues_.get(index));
2950     }
2951     /**
2952      *
2953      *
2954      * <pre>
2955      * Output only. The set of issues with the `Registration` that require attention.
2956      * </pre>
2957      *
2958      * <code>
2959      * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2960      * </code>
2961      *
2962      * @param index The index to set the value at.
2963      * @param value The issues to set.
2964      * @return This builder for chaining.
2965      */
setIssues(int index, com.google.cloud.domains.v1beta1.Registration.Issue value)2966     public Builder setIssues(int index, com.google.cloud.domains.v1beta1.Registration.Issue value) {
2967       if (value == null) {
2968         throw new NullPointerException();
2969       }
2970       ensureIssuesIsMutable();
2971       issues_.set(index, value.getNumber());
2972       onChanged();
2973       return this;
2974     }
2975     /**
2976      *
2977      *
2978      * <pre>
2979      * Output only. The set of issues with the `Registration` that require attention.
2980      * </pre>
2981      *
2982      * <code>
2983      * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2984      * </code>
2985      *
2986      * @param value The issues to add.
2987      * @return This builder for chaining.
2988      */
addIssues(com.google.cloud.domains.v1beta1.Registration.Issue value)2989     public Builder addIssues(com.google.cloud.domains.v1beta1.Registration.Issue value) {
2990       if (value == null) {
2991         throw new NullPointerException();
2992       }
2993       ensureIssuesIsMutable();
2994       issues_.add(value.getNumber());
2995       onChanged();
2996       return this;
2997     }
2998     /**
2999      *
3000      *
3001      * <pre>
3002      * Output only. The set of issues with the `Registration` that require attention.
3003      * </pre>
3004      *
3005      * <code>
3006      * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
3007      * </code>
3008      *
3009      * @param values The issues to add.
3010      * @return This builder for chaining.
3011      */
addAllIssues( java.lang.Iterable<? extends com.google.cloud.domains.v1beta1.Registration.Issue> values)3012     public Builder addAllIssues(
3013         java.lang.Iterable<? extends com.google.cloud.domains.v1beta1.Registration.Issue> values) {
3014       ensureIssuesIsMutable();
3015       for (com.google.cloud.domains.v1beta1.Registration.Issue value : values) {
3016         issues_.add(value.getNumber());
3017       }
3018       onChanged();
3019       return this;
3020     }
3021     /**
3022      *
3023      *
3024      * <pre>
3025      * Output only. The set of issues with the `Registration` that require attention.
3026      * </pre>
3027      *
3028      * <code>
3029      * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
3030      * </code>
3031      *
3032      * @return This builder for chaining.
3033      */
clearIssues()3034     public Builder clearIssues() {
3035       issues_ = java.util.Collections.emptyList();
3036       bitField0_ = (bitField0_ & ~0x00000020);
3037       onChanged();
3038       return this;
3039     }
3040     /**
3041      *
3042      *
3043      * <pre>
3044      * Output only. The set of issues with the `Registration` that require attention.
3045      * </pre>
3046      *
3047      * <code>
3048      * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
3049      * </code>
3050      *
3051      * @return A list containing the enum numeric values on the wire for issues.
3052      */
getIssuesValueList()3053     public java.util.List<java.lang.Integer> getIssuesValueList() {
3054       return java.util.Collections.unmodifiableList(issues_);
3055     }
3056     /**
3057      *
3058      *
3059      * <pre>
3060      * Output only. The set of issues with the `Registration` that require attention.
3061      * </pre>
3062      *
3063      * <code>
3064      * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
3065      * </code>
3066      *
3067      * @param index The index of the value to return.
3068      * @return The enum numeric value on the wire of issues at the given index.
3069      */
getIssuesValue(int index)3070     public int getIssuesValue(int index) {
3071       return issues_.get(index);
3072     }
3073     /**
3074      *
3075      *
3076      * <pre>
3077      * Output only. The set of issues with the `Registration` that require attention.
3078      * </pre>
3079      *
3080      * <code>
3081      * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
3082      * </code>
3083      *
3084      * @param index The index to set the value at.
3085      * @param value The enum numeric value on the wire for issues to set.
3086      * @return This builder for chaining.
3087      */
setIssuesValue(int index, int value)3088     public Builder setIssuesValue(int index, int value) {
3089       ensureIssuesIsMutable();
3090       issues_.set(index, value);
3091       onChanged();
3092       return this;
3093     }
3094     /**
3095      *
3096      *
3097      * <pre>
3098      * Output only. The set of issues with the `Registration` that require attention.
3099      * </pre>
3100      *
3101      * <code>
3102      * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
3103      * </code>
3104      *
3105      * @param value The enum numeric value on the wire for issues to add.
3106      * @return This builder for chaining.
3107      */
addIssuesValue(int value)3108     public Builder addIssuesValue(int value) {
3109       ensureIssuesIsMutable();
3110       issues_.add(value);
3111       onChanged();
3112       return this;
3113     }
3114     /**
3115      *
3116      *
3117      * <pre>
3118      * Output only. The set of issues with the `Registration` that require attention.
3119      * </pre>
3120      *
3121      * <code>
3122      * repeated .google.cloud.domains.v1beta1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
3123      * </code>
3124      *
3125      * @param values The enum numeric values on the wire for issues to add.
3126      * @return This builder for chaining.
3127      */
addAllIssuesValue(java.lang.Iterable<java.lang.Integer> values)3128     public Builder addAllIssuesValue(java.lang.Iterable<java.lang.Integer> values) {
3129       ensureIssuesIsMutable();
3130       for (int value : values) {
3131         issues_.add(value);
3132       }
3133       onChanged();
3134       return this;
3135     }
3136 
3137     private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
3138 
internalGetLabels()3139     private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
3140       if (labels_ == null) {
3141         return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
3142       }
3143       return labels_;
3144     }
3145 
3146     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableLabels()3147         internalGetMutableLabels() {
3148       if (labels_ == null) {
3149         labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
3150       }
3151       if (!labels_.isMutable()) {
3152         labels_ = labels_.copy();
3153       }
3154       bitField0_ |= 0x00000040;
3155       onChanged();
3156       return labels_;
3157     }
3158 
getLabelsCount()3159     public int getLabelsCount() {
3160       return internalGetLabels().getMap().size();
3161     }
3162     /**
3163      *
3164      *
3165      * <pre>
3166      * Set of labels associated with the `Registration`.
3167      * </pre>
3168      *
3169      * <code>map&lt;string, string&gt; labels = 9;</code>
3170      */
3171     @java.lang.Override
containsLabels(java.lang.String key)3172     public boolean containsLabels(java.lang.String key) {
3173       if (key == null) {
3174         throw new NullPointerException("map key");
3175       }
3176       return internalGetLabels().getMap().containsKey(key);
3177     }
3178     /** Use {@link #getLabelsMap()} instead. */
3179     @java.lang.Override
3180     @java.lang.Deprecated
getLabels()3181     public java.util.Map<java.lang.String, java.lang.String> getLabels() {
3182       return getLabelsMap();
3183     }
3184     /**
3185      *
3186      *
3187      * <pre>
3188      * Set of labels associated with the `Registration`.
3189      * </pre>
3190      *
3191      * <code>map&lt;string, string&gt; labels = 9;</code>
3192      */
3193     @java.lang.Override
getLabelsMap()3194     public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
3195       return internalGetLabels().getMap();
3196     }
3197     /**
3198      *
3199      *
3200      * <pre>
3201      * Set of labels associated with the `Registration`.
3202      * </pre>
3203      *
3204      * <code>map&lt;string, string&gt; labels = 9;</code>
3205      */
3206     @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)3207     public /* nullable */ java.lang.String getLabelsOrDefault(
3208         java.lang.String key,
3209         /* nullable */
3210         java.lang.String defaultValue) {
3211       if (key == null) {
3212         throw new NullPointerException("map key");
3213       }
3214       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
3215       return map.containsKey(key) ? map.get(key) : defaultValue;
3216     }
3217     /**
3218      *
3219      *
3220      * <pre>
3221      * Set of labels associated with the `Registration`.
3222      * </pre>
3223      *
3224      * <code>map&lt;string, string&gt; labels = 9;</code>
3225      */
3226     @java.lang.Override
getLabelsOrThrow(java.lang.String key)3227     public java.lang.String getLabelsOrThrow(java.lang.String key) {
3228       if (key == null) {
3229         throw new NullPointerException("map key");
3230       }
3231       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
3232       if (!map.containsKey(key)) {
3233         throw new java.lang.IllegalArgumentException();
3234       }
3235       return map.get(key);
3236     }
3237 
clearLabels()3238     public Builder clearLabels() {
3239       bitField0_ = (bitField0_ & ~0x00000040);
3240       internalGetMutableLabels().getMutableMap().clear();
3241       return this;
3242     }
3243     /**
3244      *
3245      *
3246      * <pre>
3247      * Set of labels associated with the `Registration`.
3248      * </pre>
3249      *
3250      * <code>map&lt;string, string&gt; labels = 9;</code>
3251      */
removeLabels(java.lang.String key)3252     public Builder removeLabels(java.lang.String key) {
3253       if (key == null) {
3254         throw new NullPointerException("map key");
3255       }
3256       internalGetMutableLabels().getMutableMap().remove(key);
3257       return this;
3258     }
3259     /** Use alternate mutation accessors instead. */
3260     @java.lang.Deprecated
getMutableLabels()3261     public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
3262       bitField0_ |= 0x00000040;
3263       return internalGetMutableLabels().getMutableMap();
3264     }
3265     /**
3266      *
3267      *
3268      * <pre>
3269      * Set of labels associated with the `Registration`.
3270      * </pre>
3271      *
3272      * <code>map&lt;string, string&gt; labels = 9;</code>
3273      */
putLabels(java.lang.String key, java.lang.String value)3274     public Builder putLabels(java.lang.String key, java.lang.String value) {
3275       if (key == null) {
3276         throw new NullPointerException("map key");
3277       }
3278       if (value == null) {
3279         throw new NullPointerException("map value");
3280       }
3281       internalGetMutableLabels().getMutableMap().put(key, value);
3282       bitField0_ |= 0x00000040;
3283       return this;
3284     }
3285     /**
3286      *
3287      *
3288      * <pre>
3289      * Set of labels associated with the `Registration`.
3290      * </pre>
3291      *
3292      * <code>map&lt;string, string&gt; labels = 9;</code>
3293      */
putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)3294     public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
3295       internalGetMutableLabels().getMutableMap().putAll(values);
3296       bitField0_ |= 0x00000040;
3297       return this;
3298     }
3299 
3300     private com.google.cloud.domains.v1beta1.ManagementSettings managementSettings_;
3301     private com.google.protobuf.SingleFieldBuilderV3<
3302             com.google.cloud.domains.v1beta1.ManagementSettings,
3303             com.google.cloud.domains.v1beta1.ManagementSettings.Builder,
3304             com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder>
3305         managementSettingsBuilder_;
3306     /**
3307      *
3308      *
3309      * <pre>
3310      * Settings for management of the `Registration`, including renewal, billing,
3311      * and transfer. You cannot update these with the `UpdateRegistration`
3312      * method. To update these settings, use the `ConfigureManagementSettings`
3313      * method.
3314      * </pre>
3315      *
3316      * <code>.google.cloud.domains.v1beta1.ManagementSettings management_settings = 10;</code>
3317      *
3318      * @return Whether the managementSettings field is set.
3319      */
hasManagementSettings()3320     public boolean hasManagementSettings() {
3321       return ((bitField0_ & 0x00000080) != 0);
3322     }
3323     /**
3324      *
3325      *
3326      * <pre>
3327      * Settings for management of the `Registration`, including renewal, billing,
3328      * and transfer. You cannot update these with the `UpdateRegistration`
3329      * method. To update these settings, use the `ConfigureManagementSettings`
3330      * method.
3331      * </pre>
3332      *
3333      * <code>.google.cloud.domains.v1beta1.ManagementSettings management_settings = 10;</code>
3334      *
3335      * @return The managementSettings.
3336      */
getManagementSettings()3337     public com.google.cloud.domains.v1beta1.ManagementSettings getManagementSettings() {
3338       if (managementSettingsBuilder_ == null) {
3339         return managementSettings_ == null
3340             ? com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance()
3341             : managementSettings_;
3342       } else {
3343         return managementSettingsBuilder_.getMessage();
3344       }
3345     }
3346     /**
3347      *
3348      *
3349      * <pre>
3350      * Settings for management of the `Registration`, including renewal, billing,
3351      * and transfer. You cannot update these with the `UpdateRegistration`
3352      * method. To update these settings, use the `ConfigureManagementSettings`
3353      * method.
3354      * </pre>
3355      *
3356      * <code>.google.cloud.domains.v1beta1.ManagementSettings management_settings = 10;</code>
3357      */
setManagementSettings( com.google.cloud.domains.v1beta1.ManagementSettings value)3358     public Builder setManagementSettings(
3359         com.google.cloud.domains.v1beta1.ManagementSettings value) {
3360       if (managementSettingsBuilder_ == null) {
3361         if (value == null) {
3362           throw new NullPointerException();
3363         }
3364         managementSettings_ = value;
3365       } else {
3366         managementSettingsBuilder_.setMessage(value);
3367       }
3368       bitField0_ |= 0x00000080;
3369       onChanged();
3370       return this;
3371     }
3372     /**
3373      *
3374      *
3375      * <pre>
3376      * Settings for management of the `Registration`, including renewal, billing,
3377      * and transfer. You cannot update these with the `UpdateRegistration`
3378      * method. To update these settings, use the `ConfigureManagementSettings`
3379      * method.
3380      * </pre>
3381      *
3382      * <code>.google.cloud.domains.v1beta1.ManagementSettings management_settings = 10;</code>
3383      */
setManagementSettings( com.google.cloud.domains.v1beta1.ManagementSettings.Builder builderForValue)3384     public Builder setManagementSettings(
3385         com.google.cloud.domains.v1beta1.ManagementSettings.Builder builderForValue) {
3386       if (managementSettingsBuilder_ == null) {
3387         managementSettings_ = builderForValue.build();
3388       } else {
3389         managementSettingsBuilder_.setMessage(builderForValue.build());
3390       }
3391       bitField0_ |= 0x00000080;
3392       onChanged();
3393       return this;
3394     }
3395     /**
3396      *
3397      *
3398      * <pre>
3399      * Settings for management of the `Registration`, including renewal, billing,
3400      * and transfer. You cannot update these with the `UpdateRegistration`
3401      * method. To update these settings, use the `ConfigureManagementSettings`
3402      * method.
3403      * </pre>
3404      *
3405      * <code>.google.cloud.domains.v1beta1.ManagementSettings management_settings = 10;</code>
3406      */
mergeManagementSettings( com.google.cloud.domains.v1beta1.ManagementSettings value)3407     public Builder mergeManagementSettings(
3408         com.google.cloud.domains.v1beta1.ManagementSettings value) {
3409       if (managementSettingsBuilder_ == null) {
3410         if (((bitField0_ & 0x00000080) != 0)
3411             && managementSettings_ != null
3412             && managementSettings_
3413                 != com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance()) {
3414           getManagementSettingsBuilder().mergeFrom(value);
3415         } else {
3416           managementSettings_ = value;
3417         }
3418       } else {
3419         managementSettingsBuilder_.mergeFrom(value);
3420       }
3421       bitField0_ |= 0x00000080;
3422       onChanged();
3423       return this;
3424     }
3425     /**
3426      *
3427      *
3428      * <pre>
3429      * Settings for management of the `Registration`, including renewal, billing,
3430      * and transfer. You cannot update these with the `UpdateRegistration`
3431      * method. To update these settings, use the `ConfigureManagementSettings`
3432      * method.
3433      * </pre>
3434      *
3435      * <code>.google.cloud.domains.v1beta1.ManagementSettings management_settings = 10;</code>
3436      */
clearManagementSettings()3437     public Builder clearManagementSettings() {
3438       bitField0_ = (bitField0_ & ~0x00000080);
3439       managementSettings_ = null;
3440       if (managementSettingsBuilder_ != null) {
3441         managementSettingsBuilder_.dispose();
3442         managementSettingsBuilder_ = null;
3443       }
3444       onChanged();
3445       return this;
3446     }
3447     /**
3448      *
3449      *
3450      * <pre>
3451      * Settings for management of the `Registration`, including renewal, billing,
3452      * and transfer. You cannot update these with the `UpdateRegistration`
3453      * method. To update these settings, use the `ConfigureManagementSettings`
3454      * method.
3455      * </pre>
3456      *
3457      * <code>.google.cloud.domains.v1beta1.ManagementSettings management_settings = 10;</code>
3458      */
3459     public com.google.cloud.domains.v1beta1.ManagementSettings.Builder
getManagementSettingsBuilder()3460         getManagementSettingsBuilder() {
3461       bitField0_ |= 0x00000080;
3462       onChanged();
3463       return getManagementSettingsFieldBuilder().getBuilder();
3464     }
3465     /**
3466      *
3467      *
3468      * <pre>
3469      * Settings for management of the `Registration`, including renewal, billing,
3470      * and transfer. You cannot update these with the `UpdateRegistration`
3471      * method. To update these settings, use the `ConfigureManagementSettings`
3472      * method.
3473      * </pre>
3474      *
3475      * <code>.google.cloud.domains.v1beta1.ManagementSettings management_settings = 10;</code>
3476      */
3477     public com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder
getManagementSettingsOrBuilder()3478         getManagementSettingsOrBuilder() {
3479       if (managementSettingsBuilder_ != null) {
3480         return managementSettingsBuilder_.getMessageOrBuilder();
3481       } else {
3482         return managementSettings_ == null
3483             ? com.google.cloud.domains.v1beta1.ManagementSettings.getDefaultInstance()
3484             : managementSettings_;
3485       }
3486     }
3487     /**
3488      *
3489      *
3490      * <pre>
3491      * Settings for management of the `Registration`, including renewal, billing,
3492      * and transfer. You cannot update these with the `UpdateRegistration`
3493      * method. To update these settings, use the `ConfigureManagementSettings`
3494      * method.
3495      * </pre>
3496      *
3497      * <code>.google.cloud.domains.v1beta1.ManagementSettings management_settings = 10;</code>
3498      */
3499     private com.google.protobuf.SingleFieldBuilderV3<
3500             com.google.cloud.domains.v1beta1.ManagementSettings,
3501             com.google.cloud.domains.v1beta1.ManagementSettings.Builder,
3502             com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder>
getManagementSettingsFieldBuilder()3503         getManagementSettingsFieldBuilder() {
3504       if (managementSettingsBuilder_ == null) {
3505         managementSettingsBuilder_ =
3506             new com.google.protobuf.SingleFieldBuilderV3<
3507                 com.google.cloud.domains.v1beta1.ManagementSettings,
3508                 com.google.cloud.domains.v1beta1.ManagementSettings.Builder,
3509                 com.google.cloud.domains.v1beta1.ManagementSettingsOrBuilder>(
3510                 getManagementSettings(), getParentForChildren(), isClean());
3511         managementSettings_ = null;
3512       }
3513       return managementSettingsBuilder_;
3514     }
3515 
3516     private com.google.cloud.domains.v1beta1.DnsSettings dnsSettings_;
3517     private com.google.protobuf.SingleFieldBuilderV3<
3518             com.google.cloud.domains.v1beta1.DnsSettings,
3519             com.google.cloud.domains.v1beta1.DnsSettings.Builder,
3520             com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder>
3521         dnsSettingsBuilder_;
3522     /**
3523      *
3524      *
3525      * <pre>
3526      * Settings controlling the DNS configuration of the `Registration`. You
3527      * cannot update these with the `UpdateRegistration` method. To update these
3528      * settings, use the `ConfigureDnsSettings` method.
3529      * </pre>
3530      *
3531      * <code>.google.cloud.domains.v1beta1.DnsSettings dns_settings = 11;</code>
3532      *
3533      * @return Whether the dnsSettings field is set.
3534      */
hasDnsSettings()3535     public boolean hasDnsSettings() {
3536       return ((bitField0_ & 0x00000100) != 0);
3537     }
3538     /**
3539      *
3540      *
3541      * <pre>
3542      * Settings controlling the DNS configuration of the `Registration`. You
3543      * cannot update these with the `UpdateRegistration` method. To update these
3544      * settings, use the `ConfigureDnsSettings` method.
3545      * </pre>
3546      *
3547      * <code>.google.cloud.domains.v1beta1.DnsSettings dns_settings = 11;</code>
3548      *
3549      * @return The dnsSettings.
3550      */
getDnsSettings()3551     public com.google.cloud.domains.v1beta1.DnsSettings getDnsSettings() {
3552       if (dnsSettingsBuilder_ == null) {
3553         return dnsSettings_ == null
3554             ? com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance()
3555             : dnsSettings_;
3556       } else {
3557         return dnsSettingsBuilder_.getMessage();
3558       }
3559     }
3560     /**
3561      *
3562      *
3563      * <pre>
3564      * Settings controlling the DNS configuration of the `Registration`. You
3565      * cannot update these with the `UpdateRegistration` method. To update these
3566      * settings, use the `ConfigureDnsSettings` method.
3567      * </pre>
3568      *
3569      * <code>.google.cloud.domains.v1beta1.DnsSettings dns_settings = 11;</code>
3570      */
setDnsSettings(com.google.cloud.domains.v1beta1.DnsSettings value)3571     public Builder setDnsSettings(com.google.cloud.domains.v1beta1.DnsSettings value) {
3572       if (dnsSettingsBuilder_ == null) {
3573         if (value == null) {
3574           throw new NullPointerException();
3575         }
3576         dnsSettings_ = value;
3577       } else {
3578         dnsSettingsBuilder_.setMessage(value);
3579       }
3580       bitField0_ |= 0x00000100;
3581       onChanged();
3582       return this;
3583     }
3584     /**
3585      *
3586      *
3587      * <pre>
3588      * Settings controlling the DNS configuration of the `Registration`. You
3589      * cannot update these with the `UpdateRegistration` method. To update these
3590      * settings, use the `ConfigureDnsSettings` method.
3591      * </pre>
3592      *
3593      * <code>.google.cloud.domains.v1beta1.DnsSettings dns_settings = 11;</code>
3594      */
setDnsSettings( com.google.cloud.domains.v1beta1.DnsSettings.Builder builderForValue)3595     public Builder setDnsSettings(
3596         com.google.cloud.domains.v1beta1.DnsSettings.Builder builderForValue) {
3597       if (dnsSettingsBuilder_ == null) {
3598         dnsSettings_ = builderForValue.build();
3599       } else {
3600         dnsSettingsBuilder_.setMessage(builderForValue.build());
3601       }
3602       bitField0_ |= 0x00000100;
3603       onChanged();
3604       return this;
3605     }
3606     /**
3607      *
3608      *
3609      * <pre>
3610      * Settings controlling the DNS configuration of the `Registration`. You
3611      * cannot update these with the `UpdateRegistration` method. To update these
3612      * settings, use the `ConfigureDnsSettings` method.
3613      * </pre>
3614      *
3615      * <code>.google.cloud.domains.v1beta1.DnsSettings dns_settings = 11;</code>
3616      */
mergeDnsSettings(com.google.cloud.domains.v1beta1.DnsSettings value)3617     public Builder mergeDnsSettings(com.google.cloud.domains.v1beta1.DnsSettings value) {
3618       if (dnsSettingsBuilder_ == null) {
3619         if (((bitField0_ & 0x00000100) != 0)
3620             && dnsSettings_ != null
3621             && dnsSettings_ != com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance()) {
3622           getDnsSettingsBuilder().mergeFrom(value);
3623         } else {
3624           dnsSettings_ = value;
3625         }
3626       } else {
3627         dnsSettingsBuilder_.mergeFrom(value);
3628       }
3629       bitField0_ |= 0x00000100;
3630       onChanged();
3631       return this;
3632     }
3633     /**
3634      *
3635      *
3636      * <pre>
3637      * Settings controlling the DNS configuration of the `Registration`. You
3638      * cannot update these with the `UpdateRegistration` method. To update these
3639      * settings, use the `ConfigureDnsSettings` method.
3640      * </pre>
3641      *
3642      * <code>.google.cloud.domains.v1beta1.DnsSettings dns_settings = 11;</code>
3643      */
clearDnsSettings()3644     public Builder clearDnsSettings() {
3645       bitField0_ = (bitField0_ & ~0x00000100);
3646       dnsSettings_ = null;
3647       if (dnsSettingsBuilder_ != null) {
3648         dnsSettingsBuilder_.dispose();
3649         dnsSettingsBuilder_ = null;
3650       }
3651       onChanged();
3652       return this;
3653     }
3654     /**
3655      *
3656      *
3657      * <pre>
3658      * Settings controlling the DNS configuration of the `Registration`. You
3659      * cannot update these with the `UpdateRegistration` method. To update these
3660      * settings, use the `ConfigureDnsSettings` method.
3661      * </pre>
3662      *
3663      * <code>.google.cloud.domains.v1beta1.DnsSettings dns_settings = 11;</code>
3664      */
getDnsSettingsBuilder()3665     public com.google.cloud.domains.v1beta1.DnsSettings.Builder getDnsSettingsBuilder() {
3666       bitField0_ |= 0x00000100;
3667       onChanged();
3668       return getDnsSettingsFieldBuilder().getBuilder();
3669     }
3670     /**
3671      *
3672      *
3673      * <pre>
3674      * Settings controlling the DNS configuration of the `Registration`. You
3675      * cannot update these with the `UpdateRegistration` method. To update these
3676      * settings, use the `ConfigureDnsSettings` method.
3677      * </pre>
3678      *
3679      * <code>.google.cloud.domains.v1beta1.DnsSettings dns_settings = 11;</code>
3680      */
getDnsSettingsOrBuilder()3681     public com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder getDnsSettingsOrBuilder() {
3682       if (dnsSettingsBuilder_ != null) {
3683         return dnsSettingsBuilder_.getMessageOrBuilder();
3684       } else {
3685         return dnsSettings_ == null
3686             ? com.google.cloud.domains.v1beta1.DnsSettings.getDefaultInstance()
3687             : dnsSettings_;
3688       }
3689     }
3690     /**
3691      *
3692      *
3693      * <pre>
3694      * Settings controlling the DNS configuration of the `Registration`. You
3695      * cannot update these with the `UpdateRegistration` method. To update these
3696      * settings, use the `ConfigureDnsSettings` method.
3697      * </pre>
3698      *
3699      * <code>.google.cloud.domains.v1beta1.DnsSettings dns_settings = 11;</code>
3700      */
3701     private com.google.protobuf.SingleFieldBuilderV3<
3702             com.google.cloud.domains.v1beta1.DnsSettings,
3703             com.google.cloud.domains.v1beta1.DnsSettings.Builder,
3704             com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder>
getDnsSettingsFieldBuilder()3705         getDnsSettingsFieldBuilder() {
3706       if (dnsSettingsBuilder_ == null) {
3707         dnsSettingsBuilder_ =
3708             new com.google.protobuf.SingleFieldBuilderV3<
3709                 com.google.cloud.domains.v1beta1.DnsSettings,
3710                 com.google.cloud.domains.v1beta1.DnsSettings.Builder,
3711                 com.google.cloud.domains.v1beta1.DnsSettingsOrBuilder>(
3712                 getDnsSettings(), getParentForChildren(), isClean());
3713         dnsSettings_ = null;
3714       }
3715       return dnsSettingsBuilder_;
3716     }
3717 
3718     private com.google.cloud.domains.v1beta1.ContactSettings contactSettings_;
3719     private com.google.protobuf.SingleFieldBuilderV3<
3720             com.google.cloud.domains.v1beta1.ContactSettings,
3721             com.google.cloud.domains.v1beta1.ContactSettings.Builder,
3722             com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder>
3723         contactSettingsBuilder_;
3724     /**
3725      *
3726      *
3727      * <pre>
3728      * Required. Settings for contact information linked to the `Registration`. You cannot
3729      * update these with the `UpdateRegistration` method. To update these
3730      * settings, use the `ConfigureContactSettings` method.
3731      * </pre>
3732      *
3733      * <code>
3734      * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED];
3735      * </code>
3736      *
3737      * @return Whether the contactSettings field is set.
3738      */
hasContactSettings()3739     public boolean hasContactSettings() {
3740       return ((bitField0_ & 0x00000200) != 0);
3741     }
3742     /**
3743      *
3744      *
3745      * <pre>
3746      * Required. Settings for contact information linked to the `Registration`. You cannot
3747      * update these with the `UpdateRegistration` method. To update these
3748      * settings, use the `ConfigureContactSettings` method.
3749      * </pre>
3750      *
3751      * <code>
3752      * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED];
3753      * </code>
3754      *
3755      * @return The contactSettings.
3756      */
getContactSettings()3757     public com.google.cloud.domains.v1beta1.ContactSettings getContactSettings() {
3758       if (contactSettingsBuilder_ == null) {
3759         return contactSettings_ == null
3760             ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance()
3761             : contactSettings_;
3762       } else {
3763         return contactSettingsBuilder_.getMessage();
3764       }
3765     }
3766     /**
3767      *
3768      *
3769      * <pre>
3770      * Required. Settings for contact information linked to the `Registration`. You cannot
3771      * update these with the `UpdateRegistration` method. To update these
3772      * settings, use the `ConfigureContactSettings` method.
3773      * </pre>
3774      *
3775      * <code>
3776      * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED];
3777      * </code>
3778      */
setContactSettings(com.google.cloud.domains.v1beta1.ContactSettings value)3779     public Builder setContactSettings(com.google.cloud.domains.v1beta1.ContactSettings value) {
3780       if (contactSettingsBuilder_ == null) {
3781         if (value == null) {
3782           throw new NullPointerException();
3783         }
3784         contactSettings_ = value;
3785       } else {
3786         contactSettingsBuilder_.setMessage(value);
3787       }
3788       bitField0_ |= 0x00000200;
3789       onChanged();
3790       return this;
3791     }
3792     /**
3793      *
3794      *
3795      * <pre>
3796      * Required. Settings for contact information linked to the `Registration`. You cannot
3797      * update these with the `UpdateRegistration` method. To update these
3798      * settings, use the `ConfigureContactSettings` method.
3799      * </pre>
3800      *
3801      * <code>
3802      * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED];
3803      * </code>
3804      */
setContactSettings( com.google.cloud.domains.v1beta1.ContactSettings.Builder builderForValue)3805     public Builder setContactSettings(
3806         com.google.cloud.domains.v1beta1.ContactSettings.Builder builderForValue) {
3807       if (contactSettingsBuilder_ == null) {
3808         contactSettings_ = builderForValue.build();
3809       } else {
3810         contactSettingsBuilder_.setMessage(builderForValue.build());
3811       }
3812       bitField0_ |= 0x00000200;
3813       onChanged();
3814       return this;
3815     }
3816     /**
3817      *
3818      *
3819      * <pre>
3820      * Required. Settings for contact information linked to the `Registration`. You cannot
3821      * update these with the `UpdateRegistration` method. To update these
3822      * settings, use the `ConfigureContactSettings` method.
3823      * </pre>
3824      *
3825      * <code>
3826      * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED];
3827      * </code>
3828      */
mergeContactSettings(com.google.cloud.domains.v1beta1.ContactSettings value)3829     public Builder mergeContactSettings(com.google.cloud.domains.v1beta1.ContactSettings value) {
3830       if (contactSettingsBuilder_ == null) {
3831         if (((bitField0_ & 0x00000200) != 0)
3832             && contactSettings_ != null
3833             && contactSettings_
3834                 != com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance()) {
3835           getContactSettingsBuilder().mergeFrom(value);
3836         } else {
3837           contactSettings_ = value;
3838         }
3839       } else {
3840         contactSettingsBuilder_.mergeFrom(value);
3841       }
3842       bitField0_ |= 0x00000200;
3843       onChanged();
3844       return this;
3845     }
3846     /**
3847      *
3848      *
3849      * <pre>
3850      * Required. Settings for contact information linked to the `Registration`. You cannot
3851      * update these with the `UpdateRegistration` method. To update these
3852      * settings, use the `ConfigureContactSettings` method.
3853      * </pre>
3854      *
3855      * <code>
3856      * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED];
3857      * </code>
3858      */
clearContactSettings()3859     public Builder clearContactSettings() {
3860       bitField0_ = (bitField0_ & ~0x00000200);
3861       contactSettings_ = null;
3862       if (contactSettingsBuilder_ != null) {
3863         contactSettingsBuilder_.dispose();
3864         contactSettingsBuilder_ = null;
3865       }
3866       onChanged();
3867       return this;
3868     }
3869     /**
3870      *
3871      *
3872      * <pre>
3873      * Required. Settings for contact information linked to the `Registration`. You cannot
3874      * update these with the `UpdateRegistration` method. To update these
3875      * settings, use the `ConfigureContactSettings` method.
3876      * </pre>
3877      *
3878      * <code>
3879      * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED];
3880      * </code>
3881      */
getContactSettingsBuilder()3882     public com.google.cloud.domains.v1beta1.ContactSettings.Builder getContactSettingsBuilder() {
3883       bitField0_ |= 0x00000200;
3884       onChanged();
3885       return getContactSettingsFieldBuilder().getBuilder();
3886     }
3887     /**
3888      *
3889      *
3890      * <pre>
3891      * Required. Settings for contact information linked to the `Registration`. You cannot
3892      * update these with the `UpdateRegistration` method. To update these
3893      * settings, use the `ConfigureContactSettings` method.
3894      * </pre>
3895      *
3896      * <code>
3897      * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED];
3898      * </code>
3899      */
getContactSettingsOrBuilder()3900     public com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder getContactSettingsOrBuilder() {
3901       if (contactSettingsBuilder_ != null) {
3902         return contactSettingsBuilder_.getMessageOrBuilder();
3903       } else {
3904         return contactSettings_ == null
3905             ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance()
3906             : contactSettings_;
3907       }
3908     }
3909     /**
3910      *
3911      *
3912      * <pre>
3913      * Required. Settings for contact information linked to the `Registration`. You cannot
3914      * update these with the `UpdateRegistration` method. To update these
3915      * settings, use the `ConfigureContactSettings` method.
3916      * </pre>
3917      *
3918      * <code>
3919      * .google.cloud.domains.v1beta1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED];
3920      * </code>
3921      */
3922     private com.google.protobuf.SingleFieldBuilderV3<
3923             com.google.cloud.domains.v1beta1.ContactSettings,
3924             com.google.cloud.domains.v1beta1.ContactSettings.Builder,
3925             com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder>
getContactSettingsFieldBuilder()3926         getContactSettingsFieldBuilder() {
3927       if (contactSettingsBuilder_ == null) {
3928         contactSettingsBuilder_ =
3929             new com.google.protobuf.SingleFieldBuilderV3<
3930                 com.google.cloud.domains.v1beta1.ContactSettings,
3931                 com.google.cloud.domains.v1beta1.ContactSettings.Builder,
3932                 com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder>(
3933                 getContactSettings(), getParentForChildren(), isClean());
3934         contactSettings_ = null;
3935       }
3936       return contactSettingsBuilder_;
3937     }
3938 
3939     private com.google.cloud.domains.v1beta1.ContactSettings pendingContactSettings_;
3940     private com.google.protobuf.SingleFieldBuilderV3<
3941             com.google.cloud.domains.v1beta1.ContactSettings,
3942             com.google.cloud.domains.v1beta1.ContactSettings.Builder,
3943             com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder>
3944         pendingContactSettingsBuilder_;
3945     /**
3946      *
3947      *
3948      * <pre>
3949      * Output only. Pending contact settings for the `Registration`. Updates to the
3950      * `contact_settings` field that change its `registrant_contact` or `privacy`
3951      * fields require email confirmation by the `registrant_contact`
3952      * before taking effect. This field is set only if there are pending updates
3953      * to the `contact_settings` that have not been confirmed. To confirm the
3954      * changes, the `registrant_contact` must follow the instructions in the
3955      * email they receive.
3956      * </pre>
3957      *
3958      * <code>
3959      * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
3960      * </code>
3961      *
3962      * @return Whether the pendingContactSettings field is set.
3963      */
hasPendingContactSettings()3964     public boolean hasPendingContactSettings() {
3965       return ((bitField0_ & 0x00000400) != 0);
3966     }
3967     /**
3968      *
3969      *
3970      * <pre>
3971      * Output only. Pending contact settings for the `Registration`. Updates to the
3972      * `contact_settings` field that change its `registrant_contact` or `privacy`
3973      * fields require email confirmation by the `registrant_contact`
3974      * before taking effect. This field is set only if there are pending updates
3975      * to the `contact_settings` that have not been confirmed. To confirm the
3976      * changes, the `registrant_contact` must follow the instructions in the
3977      * email they receive.
3978      * </pre>
3979      *
3980      * <code>
3981      * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
3982      * </code>
3983      *
3984      * @return The pendingContactSettings.
3985      */
getPendingContactSettings()3986     public com.google.cloud.domains.v1beta1.ContactSettings getPendingContactSettings() {
3987       if (pendingContactSettingsBuilder_ == null) {
3988         return pendingContactSettings_ == null
3989             ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance()
3990             : pendingContactSettings_;
3991       } else {
3992         return pendingContactSettingsBuilder_.getMessage();
3993       }
3994     }
3995     /**
3996      *
3997      *
3998      * <pre>
3999      * Output only. Pending contact settings for the `Registration`. Updates to the
4000      * `contact_settings` field that change its `registrant_contact` or `privacy`
4001      * fields require email confirmation by the `registrant_contact`
4002      * before taking effect. This field is set only if there are pending updates
4003      * to the `contact_settings` that have not been confirmed. To confirm the
4004      * changes, the `registrant_contact` must follow the instructions in the
4005      * email they receive.
4006      * </pre>
4007      *
4008      * <code>
4009      * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4010      * </code>
4011      */
setPendingContactSettings( com.google.cloud.domains.v1beta1.ContactSettings value)4012     public Builder setPendingContactSettings(
4013         com.google.cloud.domains.v1beta1.ContactSettings value) {
4014       if (pendingContactSettingsBuilder_ == null) {
4015         if (value == null) {
4016           throw new NullPointerException();
4017         }
4018         pendingContactSettings_ = value;
4019       } else {
4020         pendingContactSettingsBuilder_.setMessage(value);
4021       }
4022       bitField0_ |= 0x00000400;
4023       onChanged();
4024       return this;
4025     }
4026     /**
4027      *
4028      *
4029      * <pre>
4030      * Output only. Pending contact settings for the `Registration`. Updates to the
4031      * `contact_settings` field that change its `registrant_contact` or `privacy`
4032      * fields require email confirmation by the `registrant_contact`
4033      * before taking effect. This field is set only if there are pending updates
4034      * to the `contact_settings` that have not been confirmed. To confirm the
4035      * changes, the `registrant_contact` must follow the instructions in the
4036      * email they receive.
4037      * </pre>
4038      *
4039      * <code>
4040      * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4041      * </code>
4042      */
setPendingContactSettings( com.google.cloud.domains.v1beta1.ContactSettings.Builder builderForValue)4043     public Builder setPendingContactSettings(
4044         com.google.cloud.domains.v1beta1.ContactSettings.Builder builderForValue) {
4045       if (pendingContactSettingsBuilder_ == null) {
4046         pendingContactSettings_ = builderForValue.build();
4047       } else {
4048         pendingContactSettingsBuilder_.setMessage(builderForValue.build());
4049       }
4050       bitField0_ |= 0x00000400;
4051       onChanged();
4052       return this;
4053     }
4054     /**
4055      *
4056      *
4057      * <pre>
4058      * Output only. Pending contact settings for the `Registration`. Updates to the
4059      * `contact_settings` field that change its `registrant_contact` or `privacy`
4060      * fields require email confirmation by the `registrant_contact`
4061      * before taking effect. This field is set only if there are pending updates
4062      * to the `contact_settings` that have not been confirmed. To confirm the
4063      * changes, the `registrant_contact` must follow the instructions in the
4064      * email they receive.
4065      * </pre>
4066      *
4067      * <code>
4068      * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4069      * </code>
4070      */
mergePendingContactSettings( com.google.cloud.domains.v1beta1.ContactSettings value)4071     public Builder mergePendingContactSettings(
4072         com.google.cloud.domains.v1beta1.ContactSettings value) {
4073       if (pendingContactSettingsBuilder_ == null) {
4074         if (((bitField0_ & 0x00000400) != 0)
4075             && pendingContactSettings_ != null
4076             && pendingContactSettings_
4077                 != com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance()) {
4078           getPendingContactSettingsBuilder().mergeFrom(value);
4079         } else {
4080           pendingContactSettings_ = value;
4081         }
4082       } else {
4083         pendingContactSettingsBuilder_.mergeFrom(value);
4084       }
4085       bitField0_ |= 0x00000400;
4086       onChanged();
4087       return this;
4088     }
4089     /**
4090      *
4091      *
4092      * <pre>
4093      * Output only. Pending contact settings for the `Registration`. Updates to the
4094      * `contact_settings` field that change its `registrant_contact` or `privacy`
4095      * fields require email confirmation by the `registrant_contact`
4096      * before taking effect. This field is set only if there are pending updates
4097      * to the `contact_settings` that have not been confirmed. To confirm the
4098      * changes, the `registrant_contact` must follow the instructions in the
4099      * email they receive.
4100      * </pre>
4101      *
4102      * <code>
4103      * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4104      * </code>
4105      */
clearPendingContactSettings()4106     public Builder clearPendingContactSettings() {
4107       bitField0_ = (bitField0_ & ~0x00000400);
4108       pendingContactSettings_ = null;
4109       if (pendingContactSettingsBuilder_ != null) {
4110         pendingContactSettingsBuilder_.dispose();
4111         pendingContactSettingsBuilder_ = null;
4112       }
4113       onChanged();
4114       return this;
4115     }
4116     /**
4117      *
4118      *
4119      * <pre>
4120      * Output only. Pending contact settings for the `Registration`. Updates to the
4121      * `contact_settings` field that change its `registrant_contact` or `privacy`
4122      * fields require email confirmation by the `registrant_contact`
4123      * before taking effect. This field is set only if there are pending updates
4124      * to the `contact_settings` that have not been confirmed. To confirm the
4125      * changes, the `registrant_contact` must follow the instructions in the
4126      * email they receive.
4127      * </pre>
4128      *
4129      * <code>
4130      * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4131      * </code>
4132      */
4133     public com.google.cloud.domains.v1beta1.ContactSettings.Builder
getPendingContactSettingsBuilder()4134         getPendingContactSettingsBuilder() {
4135       bitField0_ |= 0x00000400;
4136       onChanged();
4137       return getPendingContactSettingsFieldBuilder().getBuilder();
4138     }
4139     /**
4140      *
4141      *
4142      * <pre>
4143      * Output only. Pending contact settings for the `Registration`. Updates to the
4144      * `contact_settings` field that change its `registrant_contact` or `privacy`
4145      * fields require email confirmation by the `registrant_contact`
4146      * before taking effect. This field is set only if there are pending updates
4147      * to the `contact_settings` that have not been confirmed. To confirm the
4148      * changes, the `registrant_contact` must follow the instructions in the
4149      * email they receive.
4150      * </pre>
4151      *
4152      * <code>
4153      * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4154      * </code>
4155      */
4156     public com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder
getPendingContactSettingsOrBuilder()4157         getPendingContactSettingsOrBuilder() {
4158       if (pendingContactSettingsBuilder_ != null) {
4159         return pendingContactSettingsBuilder_.getMessageOrBuilder();
4160       } else {
4161         return pendingContactSettings_ == null
4162             ? com.google.cloud.domains.v1beta1.ContactSettings.getDefaultInstance()
4163             : pendingContactSettings_;
4164       }
4165     }
4166     /**
4167      *
4168      *
4169      * <pre>
4170      * Output only. Pending contact settings for the `Registration`. Updates to the
4171      * `contact_settings` field that change its `registrant_contact` or `privacy`
4172      * fields require email confirmation by the `registrant_contact`
4173      * before taking effect. This field is set only if there are pending updates
4174      * to the `contact_settings` that have not been confirmed. To confirm the
4175      * changes, the `registrant_contact` must follow the instructions in the
4176      * email they receive.
4177      * </pre>
4178      *
4179      * <code>
4180      * .google.cloud.domains.v1beta1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4181      * </code>
4182      */
4183     private com.google.protobuf.SingleFieldBuilderV3<
4184             com.google.cloud.domains.v1beta1.ContactSettings,
4185             com.google.cloud.domains.v1beta1.ContactSettings.Builder,
4186             com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder>
getPendingContactSettingsFieldBuilder()4187         getPendingContactSettingsFieldBuilder() {
4188       if (pendingContactSettingsBuilder_ == null) {
4189         pendingContactSettingsBuilder_ =
4190             new com.google.protobuf.SingleFieldBuilderV3<
4191                 com.google.cloud.domains.v1beta1.ContactSettings,
4192                 com.google.cloud.domains.v1beta1.ContactSettings.Builder,
4193                 com.google.cloud.domains.v1beta1.ContactSettingsOrBuilder>(
4194                 getPendingContactSettings(), getParentForChildren(), isClean());
4195         pendingContactSettings_ = null;
4196       }
4197       return pendingContactSettingsBuilder_;
4198     }
4199 
4200     private java.util.List<java.lang.Integer> supportedPrivacy_ = java.util.Collections.emptyList();
4201 
ensureSupportedPrivacyIsMutable()4202     private void ensureSupportedPrivacyIsMutable() {
4203       if (!((bitField0_ & 0x00000800) != 0)) {
4204         supportedPrivacy_ = new java.util.ArrayList<java.lang.Integer>(supportedPrivacy_);
4205         bitField0_ |= 0x00000800;
4206       }
4207     }
4208     /**
4209      *
4210      *
4211      * <pre>
4212      * Output only. Set of options for the `contact_settings.privacy` field that this
4213      * `Registration` supports.
4214      * </pre>
4215      *
4216      * <code>
4217      * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4218      * </code>
4219      *
4220      * @return A list containing the supportedPrivacy.
4221      */
4222     public java.util.List<com.google.cloud.domains.v1beta1.ContactPrivacy>
getSupportedPrivacyList()4223         getSupportedPrivacyList() {
4224       return new com.google.protobuf.Internal.ListAdapter<
4225           java.lang.Integer, com.google.cloud.domains.v1beta1.ContactPrivacy>(
4226           supportedPrivacy_, supportedPrivacy_converter_);
4227     }
4228     /**
4229      *
4230      *
4231      * <pre>
4232      * Output only. Set of options for the `contact_settings.privacy` field that this
4233      * `Registration` supports.
4234      * </pre>
4235      *
4236      * <code>
4237      * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4238      * </code>
4239      *
4240      * @return The count of supportedPrivacy.
4241      */
getSupportedPrivacyCount()4242     public int getSupportedPrivacyCount() {
4243       return supportedPrivacy_.size();
4244     }
4245     /**
4246      *
4247      *
4248      * <pre>
4249      * Output only. Set of options for the `contact_settings.privacy` field that this
4250      * `Registration` supports.
4251      * </pre>
4252      *
4253      * <code>
4254      * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4255      * </code>
4256      *
4257      * @param index The index of the element to return.
4258      * @return The supportedPrivacy at the given index.
4259      */
getSupportedPrivacy(int index)4260     public com.google.cloud.domains.v1beta1.ContactPrivacy getSupportedPrivacy(int index) {
4261       return supportedPrivacy_converter_.convert(supportedPrivacy_.get(index));
4262     }
4263     /**
4264      *
4265      *
4266      * <pre>
4267      * Output only. Set of options for the `contact_settings.privacy` field that this
4268      * `Registration` supports.
4269      * </pre>
4270      *
4271      * <code>
4272      * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4273      * </code>
4274      *
4275      * @param index The index to set the value at.
4276      * @param value The supportedPrivacy to set.
4277      * @return This builder for chaining.
4278      */
setSupportedPrivacy( int index, com.google.cloud.domains.v1beta1.ContactPrivacy value)4279     public Builder setSupportedPrivacy(
4280         int index, com.google.cloud.domains.v1beta1.ContactPrivacy value) {
4281       if (value == null) {
4282         throw new NullPointerException();
4283       }
4284       ensureSupportedPrivacyIsMutable();
4285       supportedPrivacy_.set(index, value.getNumber());
4286       onChanged();
4287       return this;
4288     }
4289     /**
4290      *
4291      *
4292      * <pre>
4293      * Output only. Set of options for the `contact_settings.privacy` field that this
4294      * `Registration` supports.
4295      * </pre>
4296      *
4297      * <code>
4298      * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4299      * </code>
4300      *
4301      * @param value The supportedPrivacy to add.
4302      * @return This builder for chaining.
4303      */
addSupportedPrivacy(com.google.cloud.domains.v1beta1.ContactPrivacy value)4304     public Builder addSupportedPrivacy(com.google.cloud.domains.v1beta1.ContactPrivacy value) {
4305       if (value == null) {
4306         throw new NullPointerException();
4307       }
4308       ensureSupportedPrivacyIsMutable();
4309       supportedPrivacy_.add(value.getNumber());
4310       onChanged();
4311       return this;
4312     }
4313     /**
4314      *
4315      *
4316      * <pre>
4317      * Output only. Set of options for the `contact_settings.privacy` field that this
4318      * `Registration` supports.
4319      * </pre>
4320      *
4321      * <code>
4322      * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4323      * </code>
4324      *
4325      * @param values The supportedPrivacy to add.
4326      * @return This builder for chaining.
4327      */
addAllSupportedPrivacy( java.lang.Iterable<? extends com.google.cloud.domains.v1beta1.ContactPrivacy> values)4328     public Builder addAllSupportedPrivacy(
4329         java.lang.Iterable<? extends com.google.cloud.domains.v1beta1.ContactPrivacy> values) {
4330       ensureSupportedPrivacyIsMutable();
4331       for (com.google.cloud.domains.v1beta1.ContactPrivacy value : values) {
4332         supportedPrivacy_.add(value.getNumber());
4333       }
4334       onChanged();
4335       return this;
4336     }
4337     /**
4338      *
4339      *
4340      * <pre>
4341      * Output only. Set of options for the `contact_settings.privacy` field that this
4342      * `Registration` supports.
4343      * </pre>
4344      *
4345      * <code>
4346      * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4347      * </code>
4348      *
4349      * @return This builder for chaining.
4350      */
clearSupportedPrivacy()4351     public Builder clearSupportedPrivacy() {
4352       supportedPrivacy_ = java.util.Collections.emptyList();
4353       bitField0_ = (bitField0_ & ~0x00000800);
4354       onChanged();
4355       return this;
4356     }
4357     /**
4358      *
4359      *
4360      * <pre>
4361      * Output only. Set of options for the `contact_settings.privacy` field that this
4362      * `Registration` supports.
4363      * </pre>
4364      *
4365      * <code>
4366      * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4367      * </code>
4368      *
4369      * @return A list containing the enum numeric values on the wire for supportedPrivacy.
4370      */
getSupportedPrivacyValueList()4371     public java.util.List<java.lang.Integer> getSupportedPrivacyValueList() {
4372       return java.util.Collections.unmodifiableList(supportedPrivacy_);
4373     }
4374     /**
4375      *
4376      *
4377      * <pre>
4378      * Output only. Set of options for the `contact_settings.privacy` field that this
4379      * `Registration` supports.
4380      * </pre>
4381      *
4382      * <code>
4383      * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4384      * </code>
4385      *
4386      * @param index The index of the value to return.
4387      * @return The enum numeric value on the wire of supportedPrivacy at the given index.
4388      */
getSupportedPrivacyValue(int index)4389     public int getSupportedPrivacyValue(int index) {
4390       return supportedPrivacy_.get(index);
4391     }
4392     /**
4393      *
4394      *
4395      * <pre>
4396      * Output only. Set of options for the `contact_settings.privacy` field that this
4397      * `Registration` supports.
4398      * </pre>
4399      *
4400      * <code>
4401      * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4402      * </code>
4403      *
4404      * @param index The index to set the value at.
4405      * @param value The enum numeric value on the wire for supportedPrivacy to set.
4406      * @return This builder for chaining.
4407      */
setSupportedPrivacyValue(int index, int value)4408     public Builder setSupportedPrivacyValue(int index, int value) {
4409       ensureSupportedPrivacyIsMutable();
4410       supportedPrivacy_.set(index, value);
4411       onChanged();
4412       return this;
4413     }
4414     /**
4415      *
4416      *
4417      * <pre>
4418      * Output only. Set of options for the `contact_settings.privacy` field that this
4419      * `Registration` supports.
4420      * </pre>
4421      *
4422      * <code>
4423      * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4424      * </code>
4425      *
4426      * @param value The enum numeric value on the wire for supportedPrivacy to add.
4427      * @return This builder for chaining.
4428      */
addSupportedPrivacyValue(int value)4429     public Builder addSupportedPrivacyValue(int value) {
4430       ensureSupportedPrivacyIsMutable();
4431       supportedPrivacy_.add(value);
4432       onChanged();
4433       return this;
4434     }
4435     /**
4436      *
4437      *
4438      * <pre>
4439      * Output only. Set of options for the `contact_settings.privacy` field that this
4440      * `Registration` supports.
4441      * </pre>
4442      *
4443      * <code>
4444      * repeated .google.cloud.domains.v1beta1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4445      * </code>
4446      *
4447      * @param values The enum numeric values on the wire for supportedPrivacy to add.
4448      * @return This builder for chaining.
4449      */
addAllSupportedPrivacyValue(java.lang.Iterable<java.lang.Integer> values)4450     public Builder addAllSupportedPrivacyValue(java.lang.Iterable<java.lang.Integer> values) {
4451       ensureSupportedPrivacyIsMutable();
4452       for (int value : values) {
4453         supportedPrivacy_.add(value);
4454       }
4455       onChanged();
4456       return this;
4457     }
4458 
4459     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)4460     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
4461       return super.setUnknownFields(unknownFields);
4462     }
4463 
4464     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4465     public final Builder mergeUnknownFields(
4466         final com.google.protobuf.UnknownFieldSet unknownFields) {
4467       return super.mergeUnknownFields(unknownFields);
4468     }
4469 
4470     // @@protoc_insertion_point(builder_scope:google.cloud.domains.v1beta1.Registration)
4471   }
4472 
4473   // @@protoc_insertion_point(class_scope:google.cloud.domains.v1beta1.Registration)
4474   private static final com.google.cloud.domains.v1beta1.Registration DEFAULT_INSTANCE;
4475 
4476   static {
4477     DEFAULT_INSTANCE = new com.google.cloud.domains.v1beta1.Registration();
4478   }
4479 
getDefaultInstance()4480   public static com.google.cloud.domains.v1beta1.Registration getDefaultInstance() {
4481     return DEFAULT_INSTANCE;
4482   }
4483 
4484   private static final com.google.protobuf.Parser<Registration> PARSER =
4485       new com.google.protobuf.AbstractParser<Registration>() {
4486         @java.lang.Override
4487         public Registration parsePartialFrom(
4488             com.google.protobuf.CodedInputStream input,
4489             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4490             throws com.google.protobuf.InvalidProtocolBufferException {
4491           Builder builder = newBuilder();
4492           try {
4493             builder.mergeFrom(input, extensionRegistry);
4494           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4495             throw e.setUnfinishedMessage(builder.buildPartial());
4496           } catch (com.google.protobuf.UninitializedMessageException e) {
4497             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4498           } catch (java.io.IOException e) {
4499             throw new com.google.protobuf.InvalidProtocolBufferException(e)
4500                 .setUnfinishedMessage(builder.buildPartial());
4501           }
4502           return builder.buildPartial();
4503         }
4504       };
4505 
parser()4506   public static com.google.protobuf.Parser<Registration> parser() {
4507     return PARSER;
4508   }
4509 
4510   @java.lang.Override
getParserForType()4511   public com.google.protobuf.Parser<Registration> getParserForType() {
4512     return PARSER;
4513   }
4514 
4515   @java.lang.Override
getDefaultInstanceForType()4516   public com.google.cloud.domains.v1beta1.Registration getDefaultInstanceForType() {
4517     return DEFAULT_INSTANCE;
4518   }
4519 }
4520