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