001// Generated by the protocol buffer compiler.  DO NOT EDIT!
002// source: mqtt3_auth_types.proto
003
004package com.baidu.bifromq.plugin.authprovider.type;
005
006/**
007 * Protobuf type {@code mqtt3authtypes.MQTT3AuthResult}
008 */
009public final class MQTT3AuthResult extends
010    com.google.protobuf.GeneratedMessageV3 implements
011    // @@protoc_insertion_point(message_implements:mqtt3authtypes.MQTT3AuthResult)
012    MQTT3AuthResultOrBuilder {
013private static final long serialVersionUID = 0L;
014  // Use MQTT3AuthResult.newBuilder() to construct.
015  private MQTT3AuthResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
016    super(builder);
017  }
018  private MQTT3AuthResult() {
019  }
020
021  @java.lang.Override
022  @SuppressWarnings({"unused"})
023  protected java.lang.Object newInstance(
024      UnusedPrivateParameter unused) {
025    return new MQTT3AuthResult();
026  }
027
028  @java.lang.Override
029  public final com.google.protobuf.UnknownFieldSet
030  getUnknownFields() {
031    return this.unknownFields;
032  }
033  public static final com.google.protobuf.Descriptors.Descriptor
034      getDescriptor() {
035    return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthResult_descriptor;
036  }
037
038  @java.lang.Override
039  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
040      internalGetFieldAccessorTable() {
041    return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthResult_fieldAccessorTable
042        .ensureFieldAccessorsInitialized(
043            com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.class, com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.Builder.class);
044  }
045
046  private int typeCase_ = 0;
047  private java.lang.Object type_;
048  public enum TypeCase
049      implements com.google.protobuf.Internal.EnumLite,
050          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
051    OK(1),
052    REJECT(2),
053    TYPE_NOT_SET(0);
054    private final int value;
055    private TypeCase(int value) {
056      this.value = value;
057    }
058    /**
059     * @param value The number of the enum to look for.
060     * @return The enum associated with the given number.
061     * @deprecated Use {@link #forNumber(int)} instead.
062     */
063    @java.lang.Deprecated
064    public static TypeCase valueOf(int value) {
065      return forNumber(value);
066    }
067
068    public static TypeCase forNumber(int value) {
069      switch (value) {
070        case 1: return OK;
071        case 2: return REJECT;
072        case 0: return TYPE_NOT_SET;
073        default: return null;
074      }
075    }
076    public int getNumber() {
077      return this.value;
078    }
079  };
080
081  public TypeCase
082  getTypeCase() {
083    return TypeCase.forNumber(
084        typeCase_);
085  }
086
087  public static final int OK_FIELD_NUMBER = 1;
088  /**
089   * <code>.mqtt3authtypes.Ok ok = 1;</code>
090   * @return Whether the ok field is set.
091   */
092  @java.lang.Override
093  public boolean hasOk() {
094    return typeCase_ == 1;
095  }
096  /**
097   * <code>.mqtt3authtypes.Ok ok = 1;</code>
098   * @return The ok.
099   */
100  @java.lang.Override
101  public com.baidu.bifromq.plugin.authprovider.type.Ok getOk() {
102    if (typeCase_ == 1) {
103       return (com.baidu.bifromq.plugin.authprovider.type.Ok) type_;
104    }
105    return com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance();
106  }
107  /**
108   * <code>.mqtt3authtypes.Ok ok = 1;</code>
109   */
110  @java.lang.Override
111  public com.baidu.bifromq.plugin.authprovider.type.OkOrBuilder getOkOrBuilder() {
112    if (typeCase_ == 1) {
113       return (com.baidu.bifromq.plugin.authprovider.type.Ok) type_;
114    }
115    return com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance();
116  }
117
118  public static final int REJECT_FIELD_NUMBER = 2;
119  /**
120   * <code>.mqtt3authtypes.Reject reject = 2;</code>
121   * @return Whether the reject field is set.
122   */
123  @java.lang.Override
124  public boolean hasReject() {
125    return typeCase_ == 2;
126  }
127  /**
128   * <code>.mqtt3authtypes.Reject reject = 2;</code>
129   * @return The reject.
130   */
131  @java.lang.Override
132  public com.baidu.bifromq.plugin.authprovider.type.Reject getReject() {
133    if (typeCase_ == 2) {
134       return (com.baidu.bifromq.plugin.authprovider.type.Reject) type_;
135    }
136    return com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance();
137  }
138  /**
139   * <code>.mqtt3authtypes.Reject reject = 2;</code>
140   */
141  @java.lang.Override
142  public com.baidu.bifromq.plugin.authprovider.type.RejectOrBuilder getRejectOrBuilder() {
143    if (typeCase_ == 2) {
144       return (com.baidu.bifromq.plugin.authprovider.type.Reject) type_;
145    }
146    return com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance();
147  }
148
149  private byte memoizedIsInitialized = -1;
150  @java.lang.Override
151  public final boolean isInitialized() {
152    byte isInitialized = memoizedIsInitialized;
153    if (isInitialized == 1) return true;
154    if (isInitialized == 0) return false;
155
156    memoizedIsInitialized = 1;
157    return true;
158  }
159
160  @java.lang.Override
161  public void writeTo(com.google.protobuf.CodedOutputStream output)
162                      throws java.io.IOException {
163    if (typeCase_ == 1) {
164      output.writeMessage(1, (com.baidu.bifromq.plugin.authprovider.type.Ok) type_);
165    }
166    if (typeCase_ == 2) {
167      output.writeMessage(2, (com.baidu.bifromq.plugin.authprovider.type.Reject) type_);
168    }
169    getUnknownFields().writeTo(output);
170  }
171
172  @java.lang.Override
173  public int getSerializedSize() {
174    int size = memoizedSize;
175    if (size != -1) return size;
176
177    size = 0;
178    if (typeCase_ == 1) {
179      size += com.google.protobuf.CodedOutputStream
180        .computeMessageSize(1, (com.baidu.bifromq.plugin.authprovider.type.Ok) type_);
181    }
182    if (typeCase_ == 2) {
183      size += com.google.protobuf.CodedOutputStream
184        .computeMessageSize(2, (com.baidu.bifromq.plugin.authprovider.type.Reject) type_);
185    }
186    size += getUnknownFields().getSerializedSize();
187    memoizedSize = size;
188    return size;
189  }
190
191  @java.lang.Override
192  public boolean equals(final java.lang.Object obj) {
193    if (obj == this) {
194     return true;
195    }
196    if (!(obj instanceof com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult)) {
197      return super.equals(obj);
198    }
199    com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult other = (com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult) obj;
200
201    if (!getTypeCase().equals(other.getTypeCase())) return false;
202    switch (typeCase_) {
203      case 1:
204        if (!getOk()
205            .equals(other.getOk())) return false;
206        break;
207      case 2:
208        if (!getReject()
209            .equals(other.getReject())) return false;
210        break;
211      case 0:
212      default:
213    }
214    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
215    return true;
216  }
217
218  @java.lang.Override
219  public int hashCode() {
220    if (memoizedHashCode != 0) {
221      return memoizedHashCode;
222    }
223    int hash = 41;
224    hash = (19 * hash) + getDescriptor().hashCode();
225    switch (typeCase_) {
226      case 1:
227        hash = (37 * hash) + OK_FIELD_NUMBER;
228        hash = (53 * hash) + getOk().hashCode();
229        break;
230      case 2:
231        hash = (37 * hash) + REJECT_FIELD_NUMBER;
232        hash = (53 * hash) + getReject().hashCode();
233        break;
234      case 0:
235      default:
236    }
237    hash = (29 * hash) + getUnknownFields().hashCode();
238    memoizedHashCode = hash;
239    return hash;
240  }
241
242  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom(
243      java.nio.ByteBuffer data)
244      throws com.google.protobuf.InvalidProtocolBufferException {
245    return PARSER.parseFrom(data);
246  }
247  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom(
248      java.nio.ByteBuffer data,
249      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
250      throws com.google.protobuf.InvalidProtocolBufferException {
251    return PARSER.parseFrom(data, extensionRegistry);
252  }
253  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom(
254      com.google.protobuf.ByteString data)
255      throws com.google.protobuf.InvalidProtocolBufferException {
256    return PARSER.parseFrom(data);
257  }
258  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom(
259      com.google.protobuf.ByteString data,
260      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
261      throws com.google.protobuf.InvalidProtocolBufferException {
262    return PARSER.parseFrom(data, extensionRegistry);
263  }
264  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom(byte[] data)
265      throws com.google.protobuf.InvalidProtocolBufferException {
266    return PARSER.parseFrom(data);
267  }
268  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom(
269      byte[] data,
270      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
271      throws com.google.protobuf.InvalidProtocolBufferException {
272    return PARSER.parseFrom(data, extensionRegistry);
273  }
274  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom(java.io.InputStream input)
275      throws java.io.IOException {
276    return com.google.protobuf.GeneratedMessageV3
277        .parseWithIOException(PARSER, input);
278  }
279  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom(
280      java.io.InputStream input,
281      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
282      throws java.io.IOException {
283    return com.google.protobuf.GeneratedMessageV3
284        .parseWithIOException(PARSER, input, extensionRegistry);
285  }
286  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseDelimitedFrom(java.io.InputStream input)
287      throws java.io.IOException {
288    return com.google.protobuf.GeneratedMessageV3
289        .parseDelimitedWithIOException(PARSER, input);
290  }
291  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseDelimitedFrom(
292      java.io.InputStream input,
293      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
294      throws java.io.IOException {
295    return com.google.protobuf.GeneratedMessageV3
296        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
297  }
298  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom(
299      com.google.protobuf.CodedInputStream input)
300      throws java.io.IOException {
301    return com.google.protobuf.GeneratedMessageV3
302        .parseWithIOException(PARSER, input);
303  }
304  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult parseFrom(
305      com.google.protobuf.CodedInputStream input,
306      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
307      throws java.io.IOException {
308    return com.google.protobuf.GeneratedMessageV3
309        .parseWithIOException(PARSER, input, extensionRegistry);
310  }
311
312  @java.lang.Override
313  public Builder newBuilderForType() { return newBuilder(); }
314  public static Builder newBuilder() {
315    return DEFAULT_INSTANCE.toBuilder();
316  }
317  public static Builder newBuilder(com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult prototype) {
318    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
319  }
320  @java.lang.Override
321  public Builder toBuilder() {
322    return this == DEFAULT_INSTANCE
323        ? new Builder() : new Builder().mergeFrom(this);
324  }
325
326  @java.lang.Override
327  protected Builder newBuilderForType(
328      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
329    Builder builder = new Builder(parent);
330    return builder;
331  }
332  /**
333   * Protobuf type {@code mqtt3authtypes.MQTT3AuthResult}
334   */
335  public static final class Builder extends
336      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
337      // @@protoc_insertion_point(builder_implements:mqtt3authtypes.MQTT3AuthResult)
338      com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResultOrBuilder {
339    public static final com.google.protobuf.Descriptors.Descriptor
340        getDescriptor() {
341      return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthResult_descriptor;
342    }
343
344    @java.lang.Override
345    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
346        internalGetFieldAccessorTable() {
347      return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthResult_fieldAccessorTable
348          .ensureFieldAccessorsInitialized(
349              com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.class, com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.Builder.class);
350    }
351
352    // Construct using com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.newBuilder()
353    private Builder() {
354
355    }
356
357    private Builder(
358        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
359      super(parent);
360
361    }
362    @java.lang.Override
363    public Builder clear() {
364      super.clear();
365      bitField0_ = 0;
366      if (okBuilder_ != null) {
367        okBuilder_.clear();
368      }
369      if (rejectBuilder_ != null) {
370        rejectBuilder_.clear();
371      }
372      typeCase_ = 0;
373      type_ = null;
374      return this;
375    }
376
377    @java.lang.Override
378    public com.google.protobuf.Descriptors.Descriptor
379        getDescriptorForType() {
380      return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthTypesProto.internal_static_mqtt3authtypes_MQTT3AuthResult_descriptor;
381    }
382
383    @java.lang.Override
384    public com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult getDefaultInstanceForType() {
385      return com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.getDefaultInstance();
386    }
387
388    @java.lang.Override
389    public com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult build() {
390      com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult result = buildPartial();
391      if (!result.isInitialized()) {
392        throw newUninitializedMessageException(result);
393      }
394      return result;
395    }
396
397    @java.lang.Override
398    public com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult buildPartial() {
399      com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult result = new com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult(this);
400      if (bitField0_ != 0) { buildPartial0(result); }
401      buildPartialOneofs(result);
402      onBuilt();
403      return result;
404    }
405
406    private void buildPartial0(com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult result) {
407      int from_bitField0_ = bitField0_;
408    }
409
410    private void buildPartialOneofs(com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult result) {
411      result.typeCase_ = typeCase_;
412      result.type_ = this.type_;
413      if (typeCase_ == 1 &&
414          okBuilder_ != null) {
415        result.type_ = okBuilder_.build();
416      }
417      if (typeCase_ == 2 &&
418          rejectBuilder_ != null) {
419        result.type_ = rejectBuilder_.build();
420      }
421    }
422
423    @java.lang.Override
424    public Builder clone() {
425      return super.clone();
426    }
427    @java.lang.Override
428    public Builder setField(
429        com.google.protobuf.Descriptors.FieldDescriptor field,
430        java.lang.Object value) {
431      return super.setField(field, value);
432    }
433    @java.lang.Override
434    public Builder clearField(
435        com.google.protobuf.Descriptors.FieldDescriptor field) {
436      return super.clearField(field);
437    }
438    @java.lang.Override
439    public Builder clearOneof(
440        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
441      return super.clearOneof(oneof);
442    }
443    @java.lang.Override
444    public Builder setRepeatedField(
445        com.google.protobuf.Descriptors.FieldDescriptor field,
446        int index, java.lang.Object value) {
447      return super.setRepeatedField(field, index, value);
448    }
449    @java.lang.Override
450    public Builder addRepeatedField(
451        com.google.protobuf.Descriptors.FieldDescriptor field,
452        java.lang.Object value) {
453      return super.addRepeatedField(field, value);
454    }
455    @java.lang.Override
456    public Builder mergeFrom(com.google.protobuf.Message other) {
457      if (other instanceof com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult) {
458        return mergeFrom((com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult)other);
459      } else {
460        super.mergeFrom(other);
461        return this;
462      }
463    }
464
465    public Builder mergeFrom(com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult other) {
466      if (other == com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult.getDefaultInstance()) return this;
467      switch (other.getTypeCase()) {
468        case OK: {
469          mergeOk(other.getOk());
470          break;
471        }
472        case REJECT: {
473          mergeReject(other.getReject());
474          break;
475        }
476        case TYPE_NOT_SET: {
477          break;
478        }
479      }
480      this.mergeUnknownFields(other.getUnknownFields());
481      onChanged();
482      return this;
483    }
484
485    @java.lang.Override
486    public final boolean isInitialized() {
487      return true;
488    }
489
490    @java.lang.Override
491    public Builder mergeFrom(
492        com.google.protobuf.CodedInputStream input,
493        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
494        throws java.io.IOException {
495      if (extensionRegistry == null) {
496        throw new java.lang.NullPointerException();
497      }
498      try {
499        boolean done = false;
500        while (!done) {
501          int tag = input.readTag();
502          switch (tag) {
503            case 0:
504              done = true;
505              break;
506            case 10: {
507              input.readMessage(
508                  getOkFieldBuilder().getBuilder(),
509                  extensionRegistry);
510              typeCase_ = 1;
511              break;
512            } // case 10
513            case 18: {
514              input.readMessage(
515                  getRejectFieldBuilder().getBuilder(),
516                  extensionRegistry);
517              typeCase_ = 2;
518              break;
519            } // case 18
520            default: {
521              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
522                done = true; // was an endgroup tag
523              }
524              break;
525            } // default:
526          } // switch (tag)
527        } // while (!done)
528      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
529        throw e.unwrapIOException();
530      } finally {
531        onChanged();
532      } // finally
533      return this;
534    }
535    private int typeCase_ = 0;
536    private java.lang.Object type_;
537    public TypeCase
538        getTypeCase() {
539      return TypeCase.forNumber(
540          typeCase_);
541    }
542
543    public Builder clearType() {
544      typeCase_ = 0;
545      type_ = null;
546      onChanged();
547      return this;
548    }
549
550    private int bitField0_;
551
552    private com.google.protobuf.SingleFieldBuilderV3<
553        com.baidu.bifromq.plugin.authprovider.type.Ok, com.baidu.bifromq.plugin.authprovider.type.Ok.Builder, com.baidu.bifromq.plugin.authprovider.type.OkOrBuilder> okBuilder_;
554    /**
555     * <code>.mqtt3authtypes.Ok ok = 1;</code>
556     * @return Whether the ok field is set.
557     */
558    @java.lang.Override
559    public boolean hasOk() {
560      return typeCase_ == 1;
561    }
562    /**
563     * <code>.mqtt3authtypes.Ok ok = 1;</code>
564     * @return The ok.
565     */
566    @java.lang.Override
567    public com.baidu.bifromq.plugin.authprovider.type.Ok getOk() {
568      if (okBuilder_ == null) {
569        if (typeCase_ == 1) {
570          return (com.baidu.bifromq.plugin.authprovider.type.Ok) type_;
571        }
572        return com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance();
573      } else {
574        if (typeCase_ == 1) {
575          return okBuilder_.getMessage();
576        }
577        return com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance();
578      }
579    }
580    /**
581     * <code>.mqtt3authtypes.Ok ok = 1;</code>
582     */
583    public Builder setOk(com.baidu.bifromq.plugin.authprovider.type.Ok value) {
584      if (okBuilder_ == null) {
585        if (value == null) {
586          throw new NullPointerException();
587        }
588        type_ = value;
589        onChanged();
590      } else {
591        okBuilder_.setMessage(value);
592      }
593      typeCase_ = 1;
594      return this;
595    }
596    /**
597     * <code>.mqtt3authtypes.Ok ok = 1;</code>
598     */
599    public Builder setOk(
600        com.baidu.bifromq.plugin.authprovider.type.Ok.Builder builderForValue) {
601      if (okBuilder_ == null) {
602        type_ = builderForValue.build();
603        onChanged();
604      } else {
605        okBuilder_.setMessage(builderForValue.build());
606      }
607      typeCase_ = 1;
608      return this;
609    }
610    /**
611     * <code>.mqtt3authtypes.Ok ok = 1;</code>
612     */
613    public Builder mergeOk(com.baidu.bifromq.plugin.authprovider.type.Ok value) {
614      if (okBuilder_ == null) {
615        if (typeCase_ == 1 &&
616            type_ != com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance()) {
617          type_ = com.baidu.bifromq.plugin.authprovider.type.Ok.newBuilder((com.baidu.bifromq.plugin.authprovider.type.Ok) type_)
618              .mergeFrom(value).buildPartial();
619        } else {
620          type_ = value;
621        }
622        onChanged();
623      } else {
624        if (typeCase_ == 1) {
625          okBuilder_.mergeFrom(value);
626        } else {
627          okBuilder_.setMessage(value);
628        }
629      }
630      typeCase_ = 1;
631      return this;
632    }
633    /**
634     * <code>.mqtt3authtypes.Ok ok = 1;</code>
635     */
636    public Builder clearOk() {
637      if (okBuilder_ == null) {
638        if (typeCase_ == 1) {
639          typeCase_ = 0;
640          type_ = null;
641          onChanged();
642        }
643      } else {
644        if (typeCase_ == 1) {
645          typeCase_ = 0;
646          type_ = null;
647        }
648        okBuilder_.clear();
649      }
650      return this;
651    }
652    /**
653     * <code>.mqtt3authtypes.Ok ok = 1;</code>
654     */
655    public com.baidu.bifromq.plugin.authprovider.type.Ok.Builder getOkBuilder() {
656      return getOkFieldBuilder().getBuilder();
657    }
658    /**
659     * <code>.mqtt3authtypes.Ok ok = 1;</code>
660     */
661    @java.lang.Override
662    public com.baidu.bifromq.plugin.authprovider.type.OkOrBuilder getOkOrBuilder() {
663      if ((typeCase_ == 1) && (okBuilder_ != null)) {
664        return okBuilder_.getMessageOrBuilder();
665      } else {
666        if (typeCase_ == 1) {
667          return (com.baidu.bifromq.plugin.authprovider.type.Ok) type_;
668        }
669        return com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance();
670      }
671    }
672    /**
673     * <code>.mqtt3authtypes.Ok ok = 1;</code>
674     */
675    private com.google.protobuf.SingleFieldBuilderV3<
676        com.baidu.bifromq.plugin.authprovider.type.Ok, com.baidu.bifromq.plugin.authprovider.type.Ok.Builder, com.baidu.bifromq.plugin.authprovider.type.OkOrBuilder> 
677        getOkFieldBuilder() {
678      if (okBuilder_ == null) {
679        if (!(typeCase_ == 1)) {
680          type_ = com.baidu.bifromq.plugin.authprovider.type.Ok.getDefaultInstance();
681        }
682        okBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
683            com.baidu.bifromq.plugin.authprovider.type.Ok, com.baidu.bifromq.plugin.authprovider.type.Ok.Builder, com.baidu.bifromq.plugin.authprovider.type.OkOrBuilder>(
684                (com.baidu.bifromq.plugin.authprovider.type.Ok) type_,
685                getParentForChildren(),
686                isClean());
687        type_ = null;
688      }
689      typeCase_ = 1;
690      onChanged();
691      return okBuilder_;
692    }
693
694    private com.google.protobuf.SingleFieldBuilderV3<
695        com.baidu.bifromq.plugin.authprovider.type.Reject, com.baidu.bifromq.plugin.authprovider.type.Reject.Builder, com.baidu.bifromq.plugin.authprovider.type.RejectOrBuilder> rejectBuilder_;
696    /**
697     * <code>.mqtt3authtypes.Reject reject = 2;</code>
698     * @return Whether the reject field is set.
699     */
700    @java.lang.Override
701    public boolean hasReject() {
702      return typeCase_ == 2;
703    }
704    /**
705     * <code>.mqtt3authtypes.Reject reject = 2;</code>
706     * @return The reject.
707     */
708    @java.lang.Override
709    public com.baidu.bifromq.plugin.authprovider.type.Reject getReject() {
710      if (rejectBuilder_ == null) {
711        if (typeCase_ == 2) {
712          return (com.baidu.bifromq.plugin.authprovider.type.Reject) type_;
713        }
714        return com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance();
715      } else {
716        if (typeCase_ == 2) {
717          return rejectBuilder_.getMessage();
718        }
719        return com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance();
720      }
721    }
722    /**
723     * <code>.mqtt3authtypes.Reject reject = 2;</code>
724     */
725    public Builder setReject(com.baidu.bifromq.plugin.authprovider.type.Reject value) {
726      if (rejectBuilder_ == null) {
727        if (value == null) {
728          throw new NullPointerException();
729        }
730        type_ = value;
731        onChanged();
732      } else {
733        rejectBuilder_.setMessage(value);
734      }
735      typeCase_ = 2;
736      return this;
737    }
738    /**
739     * <code>.mqtt3authtypes.Reject reject = 2;</code>
740     */
741    public Builder setReject(
742        com.baidu.bifromq.plugin.authprovider.type.Reject.Builder builderForValue) {
743      if (rejectBuilder_ == null) {
744        type_ = builderForValue.build();
745        onChanged();
746      } else {
747        rejectBuilder_.setMessage(builderForValue.build());
748      }
749      typeCase_ = 2;
750      return this;
751    }
752    /**
753     * <code>.mqtt3authtypes.Reject reject = 2;</code>
754     */
755    public Builder mergeReject(com.baidu.bifromq.plugin.authprovider.type.Reject value) {
756      if (rejectBuilder_ == null) {
757        if (typeCase_ == 2 &&
758            type_ != com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance()) {
759          type_ = com.baidu.bifromq.plugin.authprovider.type.Reject.newBuilder((com.baidu.bifromq.plugin.authprovider.type.Reject) type_)
760              .mergeFrom(value).buildPartial();
761        } else {
762          type_ = value;
763        }
764        onChanged();
765      } else {
766        if (typeCase_ == 2) {
767          rejectBuilder_.mergeFrom(value);
768        } else {
769          rejectBuilder_.setMessage(value);
770        }
771      }
772      typeCase_ = 2;
773      return this;
774    }
775    /**
776     * <code>.mqtt3authtypes.Reject reject = 2;</code>
777     */
778    public Builder clearReject() {
779      if (rejectBuilder_ == null) {
780        if (typeCase_ == 2) {
781          typeCase_ = 0;
782          type_ = null;
783          onChanged();
784        }
785      } else {
786        if (typeCase_ == 2) {
787          typeCase_ = 0;
788          type_ = null;
789        }
790        rejectBuilder_.clear();
791      }
792      return this;
793    }
794    /**
795     * <code>.mqtt3authtypes.Reject reject = 2;</code>
796     */
797    public com.baidu.bifromq.plugin.authprovider.type.Reject.Builder getRejectBuilder() {
798      return getRejectFieldBuilder().getBuilder();
799    }
800    /**
801     * <code>.mqtt3authtypes.Reject reject = 2;</code>
802     */
803    @java.lang.Override
804    public com.baidu.bifromq.plugin.authprovider.type.RejectOrBuilder getRejectOrBuilder() {
805      if ((typeCase_ == 2) && (rejectBuilder_ != null)) {
806        return rejectBuilder_.getMessageOrBuilder();
807      } else {
808        if (typeCase_ == 2) {
809          return (com.baidu.bifromq.plugin.authprovider.type.Reject) type_;
810        }
811        return com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance();
812      }
813    }
814    /**
815     * <code>.mqtt3authtypes.Reject reject = 2;</code>
816     */
817    private com.google.protobuf.SingleFieldBuilderV3<
818        com.baidu.bifromq.plugin.authprovider.type.Reject, com.baidu.bifromq.plugin.authprovider.type.Reject.Builder, com.baidu.bifromq.plugin.authprovider.type.RejectOrBuilder> 
819        getRejectFieldBuilder() {
820      if (rejectBuilder_ == null) {
821        if (!(typeCase_ == 2)) {
822          type_ = com.baidu.bifromq.plugin.authprovider.type.Reject.getDefaultInstance();
823        }
824        rejectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
825            com.baidu.bifromq.plugin.authprovider.type.Reject, com.baidu.bifromq.plugin.authprovider.type.Reject.Builder, com.baidu.bifromq.plugin.authprovider.type.RejectOrBuilder>(
826                (com.baidu.bifromq.plugin.authprovider.type.Reject) type_,
827                getParentForChildren(),
828                isClean());
829        type_ = null;
830      }
831      typeCase_ = 2;
832      onChanged();
833      return rejectBuilder_;
834    }
835    @java.lang.Override
836    public final Builder setUnknownFields(
837        final com.google.protobuf.UnknownFieldSet unknownFields) {
838      return super.setUnknownFields(unknownFields);
839    }
840
841    @java.lang.Override
842    public final Builder mergeUnknownFields(
843        final com.google.protobuf.UnknownFieldSet unknownFields) {
844      return super.mergeUnknownFields(unknownFields);
845    }
846
847
848    // @@protoc_insertion_point(builder_scope:mqtt3authtypes.MQTT3AuthResult)
849  }
850
851  // @@protoc_insertion_point(class_scope:mqtt3authtypes.MQTT3AuthResult)
852  private static final com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult DEFAULT_INSTANCE;
853  static {
854    DEFAULT_INSTANCE = new com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult();
855  }
856
857  public static com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult getDefaultInstance() {
858    return DEFAULT_INSTANCE;
859  }
860
861  private static final com.google.protobuf.Parser<MQTT3AuthResult>
862      PARSER = new com.google.protobuf.AbstractParser<MQTT3AuthResult>() {
863    @java.lang.Override
864    public MQTT3AuthResult parsePartialFrom(
865        com.google.protobuf.CodedInputStream input,
866        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
867        throws com.google.protobuf.InvalidProtocolBufferException {
868      Builder builder = newBuilder();
869      try {
870        builder.mergeFrom(input, extensionRegistry);
871      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
872        throw e.setUnfinishedMessage(builder.buildPartial());
873      } catch (com.google.protobuf.UninitializedMessageException e) {
874        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
875      } catch (java.io.IOException e) {
876        throw new com.google.protobuf.InvalidProtocolBufferException(e)
877            .setUnfinishedMessage(builder.buildPartial());
878      }
879      return builder.buildPartial();
880    }
881  };
882
883  public static com.google.protobuf.Parser<MQTT3AuthResult> parser() {
884    return PARSER;
885  }
886
887  @java.lang.Override
888  public com.google.protobuf.Parser<MQTT3AuthResult> getParserForType() {
889    return PARSER;
890  }
891
892  @java.lang.Override
893  public com.baidu.bifromq.plugin.authprovider.type.MQTT3AuthResult getDefaultInstanceForType() {
894    return DEFAULT_INSTANCE;
895  }
896
897}
898