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