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