• 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/channel_partner_links.proto
18 
19 package com.google.cloud.channel.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Entity representing a link between distributors and their indirect
26  * resellers in an n-tier resale channel.
27  * </pre>
28  *
29  * Protobuf type {@code google.cloud.channel.v1.ChannelPartnerLink}
30  */
31 public final class ChannelPartnerLink extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.ChannelPartnerLink)
34     ChannelPartnerLinkOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use ChannelPartnerLink.newBuilder() to construct.
ChannelPartnerLink(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private ChannelPartnerLink(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
ChannelPartnerLink()41   private ChannelPartnerLink() {
42     name_ = "";
43     resellerCloudIdentityId_ = "";
44     linkState_ = 0;
45     inviteLinkUri_ = "";
46     publicId_ = "";
47   }
48 
49   @java.lang.Override
50   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)51   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
52     return new ChannelPartnerLink();
53   }
54 
55   @java.lang.Override
getUnknownFields()56   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
57     return this.unknownFields;
58   }
59 
getDescriptor()60   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
61     return com.google.cloud.channel.v1.ChannelPartnerLinksProto
62         .internal_static_google_cloud_channel_v1_ChannelPartnerLink_descriptor;
63   }
64 
65   @java.lang.Override
66   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()67       internalGetFieldAccessorTable() {
68     return com.google.cloud.channel.v1.ChannelPartnerLinksProto
69         .internal_static_google_cloud_channel_v1_ChannelPartnerLink_fieldAccessorTable
70         .ensureFieldAccessorsInitialized(
71             com.google.cloud.channel.v1.ChannelPartnerLink.class,
72             com.google.cloud.channel.v1.ChannelPartnerLink.Builder.class);
73   }
74 
75   public static final int NAME_FIELD_NUMBER = 1;
76 
77   @SuppressWarnings("serial")
78   private volatile java.lang.Object name_ = "";
79   /**
80    *
81    *
82    * <pre>
83    * Output only. Resource name for the channel partner link, in the format
84    * accounts/{account_id}/channelPartnerLinks/{id}.
85    * </pre>
86    *
87    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
88    *
89    * @return The name.
90    */
91   @java.lang.Override
getName()92   public java.lang.String getName() {
93     java.lang.Object ref = name_;
94     if (ref instanceof java.lang.String) {
95       return (java.lang.String) ref;
96     } else {
97       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
98       java.lang.String s = bs.toStringUtf8();
99       name_ = s;
100       return s;
101     }
102   }
103   /**
104    *
105    *
106    * <pre>
107    * Output only. Resource name for the channel partner link, in the format
108    * accounts/{account_id}/channelPartnerLinks/{id}.
109    * </pre>
110    *
111    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
112    *
113    * @return The bytes for name.
114    */
115   @java.lang.Override
getNameBytes()116   public com.google.protobuf.ByteString getNameBytes() {
117     java.lang.Object ref = name_;
118     if (ref instanceof java.lang.String) {
119       com.google.protobuf.ByteString b =
120           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
121       name_ = b;
122       return b;
123     } else {
124       return (com.google.protobuf.ByteString) ref;
125     }
126   }
127 
128   public static final int RESELLER_CLOUD_IDENTITY_ID_FIELD_NUMBER = 2;
129 
130   @SuppressWarnings("serial")
131   private volatile java.lang.Object resellerCloudIdentityId_ = "";
132   /**
133    *
134    *
135    * <pre>
136    * Required. Cloud Identity ID of the linked reseller.
137    * </pre>
138    *
139    * <code>string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
140    *
141    * @return The resellerCloudIdentityId.
142    */
143   @java.lang.Override
getResellerCloudIdentityId()144   public java.lang.String getResellerCloudIdentityId() {
145     java.lang.Object ref = resellerCloudIdentityId_;
146     if (ref instanceof java.lang.String) {
147       return (java.lang.String) ref;
148     } else {
149       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
150       java.lang.String s = bs.toStringUtf8();
151       resellerCloudIdentityId_ = s;
152       return s;
153     }
154   }
155   /**
156    *
157    *
158    * <pre>
159    * Required. Cloud Identity ID of the linked reseller.
160    * </pre>
161    *
162    * <code>string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
163    *
164    * @return The bytes for resellerCloudIdentityId.
165    */
166   @java.lang.Override
getResellerCloudIdentityIdBytes()167   public com.google.protobuf.ByteString getResellerCloudIdentityIdBytes() {
168     java.lang.Object ref = resellerCloudIdentityId_;
169     if (ref instanceof java.lang.String) {
170       com.google.protobuf.ByteString b =
171           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
172       resellerCloudIdentityId_ = b;
173       return b;
174     } else {
175       return (com.google.protobuf.ByteString) ref;
176     }
177   }
178 
179   public static final int LINK_STATE_FIELD_NUMBER = 3;
180   private int linkState_ = 0;
181   /**
182    *
183    *
184    * <pre>
185    * Required. State of the channel partner link.
186    * </pre>
187    *
188    * <code>
189    * .google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];
190    * </code>
191    *
192    * @return The enum numeric value on the wire for linkState.
193    */
194   @java.lang.Override
getLinkStateValue()195   public int getLinkStateValue() {
196     return linkState_;
197   }
198   /**
199    *
200    *
201    * <pre>
202    * Required. State of the channel partner link.
203    * </pre>
204    *
205    * <code>
206    * .google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];
207    * </code>
208    *
209    * @return The linkState.
210    */
211   @java.lang.Override
getLinkState()212   public com.google.cloud.channel.v1.ChannelPartnerLinkState getLinkState() {
213     com.google.cloud.channel.v1.ChannelPartnerLinkState result =
214         com.google.cloud.channel.v1.ChannelPartnerLinkState.forNumber(linkState_);
215     return result == null
216         ? com.google.cloud.channel.v1.ChannelPartnerLinkState.UNRECOGNIZED
217         : result;
218   }
219 
220   public static final int INVITE_LINK_URI_FIELD_NUMBER = 4;
221 
222   @SuppressWarnings("serial")
223   private volatile java.lang.Object inviteLinkUri_ = "";
224   /**
225    *
226    *
227    * <pre>
228    * Output only. URI of the web page where partner accepts the link invitation.
229    * </pre>
230    *
231    * <code>string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
232    *
233    * @return The inviteLinkUri.
234    */
235   @java.lang.Override
getInviteLinkUri()236   public java.lang.String getInviteLinkUri() {
237     java.lang.Object ref = inviteLinkUri_;
238     if (ref instanceof java.lang.String) {
239       return (java.lang.String) ref;
240     } else {
241       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
242       java.lang.String s = bs.toStringUtf8();
243       inviteLinkUri_ = s;
244       return s;
245     }
246   }
247   /**
248    *
249    *
250    * <pre>
251    * Output only. URI of the web page where partner accepts the link invitation.
252    * </pre>
253    *
254    * <code>string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
255    *
256    * @return The bytes for inviteLinkUri.
257    */
258   @java.lang.Override
getInviteLinkUriBytes()259   public com.google.protobuf.ByteString getInviteLinkUriBytes() {
260     java.lang.Object ref = inviteLinkUri_;
261     if (ref instanceof java.lang.String) {
262       com.google.protobuf.ByteString b =
263           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
264       inviteLinkUri_ = b;
265       return b;
266     } else {
267       return (com.google.protobuf.ByteString) ref;
268     }
269   }
270 
271   public static final int CREATE_TIME_FIELD_NUMBER = 5;
272   private com.google.protobuf.Timestamp createTime_;
273   /**
274    *
275    *
276    * <pre>
277    * Output only. Timestamp of when the channel partner link is created.
278    * </pre>
279    *
280    * <code>.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
281    * </code>
282    *
283    * @return Whether the createTime field is set.
284    */
285   @java.lang.Override
hasCreateTime()286   public boolean hasCreateTime() {
287     return createTime_ != null;
288   }
289   /**
290    *
291    *
292    * <pre>
293    * Output only. Timestamp of when the channel partner link is created.
294    * </pre>
295    *
296    * <code>.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
297    * </code>
298    *
299    * @return The createTime.
300    */
301   @java.lang.Override
getCreateTime()302   public com.google.protobuf.Timestamp getCreateTime() {
303     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
304   }
305   /**
306    *
307    *
308    * <pre>
309    * Output only. Timestamp of when the channel partner link is created.
310    * </pre>
311    *
312    * <code>.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
313    * </code>
314    */
315   @java.lang.Override
getCreateTimeOrBuilder()316   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
317     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
318   }
319 
320   public static final int UPDATE_TIME_FIELD_NUMBER = 6;
321   private com.google.protobuf.Timestamp updateTime_;
322   /**
323    *
324    *
325    * <pre>
326    * Output only. Timestamp of when the channel partner link is updated.
327    * </pre>
328    *
329    * <code>.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
330    * </code>
331    *
332    * @return Whether the updateTime field is set.
333    */
334   @java.lang.Override
hasUpdateTime()335   public boolean hasUpdateTime() {
336     return updateTime_ != null;
337   }
338   /**
339    *
340    *
341    * <pre>
342    * Output only. Timestamp of when the channel partner link is updated.
343    * </pre>
344    *
345    * <code>.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
346    * </code>
347    *
348    * @return The updateTime.
349    */
350   @java.lang.Override
getUpdateTime()351   public com.google.protobuf.Timestamp getUpdateTime() {
352     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
353   }
354   /**
355    *
356    *
357    * <pre>
358    * Output only. Timestamp of when the channel partner link is updated.
359    * </pre>
360    *
361    * <code>.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
362    * </code>
363    */
364   @java.lang.Override
getUpdateTimeOrBuilder()365   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
366     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
367   }
368 
369   public static final int PUBLIC_ID_FIELD_NUMBER = 7;
370 
371   @SuppressWarnings("serial")
372   private volatile java.lang.Object publicId_ = "";
373   /**
374    *
375    *
376    * <pre>
377    * Output only. Public identifier that a customer must use to generate a
378    * transfer token to move to this distributor-reseller combination.
379    * </pre>
380    *
381    * <code>string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
382    *
383    * @return The publicId.
384    */
385   @java.lang.Override
getPublicId()386   public java.lang.String getPublicId() {
387     java.lang.Object ref = publicId_;
388     if (ref instanceof java.lang.String) {
389       return (java.lang.String) ref;
390     } else {
391       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
392       java.lang.String s = bs.toStringUtf8();
393       publicId_ = s;
394       return s;
395     }
396   }
397   /**
398    *
399    *
400    * <pre>
401    * Output only. Public identifier that a customer must use to generate a
402    * transfer token to move to this distributor-reseller combination.
403    * </pre>
404    *
405    * <code>string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
406    *
407    * @return The bytes for publicId.
408    */
409   @java.lang.Override
getPublicIdBytes()410   public com.google.protobuf.ByteString getPublicIdBytes() {
411     java.lang.Object ref = publicId_;
412     if (ref instanceof java.lang.String) {
413       com.google.protobuf.ByteString b =
414           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
415       publicId_ = b;
416       return b;
417     } else {
418       return (com.google.protobuf.ByteString) ref;
419     }
420   }
421 
422   public static final int CHANNEL_PARTNER_CLOUD_IDENTITY_INFO_FIELD_NUMBER = 8;
423   private com.google.cloud.channel.v1.CloudIdentityInfo channelPartnerCloudIdentityInfo_;
424   /**
425    *
426    *
427    * <pre>
428    * Output only. Cloud Identity info of the channel partner (IR).
429    * </pre>
430    *
431    * <code>
432    * .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
433    * </code>
434    *
435    * @return Whether the channelPartnerCloudIdentityInfo field is set.
436    */
437   @java.lang.Override
hasChannelPartnerCloudIdentityInfo()438   public boolean hasChannelPartnerCloudIdentityInfo() {
439     return channelPartnerCloudIdentityInfo_ != null;
440   }
441   /**
442    *
443    *
444    * <pre>
445    * Output only. Cloud Identity info of the channel partner (IR).
446    * </pre>
447    *
448    * <code>
449    * .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
450    * </code>
451    *
452    * @return The channelPartnerCloudIdentityInfo.
453    */
454   @java.lang.Override
getChannelPartnerCloudIdentityInfo()455   public com.google.cloud.channel.v1.CloudIdentityInfo getChannelPartnerCloudIdentityInfo() {
456     return channelPartnerCloudIdentityInfo_ == null
457         ? com.google.cloud.channel.v1.CloudIdentityInfo.getDefaultInstance()
458         : channelPartnerCloudIdentityInfo_;
459   }
460   /**
461    *
462    *
463    * <pre>
464    * Output only. Cloud Identity info of the channel partner (IR).
465    * </pre>
466    *
467    * <code>
468    * .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
469    * </code>
470    */
471   @java.lang.Override
472   public com.google.cloud.channel.v1.CloudIdentityInfoOrBuilder
getChannelPartnerCloudIdentityInfoOrBuilder()473       getChannelPartnerCloudIdentityInfoOrBuilder() {
474     return channelPartnerCloudIdentityInfo_ == null
475         ? com.google.cloud.channel.v1.CloudIdentityInfo.getDefaultInstance()
476         : channelPartnerCloudIdentityInfo_;
477   }
478 
479   private byte memoizedIsInitialized = -1;
480 
481   @java.lang.Override
isInitialized()482   public final boolean isInitialized() {
483     byte isInitialized = memoizedIsInitialized;
484     if (isInitialized == 1) return true;
485     if (isInitialized == 0) return false;
486 
487     memoizedIsInitialized = 1;
488     return true;
489   }
490 
491   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)492   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
493     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
494       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
495     }
496     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resellerCloudIdentityId_)) {
497       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resellerCloudIdentityId_);
498     }
499     if (linkState_
500         != com.google.cloud.channel.v1.ChannelPartnerLinkState
501             .CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED
502             .getNumber()) {
503       output.writeEnum(3, linkState_);
504     }
505     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inviteLinkUri_)) {
506       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, inviteLinkUri_);
507     }
508     if (createTime_ != null) {
509       output.writeMessage(5, getCreateTime());
510     }
511     if (updateTime_ != null) {
512       output.writeMessage(6, getUpdateTime());
513     }
514     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicId_)) {
515       com.google.protobuf.GeneratedMessageV3.writeString(output, 7, publicId_);
516     }
517     if (channelPartnerCloudIdentityInfo_ != null) {
518       output.writeMessage(8, getChannelPartnerCloudIdentityInfo());
519     }
520     getUnknownFields().writeTo(output);
521   }
522 
523   @java.lang.Override
getSerializedSize()524   public int getSerializedSize() {
525     int size = memoizedSize;
526     if (size != -1) return size;
527 
528     size = 0;
529     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
530       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
531     }
532     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resellerCloudIdentityId_)) {
533       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resellerCloudIdentityId_);
534     }
535     if (linkState_
536         != com.google.cloud.channel.v1.ChannelPartnerLinkState
537             .CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED
538             .getNumber()) {
539       size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, linkState_);
540     }
541     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inviteLinkUri_)) {
542       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, inviteLinkUri_);
543     }
544     if (createTime_ != null) {
545       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime());
546     }
547     if (updateTime_ != null) {
548       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime());
549     }
550     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicId_)) {
551       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, publicId_);
552     }
553     if (channelPartnerCloudIdentityInfo_ != null) {
554       size +=
555           com.google.protobuf.CodedOutputStream.computeMessageSize(
556               8, getChannelPartnerCloudIdentityInfo());
557     }
558     size += getUnknownFields().getSerializedSize();
559     memoizedSize = size;
560     return size;
561   }
562 
563   @java.lang.Override
equals(final java.lang.Object obj)564   public boolean equals(final java.lang.Object obj) {
565     if (obj == this) {
566       return true;
567     }
568     if (!(obj instanceof com.google.cloud.channel.v1.ChannelPartnerLink)) {
569       return super.equals(obj);
570     }
571     com.google.cloud.channel.v1.ChannelPartnerLink other =
572         (com.google.cloud.channel.v1.ChannelPartnerLink) obj;
573 
574     if (!getName().equals(other.getName())) return false;
575     if (!getResellerCloudIdentityId().equals(other.getResellerCloudIdentityId())) return false;
576     if (linkState_ != other.linkState_) return false;
577     if (!getInviteLinkUri().equals(other.getInviteLinkUri())) return false;
578     if (hasCreateTime() != other.hasCreateTime()) return false;
579     if (hasCreateTime()) {
580       if (!getCreateTime().equals(other.getCreateTime())) return false;
581     }
582     if (hasUpdateTime() != other.hasUpdateTime()) return false;
583     if (hasUpdateTime()) {
584       if (!getUpdateTime().equals(other.getUpdateTime())) return false;
585     }
586     if (!getPublicId().equals(other.getPublicId())) return false;
587     if (hasChannelPartnerCloudIdentityInfo() != other.hasChannelPartnerCloudIdentityInfo())
588       return false;
589     if (hasChannelPartnerCloudIdentityInfo()) {
590       if (!getChannelPartnerCloudIdentityInfo().equals(other.getChannelPartnerCloudIdentityInfo()))
591         return false;
592     }
593     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
594     return true;
595   }
596 
597   @java.lang.Override
hashCode()598   public int hashCode() {
599     if (memoizedHashCode != 0) {
600       return memoizedHashCode;
601     }
602     int hash = 41;
603     hash = (19 * hash) + getDescriptor().hashCode();
604     hash = (37 * hash) + NAME_FIELD_NUMBER;
605     hash = (53 * hash) + getName().hashCode();
606     hash = (37 * hash) + RESELLER_CLOUD_IDENTITY_ID_FIELD_NUMBER;
607     hash = (53 * hash) + getResellerCloudIdentityId().hashCode();
608     hash = (37 * hash) + LINK_STATE_FIELD_NUMBER;
609     hash = (53 * hash) + linkState_;
610     hash = (37 * hash) + INVITE_LINK_URI_FIELD_NUMBER;
611     hash = (53 * hash) + getInviteLinkUri().hashCode();
612     if (hasCreateTime()) {
613       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
614       hash = (53 * hash) + getCreateTime().hashCode();
615     }
616     if (hasUpdateTime()) {
617       hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
618       hash = (53 * hash) + getUpdateTime().hashCode();
619     }
620     hash = (37 * hash) + PUBLIC_ID_FIELD_NUMBER;
621     hash = (53 * hash) + getPublicId().hashCode();
622     if (hasChannelPartnerCloudIdentityInfo()) {
623       hash = (37 * hash) + CHANNEL_PARTNER_CLOUD_IDENTITY_INFO_FIELD_NUMBER;
624       hash = (53 * hash) + getChannelPartnerCloudIdentityInfo().hashCode();
625     }
626     hash = (29 * hash) + getUnknownFields().hashCode();
627     memoizedHashCode = hash;
628     return hash;
629   }
630 
parseFrom(java.nio.ByteBuffer data)631   public static com.google.cloud.channel.v1.ChannelPartnerLink parseFrom(java.nio.ByteBuffer data)
632       throws com.google.protobuf.InvalidProtocolBufferException {
633     return PARSER.parseFrom(data);
634   }
635 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)636   public static com.google.cloud.channel.v1.ChannelPartnerLink parseFrom(
637       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
638       throws com.google.protobuf.InvalidProtocolBufferException {
639     return PARSER.parseFrom(data, extensionRegistry);
640   }
641 
parseFrom( com.google.protobuf.ByteString data)642   public static com.google.cloud.channel.v1.ChannelPartnerLink parseFrom(
643       com.google.protobuf.ByteString data)
644       throws com.google.protobuf.InvalidProtocolBufferException {
645     return PARSER.parseFrom(data);
646   }
647 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)648   public static com.google.cloud.channel.v1.ChannelPartnerLink parseFrom(
649       com.google.protobuf.ByteString data,
650       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
651       throws com.google.protobuf.InvalidProtocolBufferException {
652     return PARSER.parseFrom(data, extensionRegistry);
653   }
654 
parseFrom(byte[] data)655   public static com.google.cloud.channel.v1.ChannelPartnerLink parseFrom(byte[] data)
656       throws com.google.protobuf.InvalidProtocolBufferException {
657     return PARSER.parseFrom(data);
658   }
659 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)660   public static com.google.cloud.channel.v1.ChannelPartnerLink parseFrom(
661       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
662       throws com.google.protobuf.InvalidProtocolBufferException {
663     return PARSER.parseFrom(data, extensionRegistry);
664   }
665 
parseFrom(java.io.InputStream input)666   public static com.google.cloud.channel.v1.ChannelPartnerLink parseFrom(java.io.InputStream input)
667       throws java.io.IOException {
668     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
669   }
670 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)671   public static com.google.cloud.channel.v1.ChannelPartnerLink parseFrom(
672       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
673       throws java.io.IOException {
674     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
675         PARSER, input, extensionRegistry);
676   }
677 
parseDelimitedFrom( java.io.InputStream input)678   public static com.google.cloud.channel.v1.ChannelPartnerLink parseDelimitedFrom(
679       java.io.InputStream input) throws java.io.IOException {
680     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
681   }
682 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)683   public static com.google.cloud.channel.v1.ChannelPartnerLink parseDelimitedFrom(
684       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
685       throws java.io.IOException {
686     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
687         PARSER, input, extensionRegistry);
688   }
689 
parseFrom( com.google.protobuf.CodedInputStream input)690   public static com.google.cloud.channel.v1.ChannelPartnerLink parseFrom(
691       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
692     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
693   }
694 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)695   public static com.google.cloud.channel.v1.ChannelPartnerLink parseFrom(
696       com.google.protobuf.CodedInputStream input,
697       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
698       throws java.io.IOException {
699     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
700         PARSER, input, extensionRegistry);
701   }
702 
703   @java.lang.Override
newBuilderForType()704   public Builder newBuilderForType() {
705     return newBuilder();
706   }
707 
newBuilder()708   public static Builder newBuilder() {
709     return DEFAULT_INSTANCE.toBuilder();
710   }
711 
newBuilder(com.google.cloud.channel.v1.ChannelPartnerLink prototype)712   public static Builder newBuilder(com.google.cloud.channel.v1.ChannelPartnerLink prototype) {
713     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
714   }
715 
716   @java.lang.Override
toBuilder()717   public Builder toBuilder() {
718     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
719   }
720 
721   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)722   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
723     Builder builder = new Builder(parent);
724     return builder;
725   }
726   /**
727    *
728    *
729    * <pre>
730    * Entity representing a link between distributors and their indirect
731    * resellers in an n-tier resale channel.
732    * </pre>
733    *
734    * Protobuf type {@code google.cloud.channel.v1.ChannelPartnerLink}
735    */
736   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
737       implements
738       // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.ChannelPartnerLink)
739       com.google.cloud.channel.v1.ChannelPartnerLinkOrBuilder {
getDescriptor()740     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
741       return com.google.cloud.channel.v1.ChannelPartnerLinksProto
742           .internal_static_google_cloud_channel_v1_ChannelPartnerLink_descriptor;
743     }
744 
745     @java.lang.Override
746     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()747         internalGetFieldAccessorTable() {
748       return com.google.cloud.channel.v1.ChannelPartnerLinksProto
749           .internal_static_google_cloud_channel_v1_ChannelPartnerLink_fieldAccessorTable
750           .ensureFieldAccessorsInitialized(
751               com.google.cloud.channel.v1.ChannelPartnerLink.class,
752               com.google.cloud.channel.v1.ChannelPartnerLink.Builder.class);
753     }
754 
755     // Construct using com.google.cloud.channel.v1.ChannelPartnerLink.newBuilder()
Builder()756     private Builder() {}
757 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)758     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
759       super(parent);
760     }
761 
762     @java.lang.Override
clear()763     public Builder clear() {
764       super.clear();
765       bitField0_ = 0;
766       name_ = "";
767       resellerCloudIdentityId_ = "";
768       linkState_ = 0;
769       inviteLinkUri_ = "";
770       createTime_ = null;
771       if (createTimeBuilder_ != null) {
772         createTimeBuilder_.dispose();
773         createTimeBuilder_ = null;
774       }
775       updateTime_ = null;
776       if (updateTimeBuilder_ != null) {
777         updateTimeBuilder_.dispose();
778         updateTimeBuilder_ = null;
779       }
780       publicId_ = "";
781       channelPartnerCloudIdentityInfo_ = null;
782       if (channelPartnerCloudIdentityInfoBuilder_ != null) {
783         channelPartnerCloudIdentityInfoBuilder_.dispose();
784         channelPartnerCloudIdentityInfoBuilder_ = null;
785       }
786       return this;
787     }
788 
789     @java.lang.Override
getDescriptorForType()790     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
791       return com.google.cloud.channel.v1.ChannelPartnerLinksProto
792           .internal_static_google_cloud_channel_v1_ChannelPartnerLink_descriptor;
793     }
794 
795     @java.lang.Override
getDefaultInstanceForType()796     public com.google.cloud.channel.v1.ChannelPartnerLink getDefaultInstanceForType() {
797       return com.google.cloud.channel.v1.ChannelPartnerLink.getDefaultInstance();
798     }
799 
800     @java.lang.Override
build()801     public com.google.cloud.channel.v1.ChannelPartnerLink build() {
802       com.google.cloud.channel.v1.ChannelPartnerLink result = buildPartial();
803       if (!result.isInitialized()) {
804         throw newUninitializedMessageException(result);
805       }
806       return result;
807     }
808 
809     @java.lang.Override
buildPartial()810     public com.google.cloud.channel.v1.ChannelPartnerLink buildPartial() {
811       com.google.cloud.channel.v1.ChannelPartnerLink result =
812           new com.google.cloud.channel.v1.ChannelPartnerLink(this);
813       if (bitField0_ != 0) {
814         buildPartial0(result);
815       }
816       onBuilt();
817       return result;
818     }
819 
buildPartial0(com.google.cloud.channel.v1.ChannelPartnerLink result)820     private void buildPartial0(com.google.cloud.channel.v1.ChannelPartnerLink result) {
821       int from_bitField0_ = bitField0_;
822       if (((from_bitField0_ & 0x00000001) != 0)) {
823         result.name_ = name_;
824       }
825       if (((from_bitField0_ & 0x00000002) != 0)) {
826         result.resellerCloudIdentityId_ = resellerCloudIdentityId_;
827       }
828       if (((from_bitField0_ & 0x00000004) != 0)) {
829         result.linkState_ = linkState_;
830       }
831       if (((from_bitField0_ & 0x00000008) != 0)) {
832         result.inviteLinkUri_ = inviteLinkUri_;
833       }
834       if (((from_bitField0_ & 0x00000010) != 0)) {
835         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
836       }
837       if (((from_bitField0_ & 0x00000020) != 0)) {
838         result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
839       }
840       if (((from_bitField0_ & 0x00000040) != 0)) {
841         result.publicId_ = publicId_;
842       }
843       if (((from_bitField0_ & 0x00000080) != 0)) {
844         result.channelPartnerCloudIdentityInfo_ =
845             channelPartnerCloudIdentityInfoBuilder_ == null
846                 ? channelPartnerCloudIdentityInfo_
847                 : channelPartnerCloudIdentityInfoBuilder_.build();
848       }
849     }
850 
851     @java.lang.Override
clone()852     public Builder clone() {
853       return super.clone();
854     }
855 
856     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)857     public Builder setField(
858         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
859       return super.setField(field, value);
860     }
861 
862     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)863     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
864       return super.clearField(field);
865     }
866 
867     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)868     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
869       return super.clearOneof(oneof);
870     }
871 
872     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)873     public Builder setRepeatedField(
874         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
875       return super.setRepeatedField(field, index, value);
876     }
877 
878     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)879     public Builder addRepeatedField(
880         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
881       return super.addRepeatedField(field, value);
882     }
883 
884     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)885     public Builder mergeFrom(com.google.protobuf.Message other) {
886       if (other instanceof com.google.cloud.channel.v1.ChannelPartnerLink) {
887         return mergeFrom((com.google.cloud.channel.v1.ChannelPartnerLink) other);
888       } else {
889         super.mergeFrom(other);
890         return this;
891       }
892     }
893 
mergeFrom(com.google.cloud.channel.v1.ChannelPartnerLink other)894     public Builder mergeFrom(com.google.cloud.channel.v1.ChannelPartnerLink other) {
895       if (other == com.google.cloud.channel.v1.ChannelPartnerLink.getDefaultInstance()) return this;
896       if (!other.getName().isEmpty()) {
897         name_ = other.name_;
898         bitField0_ |= 0x00000001;
899         onChanged();
900       }
901       if (!other.getResellerCloudIdentityId().isEmpty()) {
902         resellerCloudIdentityId_ = other.resellerCloudIdentityId_;
903         bitField0_ |= 0x00000002;
904         onChanged();
905       }
906       if (other.linkState_ != 0) {
907         setLinkStateValue(other.getLinkStateValue());
908       }
909       if (!other.getInviteLinkUri().isEmpty()) {
910         inviteLinkUri_ = other.inviteLinkUri_;
911         bitField0_ |= 0x00000008;
912         onChanged();
913       }
914       if (other.hasCreateTime()) {
915         mergeCreateTime(other.getCreateTime());
916       }
917       if (other.hasUpdateTime()) {
918         mergeUpdateTime(other.getUpdateTime());
919       }
920       if (!other.getPublicId().isEmpty()) {
921         publicId_ = other.publicId_;
922         bitField0_ |= 0x00000040;
923         onChanged();
924       }
925       if (other.hasChannelPartnerCloudIdentityInfo()) {
926         mergeChannelPartnerCloudIdentityInfo(other.getChannelPartnerCloudIdentityInfo());
927       }
928       this.mergeUnknownFields(other.getUnknownFields());
929       onChanged();
930       return this;
931     }
932 
933     @java.lang.Override
isInitialized()934     public final boolean isInitialized() {
935       return true;
936     }
937 
938     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)939     public Builder mergeFrom(
940         com.google.protobuf.CodedInputStream input,
941         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
942         throws java.io.IOException {
943       if (extensionRegistry == null) {
944         throw new java.lang.NullPointerException();
945       }
946       try {
947         boolean done = false;
948         while (!done) {
949           int tag = input.readTag();
950           switch (tag) {
951             case 0:
952               done = true;
953               break;
954             case 10:
955               {
956                 name_ = input.readStringRequireUtf8();
957                 bitField0_ |= 0x00000001;
958                 break;
959               } // case 10
960             case 18:
961               {
962                 resellerCloudIdentityId_ = input.readStringRequireUtf8();
963                 bitField0_ |= 0x00000002;
964                 break;
965               } // case 18
966             case 24:
967               {
968                 linkState_ = input.readEnum();
969                 bitField0_ |= 0x00000004;
970                 break;
971               } // case 24
972             case 34:
973               {
974                 inviteLinkUri_ = input.readStringRequireUtf8();
975                 bitField0_ |= 0x00000008;
976                 break;
977               } // case 34
978             case 42:
979               {
980                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
981                 bitField0_ |= 0x00000010;
982                 break;
983               } // case 42
984             case 50:
985               {
986                 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
987                 bitField0_ |= 0x00000020;
988                 break;
989               } // case 50
990             case 58:
991               {
992                 publicId_ = input.readStringRequireUtf8();
993                 bitField0_ |= 0x00000040;
994                 break;
995               } // case 58
996             case 66:
997               {
998                 input.readMessage(
999                     getChannelPartnerCloudIdentityInfoFieldBuilder().getBuilder(),
1000                     extensionRegistry);
1001                 bitField0_ |= 0x00000080;
1002                 break;
1003               } // case 66
1004             default:
1005               {
1006                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1007                   done = true; // was an endgroup tag
1008                 }
1009                 break;
1010               } // default:
1011           } // switch (tag)
1012         } // while (!done)
1013       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1014         throw e.unwrapIOException();
1015       } finally {
1016         onChanged();
1017       } // finally
1018       return this;
1019     }
1020 
1021     private int bitField0_;
1022 
1023     private java.lang.Object name_ = "";
1024     /**
1025      *
1026      *
1027      * <pre>
1028      * Output only. Resource name for the channel partner link, in the format
1029      * accounts/{account_id}/channelPartnerLinks/{id}.
1030      * </pre>
1031      *
1032      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1033      *
1034      * @return The name.
1035      */
getName()1036     public java.lang.String getName() {
1037       java.lang.Object ref = name_;
1038       if (!(ref instanceof java.lang.String)) {
1039         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1040         java.lang.String s = bs.toStringUtf8();
1041         name_ = s;
1042         return s;
1043       } else {
1044         return (java.lang.String) ref;
1045       }
1046     }
1047     /**
1048      *
1049      *
1050      * <pre>
1051      * Output only. Resource name for the channel partner link, in the format
1052      * accounts/{account_id}/channelPartnerLinks/{id}.
1053      * </pre>
1054      *
1055      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1056      *
1057      * @return The bytes for name.
1058      */
getNameBytes()1059     public com.google.protobuf.ByteString getNameBytes() {
1060       java.lang.Object ref = name_;
1061       if (ref instanceof String) {
1062         com.google.protobuf.ByteString b =
1063             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1064         name_ = b;
1065         return b;
1066       } else {
1067         return (com.google.protobuf.ByteString) ref;
1068       }
1069     }
1070     /**
1071      *
1072      *
1073      * <pre>
1074      * Output only. Resource name for the channel partner link, in the format
1075      * accounts/{account_id}/channelPartnerLinks/{id}.
1076      * </pre>
1077      *
1078      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1079      *
1080      * @param value The name to set.
1081      * @return This builder for chaining.
1082      */
setName(java.lang.String value)1083     public Builder setName(java.lang.String value) {
1084       if (value == null) {
1085         throw new NullPointerException();
1086       }
1087       name_ = value;
1088       bitField0_ |= 0x00000001;
1089       onChanged();
1090       return this;
1091     }
1092     /**
1093      *
1094      *
1095      * <pre>
1096      * Output only. Resource name for the channel partner link, in the format
1097      * accounts/{account_id}/channelPartnerLinks/{id}.
1098      * </pre>
1099      *
1100      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1101      *
1102      * @return This builder for chaining.
1103      */
clearName()1104     public Builder clearName() {
1105       name_ = getDefaultInstance().getName();
1106       bitField0_ = (bitField0_ & ~0x00000001);
1107       onChanged();
1108       return this;
1109     }
1110     /**
1111      *
1112      *
1113      * <pre>
1114      * Output only. Resource name for the channel partner link, in the format
1115      * accounts/{account_id}/channelPartnerLinks/{id}.
1116      * </pre>
1117      *
1118      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1119      *
1120      * @param value The bytes for name to set.
1121      * @return This builder for chaining.
1122      */
setNameBytes(com.google.protobuf.ByteString value)1123     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1124       if (value == null) {
1125         throw new NullPointerException();
1126       }
1127       checkByteStringIsUtf8(value);
1128       name_ = value;
1129       bitField0_ |= 0x00000001;
1130       onChanged();
1131       return this;
1132     }
1133 
1134     private java.lang.Object resellerCloudIdentityId_ = "";
1135     /**
1136      *
1137      *
1138      * <pre>
1139      * Required. Cloud Identity ID of the linked reseller.
1140      * </pre>
1141      *
1142      * <code>string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1143      *
1144      * @return The resellerCloudIdentityId.
1145      */
getResellerCloudIdentityId()1146     public java.lang.String getResellerCloudIdentityId() {
1147       java.lang.Object ref = resellerCloudIdentityId_;
1148       if (!(ref instanceof java.lang.String)) {
1149         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1150         java.lang.String s = bs.toStringUtf8();
1151         resellerCloudIdentityId_ = s;
1152         return s;
1153       } else {
1154         return (java.lang.String) ref;
1155       }
1156     }
1157     /**
1158      *
1159      *
1160      * <pre>
1161      * Required. Cloud Identity ID of the linked reseller.
1162      * </pre>
1163      *
1164      * <code>string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1165      *
1166      * @return The bytes for resellerCloudIdentityId.
1167      */
getResellerCloudIdentityIdBytes()1168     public com.google.protobuf.ByteString getResellerCloudIdentityIdBytes() {
1169       java.lang.Object ref = resellerCloudIdentityId_;
1170       if (ref instanceof String) {
1171         com.google.protobuf.ByteString b =
1172             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1173         resellerCloudIdentityId_ = b;
1174         return b;
1175       } else {
1176         return (com.google.protobuf.ByteString) ref;
1177       }
1178     }
1179     /**
1180      *
1181      *
1182      * <pre>
1183      * Required. Cloud Identity ID of the linked reseller.
1184      * </pre>
1185      *
1186      * <code>string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1187      *
1188      * @param value The resellerCloudIdentityId to set.
1189      * @return This builder for chaining.
1190      */
setResellerCloudIdentityId(java.lang.String value)1191     public Builder setResellerCloudIdentityId(java.lang.String value) {
1192       if (value == null) {
1193         throw new NullPointerException();
1194       }
1195       resellerCloudIdentityId_ = value;
1196       bitField0_ |= 0x00000002;
1197       onChanged();
1198       return this;
1199     }
1200     /**
1201      *
1202      *
1203      * <pre>
1204      * Required. Cloud Identity ID of the linked reseller.
1205      * </pre>
1206      *
1207      * <code>string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1208      *
1209      * @return This builder for chaining.
1210      */
clearResellerCloudIdentityId()1211     public Builder clearResellerCloudIdentityId() {
1212       resellerCloudIdentityId_ = getDefaultInstance().getResellerCloudIdentityId();
1213       bitField0_ = (bitField0_ & ~0x00000002);
1214       onChanged();
1215       return this;
1216     }
1217     /**
1218      *
1219      *
1220      * <pre>
1221      * Required. Cloud Identity ID of the linked reseller.
1222      * </pre>
1223      *
1224      * <code>string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1225      *
1226      * @param value The bytes for resellerCloudIdentityId to set.
1227      * @return This builder for chaining.
1228      */
setResellerCloudIdentityIdBytes(com.google.protobuf.ByteString value)1229     public Builder setResellerCloudIdentityIdBytes(com.google.protobuf.ByteString value) {
1230       if (value == null) {
1231         throw new NullPointerException();
1232       }
1233       checkByteStringIsUtf8(value);
1234       resellerCloudIdentityId_ = value;
1235       bitField0_ |= 0x00000002;
1236       onChanged();
1237       return this;
1238     }
1239 
1240     private int linkState_ = 0;
1241     /**
1242      *
1243      *
1244      * <pre>
1245      * Required. State of the channel partner link.
1246      * </pre>
1247      *
1248      * <code>
1249      * .google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];
1250      * </code>
1251      *
1252      * @return The enum numeric value on the wire for linkState.
1253      */
1254     @java.lang.Override
getLinkStateValue()1255     public int getLinkStateValue() {
1256       return linkState_;
1257     }
1258     /**
1259      *
1260      *
1261      * <pre>
1262      * Required. State of the channel partner link.
1263      * </pre>
1264      *
1265      * <code>
1266      * .google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];
1267      * </code>
1268      *
1269      * @param value The enum numeric value on the wire for linkState to set.
1270      * @return This builder for chaining.
1271      */
setLinkStateValue(int value)1272     public Builder setLinkStateValue(int value) {
1273       linkState_ = value;
1274       bitField0_ |= 0x00000004;
1275       onChanged();
1276       return this;
1277     }
1278     /**
1279      *
1280      *
1281      * <pre>
1282      * Required. State of the channel partner link.
1283      * </pre>
1284      *
1285      * <code>
1286      * .google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];
1287      * </code>
1288      *
1289      * @return The linkState.
1290      */
1291     @java.lang.Override
getLinkState()1292     public com.google.cloud.channel.v1.ChannelPartnerLinkState getLinkState() {
1293       com.google.cloud.channel.v1.ChannelPartnerLinkState result =
1294           com.google.cloud.channel.v1.ChannelPartnerLinkState.forNumber(linkState_);
1295       return result == null
1296           ? com.google.cloud.channel.v1.ChannelPartnerLinkState.UNRECOGNIZED
1297           : result;
1298     }
1299     /**
1300      *
1301      *
1302      * <pre>
1303      * Required. State of the channel partner link.
1304      * </pre>
1305      *
1306      * <code>
1307      * .google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];
1308      * </code>
1309      *
1310      * @param value The linkState to set.
1311      * @return This builder for chaining.
1312      */
setLinkState(com.google.cloud.channel.v1.ChannelPartnerLinkState value)1313     public Builder setLinkState(com.google.cloud.channel.v1.ChannelPartnerLinkState value) {
1314       if (value == null) {
1315         throw new NullPointerException();
1316       }
1317       bitField0_ |= 0x00000004;
1318       linkState_ = value.getNumber();
1319       onChanged();
1320       return this;
1321     }
1322     /**
1323      *
1324      *
1325      * <pre>
1326      * Required. State of the channel partner link.
1327      * </pre>
1328      *
1329      * <code>
1330      * .google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];
1331      * </code>
1332      *
1333      * @return This builder for chaining.
1334      */
clearLinkState()1335     public Builder clearLinkState() {
1336       bitField0_ = (bitField0_ & ~0x00000004);
1337       linkState_ = 0;
1338       onChanged();
1339       return this;
1340     }
1341 
1342     private java.lang.Object inviteLinkUri_ = "";
1343     /**
1344      *
1345      *
1346      * <pre>
1347      * Output only. URI of the web page where partner accepts the link invitation.
1348      * </pre>
1349      *
1350      * <code>string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1351      *
1352      * @return The inviteLinkUri.
1353      */
getInviteLinkUri()1354     public java.lang.String getInviteLinkUri() {
1355       java.lang.Object ref = inviteLinkUri_;
1356       if (!(ref instanceof java.lang.String)) {
1357         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1358         java.lang.String s = bs.toStringUtf8();
1359         inviteLinkUri_ = s;
1360         return s;
1361       } else {
1362         return (java.lang.String) ref;
1363       }
1364     }
1365     /**
1366      *
1367      *
1368      * <pre>
1369      * Output only. URI of the web page where partner accepts the link invitation.
1370      * </pre>
1371      *
1372      * <code>string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1373      *
1374      * @return The bytes for inviteLinkUri.
1375      */
getInviteLinkUriBytes()1376     public com.google.protobuf.ByteString getInviteLinkUriBytes() {
1377       java.lang.Object ref = inviteLinkUri_;
1378       if (ref instanceof String) {
1379         com.google.protobuf.ByteString b =
1380             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1381         inviteLinkUri_ = b;
1382         return b;
1383       } else {
1384         return (com.google.protobuf.ByteString) ref;
1385       }
1386     }
1387     /**
1388      *
1389      *
1390      * <pre>
1391      * Output only. URI of the web page where partner accepts the link invitation.
1392      * </pre>
1393      *
1394      * <code>string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1395      *
1396      * @param value The inviteLinkUri to set.
1397      * @return This builder for chaining.
1398      */
setInviteLinkUri(java.lang.String value)1399     public Builder setInviteLinkUri(java.lang.String value) {
1400       if (value == null) {
1401         throw new NullPointerException();
1402       }
1403       inviteLinkUri_ = value;
1404       bitField0_ |= 0x00000008;
1405       onChanged();
1406       return this;
1407     }
1408     /**
1409      *
1410      *
1411      * <pre>
1412      * Output only. URI of the web page where partner accepts the link invitation.
1413      * </pre>
1414      *
1415      * <code>string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1416      *
1417      * @return This builder for chaining.
1418      */
clearInviteLinkUri()1419     public Builder clearInviteLinkUri() {
1420       inviteLinkUri_ = getDefaultInstance().getInviteLinkUri();
1421       bitField0_ = (bitField0_ & ~0x00000008);
1422       onChanged();
1423       return this;
1424     }
1425     /**
1426      *
1427      *
1428      * <pre>
1429      * Output only. URI of the web page where partner accepts the link invitation.
1430      * </pre>
1431      *
1432      * <code>string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1433      *
1434      * @param value The bytes for inviteLinkUri to set.
1435      * @return This builder for chaining.
1436      */
setInviteLinkUriBytes(com.google.protobuf.ByteString value)1437     public Builder setInviteLinkUriBytes(com.google.protobuf.ByteString value) {
1438       if (value == null) {
1439         throw new NullPointerException();
1440       }
1441       checkByteStringIsUtf8(value);
1442       inviteLinkUri_ = value;
1443       bitField0_ |= 0x00000008;
1444       onChanged();
1445       return this;
1446     }
1447 
1448     private com.google.protobuf.Timestamp createTime_;
1449     private com.google.protobuf.SingleFieldBuilderV3<
1450             com.google.protobuf.Timestamp,
1451             com.google.protobuf.Timestamp.Builder,
1452             com.google.protobuf.TimestampOrBuilder>
1453         createTimeBuilder_;
1454     /**
1455      *
1456      *
1457      * <pre>
1458      * Output only. Timestamp of when the channel partner link is created.
1459      * </pre>
1460      *
1461      * <code>
1462      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1463      * </code>
1464      *
1465      * @return Whether the createTime field is set.
1466      */
hasCreateTime()1467     public boolean hasCreateTime() {
1468       return ((bitField0_ & 0x00000010) != 0);
1469     }
1470     /**
1471      *
1472      *
1473      * <pre>
1474      * Output only. Timestamp of when the channel partner link is created.
1475      * </pre>
1476      *
1477      * <code>
1478      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1479      * </code>
1480      *
1481      * @return The createTime.
1482      */
getCreateTime()1483     public com.google.protobuf.Timestamp getCreateTime() {
1484       if (createTimeBuilder_ == null) {
1485         return createTime_ == null
1486             ? com.google.protobuf.Timestamp.getDefaultInstance()
1487             : createTime_;
1488       } else {
1489         return createTimeBuilder_.getMessage();
1490       }
1491     }
1492     /**
1493      *
1494      *
1495      * <pre>
1496      * Output only. Timestamp of when the channel partner link is created.
1497      * </pre>
1498      *
1499      * <code>
1500      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1501      * </code>
1502      */
setCreateTime(com.google.protobuf.Timestamp value)1503     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
1504       if (createTimeBuilder_ == null) {
1505         if (value == null) {
1506           throw new NullPointerException();
1507         }
1508         createTime_ = value;
1509       } else {
1510         createTimeBuilder_.setMessage(value);
1511       }
1512       bitField0_ |= 0x00000010;
1513       onChanged();
1514       return this;
1515     }
1516     /**
1517      *
1518      *
1519      * <pre>
1520      * Output only. Timestamp of when the channel partner link is created.
1521      * </pre>
1522      *
1523      * <code>
1524      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1525      * </code>
1526      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)1527     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
1528       if (createTimeBuilder_ == null) {
1529         createTime_ = builderForValue.build();
1530       } else {
1531         createTimeBuilder_.setMessage(builderForValue.build());
1532       }
1533       bitField0_ |= 0x00000010;
1534       onChanged();
1535       return this;
1536     }
1537     /**
1538      *
1539      *
1540      * <pre>
1541      * Output only. Timestamp of when the channel partner link is created.
1542      * </pre>
1543      *
1544      * <code>
1545      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1546      * </code>
1547      */
mergeCreateTime(com.google.protobuf.Timestamp value)1548     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
1549       if (createTimeBuilder_ == null) {
1550         if (((bitField0_ & 0x00000010) != 0)
1551             && createTime_ != null
1552             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1553           getCreateTimeBuilder().mergeFrom(value);
1554         } else {
1555           createTime_ = value;
1556         }
1557       } else {
1558         createTimeBuilder_.mergeFrom(value);
1559       }
1560       bitField0_ |= 0x00000010;
1561       onChanged();
1562       return this;
1563     }
1564     /**
1565      *
1566      *
1567      * <pre>
1568      * Output only. Timestamp of when the channel partner link is created.
1569      * </pre>
1570      *
1571      * <code>
1572      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1573      * </code>
1574      */
clearCreateTime()1575     public Builder clearCreateTime() {
1576       bitField0_ = (bitField0_ & ~0x00000010);
1577       createTime_ = null;
1578       if (createTimeBuilder_ != null) {
1579         createTimeBuilder_.dispose();
1580         createTimeBuilder_ = null;
1581       }
1582       onChanged();
1583       return this;
1584     }
1585     /**
1586      *
1587      *
1588      * <pre>
1589      * Output only. Timestamp of when the channel partner link is created.
1590      * </pre>
1591      *
1592      * <code>
1593      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1594      * </code>
1595      */
getCreateTimeBuilder()1596     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
1597       bitField0_ |= 0x00000010;
1598       onChanged();
1599       return getCreateTimeFieldBuilder().getBuilder();
1600     }
1601     /**
1602      *
1603      *
1604      * <pre>
1605      * Output only. Timestamp of when the channel partner link is created.
1606      * </pre>
1607      *
1608      * <code>
1609      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1610      * </code>
1611      */
getCreateTimeOrBuilder()1612     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
1613       if (createTimeBuilder_ != null) {
1614         return createTimeBuilder_.getMessageOrBuilder();
1615       } else {
1616         return createTime_ == null
1617             ? com.google.protobuf.Timestamp.getDefaultInstance()
1618             : createTime_;
1619       }
1620     }
1621     /**
1622      *
1623      *
1624      * <pre>
1625      * Output only. Timestamp of when the channel partner link is created.
1626      * </pre>
1627      *
1628      * <code>
1629      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1630      * </code>
1631      */
1632     private com.google.protobuf.SingleFieldBuilderV3<
1633             com.google.protobuf.Timestamp,
1634             com.google.protobuf.Timestamp.Builder,
1635             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()1636         getCreateTimeFieldBuilder() {
1637       if (createTimeBuilder_ == null) {
1638         createTimeBuilder_ =
1639             new com.google.protobuf.SingleFieldBuilderV3<
1640                 com.google.protobuf.Timestamp,
1641                 com.google.protobuf.Timestamp.Builder,
1642                 com.google.protobuf.TimestampOrBuilder>(
1643                 getCreateTime(), getParentForChildren(), isClean());
1644         createTime_ = null;
1645       }
1646       return createTimeBuilder_;
1647     }
1648 
1649     private com.google.protobuf.Timestamp updateTime_;
1650     private com.google.protobuf.SingleFieldBuilderV3<
1651             com.google.protobuf.Timestamp,
1652             com.google.protobuf.Timestamp.Builder,
1653             com.google.protobuf.TimestampOrBuilder>
1654         updateTimeBuilder_;
1655     /**
1656      *
1657      *
1658      * <pre>
1659      * Output only. Timestamp of when the channel partner link is updated.
1660      * </pre>
1661      *
1662      * <code>
1663      * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
1664      * </code>
1665      *
1666      * @return Whether the updateTime field is set.
1667      */
hasUpdateTime()1668     public boolean hasUpdateTime() {
1669       return ((bitField0_ & 0x00000020) != 0);
1670     }
1671     /**
1672      *
1673      *
1674      * <pre>
1675      * Output only. Timestamp of when the channel partner link is updated.
1676      * </pre>
1677      *
1678      * <code>
1679      * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
1680      * </code>
1681      *
1682      * @return The updateTime.
1683      */
getUpdateTime()1684     public com.google.protobuf.Timestamp getUpdateTime() {
1685       if (updateTimeBuilder_ == null) {
1686         return updateTime_ == null
1687             ? com.google.protobuf.Timestamp.getDefaultInstance()
1688             : updateTime_;
1689       } else {
1690         return updateTimeBuilder_.getMessage();
1691       }
1692     }
1693     /**
1694      *
1695      *
1696      * <pre>
1697      * Output only. Timestamp of when the channel partner link is updated.
1698      * </pre>
1699      *
1700      * <code>
1701      * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
1702      * </code>
1703      */
setUpdateTime(com.google.protobuf.Timestamp value)1704     public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
1705       if (updateTimeBuilder_ == null) {
1706         if (value == null) {
1707           throw new NullPointerException();
1708         }
1709         updateTime_ = value;
1710       } else {
1711         updateTimeBuilder_.setMessage(value);
1712       }
1713       bitField0_ |= 0x00000020;
1714       onChanged();
1715       return this;
1716     }
1717     /**
1718      *
1719      *
1720      * <pre>
1721      * Output only. Timestamp of when the channel partner link is updated.
1722      * </pre>
1723      *
1724      * <code>
1725      * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
1726      * </code>
1727      */
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)1728     public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
1729       if (updateTimeBuilder_ == null) {
1730         updateTime_ = builderForValue.build();
1731       } else {
1732         updateTimeBuilder_.setMessage(builderForValue.build());
1733       }
1734       bitField0_ |= 0x00000020;
1735       onChanged();
1736       return this;
1737     }
1738     /**
1739      *
1740      *
1741      * <pre>
1742      * Output only. Timestamp of when the channel partner link is updated.
1743      * </pre>
1744      *
1745      * <code>
1746      * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
1747      * </code>
1748      */
mergeUpdateTime(com.google.protobuf.Timestamp value)1749     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
1750       if (updateTimeBuilder_ == null) {
1751         if (((bitField0_ & 0x00000020) != 0)
1752             && updateTime_ != null
1753             && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1754           getUpdateTimeBuilder().mergeFrom(value);
1755         } else {
1756           updateTime_ = value;
1757         }
1758       } else {
1759         updateTimeBuilder_.mergeFrom(value);
1760       }
1761       bitField0_ |= 0x00000020;
1762       onChanged();
1763       return this;
1764     }
1765     /**
1766      *
1767      *
1768      * <pre>
1769      * Output only. Timestamp of when the channel partner link is updated.
1770      * </pre>
1771      *
1772      * <code>
1773      * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
1774      * </code>
1775      */
clearUpdateTime()1776     public Builder clearUpdateTime() {
1777       bitField0_ = (bitField0_ & ~0x00000020);
1778       updateTime_ = null;
1779       if (updateTimeBuilder_ != null) {
1780         updateTimeBuilder_.dispose();
1781         updateTimeBuilder_ = null;
1782       }
1783       onChanged();
1784       return this;
1785     }
1786     /**
1787      *
1788      *
1789      * <pre>
1790      * Output only. Timestamp of when the channel partner link is updated.
1791      * </pre>
1792      *
1793      * <code>
1794      * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
1795      * </code>
1796      */
getUpdateTimeBuilder()1797     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
1798       bitField0_ |= 0x00000020;
1799       onChanged();
1800       return getUpdateTimeFieldBuilder().getBuilder();
1801     }
1802     /**
1803      *
1804      *
1805      * <pre>
1806      * Output only. Timestamp of when the channel partner link is updated.
1807      * </pre>
1808      *
1809      * <code>
1810      * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
1811      * </code>
1812      */
getUpdateTimeOrBuilder()1813     public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
1814       if (updateTimeBuilder_ != null) {
1815         return updateTimeBuilder_.getMessageOrBuilder();
1816       } else {
1817         return updateTime_ == null
1818             ? com.google.protobuf.Timestamp.getDefaultInstance()
1819             : updateTime_;
1820       }
1821     }
1822     /**
1823      *
1824      *
1825      * <pre>
1826      * Output only. Timestamp of when the channel partner link is updated.
1827      * </pre>
1828      *
1829      * <code>
1830      * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
1831      * </code>
1832      */
1833     private com.google.protobuf.SingleFieldBuilderV3<
1834             com.google.protobuf.Timestamp,
1835             com.google.protobuf.Timestamp.Builder,
1836             com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder()1837         getUpdateTimeFieldBuilder() {
1838       if (updateTimeBuilder_ == null) {
1839         updateTimeBuilder_ =
1840             new com.google.protobuf.SingleFieldBuilderV3<
1841                 com.google.protobuf.Timestamp,
1842                 com.google.protobuf.Timestamp.Builder,
1843                 com.google.protobuf.TimestampOrBuilder>(
1844                 getUpdateTime(), getParentForChildren(), isClean());
1845         updateTime_ = null;
1846       }
1847       return updateTimeBuilder_;
1848     }
1849 
1850     private java.lang.Object publicId_ = "";
1851     /**
1852      *
1853      *
1854      * <pre>
1855      * Output only. Public identifier that a customer must use to generate a
1856      * transfer token to move to this distributor-reseller combination.
1857      * </pre>
1858      *
1859      * <code>string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1860      *
1861      * @return The publicId.
1862      */
getPublicId()1863     public java.lang.String getPublicId() {
1864       java.lang.Object ref = publicId_;
1865       if (!(ref instanceof java.lang.String)) {
1866         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1867         java.lang.String s = bs.toStringUtf8();
1868         publicId_ = s;
1869         return s;
1870       } else {
1871         return (java.lang.String) ref;
1872       }
1873     }
1874     /**
1875      *
1876      *
1877      * <pre>
1878      * Output only. Public identifier that a customer must use to generate a
1879      * transfer token to move to this distributor-reseller combination.
1880      * </pre>
1881      *
1882      * <code>string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1883      *
1884      * @return The bytes for publicId.
1885      */
getPublicIdBytes()1886     public com.google.protobuf.ByteString getPublicIdBytes() {
1887       java.lang.Object ref = publicId_;
1888       if (ref instanceof String) {
1889         com.google.protobuf.ByteString b =
1890             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1891         publicId_ = b;
1892         return b;
1893       } else {
1894         return (com.google.protobuf.ByteString) ref;
1895       }
1896     }
1897     /**
1898      *
1899      *
1900      * <pre>
1901      * Output only. Public identifier that a customer must use to generate a
1902      * transfer token to move to this distributor-reseller combination.
1903      * </pre>
1904      *
1905      * <code>string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1906      *
1907      * @param value The publicId to set.
1908      * @return This builder for chaining.
1909      */
setPublicId(java.lang.String value)1910     public Builder setPublicId(java.lang.String value) {
1911       if (value == null) {
1912         throw new NullPointerException();
1913       }
1914       publicId_ = value;
1915       bitField0_ |= 0x00000040;
1916       onChanged();
1917       return this;
1918     }
1919     /**
1920      *
1921      *
1922      * <pre>
1923      * Output only. Public identifier that a customer must use to generate a
1924      * transfer token to move to this distributor-reseller combination.
1925      * </pre>
1926      *
1927      * <code>string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1928      *
1929      * @return This builder for chaining.
1930      */
clearPublicId()1931     public Builder clearPublicId() {
1932       publicId_ = getDefaultInstance().getPublicId();
1933       bitField0_ = (bitField0_ & ~0x00000040);
1934       onChanged();
1935       return this;
1936     }
1937     /**
1938      *
1939      *
1940      * <pre>
1941      * Output only. Public identifier that a customer must use to generate a
1942      * transfer token to move to this distributor-reseller combination.
1943      * </pre>
1944      *
1945      * <code>string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1946      *
1947      * @param value The bytes for publicId to set.
1948      * @return This builder for chaining.
1949      */
setPublicIdBytes(com.google.protobuf.ByteString value)1950     public Builder setPublicIdBytes(com.google.protobuf.ByteString value) {
1951       if (value == null) {
1952         throw new NullPointerException();
1953       }
1954       checkByteStringIsUtf8(value);
1955       publicId_ = value;
1956       bitField0_ |= 0x00000040;
1957       onChanged();
1958       return this;
1959     }
1960 
1961     private com.google.cloud.channel.v1.CloudIdentityInfo channelPartnerCloudIdentityInfo_;
1962     private com.google.protobuf.SingleFieldBuilderV3<
1963             com.google.cloud.channel.v1.CloudIdentityInfo,
1964             com.google.cloud.channel.v1.CloudIdentityInfo.Builder,
1965             com.google.cloud.channel.v1.CloudIdentityInfoOrBuilder>
1966         channelPartnerCloudIdentityInfoBuilder_;
1967     /**
1968      *
1969      *
1970      * <pre>
1971      * Output only. Cloud Identity info of the channel partner (IR).
1972      * </pre>
1973      *
1974      * <code>
1975      * .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
1976      * </code>
1977      *
1978      * @return Whether the channelPartnerCloudIdentityInfo field is set.
1979      */
hasChannelPartnerCloudIdentityInfo()1980     public boolean hasChannelPartnerCloudIdentityInfo() {
1981       return ((bitField0_ & 0x00000080) != 0);
1982     }
1983     /**
1984      *
1985      *
1986      * <pre>
1987      * Output only. Cloud Identity info of the channel partner (IR).
1988      * </pre>
1989      *
1990      * <code>
1991      * .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
1992      * </code>
1993      *
1994      * @return The channelPartnerCloudIdentityInfo.
1995      */
getChannelPartnerCloudIdentityInfo()1996     public com.google.cloud.channel.v1.CloudIdentityInfo getChannelPartnerCloudIdentityInfo() {
1997       if (channelPartnerCloudIdentityInfoBuilder_ == null) {
1998         return channelPartnerCloudIdentityInfo_ == null
1999             ? com.google.cloud.channel.v1.CloudIdentityInfo.getDefaultInstance()
2000             : channelPartnerCloudIdentityInfo_;
2001       } else {
2002         return channelPartnerCloudIdentityInfoBuilder_.getMessage();
2003       }
2004     }
2005     /**
2006      *
2007      *
2008      * <pre>
2009      * Output only. Cloud Identity info of the channel partner (IR).
2010      * </pre>
2011      *
2012      * <code>
2013      * .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2014      * </code>
2015      */
setChannelPartnerCloudIdentityInfo( com.google.cloud.channel.v1.CloudIdentityInfo value)2016     public Builder setChannelPartnerCloudIdentityInfo(
2017         com.google.cloud.channel.v1.CloudIdentityInfo value) {
2018       if (channelPartnerCloudIdentityInfoBuilder_ == null) {
2019         if (value == null) {
2020           throw new NullPointerException();
2021         }
2022         channelPartnerCloudIdentityInfo_ = value;
2023       } else {
2024         channelPartnerCloudIdentityInfoBuilder_.setMessage(value);
2025       }
2026       bitField0_ |= 0x00000080;
2027       onChanged();
2028       return this;
2029     }
2030     /**
2031      *
2032      *
2033      * <pre>
2034      * Output only. Cloud Identity info of the channel partner (IR).
2035      * </pre>
2036      *
2037      * <code>
2038      * .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2039      * </code>
2040      */
setChannelPartnerCloudIdentityInfo( com.google.cloud.channel.v1.CloudIdentityInfo.Builder builderForValue)2041     public Builder setChannelPartnerCloudIdentityInfo(
2042         com.google.cloud.channel.v1.CloudIdentityInfo.Builder builderForValue) {
2043       if (channelPartnerCloudIdentityInfoBuilder_ == null) {
2044         channelPartnerCloudIdentityInfo_ = builderForValue.build();
2045       } else {
2046         channelPartnerCloudIdentityInfoBuilder_.setMessage(builderForValue.build());
2047       }
2048       bitField0_ |= 0x00000080;
2049       onChanged();
2050       return this;
2051     }
2052     /**
2053      *
2054      *
2055      * <pre>
2056      * Output only. Cloud Identity info of the channel partner (IR).
2057      * </pre>
2058      *
2059      * <code>
2060      * .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2061      * </code>
2062      */
mergeChannelPartnerCloudIdentityInfo( com.google.cloud.channel.v1.CloudIdentityInfo value)2063     public Builder mergeChannelPartnerCloudIdentityInfo(
2064         com.google.cloud.channel.v1.CloudIdentityInfo value) {
2065       if (channelPartnerCloudIdentityInfoBuilder_ == null) {
2066         if (((bitField0_ & 0x00000080) != 0)
2067             && channelPartnerCloudIdentityInfo_ != null
2068             && channelPartnerCloudIdentityInfo_
2069                 != com.google.cloud.channel.v1.CloudIdentityInfo.getDefaultInstance()) {
2070           getChannelPartnerCloudIdentityInfoBuilder().mergeFrom(value);
2071         } else {
2072           channelPartnerCloudIdentityInfo_ = value;
2073         }
2074       } else {
2075         channelPartnerCloudIdentityInfoBuilder_.mergeFrom(value);
2076       }
2077       bitField0_ |= 0x00000080;
2078       onChanged();
2079       return this;
2080     }
2081     /**
2082      *
2083      *
2084      * <pre>
2085      * Output only. Cloud Identity info of the channel partner (IR).
2086      * </pre>
2087      *
2088      * <code>
2089      * .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2090      * </code>
2091      */
clearChannelPartnerCloudIdentityInfo()2092     public Builder clearChannelPartnerCloudIdentityInfo() {
2093       bitField0_ = (bitField0_ & ~0x00000080);
2094       channelPartnerCloudIdentityInfo_ = null;
2095       if (channelPartnerCloudIdentityInfoBuilder_ != null) {
2096         channelPartnerCloudIdentityInfoBuilder_.dispose();
2097         channelPartnerCloudIdentityInfoBuilder_ = null;
2098       }
2099       onChanged();
2100       return this;
2101     }
2102     /**
2103      *
2104      *
2105      * <pre>
2106      * Output only. Cloud Identity info of the channel partner (IR).
2107      * </pre>
2108      *
2109      * <code>
2110      * .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2111      * </code>
2112      */
2113     public com.google.cloud.channel.v1.CloudIdentityInfo.Builder
getChannelPartnerCloudIdentityInfoBuilder()2114         getChannelPartnerCloudIdentityInfoBuilder() {
2115       bitField0_ |= 0x00000080;
2116       onChanged();
2117       return getChannelPartnerCloudIdentityInfoFieldBuilder().getBuilder();
2118     }
2119     /**
2120      *
2121      *
2122      * <pre>
2123      * Output only. Cloud Identity info of the channel partner (IR).
2124      * </pre>
2125      *
2126      * <code>
2127      * .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2128      * </code>
2129      */
2130     public com.google.cloud.channel.v1.CloudIdentityInfoOrBuilder
getChannelPartnerCloudIdentityInfoOrBuilder()2131         getChannelPartnerCloudIdentityInfoOrBuilder() {
2132       if (channelPartnerCloudIdentityInfoBuilder_ != null) {
2133         return channelPartnerCloudIdentityInfoBuilder_.getMessageOrBuilder();
2134       } else {
2135         return channelPartnerCloudIdentityInfo_ == null
2136             ? com.google.cloud.channel.v1.CloudIdentityInfo.getDefaultInstance()
2137             : channelPartnerCloudIdentityInfo_;
2138       }
2139     }
2140     /**
2141      *
2142      *
2143      * <pre>
2144      * Output only. Cloud Identity info of the channel partner (IR).
2145      * </pre>
2146      *
2147      * <code>
2148      * .google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
2149      * </code>
2150      */
2151     private com.google.protobuf.SingleFieldBuilderV3<
2152             com.google.cloud.channel.v1.CloudIdentityInfo,
2153             com.google.cloud.channel.v1.CloudIdentityInfo.Builder,
2154             com.google.cloud.channel.v1.CloudIdentityInfoOrBuilder>
getChannelPartnerCloudIdentityInfoFieldBuilder()2155         getChannelPartnerCloudIdentityInfoFieldBuilder() {
2156       if (channelPartnerCloudIdentityInfoBuilder_ == null) {
2157         channelPartnerCloudIdentityInfoBuilder_ =
2158             new com.google.protobuf.SingleFieldBuilderV3<
2159                 com.google.cloud.channel.v1.CloudIdentityInfo,
2160                 com.google.cloud.channel.v1.CloudIdentityInfo.Builder,
2161                 com.google.cloud.channel.v1.CloudIdentityInfoOrBuilder>(
2162                 getChannelPartnerCloudIdentityInfo(), getParentForChildren(), isClean());
2163         channelPartnerCloudIdentityInfo_ = null;
2164       }
2165       return channelPartnerCloudIdentityInfoBuilder_;
2166     }
2167 
2168     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2169     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2170       return super.setUnknownFields(unknownFields);
2171     }
2172 
2173     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2174     public final Builder mergeUnknownFields(
2175         final com.google.protobuf.UnknownFieldSet unknownFields) {
2176       return super.mergeUnknownFields(unknownFields);
2177     }
2178 
2179     // @@protoc_insertion_point(builder_scope:google.cloud.channel.v1.ChannelPartnerLink)
2180   }
2181 
2182   // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.ChannelPartnerLink)
2183   private static final com.google.cloud.channel.v1.ChannelPartnerLink DEFAULT_INSTANCE;
2184 
2185   static {
2186     DEFAULT_INSTANCE = new com.google.cloud.channel.v1.ChannelPartnerLink();
2187   }
2188 
getDefaultInstance()2189   public static com.google.cloud.channel.v1.ChannelPartnerLink getDefaultInstance() {
2190     return DEFAULT_INSTANCE;
2191   }
2192 
2193   private static final com.google.protobuf.Parser<ChannelPartnerLink> PARSER =
2194       new com.google.protobuf.AbstractParser<ChannelPartnerLink>() {
2195         @java.lang.Override
2196         public ChannelPartnerLink parsePartialFrom(
2197             com.google.protobuf.CodedInputStream input,
2198             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2199             throws com.google.protobuf.InvalidProtocolBufferException {
2200           Builder builder = newBuilder();
2201           try {
2202             builder.mergeFrom(input, extensionRegistry);
2203           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2204             throw e.setUnfinishedMessage(builder.buildPartial());
2205           } catch (com.google.protobuf.UninitializedMessageException e) {
2206             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2207           } catch (java.io.IOException e) {
2208             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2209                 .setUnfinishedMessage(builder.buildPartial());
2210           }
2211           return builder.buildPartial();
2212         }
2213       };
2214 
parser()2215   public static com.google.protobuf.Parser<ChannelPartnerLink> parser() {
2216     return PARSER;
2217   }
2218 
2219   @java.lang.Override
getParserForType()2220   public com.google.protobuf.Parser<ChannelPartnerLink> getParserForType() {
2221     return PARSER;
2222   }
2223 
2224   @java.lang.Override
getDefaultInstanceForType()2225   public com.google.cloud.channel.v1.ChannelPartnerLink getDefaultInstanceForType() {
2226     return DEFAULT_INSTANCE;
2227   }
2228 }
2229