001// Generated by the protocol buffer compiler.  DO NOT EDIT!
002// source: mqtt3_auth_types.proto
003
004// Protobuf Java Version: 3.25.5
005package com.baidu.bifromq.plugin.authprovider.type;
006
007/**
008 * Protobuf type {@code mqtt3authtypes.MQTT3AuthData}
009 */
010public final class MQTT3AuthData extends
011    com.google.protobuf.GeneratedMessageV3 implements
012    // @@protoc_insertion_point(message_implements:mqtt3authtypes.MQTT3AuthData)
013    MQTT3AuthDataOrBuilder {
014private static final long serialVersionUID = 0L;
015  // Use MQTT3AuthData.newBuilder() to construct.
016  private MQTT3AuthData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
017    super(builder);
018  }
019  private MQTT3AuthData() {
020    username_ = "";
021    password_ = com.google.protobuf.ByteString.EMPTY;
022    cert_ = com.google.protobuf.ByteString.EMPTY;
023    clientId_ = "";
024    remoteAddr_ = "";
025    channelId_ = "";
026  }
027
028  @java.lang.Override
029  @SuppressWarnings({"unused"})
030  protected java.lang.Object newInstance(
031      UnusedPrivateParameter unused) {
032    return new MQTT3AuthData();
033  }
034
035  public static final com.google.protobuf.Descriptors.Descriptor
036      getDescriptor() {
037    return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthData_descriptor;
038  }
039
040  @java.lang.Override
041  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
042      internalGetFieldAccessorTable() {
043    return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthData_fieldAccessorTable
044        .ensureFieldAccessorsInitialized(
045            com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData.class, com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData.Builder.class);
046  }
047
048  private int bitField0_;
049  public static final int ISMQISDP_FIELD_NUMBER = 1;
050  private boolean isMQIsdp_ = false;
051  /**
052   * <pre>
053   * MQIsdp is MQTT 3.1
054   * </pre>
055   *
056   * <code>bool isMQIsdp = 1;</code>
057   * @return The isMQIsdp.
058   */
059  @java.lang.Override
060  public boolean getIsMQIsdp() {
061    return isMQIsdp_;
062  }
063
064  public static final int USERNAME_FIELD_NUMBER = 2;
065  @SuppressWarnings("serial")
066  private volatile java.lang.Object username_ = "";
067  /**
068   * <code>optional string username = 2;</code>
069   * @return Whether the username field is set.
070   */
071  @java.lang.Override
072  public boolean hasUsername() {
073    return ((bitField0_ & 0x00000001) != 0);
074  }
075  /**
076   * <code>optional string username = 2;</code>
077   * @return The username.
078   */
079  @java.lang.Override
080  public java.lang.String getUsername() {
081    java.lang.Object ref = username_;
082    if (ref instanceof java.lang.String) {
083      return (java.lang.String) ref;
084    } else {
085      com.google.protobuf.ByteString bs = 
086          (com.google.protobuf.ByteString) ref;
087      java.lang.String s = bs.toStringUtf8();
088      username_ = s;
089      return s;
090    }
091  }
092  /**
093   * <code>optional string username = 2;</code>
094   * @return The bytes for username.
095   */
096  @java.lang.Override
097  public com.google.protobuf.ByteString
098      getUsernameBytes() {
099    java.lang.Object ref = username_;
100    if (ref instanceof java.lang.String) {
101      com.google.protobuf.ByteString b = 
102          com.google.protobuf.ByteString.copyFromUtf8(
103              (java.lang.String) ref);
104      username_ = b;
105      return b;
106    } else {
107      return (com.google.protobuf.ByteString) ref;
108    }
109  }
110
111  public static final int PASSWORD_FIELD_NUMBER = 3;
112  private com.google.protobuf.ByteString password_ = com.google.protobuf.ByteString.EMPTY;
113  /**
114   * <code>optional bytes password = 3;</code>
115   * @return Whether the password field is set.
116   */
117  @java.lang.Override
118  public boolean hasPassword() {
119    return ((bitField0_ & 0x00000002) != 0);
120  }
121  /**
122   * <code>optional bytes password = 3;</code>
123   * @return The password.
124   */
125  @java.lang.Override
126  public com.google.protobuf.ByteString getPassword() {
127    return password_;
128  }
129
130  public static final int CERT_FIELD_NUMBER = 4;
131  private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY;
132  /**
133   * <code>optional bytes cert = 4;</code>
134   * @return Whether the cert field is set.
135   */
136  @java.lang.Override
137  public boolean hasCert() {
138    return ((bitField0_ & 0x00000004) != 0);
139  }
140  /**
141   * <code>optional bytes cert = 4;</code>
142   * @return The cert.
143   */
144  @java.lang.Override
145  public com.google.protobuf.ByteString getCert() {
146    return cert_;
147  }
148
149  public static final int CLIENTID_FIELD_NUMBER = 5;
150  @SuppressWarnings("serial")
151  private volatile java.lang.Object clientId_ = "";
152  /**
153   * <code>optional string clientId = 5;</code>
154   * @return Whether the clientId field is set.
155   */
156  @java.lang.Override
157  public boolean hasClientId() {
158    return ((bitField0_ & 0x00000008) != 0);
159  }
160  /**
161   * <code>optional string clientId = 5;</code>
162   * @return The clientId.
163   */
164  @java.lang.Override
165  public java.lang.String getClientId() {
166    java.lang.Object ref = clientId_;
167    if (ref instanceof java.lang.String) {
168      return (java.lang.String) ref;
169    } else {
170      com.google.protobuf.ByteString bs = 
171          (com.google.protobuf.ByteString) ref;
172      java.lang.String s = bs.toStringUtf8();
173      clientId_ = s;
174      return s;
175    }
176  }
177  /**
178   * <code>optional string clientId = 5;</code>
179   * @return The bytes for clientId.
180   */
181  @java.lang.Override
182  public com.google.protobuf.ByteString
183      getClientIdBytes() {
184    java.lang.Object ref = clientId_;
185    if (ref instanceof java.lang.String) {
186      com.google.protobuf.ByteString b = 
187          com.google.protobuf.ByteString.copyFromUtf8(
188              (java.lang.String) ref);
189      clientId_ = b;
190      return b;
191    } else {
192      return (com.google.protobuf.ByteString) ref;
193    }
194  }
195
196  public static final int REMOTEADDR_FIELD_NUMBER = 6;
197  @SuppressWarnings("serial")
198  private volatile java.lang.Object remoteAddr_ = "";
199  /**
200   * <code>string remoteAddr = 6;</code>
201   * @return The remoteAddr.
202   */
203  @java.lang.Override
204  public java.lang.String getRemoteAddr() {
205    java.lang.Object ref = remoteAddr_;
206    if (ref instanceof java.lang.String) {
207      return (java.lang.String) ref;
208    } else {
209      com.google.protobuf.ByteString bs = 
210          (com.google.protobuf.ByteString) ref;
211      java.lang.String s = bs.toStringUtf8();
212      remoteAddr_ = s;
213      return s;
214    }
215  }
216  /**
217   * <code>string remoteAddr = 6;</code>
218   * @return The bytes for remoteAddr.
219   */
220  @java.lang.Override
221  public com.google.protobuf.ByteString
222      getRemoteAddrBytes() {
223    java.lang.Object ref = remoteAddr_;
224    if (ref instanceof java.lang.String) {
225      com.google.protobuf.ByteString b = 
226          com.google.protobuf.ByteString.copyFromUtf8(
227              (java.lang.String) ref);
228      remoteAddr_ = b;
229      return b;
230    } else {
231      return (com.google.protobuf.ByteString) ref;
232    }
233  }
234
235  public static final int REMOTEPORT_FIELD_NUMBER = 7;
236  private int remotePort_ = 0;
237  /**
238   * <code>uint32 remotePort = 7;</code>
239   * @return The remotePort.
240   */
241  @java.lang.Override
242  public int getRemotePort() {
243    return remotePort_;
244  }
245
246  public static final int CHANNELID_FIELD_NUMBER = 8;
247  @SuppressWarnings("serial")
248  private volatile java.lang.Object channelId_ = "";
249  /**
250   * <code>string channelId = 8;</code>
251   * @return The channelId.
252   */
253  @java.lang.Override
254  public java.lang.String getChannelId() {
255    java.lang.Object ref = channelId_;
256    if (ref instanceof java.lang.String) {
257      return (java.lang.String) ref;
258    } else {
259      com.google.protobuf.ByteString bs = 
260          (com.google.protobuf.ByteString) ref;
261      java.lang.String s = bs.toStringUtf8();
262      channelId_ = s;
263      return s;
264    }
265  }
266  /**
267   * <code>string channelId = 8;</code>
268   * @return The bytes for channelId.
269   */
270  @java.lang.Override
271  public com.google.protobuf.ByteString
272      getChannelIdBytes() {
273    java.lang.Object ref = channelId_;
274    if (ref instanceof java.lang.String) {
275      com.google.protobuf.ByteString b = 
276          com.google.protobuf.ByteString.copyFromUtf8(
277              (java.lang.String) ref);
278      channelId_ = b;
279      return b;
280    } else {
281      return (com.google.protobuf.ByteString) ref;
282    }
283  }
284
285  private byte memoizedIsInitialized = -1;
286  @java.lang.Override
287  public final boolean isInitialized() {
288    byte isInitialized = memoizedIsInitialized;
289    if (isInitialized == 1) return true;
290    if (isInitialized == 0) return false;
291
292    memoizedIsInitialized = 1;
293    return true;
294  }
295
296  @java.lang.Override
297  public void writeTo(com.google.protobuf.CodedOutputStream output)
298                      throws java.io.IOException {
299    if (isMQIsdp_ != false) {
300      output.writeBool(1, isMQIsdp_);
301    }
302    if (((bitField0_ & 0x00000001) != 0)) {
303      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_);
304    }
305    if (((bitField0_ & 0x00000002) != 0)) {
306      output.writeBytes(3, password_);
307    }
308    if (((bitField0_ & 0x00000004) != 0)) {
309      output.writeBytes(4, cert_);
310    }
311    if (((bitField0_ & 0x00000008) != 0)) {
312      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clientId_);
313    }
314    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteAddr_)) {
315      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, remoteAddr_);
316    }
317    if (remotePort_ != 0) {
318      output.writeUInt32(7, remotePort_);
319    }
320    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) {
321      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, channelId_);
322    }
323    getUnknownFields().writeTo(output);
324  }
325
326  @java.lang.Override
327  public int getSerializedSize() {
328    int size = memoizedSize;
329    if (size != -1) return size;
330
331    size = 0;
332    if (isMQIsdp_ != false) {
333      size += com.google.protobuf.CodedOutputStream
334        .computeBoolSize(1, isMQIsdp_);
335    }
336    if (((bitField0_ & 0x00000001) != 0)) {
337      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_);
338    }
339    if (((bitField0_ & 0x00000002) != 0)) {
340      size += com.google.protobuf.CodedOutputStream
341        .computeBytesSize(3, password_);
342    }
343    if (((bitField0_ & 0x00000004) != 0)) {
344      size += com.google.protobuf.CodedOutputStream
345        .computeBytesSize(4, cert_);
346    }
347    if (((bitField0_ & 0x00000008) != 0)) {
348      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, clientId_);
349    }
350    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteAddr_)) {
351      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, remoteAddr_);
352    }
353    if (remotePort_ != 0) {
354      size += com.google.protobuf.CodedOutputStream
355        .computeUInt32Size(7, remotePort_);
356    }
357    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) {
358      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, channelId_);
359    }
360    size += getUnknownFields().getSerializedSize();
361    memoizedSize = size;
362    return size;
363  }
364
365  @java.lang.Override
366  public boolean equals(final java.lang.Object obj) {
367    if (obj == this) {
368     return true;
369    }
370    if (!(obj instanceof com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData)) {
371      return super.equals(obj);
372    }
373    com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData other = (com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData) obj;
374
375    if (getIsMQIsdp()
376        != other.getIsMQIsdp()) return false;
377    if (hasUsername() != other.hasUsername()) return false;
378    if (hasUsername()) {
379      if (!getUsername()
380          .equals(other.getUsername())) return false;
381    }
382    if (hasPassword() != other.hasPassword()) return false;
383    if (hasPassword()) {
384      if (!getPassword()
385          .equals(other.getPassword())) return false;
386    }
387    if (hasCert() != other.hasCert()) return false;
388    if (hasCert()) {
389      if (!getCert()
390          .equals(other.getCert())) return false;
391    }
392    if (hasClientId() != other.hasClientId()) return false;
393    if (hasClientId()) {
394      if (!getClientId()
395          .equals(other.getClientId())) return false;
396    }
397    if (!getRemoteAddr()
398        .equals(other.getRemoteAddr())) return false;
399    if (getRemotePort()
400        != other.getRemotePort()) return false;
401    if (!getChannelId()
402        .equals(other.getChannelId())) return false;
403    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
404    return true;
405  }
406
407  @java.lang.Override
408  public int hashCode() {
409    if (memoizedHashCode != 0) {
410      return memoizedHashCode;
411    }
412    int hash = 41;
413    hash = (19 * hash) + getDescriptor().hashCode();
414    hash = (37 * hash) + ISMQISDP_FIELD_NUMBER;
415    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
416        getIsMQIsdp());
417    if (hasUsername()) {
418      hash = (37 * hash) + USERNAME_FIELD_NUMBER;
419      hash = (53 * hash) + getUsername().hashCode();
420    }
421    if (hasPassword()) {
422      hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
423      hash = (53 * hash) + getPassword().hashCode();
424    }
425    if (hasCert()) {
426      hash = (37 * hash) + CERT_FIELD_NUMBER;
427      hash = (53 * hash) + getCert().hashCode();
428    }
429    if (hasClientId()) {
430      hash = (37 * hash) + CLIENTID_FIELD_NUMBER;
431      hash = (53 * hash) + getClientId().hashCode();
432    }
433    hash = (37 * hash) + REMOTEADDR_FIELD_NUMBER;
434    hash = (53 * hash) + getRemoteAddr().hashCode();
435    hash = (37 * hash) + REMOTEPORT_FIELD_NUMBER;
436    hash = (53 * hash) + getRemotePort();
437    hash = (37 * hash) + CHANNELID_FIELD_NUMBER;
438    hash = (53 * hash) + getChannelId().hashCode();
439    hash = (29 * hash) + getUnknownFields().hashCode();
440    memoizedHashCode = hash;
441    return hash;
442  }
443
444  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData parseFrom(
445      java.nio.ByteBuffer data)
446      throws com.google.protobuf.InvalidProtocolBufferException {
447    return PARSER.parseFrom(data);
448  }
449  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData parseFrom(
450      java.nio.ByteBuffer data,
451      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
452      throws com.google.protobuf.InvalidProtocolBufferException {
453    return PARSER.parseFrom(data, extensionRegistry);
454  }
455  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData parseFrom(
456      com.google.protobuf.ByteString data)
457      throws com.google.protobuf.InvalidProtocolBufferException {
458    return PARSER.parseFrom(data);
459  }
460  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData parseFrom(
461      com.google.protobuf.ByteString data,
462      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
463      throws com.google.protobuf.InvalidProtocolBufferException {
464    return PARSER.parseFrom(data, extensionRegistry);
465  }
466  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData parseFrom(byte[] data)
467      throws com.google.protobuf.InvalidProtocolBufferException {
468    return PARSER.parseFrom(data);
469  }
470  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData parseFrom(
471      byte[] data,
472      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
473      throws com.google.protobuf.InvalidProtocolBufferException {
474    return PARSER.parseFrom(data, extensionRegistry);
475  }
476  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData parseFrom(java.io.InputStream input)
477      throws java.io.IOException {
478    return com.google.protobuf.GeneratedMessageV3
479        .parseWithIOException(PARSER, input);
480  }
481  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData parseFrom(
482      java.io.InputStream input,
483      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
484      throws java.io.IOException {
485    return com.google.protobuf.GeneratedMessageV3
486        .parseWithIOException(PARSER, input, extensionRegistry);
487  }
488
489  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData parseDelimitedFrom(java.io.InputStream input)
490      throws java.io.IOException {
491    return com.google.protobuf.GeneratedMessageV3
492        .parseDelimitedWithIOException(PARSER, input);
493  }
494
495  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData parseDelimitedFrom(
496      java.io.InputStream input,
497      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
498      throws java.io.IOException {
499    return com.google.protobuf.GeneratedMessageV3
500        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
501  }
502  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData parseFrom(
503      com.google.protobuf.CodedInputStream input)
504      throws java.io.IOException {
505    return com.google.protobuf.GeneratedMessageV3
506        .parseWithIOException(PARSER, input);
507  }
508  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData parseFrom(
509      com.google.protobuf.CodedInputStream input,
510      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
511      throws java.io.IOException {
512    return com.google.protobuf.GeneratedMessageV3
513        .parseWithIOException(PARSER, input, extensionRegistry);
514  }
515
516  @java.lang.Override
517  public Builder newBuilderForType() { return newBuilder(); }
518  public static Builder newBuilder() {
519    return DEFAULT_INSTANCE.toBuilder();
520  }
521  public static Builder newBuilder(com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData prototype) {
522    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
523  }
524  @java.lang.Override
525  public Builder toBuilder() {
526    return this == DEFAULT_INSTANCE
527        ? new Builder() : new Builder().mergeFrom(this);
528  }
529
530  @java.lang.Override
531  protected Builder newBuilderForType(
532      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
533    Builder builder = new Builder(parent);
534    return builder;
535  }
536  /**
537   * Protobuf type {@code mqtt3authtypes.MQTT3AuthData}
538   */
539  public static final class Builder extends
540      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
541      // @@protoc_insertion_point(builder_implements:mqtt3authtypes.MQTT3AuthData)
542      com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthDataOrBuilder {
543    public static final com.google.protobuf.Descriptors.Descriptor
544        getDescriptor() {
545      return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthData_descriptor;
546    }
547
548    @java.lang.Override
549    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
550        internalGetFieldAccessorTable() {
551      return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthData_fieldAccessorTable
552          .ensureFieldAccessorsInitialized(
553              com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData.class, com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData.Builder.class);
554    }
555
556    // Construct using com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData.newBuilder()
557    private Builder() {
558
559    }
560
561    private Builder(
562        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
563      super(parent);
564
565    }
566    @java.lang.Override
567    public Builder clear() {
568      super.clear();
569      bitField0_ = 0;
570      isMQIsdp_ = false;
571      username_ = "";
572      password_ = com.google.protobuf.ByteString.EMPTY;
573      cert_ = com.google.protobuf.ByteString.EMPTY;
574      clientId_ = "";
575      remoteAddr_ = "";
576      remotePort_ = 0;
577      channelId_ = "";
578      return this;
579    }
580
581    @java.lang.Override
582    public com.google.protobuf.Descriptors.Descriptor
583        getDescriptorForType() {
584      return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthData_descriptor;
585    }
586
587    @java.lang.Override
588    public com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData getDefaultInstanceForType() {
589      return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData.getDefaultInstance();
590    }
591
592    @java.lang.Override
593    public com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData build() {
594      com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData result = buildPartial();
595      if (!result.isInitialized()) {
596        throw newUninitializedMessageException(result);
597      }
598      return result;
599    }
600
601    @java.lang.Override
602    public com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData buildPartial() {
603      com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData result = new com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData(this);
604      if (bitField0_ != 0) { buildPartial0(result); }
605      onBuilt();
606      return result;
607    }
608
609    private void buildPartial0(com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData result) {
610      int from_bitField0_ = bitField0_;
611      if (((from_bitField0_ & 0x00000001) != 0)) {
612        result.isMQIsdp_ = isMQIsdp_;
613      }
614      int to_bitField0_ = 0;
615      if (((from_bitField0_ & 0x00000002) != 0)) {
616        result.username_ = username_;
617        to_bitField0_ |= 0x00000001;
618      }
619      if (((from_bitField0_ & 0x00000004) != 0)) {
620        result.password_ = password_;
621        to_bitField0_ |= 0x00000002;
622      }
623      if (((from_bitField0_ & 0x00000008) != 0)) {
624        result.cert_ = cert_;
625        to_bitField0_ |= 0x00000004;
626      }
627      if (((from_bitField0_ & 0x00000010) != 0)) {
628        result.clientId_ = clientId_;
629        to_bitField0_ |= 0x00000008;
630      }
631      if (((from_bitField0_ & 0x00000020) != 0)) {
632        result.remoteAddr_ = remoteAddr_;
633      }
634      if (((from_bitField0_ & 0x00000040) != 0)) {
635        result.remotePort_ = remotePort_;
636      }
637      if (((from_bitField0_ & 0x00000080) != 0)) {
638        result.channelId_ = channelId_;
639      }
640      result.bitField0_ |= to_bitField0_;
641    }
642
643    @java.lang.Override
644    public Builder clone() {
645      return super.clone();
646    }
647    @java.lang.Override
648    public Builder setField(
649        com.google.protobuf.Descriptors.FieldDescriptor field,
650        java.lang.Object value) {
651      return super.setField(field, value);
652    }
653    @java.lang.Override
654    public Builder clearField(
655        com.google.protobuf.Descriptors.FieldDescriptor field) {
656      return super.clearField(field);
657    }
658    @java.lang.Override
659    public Builder clearOneof(
660        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
661      return super.clearOneof(oneof);
662    }
663    @java.lang.Override
664    public Builder setRepeatedField(
665        com.google.protobuf.Descriptors.FieldDescriptor field,
666        int index, java.lang.Object value) {
667      return super.setRepeatedField(field, index, value);
668    }
669    @java.lang.Override
670    public Builder addRepeatedField(
671        com.google.protobuf.Descriptors.FieldDescriptor field,
672        java.lang.Object value) {
673      return super.addRepeatedField(field, value);
674    }
675    @java.lang.Override
676    public Builder mergeFrom(com.google.protobuf.Message other) {
677      if (other instanceof com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData) {
678        return mergeFrom((com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData)other);
679      } else {
680        super.mergeFrom(other);
681        return this;
682      }
683    }
684
685    public Builder mergeFrom(com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData other) {
686      if (other == com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData.getDefaultInstance()) return this;
687      if (other.getIsMQIsdp() != false) {
688        setIsMQIsdp(other.getIsMQIsdp());
689      }
690      if (other.hasUsername()) {
691        username_ = other.username_;
692        bitField0_ |= 0x00000002;
693        onChanged();
694      }
695      if (other.hasPassword()) {
696        setPassword(other.getPassword());
697      }
698      if (other.hasCert()) {
699        setCert(other.getCert());
700      }
701      if (other.hasClientId()) {
702        clientId_ = other.clientId_;
703        bitField0_ |= 0x00000010;
704        onChanged();
705      }
706      if (!other.getRemoteAddr().isEmpty()) {
707        remoteAddr_ = other.remoteAddr_;
708        bitField0_ |= 0x00000020;
709        onChanged();
710      }
711      if (other.getRemotePort() != 0) {
712        setRemotePort(other.getRemotePort());
713      }
714      if (!other.getChannelId().isEmpty()) {
715        channelId_ = other.channelId_;
716        bitField0_ |= 0x00000080;
717        onChanged();
718      }
719      this.mergeUnknownFields(other.getUnknownFields());
720      onChanged();
721      return this;
722    }
723
724    @java.lang.Override
725    public final boolean isInitialized() {
726      return true;
727    }
728
729    @java.lang.Override
730    public Builder mergeFrom(
731        com.google.protobuf.CodedInputStream input,
732        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
733        throws java.io.IOException {
734      if (extensionRegistry == null) {
735        throw new java.lang.NullPointerException();
736      }
737      try {
738        boolean done = false;
739        while (!done) {
740          int tag = input.readTag();
741          switch (tag) {
742            case 0:
743              done = true;
744              break;
745            case 8: {
746              isMQIsdp_ = input.readBool();
747              bitField0_ |= 0x00000001;
748              break;
749            } // case 8
750            case 18: {
751              username_ = input.readStringRequireUtf8();
752              bitField0_ |= 0x00000002;
753              break;
754            } // case 18
755            case 26: {
756              password_ = input.readBytes();
757              bitField0_ |= 0x00000004;
758              break;
759            } // case 26
760            case 34: {
761              cert_ = input.readBytes();
762              bitField0_ |= 0x00000008;
763              break;
764            } // case 34
765            case 42: {
766              clientId_ = input.readStringRequireUtf8();
767              bitField0_ |= 0x00000010;
768              break;
769            } // case 42
770            case 50: {
771              remoteAddr_ = input.readStringRequireUtf8();
772              bitField0_ |= 0x00000020;
773              break;
774            } // case 50
775            case 56: {
776              remotePort_ = input.readUInt32();
777              bitField0_ |= 0x00000040;
778              break;
779            } // case 56
780            case 66: {
781              channelId_ = input.readStringRequireUtf8();
782              bitField0_ |= 0x00000080;
783              break;
784            } // case 66
785            default: {
786              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
787                done = true; // was an endgroup tag
788              }
789              break;
790            } // default:
791          } // switch (tag)
792        } // while (!done)
793      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
794        throw e.unwrapIOException();
795      } finally {
796        onChanged();
797      } // finally
798      return this;
799    }
800    private int bitField0_;
801
802    private boolean isMQIsdp_ ;
803    /**
804     * <pre>
805     * MQIsdp is MQTT 3.1
806     * </pre>
807     *
808     * <code>bool isMQIsdp = 1;</code>
809     * @return The isMQIsdp.
810     */
811    @java.lang.Override
812    public boolean getIsMQIsdp() {
813      return isMQIsdp_;
814    }
815    /**
816     * <pre>
817     * MQIsdp is MQTT 3.1
818     * </pre>
819     *
820     * <code>bool isMQIsdp = 1;</code>
821     * @param value The isMQIsdp to set.
822     * @return This builder for chaining.
823     */
824    public Builder setIsMQIsdp(boolean value) {
825
826      isMQIsdp_ = value;
827      bitField0_ |= 0x00000001;
828      onChanged();
829      return this;
830    }
831    /**
832     * <pre>
833     * MQIsdp is MQTT 3.1
834     * </pre>
835     *
836     * <code>bool isMQIsdp = 1;</code>
837     * @return This builder for chaining.
838     */
839    public Builder clearIsMQIsdp() {
840      bitField0_ = (bitField0_ & ~0x00000001);
841      isMQIsdp_ = false;
842      onChanged();
843      return this;
844    }
845
846    private java.lang.Object username_ = "";
847    /**
848     * <code>optional string username = 2;</code>
849     * @return Whether the username field is set.
850     */
851    public boolean hasUsername() {
852      return ((bitField0_ & 0x00000002) != 0);
853    }
854    /**
855     * <code>optional string username = 2;</code>
856     * @return The username.
857     */
858    public java.lang.String getUsername() {
859      java.lang.Object ref = username_;
860      if (!(ref instanceof java.lang.String)) {
861        com.google.protobuf.ByteString bs =
862            (com.google.protobuf.ByteString) ref;
863        java.lang.String s = bs.toStringUtf8();
864        username_ = s;
865        return s;
866      } else {
867        return (java.lang.String) ref;
868      }
869    }
870    /**
871     * <code>optional string username = 2;</code>
872     * @return The bytes for username.
873     */
874    public com.google.protobuf.ByteString
875        getUsernameBytes() {
876      java.lang.Object ref = username_;
877      if (ref instanceof String) {
878        com.google.protobuf.ByteString b = 
879            com.google.protobuf.ByteString.copyFromUtf8(
880                (java.lang.String) ref);
881        username_ = b;
882        return b;
883      } else {
884        return (com.google.protobuf.ByteString) ref;
885      }
886    }
887    /**
888     * <code>optional string username = 2;</code>
889     * @param value The username to set.
890     * @return This builder for chaining.
891     */
892    public Builder setUsername(
893        java.lang.String value) {
894      if (value == null) { throw new NullPointerException(); }
895      username_ = value;
896      bitField0_ |= 0x00000002;
897      onChanged();
898      return this;
899    }
900    /**
901     * <code>optional string username = 2;</code>
902     * @return This builder for chaining.
903     */
904    public Builder clearUsername() {
905      username_ = getDefaultInstance().getUsername();
906      bitField0_ = (bitField0_ & ~0x00000002);
907      onChanged();
908      return this;
909    }
910    /**
911     * <code>optional string username = 2;</code>
912     * @param value The bytes for username to set.
913     * @return This builder for chaining.
914     */
915    public Builder setUsernameBytes(
916        com.google.protobuf.ByteString value) {
917      if (value == null) { throw new NullPointerException(); }
918      checkByteStringIsUtf8(value);
919      username_ = value;
920      bitField0_ |= 0x00000002;
921      onChanged();
922      return this;
923    }
924
925    private com.google.protobuf.ByteString password_ = com.google.protobuf.ByteString.EMPTY;
926    /**
927     * <code>optional bytes password = 3;</code>
928     * @return Whether the password field is set.
929     */
930    @java.lang.Override
931    public boolean hasPassword() {
932      return ((bitField0_ & 0x00000004) != 0);
933    }
934    /**
935     * <code>optional bytes password = 3;</code>
936     * @return The password.
937     */
938    @java.lang.Override
939    public com.google.protobuf.ByteString getPassword() {
940      return password_;
941    }
942    /**
943     * <code>optional bytes password = 3;</code>
944     * @param value The password to set.
945     * @return This builder for chaining.
946     */
947    public Builder setPassword(com.google.protobuf.ByteString value) {
948      if (value == null) { throw new NullPointerException(); }
949      password_ = value;
950      bitField0_ |= 0x00000004;
951      onChanged();
952      return this;
953    }
954    /**
955     * <code>optional bytes password = 3;</code>
956     * @return This builder for chaining.
957     */
958    public Builder clearPassword() {
959      bitField0_ = (bitField0_ & ~0x00000004);
960      password_ = getDefaultInstance().getPassword();
961      onChanged();
962      return this;
963    }
964
965    private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY;
966    /**
967     * <code>optional bytes cert = 4;</code>
968     * @return Whether the cert field is set.
969     */
970    @java.lang.Override
971    public boolean hasCert() {
972      return ((bitField0_ & 0x00000008) != 0);
973    }
974    /**
975     * <code>optional bytes cert = 4;</code>
976     * @return The cert.
977     */
978    @java.lang.Override
979    public com.google.protobuf.ByteString getCert() {
980      return cert_;
981    }
982    /**
983     * <code>optional bytes cert = 4;</code>
984     * @param value The cert to set.
985     * @return This builder for chaining.
986     */
987    public Builder setCert(com.google.protobuf.ByteString value) {
988      if (value == null) { throw new NullPointerException(); }
989      cert_ = value;
990      bitField0_ |= 0x00000008;
991      onChanged();
992      return this;
993    }
994    /**
995     * <code>optional bytes cert = 4;</code>
996     * @return This builder for chaining.
997     */
998    public Builder clearCert() {
999      bitField0_ = (bitField0_ & ~0x00000008);
1000      cert_ = getDefaultInstance().getCert();
1001      onChanged();
1002      return this;
1003    }
1004
1005    private java.lang.Object clientId_ = "";
1006    /**
1007     * <code>optional string clientId = 5;</code>
1008     * @return Whether the clientId field is set.
1009     */
1010    public boolean hasClientId() {
1011      return ((bitField0_ & 0x00000010) != 0);
1012    }
1013    /**
1014     * <code>optional string clientId = 5;</code>
1015     * @return The clientId.
1016     */
1017    public java.lang.String getClientId() {
1018      java.lang.Object ref = clientId_;
1019      if (!(ref instanceof java.lang.String)) {
1020        com.google.protobuf.ByteString bs =
1021            (com.google.protobuf.ByteString) ref;
1022        java.lang.String s = bs.toStringUtf8();
1023        clientId_ = s;
1024        return s;
1025      } else {
1026        return (java.lang.String) ref;
1027      }
1028    }
1029    /**
1030     * <code>optional string clientId = 5;</code>
1031     * @return The bytes for clientId.
1032     */
1033    public com.google.protobuf.ByteString
1034        getClientIdBytes() {
1035      java.lang.Object ref = clientId_;
1036      if (ref instanceof String) {
1037        com.google.protobuf.ByteString b = 
1038            com.google.protobuf.ByteString.copyFromUtf8(
1039                (java.lang.String) ref);
1040        clientId_ = b;
1041        return b;
1042      } else {
1043        return (com.google.protobuf.ByteString) ref;
1044      }
1045    }
1046    /**
1047     * <code>optional string clientId = 5;</code>
1048     * @param value The clientId to set.
1049     * @return This builder for chaining.
1050     */
1051    public Builder setClientId(
1052        java.lang.String value) {
1053      if (value == null) { throw new NullPointerException(); }
1054      clientId_ = value;
1055      bitField0_ |= 0x00000010;
1056      onChanged();
1057      return this;
1058    }
1059    /**
1060     * <code>optional string clientId = 5;</code>
1061     * @return This builder for chaining.
1062     */
1063    public Builder clearClientId() {
1064      clientId_ = getDefaultInstance().getClientId();
1065      bitField0_ = (bitField0_ & ~0x00000010);
1066      onChanged();
1067      return this;
1068    }
1069    /**
1070     * <code>optional string clientId = 5;</code>
1071     * @param value The bytes for clientId to set.
1072     * @return This builder for chaining.
1073     */
1074    public Builder setClientIdBytes(
1075        com.google.protobuf.ByteString value) {
1076      if (value == null) { throw new NullPointerException(); }
1077      checkByteStringIsUtf8(value);
1078      clientId_ = value;
1079      bitField0_ |= 0x00000010;
1080      onChanged();
1081      return this;
1082    }
1083
1084    private java.lang.Object remoteAddr_ = "";
1085    /**
1086     * <code>string remoteAddr = 6;</code>
1087     * @return The remoteAddr.
1088     */
1089    public java.lang.String getRemoteAddr() {
1090      java.lang.Object ref = remoteAddr_;
1091      if (!(ref instanceof java.lang.String)) {
1092        com.google.protobuf.ByteString bs =
1093            (com.google.protobuf.ByteString) ref;
1094        java.lang.String s = bs.toStringUtf8();
1095        remoteAddr_ = s;
1096        return s;
1097      } else {
1098        return (java.lang.String) ref;
1099      }
1100    }
1101    /**
1102     * <code>string remoteAddr = 6;</code>
1103     * @return The bytes for remoteAddr.
1104     */
1105    public com.google.protobuf.ByteString
1106        getRemoteAddrBytes() {
1107      java.lang.Object ref = remoteAddr_;
1108      if (ref instanceof String) {
1109        com.google.protobuf.ByteString b = 
1110            com.google.protobuf.ByteString.copyFromUtf8(
1111                (java.lang.String) ref);
1112        remoteAddr_ = b;
1113        return b;
1114      } else {
1115        return (com.google.protobuf.ByteString) ref;
1116      }
1117    }
1118    /**
1119     * <code>string remoteAddr = 6;</code>
1120     * @param value The remoteAddr to set.
1121     * @return This builder for chaining.
1122     */
1123    public Builder setRemoteAddr(
1124        java.lang.String value) {
1125      if (value == null) { throw new NullPointerException(); }
1126      remoteAddr_ = value;
1127      bitField0_ |= 0x00000020;
1128      onChanged();
1129      return this;
1130    }
1131    /**
1132     * <code>string remoteAddr = 6;</code>
1133     * @return This builder for chaining.
1134     */
1135    public Builder clearRemoteAddr() {
1136      remoteAddr_ = getDefaultInstance().getRemoteAddr();
1137      bitField0_ = (bitField0_ & ~0x00000020);
1138      onChanged();
1139      return this;
1140    }
1141    /**
1142     * <code>string remoteAddr = 6;</code>
1143     * @param value The bytes for remoteAddr to set.
1144     * @return This builder for chaining.
1145     */
1146    public Builder setRemoteAddrBytes(
1147        com.google.protobuf.ByteString value) {
1148      if (value == null) { throw new NullPointerException(); }
1149      checkByteStringIsUtf8(value);
1150      remoteAddr_ = value;
1151      bitField0_ |= 0x00000020;
1152      onChanged();
1153      return this;
1154    }
1155
1156    private int remotePort_ ;
1157    /**
1158     * <code>uint32 remotePort = 7;</code>
1159     * @return The remotePort.
1160     */
1161    @java.lang.Override
1162    public int getRemotePort() {
1163      return remotePort_;
1164    }
1165    /**
1166     * <code>uint32 remotePort = 7;</code>
1167     * @param value The remotePort to set.
1168     * @return This builder for chaining.
1169     */
1170    public Builder setRemotePort(int value) {
1171
1172      remotePort_ = value;
1173      bitField0_ |= 0x00000040;
1174      onChanged();
1175      return this;
1176    }
1177    /**
1178     * <code>uint32 remotePort = 7;</code>
1179     * @return This builder for chaining.
1180     */
1181    public Builder clearRemotePort() {
1182      bitField0_ = (bitField0_ & ~0x00000040);
1183      remotePort_ = 0;
1184      onChanged();
1185      return this;
1186    }
1187
1188    private java.lang.Object channelId_ = "";
1189    /**
1190     * <code>string channelId = 8;</code>
1191     * @return The channelId.
1192     */
1193    public java.lang.String getChannelId() {
1194      java.lang.Object ref = channelId_;
1195      if (!(ref instanceof java.lang.String)) {
1196        com.google.protobuf.ByteString bs =
1197            (com.google.protobuf.ByteString) ref;
1198        java.lang.String s = bs.toStringUtf8();
1199        channelId_ = s;
1200        return s;
1201      } else {
1202        return (java.lang.String) ref;
1203      }
1204    }
1205    /**
1206     * <code>string channelId = 8;</code>
1207     * @return The bytes for channelId.
1208     */
1209    public com.google.protobuf.ByteString
1210        getChannelIdBytes() {
1211      java.lang.Object ref = channelId_;
1212      if (ref instanceof String) {
1213        com.google.protobuf.ByteString b = 
1214            com.google.protobuf.ByteString.copyFromUtf8(
1215                (java.lang.String) ref);
1216        channelId_ = b;
1217        return b;
1218      } else {
1219        return (com.google.protobuf.ByteString) ref;
1220      }
1221    }
1222    /**
1223     * <code>string channelId = 8;</code>
1224     * @param value The channelId to set.
1225     * @return This builder for chaining.
1226     */
1227    public Builder setChannelId(
1228        java.lang.String value) {
1229      if (value == null) { throw new NullPointerException(); }
1230      channelId_ = value;
1231      bitField0_ |= 0x00000080;
1232      onChanged();
1233      return this;
1234    }
1235    /**
1236     * <code>string channelId = 8;</code>
1237     * @return This builder for chaining.
1238     */
1239    public Builder clearChannelId() {
1240      channelId_ = getDefaultInstance().getChannelId();
1241      bitField0_ = (bitField0_ & ~0x00000080);
1242      onChanged();
1243      return this;
1244    }
1245    /**
1246     * <code>string channelId = 8;</code>
1247     * @param value The bytes for channelId to set.
1248     * @return This builder for chaining.
1249     */
1250    public Builder setChannelIdBytes(
1251        com.google.protobuf.ByteString value) {
1252      if (value == null) { throw new NullPointerException(); }
1253      checkByteStringIsUtf8(value);
1254      channelId_ = value;
1255      bitField0_ |= 0x00000080;
1256      onChanged();
1257      return this;
1258    }
1259    @java.lang.Override
1260    public final Builder setUnknownFields(
1261        final com.google.protobuf.UnknownFieldSet unknownFields) {
1262      return super.setUnknownFields(unknownFields);
1263    }
1264
1265    @java.lang.Override
1266    public final Builder mergeUnknownFields(
1267        final com.google.protobuf.UnknownFieldSet unknownFields) {
1268      return super.mergeUnknownFields(unknownFields);
1269    }
1270
1271
1272    // @@protoc_insertion_point(builder_scope:mqtt3authtypes.MQTT3AuthData)
1273  }
1274
1275  // @@protoc_insertion_point(class_scope:mqtt3authtypes.MQTT3AuthData)
1276  private static final com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData DEFAULT_INSTANCE;
1277  static {
1278    DEFAULT_INSTANCE = new com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData();
1279  }
1280
1281  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData getDefaultInstance() {
1282    return DEFAULT_INSTANCE;
1283  }
1284
1285  private static final com.google.protobuf.Parser<MQTT3AuthData>
1286      PARSER = new com.google.protobuf.AbstractParser<MQTT3AuthData>() {
1287    @java.lang.Override
1288    public MQTT3AuthData parsePartialFrom(
1289        com.google.protobuf.CodedInputStream input,
1290        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1291        throws com.google.protobuf.InvalidProtocolBufferException {
1292      Builder builder = newBuilder();
1293      try {
1294        builder.mergeFrom(input, extensionRegistry);
1295      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1296        throw e.setUnfinishedMessage(builder.buildPartial());
1297      } catch (com.google.protobuf.UninitializedMessageException e) {
1298        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1299      } catch (java.io.IOException e) {
1300        throw new com.google.protobuf.InvalidProtocolBufferException(e)
1301            .setUnfinishedMessage(builder.buildPartial());
1302      }
1303      return builder.buildPartial();
1304    }
1305  };
1306
1307  public static com.google.protobuf.Parser<MQTT3AuthData> parser() {
1308    return PARSER;
1309  }
1310
1311  @java.lang.Override
1312  public com.google.protobuf.Parser<MQTT3AuthData> getParserForType() {
1313    return PARSER;
1314  }
1315
1316  @java.lang.Override
1317  public com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthData getDefaultInstanceForType() {
1318    return DEFAULT_INSTANCE;
1319  }
1320
1321}
1322