• 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/channel/v1/customers.proto
18 
19 package com.google.cloud.channel.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Entity representing a customer of a reseller or distributor.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.channel.v1.Customer}
29  */
30 public final class Customer extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.Customer)
33     CustomerOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use Customer.newBuilder() to construct.
Customer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private Customer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
Customer()40   private Customer() {
41     name_ = "";
42     orgDisplayName_ = "";
43     alternateEmail_ = "";
44     domain_ = "";
45     cloudIdentityId_ = "";
46     languageCode_ = "";
47     channelPartnerId_ = "";
48     correlationId_ = "";
49   }
50 
51   @java.lang.Override
52   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)53   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
54     return new Customer();
55   }
56 
57   @java.lang.Override
getUnknownFields()58   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
59     return this.unknownFields;
60   }
61 
getDescriptor()62   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
63     return com.google.cloud.channel.v1.CustomersProto
64         .internal_static_google_cloud_channel_v1_Customer_descriptor;
65   }
66 
67   @java.lang.Override
68   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()69       internalGetFieldAccessorTable() {
70     return com.google.cloud.channel.v1.CustomersProto
71         .internal_static_google_cloud_channel_v1_Customer_fieldAccessorTable
72         .ensureFieldAccessorsInitialized(
73             com.google.cloud.channel.v1.Customer.class,
74             com.google.cloud.channel.v1.Customer.Builder.class);
75   }
76 
77   public static final int NAME_FIELD_NUMBER = 1;
78 
79   @SuppressWarnings("serial")
80   private volatile java.lang.Object name_ = "";
81   /**
82    *
83    *
84    * <pre>
85    * Output only. Resource name of the customer.
86    * Format: accounts/{account_id}/customers/{customer_id}
87    * </pre>
88    *
89    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
90    *
91    * @return The name.
92    */
93   @java.lang.Override
getName()94   public java.lang.String getName() {
95     java.lang.Object ref = name_;
96     if (ref instanceof java.lang.String) {
97       return (java.lang.String) ref;
98     } else {
99       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
100       java.lang.String s = bs.toStringUtf8();
101       name_ = s;
102       return s;
103     }
104   }
105   /**
106    *
107    *
108    * <pre>
109    * Output only. Resource name of the customer.
110    * Format: accounts/{account_id}/customers/{customer_id}
111    * </pre>
112    *
113    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
114    *
115    * @return The bytes for name.
116    */
117   @java.lang.Override
getNameBytes()118   public com.google.protobuf.ByteString getNameBytes() {
119     java.lang.Object ref = name_;
120     if (ref instanceof java.lang.String) {
121       com.google.protobuf.ByteString b =
122           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
123       name_ = b;
124       return b;
125     } else {
126       return (com.google.protobuf.ByteString) ref;
127     }
128   }
129 
130   public static final int ORG_DISPLAY_NAME_FIELD_NUMBER = 2;
131 
132   @SuppressWarnings("serial")
133   private volatile java.lang.Object orgDisplayName_ = "";
134   /**
135    *
136    *
137    * <pre>
138    * Required. Name of the organization that the customer entity represents.
139    * </pre>
140    *
141    * <code>string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
142    *
143    * @return The orgDisplayName.
144    */
145   @java.lang.Override
getOrgDisplayName()146   public java.lang.String getOrgDisplayName() {
147     java.lang.Object ref = orgDisplayName_;
148     if (ref instanceof java.lang.String) {
149       return (java.lang.String) ref;
150     } else {
151       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
152       java.lang.String s = bs.toStringUtf8();
153       orgDisplayName_ = s;
154       return s;
155     }
156   }
157   /**
158    *
159    *
160    * <pre>
161    * Required. Name of the organization that the customer entity represents.
162    * </pre>
163    *
164    * <code>string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
165    *
166    * @return The bytes for orgDisplayName.
167    */
168   @java.lang.Override
getOrgDisplayNameBytes()169   public com.google.protobuf.ByteString getOrgDisplayNameBytes() {
170     java.lang.Object ref = orgDisplayName_;
171     if (ref instanceof java.lang.String) {
172       com.google.protobuf.ByteString b =
173           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
174       orgDisplayName_ = b;
175       return b;
176     } else {
177       return (com.google.protobuf.ByteString) ref;
178     }
179   }
180 
181   public static final int ORG_POSTAL_ADDRESS_FIELD_NUMBER = 3;
182   private com.google.type.PostalAddress orgPostalAddress_;
183   /**
184    *
185    *
186    * <pre>
187    * Required. The organization address for the customer. To enforce US laws and
188    * embargoes, we require a region and zip code. You must provide valid
189    * addresses for every customer. To set the customer's language, use the
190    * Customer-level language code.
191    * </pre>
192    *
193    * <code>
194    * .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
195    * </code>
196    *
197    * @return Whether the orgPostalAddress field is set.
198    */
199   @java.lang.Override
hasOrgPostalAddress()200   public boolean hasOrgPostalAddress() {
201     return orgPostalAddress_ != null;
202   }
203   /**
204    *
205    *
206    * <pre>
207    * Required. The organization address for the customer. To enforce US laws and
208    * embargoes, we require a region and zip code. You must provide valid
209    * addresses for every customer. To set the customer's language, use the
210    * Customer-level language code.
211    * </pre>
212    *
213    * <code>
214    * .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
215    * </code>
216    *
217    * @return The orgPostalAddress.
218    */
219   @java.lang.Override
getOrgPostalAddress()220   public com.google.type.PostalAddress getOrgPostalAddress() {
221     return orgPostalAddress_ == null
222         ? com.google.type.PostalAddress.getDefaultInstance()
223         : orgPostalAddress_;
224   }
225   /**
226    *
227    *
228    * <pre>
229    * Required. The organization address for the customer. To enforce US laws and
230    * embargoes, we require a region and zip code. You must provide valid
231    * addresses for every customer. To set the customer's language, use the
232    * Customer-level language code.
233    * </pre>
234    *
235    * <code>
236    * .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
237    * </code>
238    */
239   @java.lang.Override
getOrgPostalAddressOrBuilder()240   public com.google.type.PostalAddressOrBuilder getOrgPostalAddressOrBuilder() {
241     return orgPostalAddress_ == null
242         ? com.google.type.PostalAddress.getDefaultInstance()
243         : orgPostalAddress_;
244   }
245 
246   public static final int PRIMARY_CONTACT_INFO_FIELD_NUMBER = 4;
247   private com.google.cloud.channel.v1.ContactInfo primaryContactInfo_;
248   /**
249    *
250    *
251    * <pre>
252    * Primary contact info.
253    * </pre>
254    *
255    * <code>.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;</code>
256    *
257    * @return Whether the primaryContactInfo field is set.
258    */
259   @java.lang.Override
hasPrimaryContactInfo()260   public boolean hasPrimaryContactInfo() {
261     return primaryContactInfo_ != null;
262   }
263   /**
264    *
265    *
266    * <pre>
267    * Primary contact info.
268    * </pre>
269    *
270    * <code>.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;</code>
271    *
272    * @return The primaryContactInfo.
273    */
274   @java.lang.Override
getPrimaryContactInfo()275   public com.google.cloud.channel.v1.ContactInfo getPrimaryContactInfo() {
276     return primaryContactInfo_ == null
277         ? com.google.cloud.channel.v1.ContactInfo.getDefaultInstance()
278         : primaryContactInfo_;
279   }
280   /**
281    *
282    *
283    * <pre>
284    * Primary contact info.
285    * </pre>
286    *
287    * <code>.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;</code>
288    */
289   @java.lang.Override
getPrimaryContactInfoOrBuilder()290   public com.google.cloud.channel.v1.ContactInfoOrBuilder getPrimaryContactInfoOrBuilder() {
291     return primaryContactInfo_ == null
292         ? com.google.cloud.channel.v1.ContactInfo.getDefaultInstance()
293         : primaryContactInfo_;
294   }
295 
296   public static final int ALTERNATE_EMAIL_FIELD_NUMBER = 5;
297 
298   @SuppressWarnings("serial")
299   private volatile java.lang.Object alternateEmail_ = "";
300   /**
301    *
302    *
303    * <pre>
304    * Secondary contact email. You need to provide an alternate email to create
305    * different domains if a primary contact email already exists. Users will
306    * receive a notification with credentials when you create an admin.google.com
307    * account. Secondary emails are also recovery email addresses. Alternate
308    * emails are optional when you create Team customers.
309    * </pre>
310    *
311    * <code>string alternate_email = 5;</code>
312    *
313    * @return The alternateEmail.
314    */
315   @java.lang.Override
getAlternateEmail()316   public java.lang.String getAlternateEmail() {
317     java.lang.Object ref = alternateEmail_;
318     if (ref instanceof java.lang.String) {
319       return (java.lang.String) ref;
320     } else {
321       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
322       java.lang.String s = bs.toStringUtf8();
323       alternateEmail_ = s;
324       return s;
325     }
326   }
327   /**
328    *
329    *
330    * <pre>
331    * Secondary contact email. You need to provide an alternate email to create
332    * different domains if a primary contact email already exists. Users will
333    * receive a notification with credentials when you create an admin.google.com
334    * account. Secondary emails are also recovery email addresses. Alternate
335    * emails are optional when you create Team customers.
336    * </pre>
337    *
338    * <code>string alternate_email = 5;</code>
339    *
340    * @return The bytes for alternateEmail.
341    */
342   @java.lang.Override
getAlternateEmailBytes()343   public com.google.protobuf.ByteString getAlternateEmailBytes() {
344     java.lang.Object ref = alternateEmail_;
345     if (ref instanceof java.lang.String) {
346       com.google.protobuf.ByteString b =
347           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
348       alternateEmail_ = b;
349       return b;
350     } else {
351       return (com.google.protobuf.ByteString) ref;
352     }
353   }
354 
355   public static final int DOMAIN_FIELD_NUMBER = 6;
356 
357   @SuppressWarnings("serial")
358   private volatile java.lang.Object domain_ = "";
359   /**
360    *
361    *
362    * <pre>
363    * Required. The customer's primary domain. Must match the primary contact
364    * email's domain.
365    * </pre>
366    *
367    * <code>string domain = 6 [(.google.api.field_behavior) = REQUIRED];</code>
368    *
369    * @return The domain.
370    */
371   @java.lang.Override
getDomain()372   public java.lang.String getDomain() {
373     java.lang.Object ref = domain_;
374     if (ref instanceof java.lang.String) {
375       return (java.lang.String) ref;
376     } else {
377       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
378       java.lang.String s = bs.toStringUtf8();
379       domain_ = s;
380       return s;
381     }
382   }
383   /**
384    *
385    *
386    * <pre>
387    * Required. The customer's primary domain. Must match the primary contact
388    * email's domain.
389    * </pre>
390    *
391    * <code>string domain = 6 [(.google.api.field_behavior) = REQUIRED];</code>
392    *
393    * @return The bytes for domain.
394    */
395   @java.lang.Override
getDomainBytes()396   public com.google.protobuf.ByteString getDomainBytes() {
397     java.lang.Object ref = domain_;
398     if (ref instanceof java.lang.String) {
399       com.google.protobuf.ByteString b =
400           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
401       domain_ = b;
402       return b;
403     } else {
404       return (com.google.protobuf.ByteString) ref;
405     }
406   }
407 
408   public static final int CREATE_TIME_FIELD_NUMBER = 7;
409   private com.google.protobuf.Timestamp createTime_;
410   /**
411    *
412    *
413    * <pre>
414    * Output only. Time when the customer was created.
415    * </pre>
416    *
417    * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
418    * </code>
419    *
420    * @return Whether the createTime field is set.
421    */
422   @java.lang.Override
hasCreateTime()423   public boolean hasCreateTime() {
424     return createTime_ != null;
425   }
426   /**
427    *
428    *
429    * <pre>
430    * Output only. Time when the customer was created.
431    * </pre>
432    *
433    * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
434    * </code>
435    *
436    * @return The createTime.
437    */
438   @java.lang.Override
getCreateTime()439   public com.google.protobuf.Timestamp getCreateTime() {
440     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
441   }
442   /**
443    *
444    *
445    * <pre>
446    * Output only. Time when the customer was created.
447    * </pre>
448    *
449    * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
450    * </code>
451    */
452   @java.lang.Override
getCreateTimeOrBuilder()453   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
454     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
455   }
456 
457   public static final int UPDATE_TIME_FIELD_NUMBER = 8;
458   private com.google.protobuf.Timestamp updateTime_;
459   /**
460    *
461    *
462    * <pre>
463    * Output only. Time when the customer was updated.
464    * </pre>
465    *
466    * <code>.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
467    * </code>
468    *
469    * @return Whether the updateTime field is set.
470    */
471   @java.lang.Override
hasUpdateTime()472   public boolean hasUpdateTime() {
473     return updateTime_ != null;
474   }
475   /**
476    *
477    *
478    * <pre>
479    * Output only. Time when the customer was updated.
480    * </pre>
481    *
482    * <code>.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
483    * </code>
484    *
485    * @return The updateTime.
486    */
487   @java.lang.Override
getUpdateTime()488   public com.google.protobuf.Timestamp getUpdateTime() {
489     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
490   }
491   /**
492    *
493    *
494    * <pre>
495    * Output only. Time when the customer was updated.
496    * </pre>
497    *
498    * <code>.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
499    * </code>
500    */
501   @java.lang.Override
getUpdateTimeOrBuilder()502   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
503     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
504   }
505 
506   public static final int CLOUD_IDENTITY_ID_FIELD_NUMBER = 9;
507 
508   @SuppressWarnings("serial")
509   private volatile java.lang.Object cloudIdentityId_ = "";
510   /**
511    *
512    *
513    * <pre>
514    * Output only. The customer's Cloud Identity ID if the customer has a Cloud
515    * Identity resource.
516    * </pre>
517    *
518    * <code>string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
519    *
520    * @return The cloudIdentityId.
521    */
522   @java.lang.Override
getCloudIdentityId()523   public java.lang.String getCloudIdentityId() {
524     java.lang.Object ref = cloudIdentityId_;
525     if (ref instanceof java.lang.String) {
526       return (java.lang.String) ref;
527     } else {
528       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
529       java.lang.String s = bs.toStringUtf8();
530       cloudIdentityId_ = s;
531       return s;
532     }
533   }
534   /**
535    *
536    *
537    * <pre>
538    * Output only. The customer's Cloud Identity ID if the customer has a Cloud
539    * Identity resource.
540    * </pre>
541    *
542    * <code>string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
543    *
544    * @return The bytes for cloudIdentityId.
545    */
546   @java.lang.Override
getCloudIdentityIdBytes()547   public com.google.protobuf.ByteString getCloudIdentityIdBytes() {
548     java.lang.Object ref = cloudIdentityId_;
549     if (ref instanceof java.lang.String) {
550       com.google.protobuf.ByteString b =
551           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
552       cloudIdentityId_ = b;
553       return b;
554     } else {
555       return (com.google.protobuf.ByteString) ref;
556     }
557   }
558 
559   public static final int LANGUAGE_CODE_FIELD_NUMBER = 10;
560 
561   @SuppressWarnings("serial")
562   private volatile java.lang.Object languageCode_ = "";
563   /**
564    *
565    *
566    * <pre>
567    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
568    * information, see
569    * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
570    * </pre>
571    *
572    * <code>string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
573    *
574    * @return The languageCode.
575    */
576   @java.lang.Override
getLanguageCode()577   public java.lang.String getLanguageCode() {
578     java.lang.Object ref = languageCode_;
579     if (ref instanceof java.lang.String) {
580       return (java.lang.String) ref;
581     } else {
582       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
583       java.lang.String s = bs.toStringUtf8();
584       languageCode_ = s;
585       return s;
586     }
587   }
588   /**
589    *
590    *
591    * <pre>
592    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
593    * information, see
594    * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
595    * </pre>
596    *
597    * <code>string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
598    *
599    * @return The bytes for languageCode.
600    */
601   @java.lang.Override
getLanguageCodeBytes()602   public com.google.protobuf.ByteString getLanguageCodeBytes() {
603     java.lang.Object ref = languageCode_;
604     if (ref instanceof java.lang.String) {
605       com.google.protobuf.ByteString b =
606           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
607       languageCode_ = b;
608       return b;
609     } else {
610       return (com.google.protobuf.ByteString) ref;
611     }
612   }
613 
614   public static final int CLOUD_IDENTITY_INFO_FIELD_NUMBER = 12;
615   private com.google.cloud.channel.v1.CloudIdentityInfo cloudIdentityInfo_;
616   /**
617    *
618    *
619    * <pre>
620    * Output only. Cloud Identity information for the customer.
621    * Populated only if a Cloud Identity account exists for this customer.
622    * </pre>
623    *
624    * <code>
625    * .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
626    * </code>
627    *
628    * @return Whether the cloudIdentityInfo field is set.
629    */
630   @java.lang.Override
hasCloudIdentityInfo()631   public boolean hasCloudIdentityInfo() {
632     return cloudIdentityInfo_ != null;
633   }
634   /**
635    *
636    *
637    * <pre>
638    * Output only. Cloud Identity information for the customer.
639    * Populated only if a Cloud Identity account exists for this customer.
640    * </pre>
641    *
642    * <code>
643    * .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
644    * </code>
645    *
646    * @return The cloudIdentityInfo.
647    */
648   @java.lang.Override
getCloudIdentityInfo()649   public com.google.cloud.channel.v1.CloudIdentityInfo getCloudIdentityInfo() {
650     return cloudIdentityInfo_ == null
651         ? com.google.cloud.channel.v1.CloudIdentityInfo.getDefaultInstance()
652         : cloudIdentityInfo_;
653   }
654   /**
655    *
656    *
657    * <pre>
658    * Output only. Cloud Identity information for the customer.
659    * Populated only if a Cloud Identity account exists for this customer.
660    * </pre>
661    *
662    * <code>
663    * .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
664    * </code>
665    */
666   @java.lang.Override
getCloudIdentityInfoOrBuilder()667   public com.google.cloud.channel.v1.CloudIdentityInfoOrBuilder getCloudIdentityInfoOrBuilder() {
668     return cloudIdentityInfo_ == null
669         ? com.google.cloud.channel.v1.CloudIdentityInfo.getDefaultInstance()
670         : cloudIdentityInfo_;
671   }
672 
673   public static final int CHANNEL_PARTNER_ID_FIELD_NUMBER = 13;
674 
675   @SuppressWarnings("serial")
676   private volatile java.lang.Object channelPartnerId_ = "";
677   /**
678    *
679    *
680    * <pre>
681    * Cloud Identity ID of the customer's channel partner.
682    * Populated only if a channel partner exists for this customer.
683    * </pre>
684    *
685    * <code>string channel_partner_id = 13;</code>
686    *
687    * @return The channelPartnerId.
688    */
689   @java.lang.Override
getChannelPartnerId()690   public java.lang.String getChannelPartnerId() {
691     java.lang.Object ref = channelPartnerId_;
692     if (ref instanceof java.lang.String) {
693       return (java.lang.String) ref;
694     } else {
695       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
696       java.lang.String s = bs.toStringUtf8();
697       channelPartnerId_ = s;
698       return s;
699     }
700   }
701   /**
702    *
703    *
704    * <pre>
705    * Cloud Identity ID of the customer's channel partner.
706    * Populated only if a channel partner exists for this customer.
707    * </pre>
708    *
709    * <code>string channel_partner_id = 13;</code>
710    *
711    * @return The bytes for channelPartnerId.
712    */
713   @java.lang.Override
getChannelPartnerIdBytes()714   public com.google.protobuf.ByteString getChannelPartnerIdBytes() {
715     java.lang.Object ref = channelPartnerId_;
716     if (ref instanceof java.lang.String) {
717       com.google.protobuf.ByteString b =
718           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
719       channelPartnerId_ = b;
720       return b;
721     } else {
722       return (com.google.protobuf.ByteString) ref;
723     }
724   }
725 
726   public static final int CORRELATION_ID_FIELD_NUMBER = 14;
727 
728   @SuppressWarnings("serial")
729   private volatile java.lang.Object correlationId_ = "";
730   /**
731    *
732    *
733    * <pre>
734    * Optional. External CRM ID for the customer.
735    * Populated only if a CRM ID exists for this customer.
736    * </pre>
737    *
738    * <code>string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
739    *
740    * @return The correlationId.
741    */
742   @java.lang.Override
getCorrelationId()743   public java.lang.String getCorrelationId() {
744     java.lang.Object ref = correlationId_;
745     if (ref instanceof java.lang.String) {
746       return (java.lang.String) ref;
747     } else {
748       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
749       java.lang.String s = bs.toStringUtf8();
750       correlationId_ = s;
751       return s;
752     }
753   }
754   /**
755    *
756    *
757    * <pre>
758    * Optional. External CRM ID for the customer.
759    * Populated only if a CRM ID exists for this customer.
760    * </pre>
761    *
762    * <code>string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
763    *
764    * @return The bytes for correlationId.
765    */
766   @java.lang.Override
getCorrelationIdBytes()767   public com.google.protobuf.ByteString getCorrelationIdBytes() {
768     java.lang.Object ref = correlationId_;
769     if (ref instanceof java.lang.String) {
770       com.google.protobuf.ByteString b =
771           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
772       correlationId_ = b;
773       return b;
774     } else {
775       return (com.google.protobuf.ByteString) ref;
776     }
777   }
778 
779   private byte memoizedIsInitialized = -1;
780 
781   @java.lang.Override
isInitialized()782   public final boolean isInitialized() {
783     byte isInitialized = memoizedIsInitialized;
784     if (isInitialized == 1) return true;
785     if (isInitialized == 0) return false;
786 
787     memoizedIsInitialized = 1;
788     return true;
789   }
790 
791   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)792   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
793     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
794       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
795     }
796     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orgDisplayName_)) {
797       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orgDisplayName_);
798     }
799     if (orgPostalAddress_ != null) {
800       output.writeMessage(3, getOrgPostalAddress());
801     }
802     if (primaryContactInfo_ != null) {
803       output.writeMessage(4, getPrimaryContactInfo());
804     }
805     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alternateEmail_)) {
806       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, alternateEmail_);
807     }
808     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
809       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, domain_);
810     }
811     if (createTime_ != null) {
812       output.writeMessage(7, getCreateTime());
813     }
814     if (updateTime_ != null) {
815       output.writeMessage(8, getUpdateTime());
816     }
817     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudIdentityId_)) {
818       com.google.protobuf.GeneratedMessageV3.writeString(output, 9, cloudIdentityId_);
819     }
820     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
821       com.google.protobuf.GeneratedMessageV3.writeString(output, 10, languageCode_);
822     }
823     if (cloudIdentityInfo_ != null) {
824       output.writeMessage(12, getCloudIdentityInfo());
825     }
826     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelPartnerId_)) {
827       com.google.protobuf.GeneratedMessageV3.writeString(output, 13, channelPartnerId_);
828     }
829     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(correlationId_)) {
830       com.google.protobuf.GeneratedMessageV3.writeString(output, 14, correlationId_);
831     }
832     getUnknownFields().writeTo(output);
833   }
834 
835   @java.lang.Override
getSerializedSize()836   public int getSerializedSize() {
837     int size = memoizedSize;
838     if (size != -1) return size;
839 
840     size = 0;
841     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
842       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
843     }
844     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orgDisplayName_)) {
845       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orgDisplayName_);
846     }
847     if (orgPostalAddress_ != null) {
848       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOrgPostalAddress());
849     }
850     if (primaryContactInfo_ != null) {
851       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPrimaryContactInfo());
852     }
853     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alternateEmail_)) {
854       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, alternateEmail_);
855     }
856     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
857       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_);
858     }
859     if (createTime_ != null) {
860       size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime());
861     }
862     if (updateTime_ != null) {
863       size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime());
864     }
865     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudIdentityId_)) {
866       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, cloudIdentityId_);
867     }
868     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
869       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, languageCode_);
870     }
871     if (cloudIdentityInfo_ != null) {
872       size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCloudIdentityInfo());
873     }
874     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelPartnerId_)) {
875       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, channelPartnerId_);
876     }
877     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(correlationId_)) {
878       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, correlationId_);
879     }
880     size += getUnknownFields().getSerializedSize();
881     memoizedSize = size;
882     return size;
883   }
884 
885   @java.lang.Override
equals(final java.lang.Object obj)886   public boolean equals(final java.lang.Object obj) {
887     if (obj == this) {
888       return true;
889     }
890     if (!(obj instanceof com.google.cloud.channel.v1.Customer)) {
891       return super.equals(obj);
892     }
893     com.google.cloud.channel.v1.Customer other = (com.google.cloud.channel.v1.Customer) obj;
894 
895     if (!getName().equals(other.getName())) return false;
896     if (!getOrgDisplayName().equals(other.getOrgDisplayName())) return false;
897     if (hasOrgPostalAddress() != other.hasOrgPostalAddress()) return false;
898     if (hasOrgPostalAddress()) {
899       if (!getOrgPostalAddress().equals(other.getOrgPostalAddress())) return false;
900     }
901     if (hasPrimaryContactInfo() != other.hasPrimaryContactInfo()) return false;
902     if (hasPrimaryContactInfo()) {
903       if (!getPrimaryContactInfo().equals(other.getPrimaryContactInfo())) return false;
904     }
905     if (!getAlternateEmail().equals(other.getAlternateEmail())) return false;
906     if (!getDomain().equals(other.getDomain())) return false;
907     if (hasCreateTime() != other.hasCreateTime()) return false;
908     if (hasCreateTime()) {
909       if (!getCreateTime().equals(other.getCreateTime())) return false;
910     }
911     if (hasUpdateTime() != other.hasUpdateTime()) return false;
912     if (hasUpdateTime()) {
913       if (!getUpdateTime().equals(other.getUpdateTime())) return false;
914     }
915     if (!getCloudIdentityId().equals(other.getCloudIdentityId())) return false;
916     if (!getLanguageCode().equals(other.getLanguageCode())) return false;
917     if (hasCloudIdentityInfo() != other.hasCloudIdentityInfo()) return false;
918     if (hasCloudIdentityInfo()) {
919       if (!getCloudIdentityInfo().equals(other.getCloudIdentityInfo())) return false;
920     }
921     if (!getChannelPartnerId().equals(other.getChannelPartnerId())) return false;
922     if (!getCorrelationId().equals(other.getCorrelationId())) return false;
923     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
924     return true;
925   }
926 
927   @java.lang.Override
hashCode()928   public int hashCode() {
929     if (memoizedHashCode != 0) {
930       return memoizedHashCode;
931     }
932     int hash = 41;
933     hash = (19 * hash) + getDescriptor().hashCode();
934     hash = (37 * hash) + NAME_FIELD_NUMBER;
935     hash = (53 * hash) + getName().hashCode();
936     hash = (37 * hash) + ORG_DISPLAY_NAME_FIELD_NUMBER;
937     hash = (53 * hash) + getOrgDisplayName().hashCode();
938     if (hasOrgPostalAddress()) {
939       hash = (37 * hash) + ORG_POSTAL_ADDRESS_FIELD_NUMBER;
940       hash = (53 * hash) + getOrgPostalAddress().hashCode();
941     }
942     if (hasPrimaryContactInfo()) {
943       hash = (37 * hash) + PRIMARY_CONTACT_INFO_FIELD_NUMBER;
944       hash = (53 * hash) + getPrimaryContactInfo().hashCode();
945     }
946     hash = (37 * hash) + ALTERNATE_EMAIL_FIELD_NUMBER;
947     hash = (53 * hash) + getAlternateEmail().hashCode();
948     hash = (37 * hash) + DOMAIN_FIELD_NUMBER;
949     hash = (53 * hash) + getDomain().hashCode();
950     if (hasCreateTime()) {
951       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
952       hash = (53 * hash) + getCreateTime().hashCode();
953     }
954     if (hasUpdateTime()) {
955       hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
956       hash = (53 * hash) + getUpdateTime().hashCode();
957     }
958     hash = (37 * hash) + CLOUD_IDENTITY_ID_FIELD_NUMBER;
959     hash = (53 * hash) + getCloudIdentityId().hashCode();
960     hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER;
961     hash = (53 * hash) + getLanguageCode().hashCode();
962     if (hasCloudIdentityInfo()) {
963       hash = (37 * hash) + CLOUD_IDENTITY_INFO_FIELD_NUMBER;
964       hash = (53 * hash) + getCloudIdentityInfo().hashCode();
965     }
966     hash = (37 * hash) + CHANNEL_PARTNER_ID_FIELD_NUMBER;
967     hash = (53 * hash) + getChannelPartnerId().hashCode();
968     hash = (37 * hash) + CORRELATION_ID_FIELD_NUMBER;
969     hash = (53 * hash) + getCorrelationId().hashCode();
970     hash = (29 * hash) + getUnknownFields().hashCode();
971     memoizedHashCode = hash;
972     return hash;
973   }
974 
parseFrom(java.nio.ByteBuffer data)975   public static com.google.cloud.channel.v1.Customer parseFrom(java.nio.ByteBuffer data)
976       throws com.google.protobuf.InvalidProtocolBufferException {
977     return PARSER.parseFrom(data);
978   }
979 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)980   public static com.google.cloud.channel.v1.Customer parseFrom(
981       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
982       throws com.google.protobuf.InvalidProtocolBufferException {
983     return PARSER.parseFrom(data, extensionRegistry);
984   }
985 
parseFrom(com.google.protobuf.ByteString data)986   public static com.google.cloud.channel.v1.Customer parseFrom(com.google.protobuf.ByteString data)
987       throws com.google.protobuf.InvalidProtocolBufferException {
988     return PARSER.parseFrom(data);
989   }
990 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)991   public static com.google.cloud.channel.v1.Customer parseFrom(
992       com.google.protobuf.ByteString data,
993       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
994       throws com.google.protobuf.InvalidProtocolBufferException {
995     return PARSER.parseFrom(data, extensionRegistry);
996   }
997 
parseFrom(byte[] data)998   public static com.google.cloud.channel.v1.Customer parseFrom(byte[] data)
999       throws com.google.protobuf.InvalidProtocolBufferException {
1000     return PARSER.parseFrom(data);
1001   }
1002 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1003   public static com.google.cloud.channel.v1.Customer parseFrom(
1004       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1005       throws com.google.protobuf.InvalidProtocolBufferException {
1006     return PARSER.parseFrom(data, extensionRegistry);
1007   }
1008 
parseFrom(java.io.InputStream input)1009   public static com.google.cloud.channel.v1.Customer parseFrom(java.io.InputStream input)
1010       throws java.io.IOException {
1011     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1012   }
1013 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1014   public static com.google.cloud.channel.v1.Customer parseFrom(
1015       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1016       throws java.io.IOException {
1017     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1018         PARSER, input, extensionRegistry);
1019   }
1020 
parseDelimitedFrom(java.io.InputStream input)1021   public static com.google.cloud.channel.v1.Customer parseDelimitedFrom(java.io.InputStream input)
1022       throws java.io.IOException {
1023     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1024   }
1025 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1026   public static com.google.cloud.channel.v1.Customer parseDelimitedFrom(
1027       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1028       throws java.io.IOException {
1029     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1030         PARSER, input, extensionRegistry);
1031   }
1032 
parseFrom( com.google.protobuf.CodedInputStream input)1033   public static com.google.cloud.channel.v1.Customer parseFrom(
1034       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1035     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1036   }
1037 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1038   public static com.google.cloud.channel.v1.Customer parseFrom(
1039       com.google.protobuf.CodedInputStream input,
1040       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1041       throws java.io.IOException {
1042     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1043         PARSER, input, extensionRegistry);
1044   }
1045 
1046   @java.lang.Override
newBuilderForType()1047   public Builder newBuilderForType() {
1048     return newBuilder();
1049   }
1050 
newBuilder()1051   public static Builder newBuilder() {
1052     return DEFAULT_INSTANCE.toBuilder();
1053   }
1054 
newBuilder(com.google.cloud.channel.v1.Customer prototype)1055   public static Builder newBuilder(com.google.cloud.channel.v1.Customer prototype) {
1056     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1057   }
1058 
1059   @java.lang.Override
toBuilder()1060   public Builder toBuilder() {
1061     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1062   }
1063 
1064   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1065   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1066     Builder builder = new Builder(parent);
1067     return builder;
1068   }
1069   /**
1070    *
1071    *
1072    * <pre>
1073    * Entity representing a customer of a reseller or distributor.
1074    * </pre>
1075    *
1076    * Protobuf type {@code google.cloud.channel.v1.Customer}
1077    */
1078   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1079       implements
1080       // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.Customer)
1081       com.google.cloud.channel.v1.CustomerOrBuilder {
getDescriptor()1082     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1083       return com.google.cloud.channel.v1.CustomersProto
1084           .internal_static_google_cloud_channel_v1_Customer_descriptor;
1085     }
1086 
1087     @java.lang.Override
1088     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1089         internalGetFieldAccessorTable() {
1090       return com.google.cloud.channel.v1.CustomersProto
1091           .internal_static_google_cloud_channel_v1_Customer_fieldAccessorTable
1092           .ensureFieldAccessorsInitialized(
1093               com.google.cloud.channel.v1.Customer.class,
1094               com.google.cloud.channel.v1.Customer.Builder.class);
1095     }
1096 
1097     // Construct using com.google.cloud.channel.v1.Customer.newBuilder()
Builder()1098     private Builder() {}
1099 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1100     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1101       super(parent);
1102     }
1103 
1104     @java.lang.Override
clear()1105     public Builder clear() {
1106       super.clear();
1107       bitField0_ = 0;
1108       name_ = "";
1109       orgDisplayName_ = "";
1110       orgPostalAddress_ = null;
1111       if (orgPostalAddressBuilder_ != null) {
1112         orgPostalAddressBuilder_.dispose();
1113         orgPostalAddressBuilder_ = null;
1114       }
1115       primaryContactInfo_ = null;
1116       if (primaryContactInfoBuilder_ != null) {
1117         primaryContactInfoBuilder_.dispose();
1118         primaryContactInfoBuilder_ = null;
1119       }
1120       alternateEmail_ = "";
1121       domain_ = "";
1122       createTime_ = null;
1123       if (createTimeBuilder_ != null) {
1124         createTimeBuilder_.dispose();
1125         createTimeBuilder_ = null;
1126       }
1127       updateTime_ = null;
1128       if (updateTimeBuilder_ != null) {
1129         updateTimeBuilder_.dispose();
1130         updateTimeBuilder_ = null;
1131       }
1132       cloudIdentityId_ = "";
1133       languageCode_ = "";
1134       cloudIdentityInfo_ = null;
1135       if (cloudIdentityInfoBuilder_ != null) {
1136         cloudIdentityInfoBuilder_.dispose();
1137         cloudIdentityInfoBuilder_ = null;
1138       }
1139       channelPartnerId_ = "";
1140       correlationId_ = "";
1141       return this;
1142     }
1143 
1144     @java.lang.Override
getDescriptorForType()1145     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1146       return com.google.cloud.channel.v1.CustomersProto
1147           .internal_static_google_cloud_channel_v1_Customer_descriptor;
1148     }
1149 
1150     @java.lang.Override
getDefaultInstanceForType()1151     public com.google.cloud.channel.v1.Customer getDefaultInstanceForType() {
1152       return com.google.cloud.channel.v1.Customer.getDefaultInstance();
1153     }
1154 
1155     @java.lang.Override
build()1156     public com.google.cloud.channel.v1.Customer build() {
1157       com.google.cloud.channel.v1.Customer result = buildPartial();
1158       if (!result.isInitialized()) {
1159         throw newUninitializedMessageException(result);
1160       }
1161       return result;
1162     }
1163 
1164     @java.lang.Override
buildPartial()1165     public com.google.cloud.channel.v1.Customer buildPartial() {
1166       com.google.cloud.channel.v1.Customer result = new com.google.cloud.channel.v1.Customer(this);
1167       if (bitField0_ != 0) {
1168         buildPartial0(result);
1169       }
1170       onBuilt();
1171       return result;
1172     }
1173 
buildPartial0(com.google.cloud.channel.v1.Customer result)1174     private void buildPartial0(com.google.cloud.channel.v1.Customer result) {
1175       int from_bitField0_ = bitField0_;
1176       if (((from_bitField0_ & 0x00000001) != 0)) {
1177         result.name_ = name_;
1178       }
1179       if (((from_bitField0_ & 0x00000002) != 0)) {
1180         result.orgDisplayName_ = orgDisplayName_;
1181       }
1182       if (((from_bitField0_ & 0x00000004) != 0)) {
1183         result.orgPostalAddress_ =
1184             orgPostalAddressBuilder_ == null ? orgPostalAddress_ : orgPostalAddressBuilder_.build();
1185       }
1186       if (((from_bitField0_ & 0x00000008) != 0)) {
1187         result.primaryContactInfo_ =
1188             primaryContactInfoBuilder_ == null
1189                 ? primaryContactInfo_
1190                 : primaryContactInfoBuilder_.build();
1191       }
1192       if (((from_bitField0_ & 0x00000010) != 0)) {
1193         result.alternateEmail_ = alternateEmail_;
1194       }
1195       if (((from_bitField0_ & 0x00000020) != 0)) {
1196         result.domain_ = domain_;
1197       }
1198       if (((from_bitField0_ & 0x00000040) != 0)) {
1199         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
1200       }
1201       if (((from_bitField0_ & 0x00000080) != 0)) {
1202         result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
1203       }
1204       if (((from_bitField0_ & 0x00000100) != 0)) {
1205         result.cloudIdentityId_ = cloudIdentityId_;
1206       }
1207       if (((from_bitField0_ & 0x00000200) != 0)) {
1208         result.languageCode_ = languageCode_;
1209       }
1210       if (((from_bitField0_ & 0x00000400) != 0)) {
1211         result.cloudIdentityInfo_ =
1212             cloudIdentityInfoBuilder_ == null
1213                 ? cloudIdentityInfo_
1214                 : cloudIdentityInfoBuilder_.build();
1215       }
1216       if (((from_bitField0_ & 0x00000800) != 0)) {
1217         result.channelPartnerId_ = channelPartnerId_;
1218       }
1219       if (((from_bitField0_ & 0x00001000) != 0)) {
1220         result.correlationId_ = correlationId_;
1221       }
1222     }
1223 
1224     @java.lang.Override
clone()1225     public Builder clone() {
1226       return super.clone();
1227     }
1228 
1229     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1230     public Builder setField(
1231         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1232       return super.setField(field, value);
1233     }
1234 
1235     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1236     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1237       return super.clearField(field);
1238     }
1239 
1240     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1241     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1242       return super.clearOneof(oneof);
1243     }
1244 
1245     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1246     public Builder setRepeatedField(
1247         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1248       return super.setRepeatedField(field, index, value);
1249     }
1250 
1251     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1252     public Builder addRepeatedField(
1253         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1254       return super.addRepeatedField(field, value);
1255     }
1256 
1257     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1258     public Builder mergeFrom(com.google.protobuf.Message other) {
1259       if (other instanceof com.google.cloud.channel.v1.Customer) {
1260         return mergeFrom((com.google.cloud.channel.v1.Customer) other);
1261       } else {
1262         super.mergeFrom(other);
1263         return this;
1264       }
1265     }
1266 
mergeFrom(com.google.cloud.channel.v1.Customer other)1267     public Builder mergeFrom(com.google.cloud.channel.v1.Customer other) {
1268       if (other == com.google.cloud.channel.v1.Customer.getDefaultInstance()) return this;
1269       if (!other.getName().isEmpty()) {
1270         name_ = other.name_;
1271         bitField0_ |= 0x00000001;
1272         onChanged();
1273       }
1274       if (!other.getOrgDisplayName().isEmpty()) {
1275         orgDisplayName_ = other.orgDisplayName_;
1276         bitField0_ |= 0x00000002;
1277         onChanged();
1278       }
1279       if (other.hasOrgPostalAddress()) {
1280         mergeOrgPostalAddress(other.getOrgPostalAddress());
1281       }
1282       if (other.hasPrimaryContactInfo()) {
1283         mergePrimaryContactInfo(other.getPrimaryContactInfo());
1284       }
1285       if (!other.getAlternateEmail().isEmpty()) {
1286         alternateEmail_ = other.alternateEmail_;
1287         bitField0_ |= 0x00000010;
1288         onChanged();
1289       }
1290       if (!other.getDomain().isEmpty()) {
1291         domain_ = other.domain_;
1292         bitField0_ |= 0x00000020;
1293         onChanged();
1294       }
1295       if (other.hasCreateTime()) {
1296         mergeCreateTime(other.getCreateTime());
1297       }
1298       if (other.hasUpdateTime()) {
1299         mergeUpdateTime(other.getUpdateTime());
1300       }
1301       if (!other.getCloudIdentityId().isEmpty()) {
1302         cloudIdentityId_ = other.cloudIdentityId_;
1303         bitField0_ |= 0x00000100;
1304         onChanged();
1305       }
1306       if (!other.getLanguageCode().isEmpty()) {
1307         languageCode_ = other.languageCode_;
1308         bitField0_ |= 0x00000200;
1309         onChanged();
1310       }
1311       if (other.hasCloudIdentityInfo()) {
1312         mergeCloudIdentityInfo(other.getCloudIdentityInfo());
1313       }
1314       if (!other.getChannelPartnerId().isEmpty()) {
1315         channelPartnerId_ = other.channelPartnerId_;
1316         bitField0_ |= 0x00000800;
1317         onChanged();
1318       }
1319       if (!other.getCorrelationId().isEmpty()) {
1320         correlationId_ = other.correlationId_;
1321         bitField0_ |= 0x00001000;
1322         onChanged();
1323       }
1324       this.mergeUnknownFields(other.getUnknownFields());
1325       onChanged();
1326       return this;
1327     }
1328 
1329     @java.lang.Override
isInitialized()1330     public final boolean isInitialized() {
1331       return true;
1332     }
1333 
1334     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1335     public Builder mergeFrom(
1336         com.google.protobuf.CodedInputStream input,
1337         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1338         throws java.io.IOException {
1339       if (extensionRegistry == null) {
1340         throw new java.lang.NullPointerException();
1341       }
1342       try {
1343         boolean done = false;
1344         while (!done) {
1345           int tag = input.readTag();
1346           switch (tag) {
1347             case 0:
1348               done = true;
1349               break;
1350             case 10:
1351               {
1352                 name_ = input.readStringRequireUtf8();
1353                 bitField0_ |= 0x00000001;
1354                 break;
1355               } // case 10
1356             case 18:
1357               {
1358                 orgDisplayName_ = input.readStringRequireUtf8();
1359                 bitField0_ |= 0x00000002;
1360                 break;
1361               } // case 18
1362             case 26:
1363               {
1364                 input.readMessage(
1365                     getOrgPostalAddressFieldBuilder().getBuilder(), extensionRegistry);
1366                 bitField0_ |= 0x00000004;
1367                 break;
1368               } // case 26
1369             case 34:
1370               {
1371                 input.readMessage(
1372                     getPrimaryContactInfoFieldBuilder().getBuilder(), extensionRegistry);
1373                 bitField0_ |= 0x00000008;
1374                 break;
1375               } // case 34
1376             case 42:
1377               {
1378                 alternateEmail_ = input.readStringRequireUtf8();
1379                 bitField0_ |= 0x00000010;
1380                 break;
1381               } // case 42
1382             case 50:
1383               {
1384                 domain_ = input.readStringRequireUtf8();
1385                 bitField0_ |= 0x00000020;
1386                 break;
1387               } // case 50
1388             case 58:
1389               {
1390                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
1391                 bitField0_ |= 0x00000040;
1392                 break;
1393               } // case 58
1394             case 66:
1395               {
1396                 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
1397                 bitField0_ |= 0x00000080;
1398                 break;
1399               } // case 66
1400             case 74:
1401               {
1402                 cloudIdentityId_ = input.readStringRequireUtf8();
1403                 bitField0_ |= 0x00000100;
1404                 break;
1405               } // case 74
1406             case 82:
1407               {
1408                 languageCode_ = input.readStringRequireUtf8();
1409                 bitField0_ |= 0x00000200;
1410                 break;
1411               } // case 82
1412             case 98:
1413               {
1414                 input.readMessage(
1415                     getCloudIdentityInfoFieldBuilder().getBuilder(), extensionRegistry);
1416                 bitField0_ |= 0x00000400;
1417                 break;
1418               } // case 98
1419             case 106:
1420               {
1421                 channelPartnerId_ = input.readStringRequireUtf8();
1422                 bitField0_ |= 0x00000800;
1423                 break;
1424               } // case 106
1425             case 114:
1426               {
1427                 correlationId_ = input.readStringRequireUtf8();
1428                 bitField0_ |= 0x00001000;
1429                 break;
1430               } // case 114
1431             default:
1432               {
1433                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1434                   done = true; // was an endgroup tag
1435                 }
1436                 break;
1437               } // default:
1438           } // switch (tag)
1439         } // while (!done)
1440       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1441         throw e.unwrapIOException();
1442       } finally {
1443         onChanged();
1444       } // finally
1445       return this;
1446     }
1447 
1448     private int bitField0_;
1449 
1450     private java.lang.Object name_ = "";
1451     /**
1452      *
1453      *
1454      * <pre>
1455      * Output only. Resource name of the customer.
1456      * Format: accounts/{account_id}/customers/{customer_id}
1457      * </pre>
1458      *
1459      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1460      *
1461      * @return The name.
1462      */
getName()1463     public java.lang.String getName() {
1464       java.lang.Object ref = name_;
1465       if (!(ref instanceof java.lang.String)) {
1466         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1467         java.lang.String s = bs.toStringUtf8();
1468         name_ = s;
1469         return s;
1470       } else {
1471         return (java.lang.String) ref;
1472       }
1473     }
1474     /**
1475      *
1476      *
1477      * <pre>
1478      * Output only. Resource name of the customer.
1479      * Format: accounts/{account_id}/customers/{customer_id}
1480      * </pre>
1481      *
1482      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1483      *
1484      * @return The bytes for name.
1485      */
getNameBytes()1486     public com.google.protobuf.ByteString getNameBytes() {
1487       java.lang.Object ref = name_;
1488       if (ref instanceof String) {
1489         com.google.protobuf.ByteString b =
1490             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1491         name_ = b;
1492         return b;
1493       } else {
1494         return (com.google.protobuf.ByteString) ref;
1495       }
1496     }
1497     /**
1498      *
1499      *
1500      * <pre>
1501      * Output only. Resource name of the customer.
1502      * Format: accounts/{account_id}/customers/{customer_id}
1503      * </pre>
1504      *
1505      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1506      *
1507      * @param value The name to set.
1508      * @return This builder for chaining.
1509      */
setName(java.lang.String value)1510     public Builder setName(java.lang.String value) {
1511       if (value == null) {
1512         throw new NullPointerException();
1513       }
1514       name_ = value;
1515       bitField0_ |= 0x00000001;
1516       onChanged();
1517       return this;
1518     }
1519     /**
1520      *
1521      *
1522      * <pre>
1523      * Output only. Resource name of the customer.
1524      * Format: accounts/{account_id}/customers/{customer_id}
1525      * </pre>
1526      *
1527      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1528      *
1529      * @return This builder for chaining.
1530      */
clearName()1531     public Builder clearName() {
1532       name_ = getDefaultInstance().getName();
1533       bitField0_ = (bitField0_ & ~0x00000001);
1534       onChanged();
1535       return this;
1536     }
1537     /**
1538      *
1539      *
1540      * <pre>
1541      * Output only. Resource name of the customer.
1542      * Format: accounts/{account_id}/customers/{customer_id}
1543      * </pre>
1544      *
1545      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1546      *
1547      * @param value The bytes for name to set.
1548      * @return This builder for chaining.
1549      */
setNameBytes(com.google.protobuf.ByteString value)1550     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1551       if (value == null) {
1552         throw new NullPointerException();
1553       }
1554       checkByteStringIsUtf8(value);
1555       name_ = value;
1556       bitField0_ |= 0x00000001;
1557       onChanged();
1558       return this;
1559     }
1560 
1561     private java.lang.Object orgDisplayName_ = "";
1562     /**
1563      *
1564      *
1565      * <pre>
1566      * Required. Name of the organization that the customer entity represents.
1567      * </pre>
1568      *
1569      * <code>string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1570      *
1571      * @return The orgDisplayName.
1572      */
getOrgDisplayName()1573     public java.lang.String getOrgDisplayName() {
1574       java.lang.Object ref = orgDisplayName_;
1575       if (!(ref instanceof java.lang.String)) {
1576         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1577         java.lang.String s = bs.toStringUtf8();
1578         orgDisplayName_ = s;
1579         return s;
1580       } else {
1581         return (java.lang.String) ref;
1582       }
1583     }
1584     /**
1585      *
1586      *
1587      * <pre>
1588      * Required. Name of the organization that the customer entity represents.
1589      * </pre>
1590      *
1591      * <code>string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1592      *
1593      * @return The bytes for orgDisplayName.
1594      */
getOrgDisplayNameBytes()1595     public com.google.protobuf.ByteString getOrgDisplayNameBytes() {
1596       java.lang.Object ref = orgDisplayName_;
1597       if (ref instanceof String) {
1598         com.google.protobuf.ByteString b =
1599             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1600         orgDisplayName_ = b;
1601         return b;
1602       } else {
1603         return (com.google.protobuf.ByteString) ref;
1604       }
1605     }
1606     /**
1607      *
1608      *
1609      * <pre>
1610      * Required. Name of the organization that the customer entity represents.
1611      * </pre>
1612      *
1613      * <code>string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1614      *
1615      * @param value The orgDisplayName to set.
1616      * @return This builder for chaining.
1617      */
setOrgDisplayName(java.lang.String value)1618     public Builder setOrgDisplayName(java.lang.String value) {
1619       if (value == null) {
1620         throw new NullPointerException();
1621       }
1622       orgDisplayName_ = value;
1623       bitField0_ |= 0x00000002;
1624       onChanged();
1625       return this;
1626     }
1627     /**
1628      *
1629      *
1630      * <pre>
1631      * Required. Name of the organization that the customer entity represents.
1632      * </pre>
1633      *
1634      * <code>string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1635      *
1636      * @return This builder for chaining.
1637      */
clearOrgDisplayName()1638     public Builder clearOrgDisplayName() {
1639       orgDisplayName_ = getDefaultInstance().getOrgDisplayName();
1640       bitField0_ = (bitField0_ & ~0x00000002);
1641       onChanged();
1642       return this;
1643     }
1644     /**
1645      *
1646      *
1647      * <pre>
1648      * Required. Name of the organization that the customer entity represents.
1649      * </pre>
1650      *
1651      * <code>string org_display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1652      *
1653      * @param value The bytes for orgDisplayName to set.
1654      * @return This builder for chaining.
1655      */
setOrgDisplayNameBytes(com.google.protobuf.ByteString value)1656     public Builder setOrgDisplayNameBytes(com.google.protobuf.ByteString value) {
1657       if (value == null) {
1658         throw new NullPointerException();
1659       }
1660       checkByteStringIsUtf8(value);
1661       orgDisplayName_ = value;
1662       bitField0_ |= 0x00000002;
1663       onChanged();
1664       return this;
1665     }
1666 
1667     private com.google.type.PostalAddress orgPostalAddress_;
1668     private com.google.protobuf.SingleFieldBuilderV3<
1669             com.google.type.PostalAddress,
1670             com.google.type.PostalAddress.Builder,
1671             com.google.type.PostalAddressOrBuilder>
1672         orgPostalAddressBuilder_;
1673     /**
1674      *
1675      *
1676      * <pre>
1677      * Required. The organization address for the customer. To enforce US laws and
1678      * embargoes, we require a region and zip code. You must provide valid
1679      * addresses for every customer. To set the customer's language, use the
1680      * Customer-level language code.
1681      * </pre>
1682      *
1683      * <code>
1684      * .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
1685      * </code>
1686      *
1687      * @return Whether the orgPostalAddress field is set.
1688      */
hasOrgPostalAddress()1689     public boolean hasOrgPostalAddress() {
1690       return ((bitField0_ & 0x00000004) != 0);
1691     }
1692     /**
1693      *
1694      *
1695      * <pre>
1696      * Required. The organization address for the customer. To enforce US laws and
1697      * embargoes, we require a region and zip code. You must provide valid
1698      * addresses for every customer. To set the customer's language, use the
1699      * Customer-level language code.
1700      * </pre>
1701      *
1702      * <code>
1703      * .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
1704      * </code>
1705      *
1706      * @return The orgPostalAddress.
1707      */
getOrgPostalAddress()1708     public com.google.type.PostalAddress getOrgPostalAddress() {
1709       if (orgPostalAddressBuilder_ == null) {
1710         return orgPostalAddress_ == null
1711             ? com.google.type.PostalAddress.getDefaultInstance()
1712             : orgPostalAddress_;
1713       } else {
1714         return orgPostalAddressBuilder_.getMessage();
1715       }
1716     }
1717     /**
1718      *
1719      *
1720      * <pre>
1721      * Required. The organization address for the customer. To enforce US laws and
1722      * embargoes, we require a region and zip code. You must provide valid
1723      * addresses for every customer. To set the customer's language, use the
1724      * Customer-level language code.
1725      * </pre>
1726      *
1727      * <code>
1728      * .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
1729      * </code>
1730      */
setOrgPostalAddress(com.google.type.PostalAddress value)1731     public Builder setOrgPostalAddress(com.google.type.PostalAddress value) {
1732       if (orgPostalAddressBuilder_ == null) {
1733         if (value == null) {
1734           throw new NullPointerException();
1735         }
1736         orgPostalAddress_ = value;
1737       } else {
1738         orgPostalAddressBuilder_.setMessage(value);
1739       }
1740       bitField0_ |= 0x00000004;
1741       onChanged();
1742       return this;
1743     }
1744     /**
1745      *
1746      *
1747      * <pre>
1748      * Required. The organization address for the customer. To enforce US laws and
1749      * embargoes, we require a region and zip code. You must provide valid
1750      * addresses for every customer. To set the customer's language, use the
1751      * Customer-level language code.
1752      * </pre>
1753      *
1754      * <code>
1755      * .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
1756      * </code>
1757      */
setOrgPostalAddress(com.google.type.PostalAddress.Builder builderForValue)1758     public Builder setOrgPostalAddress(com.google.type.PostalAddress.Builder builderForValue) {
1759       if (orgPostalAddressBuilder_ == null) {
1760         orgPostalAddress_ = builderForValue.build();
1761       } else {
1762         orgPostalAddressBuilder_.setMessage(builderForValue.build());
1763       }
1764       bitField0_ |= 0x00000004;
1765       onChanged();
1766       return this;
1767     }
1768     /**
1769      *
1770      *
1771      * <pre>
1772      * Required. The organization address for the customer. To enforce US laws and
1773      * embargoes, we require a region and zip code. You must provide valid
1774      * addresses for every customer. To set the customer's language, use the
1775      * Customer-level language code.
1776      * </pre>
1777      *
1778      * <code>
1779      * .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
1780      * </code>
1781      */
mergeOrgPostalAddress(com.google.type.PostalAddress value)1782     public Builder mergeOrgPostalAddress(com.google.type.PostalAddress value) {
1783       if (orgPostalAddressBuilder_ == null) {
1784         if (((bitField0_ & 0x00000004) != 0)
1785             && orgPostalAddress_ != null
1786             && orgPostalAddress_ != com.google.type.PostalAddress.getDefaultInstance()) {
1787           getOrgPostalAddressBuilder().mergeFrom(value);
1788         } else {
1789           orgPostalAddress_ = value;
1790         }
1791       } else {
1792         orgPostalAddressBuilder_.mergeFrom(value);
1793       }
1794       bitField0_ |= 0x00000004;
1795       onChanged();
1796       return this;
1797     }
1798     /**
1799      *
1800      *
1801      * <pre>
1802      * Required. The organization address for the customer. To enforce US laws and
1803      * embargoes, we require a region and zip code. You must provide valid
1804      * addresses for every customer. To set the customer's language, use the
1805      * Customer-level language code.
1806      * </pre>
1807      *
1808      * <code>
1809      * .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
1810      * </code>
1811      */
clearOrgPostalAddress()1812     public Builder clearOrgPostalAddress() {
1813       bitField0_ = (bitField0_ & ~0x00000004);
1814       orgPostalAddress_ = null;
1815       if (orgPostalAddressBuilder_ != null) {
1816         orgPostalAddressBuilder_.dispose();
1817         orgPostalAddressBuilder_ = null;
1818       }
1819       onChanged();
1820       return this;
1821     }
1822     /**
1823      *
1824      *
1825      * <pre>
1826      * Required. The organization address for the customer. To enforce US laws and
1827      * embargoes, we require a region and zip code. You must provide valid
1828      * addresses for every customer. To set the customer's language, use the
1829      * Customer-level language code.
1830      * </pre>
1831      *
1832      * <code>
1833      * .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
1834      * </code>
1835      */
getOrgPostalAddressBuilder()1836     public com.google.type.PostalAddress.Builder getOrgPostalAddressBuilder() {
1837       bitField0_ |= 0x00000004;
1838       onChanged();
1839       return getOrgPostalAddressFieldBuilder().getBuilder();
1840     }
1841     /**
1842      *
1843      *
1844      * <pre>
1845      * Required. The organization address for the customer. To enforce US laws and
1846      * embargoes, we require a region and zip code. You must provide valid
1847      * addresses for every customer. To set the customer's language, use the
1848      * Customer-level language code.
1849      * </pre>
1850      *
1851      * <code>
1852      * .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
1853      * </code>
1854      */
getOrgPostalAddressOrBuilder()1855     public com.google.type.PostalAddressOrBuilder getOrgPostalAddressOrBuilder() {
1856       if (orgPostalAddressBuilder_ != null) {
1857         return orgPostalAddressBuilder_.getMessageOrBuilder();
1858       } else {
1859         return orgPostalAddress_ == null
1860             ? com.google.type.PostalAddress.getDefaultInstance()
1861             : orgPostalAddress_;
1862       }
1863     }
1864     /**
1865      *
1866      *
1867      * <pre>
1868      * Required. The organization address for the customer. To enforce US laws and
1869      * embargoes, we require a region and zip code. You must provide valid
1870      * addresses for every customer. To set the customer's language, use the
1871      * Customer-level language code.
1872      * </pre>
1873      *
1874      * <code>
1875      * .google.type.PostalAddress org_postal_address = 3 [(.google.api.field_behavior) = REQUIRED];
1876      * </code>
1877      */
1878     private com.google.protobuf.SingleFieldBuilderV3<
1879             com.google.type.PostalAddress,
1880             com.google.type.PostalAddress.Builder,
1881             com.google.type.PostalAddressOrBuilder>
getOrgPostalAddressFieldBuilder()1882         getOrgPostalAddressFieldBuilder() {
1883       if (orgPostalAddressBuilder_ == null) {
1884         orgPostalAddressBuilder_ =
1885             new com.google.protobuf.SingleFieldBuilderV3<
1886                 com.google.type.PostalAddress,
1887                 com.google.type.PostalAddress.Builder,
1888                 com.google.type.PostalAddressOrBuilder>(
1889                 getOrgPostalAddress(), getParentForChildren(), isClean());
1890         orgPostalAddress_ = null;
1891       }
1892       return orgPostalAddressBuilder_;
1893     }
1894 
1895     private com.google.cloud.channel.v1.ContactInfo primaryContactInfo_;
1896     private com.google.protobuf.SingleFieldBuilderV3<
1897             com.google.cloud.channel.v1.ContactInfo,
1898             com.google.cloud.channel.v1.ContactInfo.Builder,
1899             com.google.cloud.channel.v1.ContactInfoOrBuilder>
1900         primaryContactInfoBuilder_;
1901     /**
1902      *
1903      *
1904      * <pre>
1905      * Primary contact info.
1906      * </pre>
1907      *
1908      * <code>.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;</code>
1909      *
1910      * @return Whether the primaryContactInfo field is set.
1911      */
hasPrimaryContactInfo()1912     public boolean hasPrimaryContactInfo() {
1913       return ((bitField0_ & 0x00000008) != 0);
1914     }
1915     /**
1916      *
1917      *
1918      * <pre>
1919      * Primary contact info.
1920      * </pre>
1921      *
1922      * <code>.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;</code>
1923      *
1924      * @return The primaryContactInfo.
1925      */
getPrimaryContactInfo()1926     public com.google.cloud.channel.v1.ContactInfo getPrimaryContactInfo() {
1927       if (primaryContactInfoBuilder_ == null) {
1928         return primaryContactInfo_ == null
1929             ? com.google.cloud.channel.v1.ContactInfo.getDefaultInstance()
1930             : primaryContactInfo_;
1931       } else {
1932         return primaryContactInfoBuilder_.getMessage();
1933       }
1934     }
1935     /**
1936      *
1937      *
1938      * <pre>
1939      * Primary contact info.
1940      * </pre>
1941      *
1942      * <code>.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;</code>
1943      */
setPrimaryContactInfo(com.google.cloud.channel.v1.ContactInfo value)1944     public Builder setPrimaryContactInfo(com.google.cloud.channel.v1.ContactInfo value) {
1945       if (primaryContactInfoBuilder_ == null) {
1946         if (value == null) {
1947           throw new NullPointerException();
1948         }
1949         primaryContactInfo_ = value;
1950       } else {
1951         primaryContactInfoBuilder_.setMessage(value);
1952       }
1953       bitField0_ |= 0x00000008;
1954       onChanged();
1955       return this;
1956     }
1957     /**
1958      *
1959      *
1960      * <pre>
1961      * Primary contact info.
1962      * </pre>
1963      *
1964      * <code>.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;</code>
1965      */
setPrimaryContactInfo( com.google.cloud.channel.v1.ContactInfo.Builder builderForValue)1966     public Builder setPrimaryContactInfo(
1967         com.google.cloud.channel.v1.ContactInfo.Builder builderForValue) {
1968       if (primaryContactInfoBuilder_ == null) {
1969         primaryContactInfo_ = builderForValue.build();
1970       } else {
1971         primaryContactInfoBuilder_.setMessage(builderForValue.build());
1972       }
1973       bitField0_ |= 0x00000008;
1974       onChanged();
1975       return this;
1976     }
1977     /**
1978      *
1979      *
1980      * <pre>
1981      * Primary contact info.
1982      * </pre>
1983      *
1984      * <code>.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;</code>
1985      */
mergePrimaryContactInfo(com.google.cloud.channel.v1.ContactInfo value)1986     public Builder mergePrimaryContactInfo(com.google.cloud.channel.v1.ContactInfo value) {
1987       if (primaryContactInfoBuilder_ == null) {
1988         if (((bitField0_ & 0x00000008) != 0)
1989             && primaryContactInfo_ != null
1990             && primaryContactInfo_
1991                 != com.google.cloud.channel.v1.ContactInfo.getDefaultInstance()) {
1992           getPrimaryContactInfoBuilder().mergeFrom(value);
1993         } else {
1994           primaryContactInfo_ = value;
1995         }
1996       } else {
1997         primaryContactInfoBuilder_.mergeFrom(value);
1998       }
1999       bitField0_ |= 0x00000008;
2000       onChanged();
2001       return this;
2002     }
2003     /**
2004      *
2005      *
2006      * <pre>
2007      * Primary contact info.
2008      * </pre>
2009      *
2010      * <code>.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;</code>
2011      */
clearPrimaryContactInfo()2012     public Builder clearPrimaryContactInfo() {
2013       bitField0_ = (bitField0_ & ~0x00000008);
2014       primaryContactInfo_ = null;
2015       if (primaryContactInfoBuilder_ != null) {
2016         primaryContactInfoBuilder_.dispose();
2017         primaryContactInfoBuilder_ = null;
2018       }
2019       onChanged();
2020       return this;
2021     }
2022     /**
2023      *
2024      *
2025      * <pre>
2026      * Primary contact info.
2027      * </pre>
2028      *
2029      * <code>.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;</code>
2030      */
getPrimaryContactInfoBuilder()2031     public com.google.cloud.channel.v1.ContactInfo.Builder getPrimaryContactInfoBuilder() {
2032       bitField0_ |= 0x00000008;
2033       onChanged();
2034       return getPrimaryContactInfoFieldBuilder().getBuilder();
2035     }
2036     /**
2037      *
2038      *
2039      * <pre>
2040      * Primary contact info.
2041      * </pre>
2042      *
2043      * <code>.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;</code>
2044      */
getPrimaryContactInfoOrBuilder()2045     public com.google.cloud.channel.v1.ContactInfoOrBuilder getPrimaryContactInfoOrBuilder() {
2046       if (primaryContactInfoBuilder_ != null) {
2047         return primaryContactInfoBuilder_.getMessageOrBuilder();
2048       } else {
2049         return primaryContactInfo_ == null
2050             ? com.google.cloud.channel.v1.ContactInfo.getDefaultInstance()
2051             : primaryContactInfo_;
2052       }
2053     }
2054     /**
2055      *
2056      *
2057      * <pre>
2058      * Primary contact info.
2059      * </pre>
2060      *
2061      * <code>.google.cloud.channel.v1.ContactInfo primary_contact_info = 4;</code>
2062      */
2063     private com.google.protobuf.SingleFieldBuilderV3<
2064             com.google.cloud.channel.v1.ContactInfo,
2065             com.google.cloud.channel.v1.ContactInfo.Builder,
2066             com.google.cloud.channel.v1.ContactInfoOrBuilder>
getPrimaryContactInfoFieldBuilder()2067         getPrimaryContactInfoFieldBuilder() {
2068       if (primaryContactInfoBuilder_ == null) {
2069         primaryContactInfoBuilder_ =
2070             new com.google.protobuf.SingleFieldBuilderV3<
2071                 com.google.cloud.channel.v1.ContactInfo,
2072                 com.google.cloud.channel.v1.ContactInfo.Builder,
2073                 com.google.cloud.channel.v1.ContactInfoOrBuilder>(
2074                 getPrimaryContactInfo(), getParentForChildren(), isClean());
2075         primaryContactInfo_ = null;
2076       }
2077       return primaryContactInfoBuilder_;
2078     }
2079 
2080     private java.lang.Object alternateEmail_ = "";
2081     /**
2082      *
2083      *
2084      * <pre>
2085      * Secondary contact email. You need to provide an alternate email to create
2086      * different domains if a primary contact email already exists. Users will
2087      * receive a notification with credentials when you create an admin.google.com
2088      * account. Secondary emails are also recovery email addresses. Alternate
2089      * emails are optional when you create Team customers.
2090      * </pre>
2091      *
2092      * <code>string alternate_email = 5;</code>
2093      *
2094      * @return The alternateEmail.
2095      */
getAlternateEmail()2096     public java.lang.String getAlternateEmail() {
2097       java.lang.Object ref = alternateEmail_;
2098       if (!(ref instanceof java.lang.String)) {
2099         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2100         java.lang.String s = bs.toStringUtf8();
2101         alternateEmail_ = s;
2102         return s;
2103       } else {
2104         return (java.lang.String) ref;
2105       }
2106     }
2107     /**
2108      *
2109      *
2110      * <pre>
2111      * Secondary contact email. You need to provide an alternate email to create
2112      * different domains if a primary contact email already exists. Users will
2113      * receive a notification with credentials when you create an admin.google.com
2114      * account. Secondary emails are also recovery email addresses. Alternate
2115      * emails are optional when you create Team customers.
2116      * </pre>
2117      *
2118      * <code>string alternate_email = 5;</code>
2119      *
2120      * @return The bytes for alternateEmail.
2121      */
getAlternateEmailBytes()2122     public com.google.protobuf.ByteString getAlternateEmailBytes() {
2123       java.lang.Object ref = alternateEmail_;
2124       if (ref instanceof String) {
2125         com.google.protobuf.ByteString b =
2126             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2127         alternateEmail_ = b;
2128         return b;
2129       } else {
2130         return (com.google.protobuf.ByteString) ref;
2131       }
2132     }
2133     /**
2134      *
2135      *
2136      * <pre>
2137      * Secondary contact email. You need to provide an alternate email to create
2138      * different domains if a primary contact email already exists. Users will
2139      * receive a notification with credentials when you create an admin.google.com
2140      * account. Secondary emails are also recovery email addresses. Alternate
2141      * emails are optional when you create Team customers.
2142      * </pre>
2143      *
2144      * <code>string alternate_email = 5;</code>
2145      *
2146      * @param value The alternateEmail to set.
2147      * @return This builder for chaining.
2148      */
setAlternateEmail(java.lang.String value)2149     public Builder setAlternateEmail(java.lang.String value) {
2150       if (value == null) {
2151         throw new NullPointerException();
2152       }
2153       alternateEmail_ = value;
2154       bitField0_ |= 0x00000010;
2155       onChanged();
2156       return this;
2157     }
2158     /**
2159      *
2160      *
2161      * <pre>
2162      * Secondary contact email. You need to provide an alternate email to create
2163      * different domains if a primary contact email already exists. Users will
2164      * receive a notification with credentials when you create an admin.google.com
2165      * account. Secondary emails are also recovery email addresses. Alternate
2166      * emails are optional when you create Team customers.
2167      * </pre>
2168      *
2169      * <code>string alternate_email = 5;</code>
2170      *
2171      * @return This builder for chaining.
2172      */
clearAlternateEmail()2173     public Builder clearAlternateEmail() {
2174       alternateEmail_ = getDefaultInstance().getAlternateEmail();
2175       bitField0_ = (bitField0_ & ~0x00000010);
2176       onChanged();
2177       return this;
2178     }
2179     /**
2180      *
2181      *
2182      * <pre>
2183      * Secondary contact email. You need to provide an alternate email to create
2184      * different domains if a primary contact email already exists. Users will
2185      * receive a notification with credentials when you create an admin.google.com
2186      * account. Secondary emails are also recovery email addresses. Alternate
2187      * emails are optional when you create Team customers.
2188      * </pre>
2189      *
2190      * <code>string alternate_email = 5;</code>
2191      *
2192      * @param value The bytes for alternateEmail to set.
2193      * @return This builder for chaining.
2194      */
setAlternateEmailBytes(com.google.protobuf.ByteString value)2195     public Builder setAlternateEmailBytes(com.google.protobuf.ByteString value) {
2196       if (value == null) {
2197         throw new NullPointerException();
2198       }
2199       checkByteStringIsUtf8(value);
2200       alternateEmail_ = value;
2201       bitField0_ |= 0x00000010;
2202       onChanged();
2203       return this;
2204     }
2205 
2206     private java.lang.Object domain_ = "";
2207     /**
2208      *
2209      *
2210      * <pre>
2211      * Required. The customer's primary domain. Must match the primary contact
2212      * email's domain.
2213      * </pre>
2214      *
2215      * <code>string domain = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2216      *
2217      * @return The domain.
2218      */
getDomain()2219     public java.lang.String getDomain() {
2220       java.lang.Object ref = domain_;
2221       if (!(ref instanceof java.lang.String)) {
2222         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2223         java.lang.String s = bs.toStringUtf8();
2224         domain_ = s;
2225         return s;
2226       } else {
2227         return (java.lang.String) ref;
2228       }
2229     }
2230     /**
2231      *
2232      *
2233      * <pre>
2234      * Required. The customer's primary domain. Must match the primary contact
2235      * email's domain.
2236      * </pre>
2237      *
2238      * <code>string domain = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2239      *
2240      * @return The bytes for domain.
2241      */
getDomainBytes()2242     public com.google.protobuf.ByteString getDomainBytes() {
2243       java.lang.Object ref = domain_;
2244       if (ref instanceof String) {
2245         com.google.protobuf.ByteString b =
2246             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2247         domain_ = b;
2248         return b;
2249       } else {
2250         return (com.google.protobuf.ByteString) ref;
2251       }
2252     }
2253     /**
2254      *
2255      *
2256      * <pre>
2257      * Required. The customer's primary domain. Must match the primary contact
2258      * email's domain.
2259      * </pre>
2260      *
2261      * <code>string domain = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2262      *
2263      * @param value The domain to set.
2264      * @return This builder for chaining.
2265      */
setDomain(java.lang.String value)2266     public Builder setDomain(java.lang.String value) {
2267       if (value == null) {
2268         throw new NullPointerException();
2269       }
2270       domain_ = value;
2271       bitField0_ |= 0x00000020;
2272       onChanged();
2273       return this;
2274     }
2275     /**
2276      *
2277      *
2278      * <pre>
2279      * Required. The customer's primary domain. Must match the primary contact
2280      * email's domain.
2281      * </pre>
2282      *
2283      * <code>string domain = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2284      *
2285      * @return This builder for chaining.
2286      */
clearDomain()2287     public Builder clearDomain() {
2288       domain_ = getDefaultInstance().getDomain();
2289       bitField0_ = (bitField0_ & ~0x00000020);
2290       onChanged();
2291       return this;
2292     }
2293     /**
2294      *
2295      *
2296      * <pre>
2297      * Required. The customer's primary domain. Must match the primary contact
2298      * email's domain.
2299      * </pre>
2300      *
2301      * <code>string domain = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2302      *
2303      * @param value The bytes for domain to set.
2304      * @return This builder for chaining.
2305      */
setDomainBytes(com.google.protobuf.ByteString value)2306     public Builder setDomainBytes(com.google.protobuf.ByteString value) {
2307       if (value == null) {
2308         throw new NullPointerException();
2309       }
2310       checkByteStringIsUtf8(value);
2311       domain_ = value;
2312       bitField0_ |= 0x00000020;
2313       onChanged();
2314       return this;
2315     }
2316 
2317     private com.google.protobuf.Timestamp createTime_;
2318     private com.google.protobuf.SingleFieldBuilderV3<
2319             com.google.protobuf.Timestamp,
2320             com.google.protobuf.Timestamp.Builder,
2321             com.google.protobuf.TimestampOrBuilder>
2322         createTimeBuilder_;
2323     /**
2324      *
2325      *
2326      * <pre>
2327      * Output only. Time when the customer was created.
2328      * </pre>
2329      *
2330      * <code>
2331      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2332      * </code>
2333      *
2334      * @return Whether the createTime field is set.
2335      */
hasCreateTime()2336     public boolean hasCreateTime() {
2337       return ((bitField0_ & 0x00000040) != 0);
2338     }
2339     /**
2340      *
2341      *
2342      * <pre>
2343      * Output only. Time when the customer was created.
2344      * </pre>
2345      *
2346      * <code>
2347      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2348      * </code>
2349      *
2350      * @return The createTime.
2351      */
getCreateTime()2352     public com.google.protobuf.Timestamp getCreateTime() {
2353       if (createTimeBuilder_ == null) {
2354         return createTime_ == null
2355             ? com.google.protobuf.Timestamp.getDefaultInstance()
2356             : createTime_;
2357       } else {
2358         return createTimeBuilder_.getMessage();
2359       }
2360     }
2361     /**
2362      *
2363      *
2364      * <pre>
2365      * Output only. Time when the customer was created.
2366      * </pre>
2367      *
2368      * <code>
2369      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2370      * </code>
2371      */
setCreateTime(com.google.protobuf.Timestamp value)2372     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
2373       if (createTimeBuilder_ == null) {
2374         if (value == null) {
2375           throw new NullPointerException();
2376         }
2377         createTime_ = value;
2378       } else {
2379         createTimeBuilder_.setMessage(value);
2380       }
2381       bitField0_ |= 0x00000040;
2382       onChanged();
2383       return this;
2384     }
2385     /**
2386      *
2387      *
2388      * <pre>
2389      * Output only. Time when the customer was created.
2390      * </pre>
2391      *
2392      * <code>
2393      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2394      * </code>
2395      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)2396     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2397       if (createTimeBuilder_ == null) {
2398         createTime_ = builderForValue.build();
2399       } else {
2400         createTimeBuilder_.setMessage(builderForValue.build());
2401       }
2402       bitField0_ |= 0x00000040;
2403       onChanged();
2404       return this;
2405     }
2406     /**
2407      *
2408      *
2409      * <pre>
2410      * Output only. Time when the customer was created.
2411      * </pre>
2412      *
2413      * <code>
2414      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2415      * </code>
2416      */
mergeCreateTime(com.google.protobuf.Timestamp value)2417     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
2418       if (createTimeBuilder_ == null) {
2419         if (((bitField0_ & 0x00000040) != 0)
2420             && createTime_ != null
2421             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2422           getCreateTimeBuilder().mergeFrom(value);
2423         } else {
2424           createTime_ = value;
2425         }
2426       } else {
2427         createTimeBuilder_.mergeFrom(value);
2428       }
2429       bitField0_ |= 0x00000040;
2430       onChanged();
2431       return this;
2432     }
2433     /**
2434      *
2435      *
2436      * <pre>
2437      * Output only. Time when the customer was created.
2438      * </pre>
2439      *
2440      * <code>
2441      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2442      * </code>
2443      */
clearCreateTime()2444     public Builder clearCreateTime() {
2445       bitField0_ = (bitField0_ & ~0x00000040);
2446       createTime_ = null;
2447       if (createTimeBuilder_ != null) {
2448         createTimeBuilder_.dispose();
2449         createTimeBuilder_ = null;
2450       }
2451       onChanged();
2452       return this;
2453     }
2454     /**
2455      *
2456      *
2457      * <pre>
2458      * Output only. Time when the customer was created.
2459      * </pre>
2460      *
2461      * <code>
2462      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2463      * </code>
2464      */
getCreateTimeBuilder()2465     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
2466       bitField0_ |= 0x00000040;
2467       onChanged();
2468       return getCreateTimeFieldBuilder().getBuilder();
2469     }
2470     /**
2471      *
2472      *
2473      * <pre>
2474      * Output only. Time when the customer was created.
2475      * </pre>
2476      *
2477      * <code>
2478      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2479      * </code>
2480      */
getCreateTimeOrBuilder()2481     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
2482       if (createTimeBuilder_ != null) {
2483         return createTimeBuilder_.getMessageOrBuilder();
2484       } else {
2485         return createTime_ == null
2486             ? com.google.protobuf.Timestamp.getDefaultInstance()
2487             : createTime_;
2488       }
2489     }
2490     /**
2491      *
2492      *
2493      * <pre>
2494      * Output only. Time when the customer was created.
2495      * </pre>
2496      *
2497      * <code>
2498      * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2499      * </code>
2500      */
2501     private com.google.protobuf.SingleFieldBuilderV3<
2502             com.google.protobuf.Timestamp,
2503             com.google.protobuf.Timestamp.Builder,
2504             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()2505         getCreateTimeFieldBuilder() {
2506       if (createTimeBuilder_ == null) {
2507         createTimeBuilder_ =
2508             new com.google.protobuf.SingleFieldBuilderV3<
2509                 com.google.protobuf.Timestamp,
2510                 com.google.protobuf.Timestamp.Builder,
2511                 com.google.protobuf.TimestampOrBuilder>(
2512                 getCreateTime(), getParentForChildren(), isClean());
2513         createTime_ = null;
2514       }
2515       return createTimeBuilder_;
2516     }
2517 
2518     private com.google.protobuf.Timestamp updateTime_;
2519     private com.google.protobuf.SingleFieldBuilderV3<
2520             com.google.protobuf.Timestamp,
2521             com.google.protobuf.Timestamp.Builder,
2522             com.google.protobuf.TimestampOrBuilder>
2523         updateTimeBuilder_;
2524     /**
2525      *
2526      *
2527      * <pre>
2528      * Output only. Time when the customer was updated.
2529      * </pre>
2530      *
2531      * <code>
2532      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2533      * </code>
2534      *
2535      * @return Whether the updateTime field is set.
2536      */
hasUpdateTime()2537     public boolean hasUpdateTime() {
2538       return ((bitField0_ & 0x00000080) != 0);
2539     }
2540     /**
2541      *
2542      *
2543      * <pre>
2544      * Output only. Time when the customer was updated.
2545      * </pre>
2546      *
2547      * <code>
2548      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2549      * </code>
2550      *
2551      * @return The updateTime.
2552      */
getUpdateTime()2553     public com.google.protobuf.Timestamp getUpdateTime() {
2554       if (updateTimeBuilder_ == null) {
2555         return updateTime_ == null
2556             ? com.google.protobuf.Timestamp.getDefaultInstance()
2557             : updateTime_;
2558       } else {
2559         return updateTimeBuilder_.getMessage();
2560       }
2561     }
2562     /**
2563      *
2564      *
2565      * <pre>
2566      * Output only. Time when the customer was updated.
2567      * </pre>
2568      *
2569      * <code>
2570      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2571      * </code>
2572      */
setUpdateTime(com.google.protobuf.Timestamp value)2573     public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
2574       if (updateTimeBuilder_ == null) {
2575         if (value == null) {
2576           throw new NullPointerException();
2577         }
2578         updateTime_ = value;
2579       } else {
2580         updateTimeBuilder_.setMessage(value);
2581       }
2582       bitField0_ |= 0x00000080;
2583       onChanged();
2584       return this;
2585     }
2586     /**
2587      *
2588      *
2589      * <pre>
2590      * Output only. Time when the customer was updated.
2591      * </pre>
2592      *
2593      * <code>
2594      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2595      * </code>
2596      */
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)2597     public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2598       if (updateTimeBuilder_ == null) {
2599         updateTime_ = builderForValue.build();
2600       } else {
2601         updateTimeBuilder_.setMessage(builderForValue.build());
2602       }
2603       bitField0_ |= 0x00000080;
2604       onChanged();
2605       return this;
2606     }
2607     /**
2608      *
2609      *
2610      * <pre>
2611      * Output only. Time when the customer was updated.
2612      * </pre>
2613      *
2614      * <code>
2615      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2616      * </code>
2617      */
mergeUpdateTime(com.google.protobuf.Timestamp value)2618     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
2619       if (updateTimeBuilder_ == null) {
2620         if (((bitField0_ & 0x00000080) != 0)
2621             && updateTime_ != null
2622             && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2623           getUpdateTimeBuilder().mergeFrom(value);
2624         } else {
2625           updateTime_ = value;
2626         }
2627       } else {
2628         updateTimeBuilder_.mergeFrom(value);
2629       }
2630       bitField0_ |= 0x00000080;
2631       onChanged();
2632       return this;
2633     }
2634     /**
2635      *
2636      *
2637      * <pre>
2638      * Output only. Time when the customer was updated.
2639      * </pre>
2640      *
2641      * <code>
2642      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2643      * </code>
2644      */
clearUpdateTime()2645     public Builder clearUpdateTime() {
2646       bitField0_ = (bitField0_ & ~0x00000080);
2647       updateTime_ = null;
2648       if (updateTimeBuilder_ != null) {
2649         updateTimeBuilder_.dispose();
2650         updateTimeBuilder_ = null;
2651       }
2652       onChanged();
2653       return this;
2654     }
2655     /**
2656      *
2657      *
2658      * <pre>
2659      * Output only. Time when the customer was updated.
2660      * </pre>
2661      *
2662      * <code>
2663      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2664      * </code>
2665      */
getUpdateTimeBuilder()2666     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
2667       bitField0_ |= 0x00000080;
2668       onChanged();
2669       return getUpdateTimeFieldBuilder().getBuilder();
2670     }
2671     /**
2672      *
2673      *
2674      * <pre>
2675      * Output only. Time when the customer was updated.
2676      * </pre>
2677      *
2678      * <code>
2679      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2680      * </code>
2681      */
getUpdateTimeOrBuilder()2682     public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
2683       if (updateTimeBuilder_ != null) {
2684         return updateTimeBuilder_.getMessageOrBuilder();
2685       } else {
2686         return updateTime_ == null
2687             ? com.google.protobuf.Timestamp.getDefaultInstance()
2688             : updateTime_;
2689       }
2690     }
2691     /**
2692      *
2693      *
2694      * <pre>
2695      * Output only. Time when the customer was updated.
2696      * </pre>
2697      *
2698      * <code>
2699      * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2700      * </code>
2701      */
2702     private com.google.protobuf.SingleFieldBuilderV3<
2703             com.google.protobuf.Timestamp,
2704             com.google.protobuf.Timestamp.Builder,
2705             com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder()2706         getUpdateTimeFieldBuilder() {
2707       if (updateTimeBuilder_ == null) {
2708         updateTimeBuilder_ =
2709             new com.google.protobuf.SingleFieldBuilderV3<
2710                 com.google.protobuf.Timestamp,
2711                 com.google.protobuf.Timestamp.Builder,
2712                 com.google.protobuf.TimestampOrBuilder>(
2713                 getUpdateTime(), getParentForChildren(), isClean());
2714         updateTime_ = null;
2715       }
2716       return updateTimeBuilder_;
2717     }
2718 
2719     private java.lang.Object cloudIdentityId_ = "";
2720     /**
2721      *
2722      *
2723      * <pre>
2724      * Output only. The customer's Cloud Identity ID if the customer has a Cloud
2725      * Identity resource.
2726      * </pre>
2727      *
2728      * <code>string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2729      *
2730      * @return The cloudIdentityId.
2731      */
getCloudIdentityId()2732     public java.lang.String getCloudIdentityId() {
2733       java.lang.Object ref = cloudIdentityId_;
2734       if (!(ref instanceof java.lang.String)) {
2735         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2736         java.lang.String s = bs.toStringUtf8();
2737         cloudIdentityId_ = s;
2738         return s;
2739       } else {
2740         return (java.lang.String) ref;
2741       }
2742     }
2743     /**
2744      *
2745      *
2746      * <pre>
2747      * Output only. The customer's Cloud Identity ID if the customer has a Cloud
2748      * Identity resource.
2749      * </pre>
2750      *
2751      * <code>string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2752      *
2753      * @return The bytes for cloudIdentityId.
2754      */
getCloudIdentityIdBytes()2755     public com.google.protobuf.ByteString getCloudIdentityIdBytes() {
2756       java.lang.Object ref = cloudIdentityId_;
2757       if (ref instanceof String) {
2758         com.google.protobuf.ByteString b =
2759             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2760         cloudIdentityId_ = b;
2761         return b;
2762       } else {
2763         return (com.google.protobuf.ByteString) ref;
2764       }
2765     }
2766     /**
2767      *
2768      *
2769      * <pre>
2770      * Output only. The customer's Cloud Identity ID if the customer has a Cloud
2771      * Identity resource.
2772      * </pre>
2773      *
2774      * <code>string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2775      *
2776      * @param value The cloudIdentityId to set.
2777      * @return This builder for chaining.
2778      */
setCloudIdentityId(java.lang.String value)2779     public Builder setCloudIdentityId(java.lang.String value) {
2780       if (value == null) {
2781         throw new NullPointerException();
2782       }
2783       cloudIdentityId_ = value;
2784       bitField0_ |= 0x00000100;
2785       onChanged();
2786       return this;
2787     }
2788     /**
2789      *
2790      *
2791      * <pre>
2792      * Output only. The customer's Cloud Identity ID if the customer has a Cloud
2793      * Identity resource.
2794      * </pre>
2795      *
2796      * <code>string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2797      *
2798      * @return This builder for chaining.
2799      */
clearCloudIdentityId()2800     public Builder clearCloudIdentityId() {
2801       cloudIdentityId_ = getDefaultInstance().getCloudIdentityId();
2802       bitField0_ = (bitField0_ & ~0x00000100);
2803       onChanged();
2804       return this;
2805     }
2806     /**
2807      *
2808      *
2809      * <pre>
2810      * Output only. The customer's Cloud Identity ID if the customer has a Cloud
2811      * Identity resource.
2812      * </pre>
2813      *
2814      * <code>string cloud_identity_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2815      *
2816      * @param value The bytes for cloudIdentityId to set.
2817      * @return This builder for chaining.
2818      */
setCloudIdentityIdBytes(com.google.protobuf.ByteString value)2819     public Builder setCloudIdentityIdBytes(com.google.protobuf.ByteString value) {
2820       if (value == null) {
2821         throw new NullPointerException();
2822       }
2823       checkByteStringIsUtf8(value);
2824       cloudIdentityId_ = value;
2825       bitField0_ |= 0x00000100;
2826       onChanged();
2827       return this;
2828     }
2829 
2830     private java.lang.Object languageCode_ = "";
2831     /**
2832      *
2833      *
2834      * <pre>
2835      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
2836      * information, see
2837      * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2838      * </pre>
2839      *
2840      * <code>string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
2841      *
2842      * @return The languageCode.
2843      */
getLanguageCode()2844     public java.lang.String getLanguageCode() {
2845       java.lang.Object ref = languageCode_;
2846       if (!(ref instanceof java.lang.String)) {
2847         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2848         java.lang.String s = bs.toStringUtf8();
2849         languageCode_ = s;
2850         return s;
2851       } else {
2852         return (java.lang.String) ref;
2853       }
2854     }
2855     /**
2856      *
2857      *
2858      * <pre>
2859      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
2860      * information, see
2861      * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2862      * </pre>
2863      *
2864      * <code>string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
2865      *
2866      * @return The bytes for languageCode.
2867      */
getLanguageCodeBytes()2868     public com.google.protobuf.ByteString getLanguageCodeBytes() {
2869       java.lang.Object ref = languageCode_;
2870       if (ref instanceof String) {
2871         com.google.protobuf.ByteString b =
2872             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2873         languageCode_ = b;
2874         return b;
2875       } else {
2876         return (com.google.protobuf.ByteString) ref;
2877       }
2878     }
2879     /**
2880      *
2881      *
2882      * <pre>
2883      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
2884      * information, see
2885      * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2886      * </pre>
2887      *
2888      * <code>string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
2889      *
2890      * @param value The languageCode to set.
2891      * @return This builder for chaining.
2892      */
setLanguageCode(java.lang.String value)2893     public Builder setLanguageCode(java.lang.String value) {
2894       if (value == null) {
2895         throw new NullPointerException();
2896       }
2897       languageCode_ = value;
2898       bitField0_ |= 0x00000200;
2899       onChanged();
2900       return this;
2901     }
2902     /**
2903      *
2904      *
2905      * <pre>
2906      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
2907      * information, see
2908      * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2909      * </pre>
2910      *
2911      * <code>string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
2912      *
2913      * @return This builder for chaining.
2914      */
clearLanguageCode()2915     public Builder clearLanguageCode() {
2916       languageCode_ = getDefaultInstance().getLanguageCode();
2917       bitField0_ = (bitField0_ & ~0x00000200);
2918       onChanged();
2919       return this;
2920     }
2921     /**
2922      *
2923      *
2924      * <pre>
2925      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
2926      * information, see
2927      * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2928      * </pre>
2929      *
2930      * <code>string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
2931      *
2932      * @param value The bytes for languageCode to set.
2933      * @return This builder for chaining.
2934      */
setLanguageCodeBytes(com.google.protobuf.ByteString value)2935     public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
2936       if (value == null) {
2937         throw new NullPointerException();
2938       }
2939       checkByteStringIsUtf8(value);
2940       languageCode_ = value;
2941       bitField0_ |= 0x00000200;
2942       onChanged();
2943       return this;
2944     }
2945 
2946     private com.google.cloud.channel.v1.CloudIdentityInfo cloudIdentityInfo_;
2947     private com.google.protobuf.SingleFieldBuilderV3<
2948             com.google.cloud.channel.v1.CloudIdentityInfo,
2949             com.google.cloud.channel.v1.CloudIdentityInfo.Builder,
2950             com.google.cloud.channel.v1.CloudIdentityInfoOrBuilder>
2951         cloudIdentityInfoBuilder_;
2952     /**
2953      *
2954      *
2955      * <pre>
2956      * Output only. Cloud Identity information for the customer.
2957      * Populated only if a Cloud Identity account exists for this customer.
2958      * </pre>
2959      *
2960      * <code>
2961      * .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
2962      * </code>
2963      *
2964      * @return Whether the cloudIdentityInfo field is set.
2965      */
hasCloudIdentityInfo()2966     public boolean hasCloudIdentityInfo() {
2967       return ((bitField0_ & 0x00000400) != 0);
2968     }
2969     /**
2970      *
2971      *
2972      * <pre>
2973      * Output only. Cloud Identity information for the customer.
2974      * Populated only if a Cloud Identity account exists for this customer.
2975      * </pre>
2976      *
2977      * <code>
2978      * .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
2979      * </code>
2980      *
2981      * @return The cloudIdentityInfo.
2982      */
getCloudIdentityInfo()2983     public com.google.cloud.channel.v1.CloudIdentityInfo getCloudIdentityInfo() {
2984       if (cloudIdentityInfoBuilder_ == null) {
2985         return cloudIdentityInfo_ == null
2986             ? com.google.cloud.channel.v1.CloudIdentityInfo.getDefaultInstance()
2987             : cloudIdentityInfo_;
2988       } else {
2989         return cloudIdentityInfoBuilder_.getMessage();
2990       }
2991     }
2992     /**
2993      *
2994      *
2995      * <pre>
2996      * Output only. Cloud Identity information for the customer.
2997      * Populated only if a Cloud Identity account exists for this customer.
2998      * </pre>
2999      *
3000      * <code>
3001      * .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3002      * </code>
3003      */
setCloudIdentityInfo(com.google.cloud.channel.v1.CloudIdentityInfo value)3004     public Builder setCloudIdentityInfo(com.google.cloud.channel.v1.CloudIdentityInfo value) {
3005       if (cloudIdentityInfoBuilder_ == null) {
3006         if (value == null) {
3007           throw new NullPointerException();
3008         }
3009         cloudIdentityInfo_ = value;
3010       } else {
3011         cloudIdentityInfoBuilder_.setMessage(value);
3012       }
3013       bitField0_ |= 0x00000400;
3014       onChanged();
3015       return this;
3016     }
3017     /**
3018      *
3019      *
3020      * <pre>
3021      * Output only. Cloud Identity information for the customer.
3022      * Populated only if a Cloud Identity account exists for this customer.
3023      * </pre>
3024      *
3025      * <code>
3026      * .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3027      * </code>
3028      */
setCloudIdentityInfo( com.google.cloud.channel.v1.CloudIdentityInfo.Builder builderForValue)3029     public Builder setCloudIdentityInfo(
3030         com.google.cloud.channel.v1.CloudIdentityInfo.Builder builderForValue) {
3031       if (cloudIdentityInfoBuilder_ == null) {
3032         cloudIdentityInfo_ = builderForValue.build();
3033       } else {
3034         cloudIdentityInfoBuilder_.setMessage(builderForValue.build());
3035       }
3036       bitField0_ |= 0x00000400;
3037       onChanged();
3038       return this;
3039     }
3040     /**
3041      *
3042      *
3043      * <pre>
3044      * Output only. Cloud Identity information for the customer.
3045      * Populated only if a Cloud Identity account exists for this customer.
3046      * </pre>
3047      *
3048      * <code>
3049      * .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3050      * </code>
3051      */
mergeCloudIdentityInfo(com.google.cloud.channel.v1.CloudIdentityInfo value)3052     public Builder mergeCloudIdentityInfo(com.google.cloud.channel.v1.CloudIdentityInfo value) {
3053       if (cloudIdentityInfoBuilder_ == null) {
3054         if (((bitField0_ & 0x00000400) != 0)
3055             && cloudIdentityInfo_ != null
3056             && cloudIdentityInfo_
3057                 != com.google.cloud.channel.v1.CloudIdentityInfo.getDefaultInstance()) {
3058           getCloudIdentityInfoBuilder().mergeFrom(value);
3059         } else {
3060           cloudIdentityInfo_ = value;
3061         }
3062       } else {
3063         cloudIdentityInfoBuilder_.mergeFrom(value);
3064       }
3065       bitField0_ |= 0x00000400;
3066       onChanged();
3067       return this;
3068     }
3069     /**
3070      *
3071      *
3072      * <pre>
3073      * Output only. Cloud Identity information for the customer.
3074      * Populated only if a Cloud Identity account exists for this customer.
3075      * </pre>
3076      *
3077      * <code>
3078      * .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3079      * </code>
3080      */
clearCloudIdentityInfo()3081     public Builder clearCloudIdentityInfo() {
3082       bitField0_ = (bitField0_ & ~0x00000400);
3083       cloudIdentityInfo_ = null;
3084       if (cloudIdentityInfoBuilder_ != null) {
3085         cloudIdentityInfoBuilder_.dispose();
3086         cloudIdentityInfoBuilder_ = null;
3087       }
3088       onChanged();
3089       return this;
3090     }
3091     /**
3092      *
3093      *
3094      * <pre>
3095      * Output only. Cloud Identity information for the customer.
3096      * Populated only if a Cloud Identity account exists for this customer.
3097      * </pre>
3098      *
3099      * <code>
3100      * .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3101      * </code>
3102      */
getCloudIdentityInfoBuilder()3103     public com.google.cloud.channel.v1.CloudIdentityInfo.Builder getCloudIdentityInfoBuilder() {
3104       bitField0_ |= 0x00000400;
3105       onChanged();
3106       return getCloudIdentityInfoFieldBuilder().getBuilder();
3107     }
3108     /**
3109      *
3110      *
3111      * <pre>
3112      * Output only. Cloud Identity information for the customer.
3113      * Populated only if a Cloud Identity account exists for this customer.
3114      * </pre>
3115      *
3116      * <code>
3117      * .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3118      * </code>
3119      */
getCloudIdentityInfoOrBuilder()3120     public com.google.cloud.channel.v1.CloudIdentityInfoOrBuilder getCloudIdentityInfoOrBuilder() {
3121       if (cloudIdentityInfoBuilder_ != null) {
3122         return cloudIdentityInfoBuilder_.getMessageOrBuilder();
3123       } else {
3124         return cloudIdentityInfo_ == null
3125             ? com.google.cloud.channel.v1.CloudIdentityInfo.getDefaultInstance()
3126             : cloudIdentityInfo_;
3127       }
3128     }
3129     /**
3130      *
3131      *
3132      * <pre>
3133      * Output only. Cloud Identity information for the customer.
3134      * Populated only if a Cloud Identity account exists for this customer.
3135      * </pre>
3136      *
3137      * <code>
3138      * .google.cloud.channel.v1.CloudIdentityInfo cloud_identity_info = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3139      * </code>
3140      */
3141     private com.google.protobuf.SingleFieldBuilderV3<
3142             com.google.cloud.channel.v1.CloudIdentityInfo,
3143             com.google.cloud.channel.v1.CloudIdentityInfo.Builder,
3144             com.google.cloud.channel.v1.CloudIdentityInfoOrBuilder>
getCloudIdentityInfoFieldBuilder()3145         getCloudIdentityInfoFieldBuilder() {
3146       if (cloudIdentityInfoBuilder_ == null) {
3147         cloudIdentityInfoBuilder_ =
3148             new com.google.protobuf.SingleFieldBuilderV3<
3149                 com.google.cloud.channel.v1.CloudIdentityInfo,
3150                 com.google.cloud.channel.v1.CloudIdentityInfo.Builder,
3151                 com.google.cloud.channel.v1.CloudIdentityInfoOrBuilder>(
3152                 getCloudIdentityInfo(), getParentForChildren(), isClean());
3153         cloudIdentityInfo_ = null;
3154       }
3155       return cloudIdentityInfoBuilder_;
3156     }
3157 
3158     private java.lang.Object channelPartnerId_ = "";
3159     /**
3160      *
3161      *
3162      * <pre>
3163      * Cloud Identity ID of the customer's channel partner.
3164      * Populated only if a channel partner exists for this customer.
3165      * </pre>
3166      *
3167      * <code>string channel_partner_id = 13;</code>
3168      *
3169      * @return The channelPartnerId.
3170      */
getChannelPartnerId()3171     public java.lang.String getChannelPartnerId() {
3172       java.lang.Object ref = channelPartnerId_;
3173       if (!(ref instanceof java.lang.String)) {
3174         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3175         java.lang.String s = bs.toStringUtf8();
3176         channelPartnerId_ = s;
3177         return s;
3178       } else {
3179         return (java.lang.String) ref;
3180       }
3181     }
3182     /**
3183      *
3184      *
3185      * <pre>
3186      * Cloud Identity ID of the customer's channel partner.
3187      * Populated only if a channel partner exists for this customer.
3188      * </pre>
3189      *
3190      * <code>string channel_partner_id = 13;</code>
3191      *
3192      * @return The bytes for channelPartnerId.
3193      */
getChannelPartnerIdBytes()3194     public com.google.protobuf.ByteString getChannelPartnerIdBytes() {
3195       java.lang.Object ref = channelPartnerId_;
3196       if (ref instanceof String) {
3197         com.google.protobuf.ByteString b =
3198             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3199         channelPartnerId_ = b;
3200         return b;
3201       } else {
3202         return (com.google.protobuf.ByteString) ref;
3203       }
3204     }
3205     /**
3206      *
3207      *
3208      * <pre>
3209      * Cloud Identity ID of the customer's channel partner.
3210      * Populated only if a channel partner exists for this customer.
3211      * </pre>
3212      *
3213      * <code>string channel_partner_id = 13;</code>
3214      *
3215      * @param value The channelPartnerId to set.
3216      * @return This builder for chaining.
3217      */
setChannelPartnerId(java.lang.String value)3218     public Builder setChannelPartnerId(java.lang.String value) {
3219       if (value == null) {
3220         throw new NullPointerException();
3221       }
3222       channelPartnerId_ = value;
3223       bitField0_ |= 0x00000800;
3224       onChanged();
3225       return this;
3226     }
3227     /**
3228      *
3229      *
3230      * <pre>
3231      * Cloud Identity ID of the customer's channel partner.
3232      * Populated only if a channel partner exists for this customer.
3233      * </pre>
3234      *
3235      * <code>string channel_partner_id = 13;</code>
3236      *
3237      * @return This builder for chaining.
3238      */
clearChannelPartnerId()3239     public Builder clearChannelPartnerId() {
3240       channelPartnerId_ = getDefaultInstance().getChannelPartnerId();
3241       bitField0_ = (bitField0_ & ~0x00000800);
3242       onChanged();
3243       return this;
3244     }
3245     /**
3246      *
3247      *
3248      * <pre>
3249      * Cloud Identity ID of the customer's channel partner.
3250      * Populated only if a channel partner exists for this customer.
3251      * </pre>
3252      *
3253      * <code>string channel_partner_id = 13;</code>
3254      *
3255      * @param value The bytes for channelPartnerId to set.
3256      * @return This builder for chaining.
3257      */
setChannelPartnerIdBytes(com.google.protobuf.ByteString value)3258     public Builder setChannelPartnerIdBytes(com.google.protobuf.ByteString value) {
3259       if (value == null) {
3260         throw new NullPointerException();
3261       }
3262       checkByteStringIsUtf8(value);
3263       channelPartnerId_ = value;
3264       bitField0_ |= 0x00000800;
3265       onChanged();
3266       return this;
3267     }
3268 
3269     private java.lang.Object correlationId_ = "";
3270     /**
3271      *
3272      *
3273      * <pre>
3274      * Optional. External CRM ID for the customer.
3275      * Populated only if a CRM ID exists for this customer.
3276      * </pre>
3277      *
3278      * <code>string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
3279      *
3280      * @return The correlationId.
3281      */
getCorrelationId()3282     public java.lang.String getCorrelationId() {
3283       java.lang.Object ref = correlationId_;
3284       if (!(ref instanceof java.lang.String)) {
3285         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3286         java.lang.String s = bs.toStringUtf8();
3287         correlationId_ = s;
3288         return s;
3289       } else {
3290         return (java.lang.String) ref;
3291       }
3292     }
3293     /**
3294      *
3295      *
3296      * <pre>
3297      * Optional. External CRM ID for the customer.
3298      * Populated only if a CRM ID exists for this customer.
3299      * </pre>
3300      *
3301      * <code>string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
3302      *
3303      * @return The bytes for correlationId.
3304      */
getCorrelationIdBytes()3305     public com.google.protobuf.ByteString getCorrelationIdBytes() {
3306       java.lang.Object ref = correlationId_;
3307       if (ref instanceof String) {
3308         com.google.protobuf.ByteString b =
3309             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3310         correlationId_ = b;
3311         return b;
3312       } else {
3313         return (com.google.protobuf.ByteString) ref;
3314       }
3315     }
3316     /**
3317      *
3318      *
3319      * <pre>
3320      * Optional. External CRM ID for the customer.
3321      * Populated only if a CRM ID exists for this customer.
3322      * </pre>
3323      *
3324      * <code>string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
3325      *
3326      * @param value The correlationId to set.
3327      * @return This builder for chaining.
3328      */
setCorrelationId(java.lang.String value)3329     public Builder setCorrelationId(java.lang.String value) {
3330       if (value == null) {
3331         throw new NullPointerException();
3332       }
3333       correlationId_ = value;
3334       bitField0_ |= 0x00001000;
3335       onChanged();
3336       return this;
3337     }
3338     /**
3339      *
3340      *
3341      * <pre>
3342      * Optional. External CRM ID for the customer.
3343      * Populated only if a CRM ID exists for this customer.
3344      * </pre>
3345      *
3346      * <code>string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
3347      *
3348      * @return This builder for chaining.
3349      */
clearCorrelationId()3350     public Builder clearCorrelationId() {
3351       correlationId_ = getDefaultInstance().getCorrelationId();
3352       bitField0_ = (bitField0_ & ~0x00001000);
3353       onChanged();
3354       return this;
3355     }
3356     /**
3357      *
3358      *
3359      * <pre>
3360      * Optional. External CRM ID for the customer.
3361      * Populated only if a CRM ID exists for this customer.
3362      * </pre>
3363      *
3364      * <code>string correlation_id = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
3365      *
3366      * @param value The bytes for correlationId to set.
3367      * @return This builder for chaining.
3368      */
setCorrelationIdBytes(com.google.protobuf.ByteString value)3369     public Builder setCorrelationIdBytes(com.google.protobuf.ByteString value) {
3370       if (value == null) {
3371         throw new NullPointerException();
3372       }
3373       checkByteStringIsUtf8(value);
3374       correlationId_ = value;
3375       bitField0_ |= 0x00001000;
3376       onChanged();
3377       return this;
3378     }
3379 
3380     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3381     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
3382       return super.setUnknownFields(unknownFields);
3383     }
3384 
3385     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3386     public final Builder mergeUnknownFields(
3387         final com.google.protobuf.UnknownFieldSet unknownFields) {
3388       return super.mergeUnknownFields(unknownFields);
3389     }
3390 
3391     // @@protoc_insertion_point(builder_scope:google.cloud.channel.v1.Customer)
3392   }
3393 
3394   // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.Customer)
3395   private static final com.google.cloud.channel.v1.Customer DEFAULT_INSTANCE;
3396 
3397   static {
3398     DEFAULT_INSTANCE = new com.google.cloud.channel.v1.Customer();
3399   }
3400 
getDefaultInstance()3401   public static com.google.cloud.channel.v1.Customer getDefaultInstance() {
3402     return DEFAULT_INSTANCE;
3403   }
3404 
3405   private static final com.google.protobuf.Parser<Customer> PARSER =
3406       new com.google.protobuf.AbstractParser<Customer>() {
3407         @java.lang.Override
3408         public Customer parsePartialFrom(
3409             com.google.protobuf.CodedInputStream input,
3410             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3411             throws com.google.protobuf.InvalidProtocolBufferException {
3412           Builder builder = newBuilder();
3413           try {
3414             builder.mergeFrom(input, extensionRegistry);
3415           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3416             throw e.setUnfinishedMessage(builder.buildPartial());
3417           } catch (com.google.protobuf.UninitializedMessageException e) {
3418             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3419           } catch (java.io.IOException e) {
3420             throw new com.google.protobuf.InvalidProtocolBufferException(e)
3421                 .setUnfinishedMessage(builder.buildPartial());
3422           }
3423           return builder.buildPartial();
3424         }
3425       };
3426 
parser()3427   public static com.google.protobuf.Parser<Customer> parser() {
3428     return PARSER;
3429   }
3430 
3431   @java.lang.Override
getParserForType()3432   public com.google.protobuf.Parser<Customer> getParserForType() {
3433     return PARSER;
3434   }
3435 
3436   @java.lang.Override
getDefaultInstanceForType()3437   public com.google.cloud.channel.v1.Customer getDefaultInstanceForType() {
3438     return DEFAULT_INSTANCE;
3439   }
3440 }
3441