001// Generated by the protocol buffer compiler.  DO NOT EDIT!
002// source: mqtt_actions.proto
003
004// Protobuf Java Version: 3.25.5
005package com.baidu.bifromq.plugin.authprovider.type;
006
007/**
008 * Protobuf type {@code checktypes.MQTTAction}
009 */
010public final class MQTTAction extends
011    com.google.protobuf.GeneratedMessageV3 implements
012    // @@protoc_insertion_point(message_implements:checktypes.MQTTAction)
013    MQTTActionOrBuilder {
014private static final long serialVersionUID = 0L;
015  // Use MQTTAction.newBuilder() to construct.
016  private MQTTAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
017    super(builder);
018  }
019  private MQTTAction() {
020  }
021
022  @java.lang.Override
023  @SuppressWarnings({"unused"})
024  protected java.lang.Object newInstance(
025      UnusedPrivateParameter unused) {
026    return new MQTTAction();
027  }
028
029  public static final com.google.protobuf.Descriptors.Descriptor
030      getDescriptor() {
031    return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_MQTTAction_descriptor;
032  }
033
034  @java.lang.Override
035  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
036      internalGetFieldAccessorTable() {
037    return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_MQTTAction_fieldAccessorTable
038        .ensureFieldAccessorsInitialized(
039            com.baidu.bifromq.plugin.authprovider.type.MQTTAction.class, com.baidu.bifromq.plugin.authprovider.type.MQTTAction.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    PUB(1),
049    SUB(2),
050    UNSUB(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 PUB;
069        case 2: return SUB;
070        case 3: return UNSUB;
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 PUB_FIELD_NUMBER = 1;
087  /**
088   * <code>.checktypes.PubAction pub = 1;</code>
089   * @return Whether the pub field is set.
090   */
091  @java.lang.Override
092  public boolean hasPub() {
093    return typeCase_ == 1;
094  }
095  /**
096   * <code>.checktypes.PubAction pub = 1;</code>
097   * @return The pub.
098   */
099  @java.lang.Override
100  public com.baidu.bifromq.plugin.authprovider.type.PubAction getPub() {
101    if (typeCase_ == 1) {
102       return (com.baidu.bifromq.plugin.authprovider.type.PubAction) type_;
103    }
104    return com.baidu.bifromq.plugin.authprovider.type.PubAction.getDefaultInstance();
105  }
106  /**
107   * <code>.checktypes.PubAction pub = 1;</code>
108   */
109  @java.lang.Override
110  public com.baidu.bifromq.plugin.authprovider.type.PubActionOrBuilder getPubOrBuilder() {
111    if (typeCase_ == 1) {
112       return (com.baidu.bifromq.plugin.authprovider.type.PubAction) type_;
113    }
114    return com.baidu.bifromq.plugin.authprovider.type.PubAction.getDefaultInstance();
115  }
116
117  public static final int SUB_FIELD_NUMBER = 2;
118  /**
119   * <code>.checktypes.SubAction sub = 2;</code>
120   * @return Whether the sub field is set.
121   */
122  @java.lang.Override
123  public boolean hasSub() {
124    return typeCase_ == 2;
125  }
126  /**
127   * <code>.checktypes.SubAction sub = 2;</code>
128   * @return The sub.
129   */
130  @java.lang.Override
131  public com.baidu.bifromq.plugin.authprovider.type.SubAction getSub() {
132    if (typeCase_ == 2) {
133       return (com.baidu.bifromq.plugin.authprovider.type.SubAction) type_;
134    }
135    return com.baidu.bifromq.plugin.authprovider.type.SubAction.getDefaultInstance();
136  }
137  /**
138   * <code>.checktypes.SubAction sub = 2;</code>
139   */
140  @java.lang.Override
141  public com.baidu.bifromq.plugin.authprovider.type.SubActionOrBuilder getSubOrBuilder() {
142    if (typeCase_ == 2) {
143       return (com.baidu.bifromq.plugin.authprovider.type.SubAction) type_;
144    }
145    return com.baidu.bifromq.plugin.authprovider.type.SubAction.getDefaultInstance();
146  }
147
148  public static final int UNSUB_FIELD_NUMBER = 3;
149  /**
150   * <code>.checktypes.UnsubAction unsub = 3;</code>
151   * @return Whether the unsub field is set.
152   */
153  @java.lang.Override
154  public boolean hasUnsub() {
155    return typeCase_ == 3;
156  }
157  /**
158   * <code>.checktypes.UnsubAction unsub = 3;</code>
159   * @return The unsub.
160   */
161  @java.lang.Override
162  public com.baidu.bifromq.plugin.authprovider.type.UnsubAction getUnsub() {
163    if (typeCase_ == 3) {
164       return (com.baidu.bifromq.plugin.authprovider.type.UnsubAction) type_;
165    }
166    return com.baidu.bifromq.plugin.authprovider.type.UnsubAction.getDefaultInstance();
167  }
168  /**
169   * <code>.checktypes.UnsubAction unsub = 3;</code>
170   */
171  @java.lang.Override
172  public com.baidu.bifromq.plugin.authprovider.type.UnsubActionOrBuilder getUnsubOrBuilder() {
173    if (typeCase_ == 3) {
174       return (com.baidu.bifromq.plugin.authprovider.type.UnsubAction) type_;
175    }
176    return com.baidu.bifromq.plugin.authprovider.type.UnsubAction.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.PubAction) type_);
195    }
196    if (typeCase_ == 2) {
197      output.writeMessage(2, (com.baidu.bifromq.plugin.authprovider.type.SubAction) type_);
198    }
199    if (typeCase_ == 3) {
200      output.writeMessage(3, (com.baidu.bifromq.plugin.authprovider.type.UnsubAction) 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.PubAction) type_);
214    }
215    if (typeCase_ == 2) {
216      size += com.google.protobuf.CodedOutputStream
217        .computeMessageSize(2, (com.baidu.bifromq.plugin.authprovider.type.SubAction) type_);
218    }
219    if (typeCase_ == 3) {
220      size += com.google.protobuf.CodedOutputStream
221        .computeMessageSize(3, (com.baidu.bifromq.plugin.authprovider.type.UnsubAction) 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.MQTTAction)) {
234      return super.equals(obj);
235    }
236    com.baidu.bifromq.plugin.authprovider.type.MQTTAction other = (com.baidu.bifromq.plugin.authprovider.type.MQTTAction) obj;
237
238    if (!getTypeCase().equals(other.getTypeCase())) return false;
239    switch (typeCase_) {
240      case 1:
241        if (!getPub()
242            .equals(other.getPub())) return false;
243        break;
244      case 2:
245        if (!getSub()
246            .equals(other.getSub())) return false;
247        break;
248      case 3:
249        if (!getUnsub()
250            .equals(other.getUnsub())) 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) + PUB_FIELD_NUMBER;
269        hash = (53 * hash) + getPub().hashCode();
270        break;
271      case 2:
272        hash = (37 * hash) + SUB_FIELD_NUMBER;
273        hash = (53 * hash) + getSub().hashCode();
274        break;
275      case 3:
276        hash = (37 * hash) + UNSUB_FIELD_NUMBER;
277        hash = (53 * hash) + getUnsub().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.MQTTAction 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.MQTTAction 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.MQTTAction 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.MQTTAction 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.MQTTAction parseFrom(byte[] data)
310      throws com.google.protobuf.InvalidProtocolBufferException {
311    return PARSER.parseFrom(data);
312  }
313  public static com.baidu.bifromq.plugin.authprovider.type.MQTTAction 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.MQTTAction 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.MQTTAction 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.MQTTAction 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.MQTTAction 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.MQTTAction 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.MQTTAction 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.MQTTAction 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 checktypes.MQTTAction}
381   */
382  public static final class Builder extends
383      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
384      // @@protoc_insertion_point(builder_implements:checktypes.MQTTAction)
385      com.baidu.bifromq.plugin.authprovider.type.MQTTActionOrBuilder {
386    public static final com.google.protobuf.Descriptors.Descriptor
387        getDescriptor() {
388      return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_MQTTAction_descriptor;
389    }
390
391    @java.lang.Override
392    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
393        internalGetFieldAccessorTable() {
394      return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_MQTTAction_fieldAccessorTable
395          .ensureFieldAccessorsInitialized(
396              com.baidu.bifromq.plugin.authprovider.type.MQTTAction.class, com.baidu.bifromq.plugin.authprovider.type.MQTTAction.Builder.class);
397    }
398
399    // Construct using com.baidu.bifromq.plugin.authprovider.type.MQTTAction.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 (pubBuilder_ != null) {
414        pubBuilder_.clear();
415      }
416      if (subBuilder_ != null) {
417        subBuilder_.clear();
418      }
419      if (unsubBuilder_ != null) {
420        unsubBuilder_.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.CheckTypesProto.internal_static_checktypes_MQTTAction_descriptor;
431    }
432
433    @java.lang.Override
434    public com.baidu.bifromq.plugin.authprovider.type.MQTTAction getDefaultInstanceForType() {
435      return com.baidu.bifromq.plugin.authprovider.type.MQTTAction.getDefaultInstance();
436    }
437
438    @java.lang.Override
439    public com.baidu.bifromq.plugin.authprovider.type.MQTTAction build() {
440      com.baidu.bifromq.plugin.authprovider.type.MQTTAction 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.MQTTAction buildPartial() {
449      com.baidu.bifromq.plugin.authprovider.type.MQTTAction result = new com.baidu.bifromq.plugin.authprovider.type.MQTTAction(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.MQTTAction result) {
457      int from_bitField0_ = bitField0_;
458    }
459
460    private void buildPartialOneofs(com.baidu.bifromq.plugin.authprovider.type.MQTTAction result) {
461      result.typeCase_ = typeCase_;
462      result.type_ = this.type_;
463      if (typeCase_ == 1 &&
464          pubBuilder_ != null) {
465        result.type_ = pubBuilder_.build();
466      }
467      if (typeCase_ == 2 &&
468          subBuilder_ != null) {
469        result.type_ = subBuilder_.build();
470      }
471      if (typeCase_ == 3 &&
472          unsubBuilder_ != null) {
473        result.type_ = unsubBuilder_.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.MQTTAction) {
512        return mergeFrom((com.baidu.bifromq.plugin.authprovider.type.MQTTAction)other);
513      } else {
514        super.mergeFrom(other);
515        return this;
516      }
517    }
518
519    public Builder mergeFrom(com.baidu.bifromq.plugin.authprovider.type.MQTTAction other) {
520      if (other == com.baidu.bifromq.plugin.authprovider.type.MQTTAction.getDefaultInstance()) return this;
521      switch (other.getTypeCase()) {
522        case PUB: {
523          mergePub(other.getPub());
524          break;
525        }
526        case SUB: {
527          mergeSub(other.getSub());
528          break;
529        }
530        case UNSUB: {
531          mergeUnsub(other.getUnsub());
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                  getPubFieldBuilder().getBuilder(),
567                  extensionRegistry);
568              typeCase_ = 1;
569              break;
570            } // case 10
571            case 18: {
572              input.readMessage(
573                  getSubFieldBuilder().getBuilder(),
574                  extensionRegistry);
575              typeCase_ = 2;
576              break;
577            } // case 18
578            case 26: {
579              input.readMessage(
580                  getUnsubFieldBuilder().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.PubAction, com.baidu.bifromq.plugin.authprovider.type.PubAction.Builder, com.baidu.bifromq.plugin.authprovider.type.PubActionOrBuilder> pubBuilder_;
619    /**
620     * <code>.checktypes.PubAction pub = 1;</code>
621     * @return Whether the pub field is set.
622     */
623    @java.lang.Override
624    public boolean hasPub() {
625      return typeCase_ == 1;
626    }
627    /**
628     * <code>.checktypes.PubAction pub = 1;</code>
629     * @return The pub.
630     */
631    @java.lang.Override
632    public com.baidu.bifromq.plugin.authprovider.type.PubAction getPub() {
633      if (pubBuilder_ == null) {
634        if (typeCase_ == 1) {
635          return (com.baidu.bifromq.plugin.authprovider.type.PubAction) type_;
636        }
637        return com.baidu.bifromq.plugin.authprovider.type.PubAction.getDefaultInstance();
638      } else {
639        if (typeCase_ == 1) {
640          return pubBuilder_.getMessage();
641        }
642        return com.baidu.bifromq.plugin.authprovider.type.PubAction.getDefaultInstance();
643      }
644    }
645    /**
646     * <code>.checktypes.PubAction pub = 1;</code>
647     */
648    public Builder setPub(com.baidu.bifromq.plugin.authprovider.type.PubAction value) {
649      if (pubBuilder_ == null) {
650        if (value == null) {
651          throw new NullPointerException();
652        }
653        type_ = value;
654        onChanged();
655      } else {
656        pubBuilder_.setMessage(value);
657      }
658      typeCase_ = 1;
659      return this;
660    }
661    /**
662     * <code>.checktypes.PubAction pub = 1;</code>
663     */
664    public Builder setPub(
665        com.baidu.bifromq.plugin.authprovider.type.PubAction.Builder builderForValue) {
666      if (pubBuilder_ == null) {
667        type_ = builderForValue.build();
668        onChanged();
669      } else {
670        pubBuilder_.setMessage(builderForValue.build());
671      }
672      typeCase_ = 1;
673      return this;
674    }
675    /**
676     * <code>.checktypes.PubAction pub = 1;</code>
677     */
678    public Builder mergePub(com.baidu.bifromq.plugin.authprovider.type.PubAction value) {
679      if (pubBuilder_ == null) {
680        if (typeCase_ == 1 &&
681            type_ != com.baidu.bifromq.plugin.authprovider.type.PubAction.getDefaultInstance()) {
682          type_ = com.baidu.bifromq.plugin.authprovider.type.PubAction.newBuilder((com.baidu.bifromq.plugin.authprovider.type.PubAction) type_)
683              .mergeFrom(value).buildPartial();
684        } else {
685          type_ = value;
686        }
687        onChanged();
688      } else {
689        if (typeCase_ == 1) {
690          pubBuilder_.mergeFrom(value);
691        } else {
692          pubBuilder_.setMessage(value);
693        }
694      }
695      typeCase_ = 1;
696      return this;
697    }
698    /**
699     * <code>.checktypes.PubAction pub = 1;</code>
700     */
701    public Builder clearPub() {
702      if (pubBuilder_ == 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        pubBuilder_.clear();
714      }
715      return this;
716    }
717    /**
718     * <code>.checktypes.PubAction pub = 1;</code>
719     */
720    public com.baidu.bifromq.plugin.authprovider.type.PubAction.Builder getPubBuilder() {
721      return getPubFieldBuilder().getBuilder();
722    }
723    /**
724     * <code>.checktypes.PubAction pub = 1;</code>
725     */
726    @java.lang.Override
727    public com.baidu.bifromq.plugin.authprovider.type.PubActionOrBuilder getPubOrBuilder() {
728      if ((typeCase_ == 1) && (pubBuilder_ != null)) {
729        return pubBuilder_.getMessageOrBuilder();
730      } else {
731        if (typeCase_ == 1) {
732          return (com.baidu.bifromq.plugin.authprovider.type.PubAction) type_;
733        }
734        return com.baidu.bifromq.plugin.authprovider.type.PubAction.getDefaultInstance();
735      }
736    }
737    /**
738     * <code>.checktypes.PubAction pub = 1;</code>
739     */
740    private com.google.protobuf.SingleFieldBuilderV3<
741        com.baidu.bifromq.plugin.authprovider.type.PubAction, com.baidu.bifromq.plugin.authprovider.type.PubAction.Builder, com.baidu.bifromq.plugin.authprovider.type.PubActionOrBuilder> 
742        getPubFieldBuilder() {
743      if (pubBuilder_ == null) {
744        if (!(typeCase_ == 1)) {
745          type_ = com.baidu.bifromq.plugin.authprovider.type.PubAction.getDefaultInstance();
746        }
747        pubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
748            com.baidu.bifromq.plugin.authprovider.type.PubAction, com.baidu.bifromq.plugin.authprovider.type.PubAction.Builder, com.baidu.bifromq.plugin.authprovider.type.PubActionOrBuilder>(
749                (com.baidu.bifromq.plugin.authprovider.type.PubAction) type_,
750                getParentForChildren(),
751                isClean());
752        type_ = null;
753      }
754      typeCase_ = 1;
755      onChanged();
756      return pubBuilder_;
757    }
758
759    private com.google.protobuf.SingleFieldBuilderV3<
760        com.baidu.bifromq.plugin.authprovider.type.SubAction, com.baidu.bifromq.plugin.authprovider.type.SubAction.Builder, com.baidu.bifromq.plugin.authprovider.type.SubActionOrBuilder> subBuilder_;
761    /**
762     * <code>.checktypes.SubAction sub = 2;</code>
763     * @return Whether the sub field is set.
764     */
765    @java.lang.Override
766    public boolean hasSub() {
767      return typeCase_ == 2;
768    }
769    /**
770     * <code>.checktypes.SubAction sub = 2;</code>
771     * @return The sub.
772     */
773    @java.lang.Override
774    public com.baidu.bifromq.plugin.authprovider.type.SubAction getSub() {
775      if (subBuilder_ == null) {
776        if (typeCase_ == 2) {
777          return (com.baidu.bifromq.plugin.authprovider.type.SubAction) type_;
778        }
779        return com.baidu.bifromq.plugin.authprovider.type.SubAction.getDefaultInstance();
780      } else {
781        if (typeCase_ == 2) {
782          return subBuilder_.getMessage();
783        }
784        return com.baidu.bifromq.plugin.authprovider.type.SubAction.getDefaultInstance();
785      }
786    }
787    /**
788     * <code>.checktypes.SubAction sub = 2;</code>
789     */
790    public Builder setSub(com.baidu.bifromq.plugin.authprovider.type.SubAction value) {
791      if (subBuilder_ == null) {
792        if (value == null) {
793          throw new NullPointerException();
794        }
795        type_ = value;
796        onChanged();
797      } else {
798        subBuilder_.setMessage(value);
799      }
800      typeCase_ = 2;
801      return this;
802    }
803    /**
804     * <code>.checktypes.SubAction sub = 2;</code>
805     */
806    public Builder setSub(
807        com.baidu.bifromq.plugin.authprovider.type.SubAction.Builder builderForValue) {
808      if (subBuilder_ == null) {
809        type_ = builderForValue.build();
810        onChanged();
811      } else {
812        subBuilder_.setMessage(builderForValue.build());
813      }
814      typeCase_ = 2;
815      return this;
816    }
817    /**
818     * <code>.checktypes.SubAction sub = 2;</code>
819     */
820    public Builder mergeSub(com.baidu.bifromq.plugin.authprovider.type.SubAction value) {
821      if (subBuilder_ == null) {
822        if (typeCase_ == 2 &&
823            type_ != com.baidu.bifromq.plugin.authprovider.type.SubAction.getDefaultInstance()) {
824          type_ = com.baidu.bifromq.plugin.authprovider.type.SubAction.newBuilder((com.baidu.bifromq.plugin.authprovider.type.SubAction) type_)
825              .mergeFrom(value).buildPartial();
826        } else {
827          type_ = value;
828        }
829        onChanged();
830      } else {
831        if (typeCase_ == 2) {
832          subBuilder_.mergeFrom(value);
833        } else {
834          subBuilder_.setMessage(value);
835        }
836      }
837      typeCase_ = 2;
838      return this;
839    }
840    /**
841     * <code>.checktypes.SubAction sub = 2;</code>
842     */
843    public Builder clearSub() {
844      if (subBuilder_ == 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        subBuilder_.clear();
856      }
857      return this;
858    }
859    /**
860     * <code>.checktypes.SubAction sub = 2;</code>
861     */
862    public com.baidu.bifromq.plugin.authprovider.type.SubAction.Builder getSubBuilder() {
863      return getSubFieldBuilder().getBuilder();
864    }
865    /**
866     * <code>.checktypes.SubAction sub = 2;</code>
867     */
868    @java.lang.Override
869    public com.baidu.bifromq.plugin.authprovider.type.SubActionOrBuilder getSubOrBuilder() {
870      if ((typeCase_ == 2) && (subBuilder_ != null)) {
871        return subBuilder_.getMessageOrBuilder();
872      } else {
873        if (typeCase_ == 2) {
874          return (com.baidu.bifromq.plugin.authprovider.type.SubAction) type_;
875        }
876        return com.baidu.bifromq.plugin.authprovider.type.SubAction.getDefaultInstance();
877      }
878    }
879    /**
880     * <code>.checktypes.SubAction sub = 2;</code>
881     */
882    private com.google.protobuf.SingleFieldBuilderV3<
883        com.baidu.bifromq.plugin.authprovider.type.SubAction, com.baidu.bifromq.plugin.authprovider.type.SubAction.Builder, com.baidu.bifromq.plugin.authprovider.type.SubActionOrBuilder> 
884        getSubFieldBuilder() {
885      if (subBuilder_ == null) {
886        if (!(typeCase_ == 2)) {
887          type_ = com.baidu.bifromq.plugin.authprovider.type.SubAction.getDefaultInstance();
888        }
889        subBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
890            com.baidu.bifromq.plugin.authprovider.type.SubAction, com.baidu.bifromq.plugin.authprovider.type.SubAction.Builder, com.baidu.bifromq.plugin.authprovider.type.SubActionOrBuilder>(
891                (com.baidu.bifromq.plugin.authprovider.type.SubAction) type_,
892                getParentForChildren(),
893                isClean());
894        type_ = null;
895      }
896      typeCase_ = 2;
897      onChanged();
898      return subBuilder_;
899    }
900
901    private com.google.protobuf.SingleFieldBuilderV3<
902        com.baidu.bifromq.plugin.authprovider.type.UnsubAction, com.baidu.bifromq.plugin.authprovider.type.UnsubAction.Builder, com.baidu.bifromq.plugin.authprovider.type.UnsubActionOrBuilder> unsubBuilder_;
903    /**
904     * <code>.checktypes.UnsubAction unsub = 3;</code>
905     * @return Whether the unsub field is set.
906     */
907    @java.lang.Override
908    public boolean hasUnsub() {
909      return typeCase_ == 3;
910    }
911    /**
912     * <code>.checktypes.UnsubAction unsub = 3;</code>
913     * @return The unsub.
914     */
915    @java.lang.Override
916    public com.baidu.bifromq.plugin.authprovider.type.UnsubAction getUnsub() {
917      if (unsubBuilder_ == null) {
918        if (typeCase_ == 3) {
919          return (com.baidu.bifromq.plugin.authprovider.type.UnsubAction) type_;
920        }
921        return com.baidu.bifromq.plugin.authprovider.type.UnsubAction.getDefaultInstance();
922      } else {
923        if (typeCase_ == 3) {
924          return unsubBuilder_.getMessage();
925        }
926        return com.baidu.bifromq.plugin.authprovider.type.UnsubAction.getDefaultInstance();
927      }
928    }
929    /**
930     * <code>.checktypes.UnsubAction unsub = 3;</code>
931     */
932    public Builder setUnsub(com.baidu.bifromq.plugin.authprovider.type.UnsubAction value) {
933      if (unsubBuilder_ == null) {
934        if (value == null) {
935          throw new NullPointerException();
936        }
937        type_ = value;
938        onChanged();
939      } else {
940        unsubBuilder_.setMessage(value);
941      }
942      typeCase_ = 3;
943      return this;
944    }
945    /**
946     * <code>.checktypes.UnsubAction unsub = 3;</code>
947     */
948    public Builder setUnsub(
949        com.baidu.bifromq.plugin.authprovider.type.UnsubAction.Builder builderForValue) {
950      if (unsubBuilder_ == null) {
951        type_ = builderForValue.build();
952        onChanged();
953      } else {
954        unsubBuilder_.setMessage(builderForValue.build());
955      }
956      typeCase_ = 3;
957      return this;
958    }
959    /**
960     * <code>.checktypes.UnsubAction unsub = 3;</code>
961     */
962    public Builder mergeUnsub(com.baidu.bifromq.plugin.authprovider.type.UnsubAction value) {
963      if (unsubBuilder_ == null) {
964        if (typeCase_ == 3 &&
965            type_ != com.baidu.bifromq.plugin.authprovider.type.UnsubAction.getDefaultInstance()) {
966          type_ = com.baidu.bifromq.plugin.authprovider.type.UnsubAction.newBuilder((com.baidu.bifromq.plugin.authprovider.type.UnsubAction) type_)
967              .mergeFrom(value).buildPartial();
968        } else {
969          type_ = value;
970        }
971        onChanged();
972      } else {
973        if (typeCase_ == 3) {
974          unsubBuilder_.mergeFrom(value);
975        } else {
976          unsubBuilder_.setMessage(value);
977        }
978      }
979      typeCase_ = 3;
980      return this;
981    }
982    /**
983     * <code>.checktypes.UnsubAction unsub = 3;</code>
984     */
985    public Builder clearUnsub() {
986      if (unsubBuilder_ == 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        unsubBuilder_.clear();
998      }
999      return this;
1000    }
1001    /**
1002     * <code>.checktypes.UnsubAction unsub = 3;</code>
1003     */
1004    public com.baidu.bifromq.plugin.authprovider.type.UnsubAction.Builder getUnsubBuilder() {
1005      return getUnsubFieldBuilder().getBuilder();
1006    }
1007    /**
1008     * <code>.checktypes.UnsubAction unsub = 3;</code>
1009     */
1010    @java.lang.Override
1011    public com.baidu.bifromq.plugin.authprovider.type.UnsubActionOrBuilder getUnsubOrBuilder() {
1012      if ((typeCase_ == 3) && (unsubBuilder_ != null)) {
1013        return unsubBuilder_.getMessageOrBuilder();
1014      } else {
1015        if (typeCase_ == 3) {
1016          return (com.baidu.bifromq.plugin.authprovider.type.UnsubAction) type_;
1017        }
1018        return com.baidu.bifromq.plugin.authprovider.type.UnsubAction.getDefaultInstance();
1019      }
1020    }
1021    /**
1022     * <code>.checktypes.UnsubAction unsub = 3;</code>
1023     */
1024    private com.google.protobuf.SingleFieldBuilderV3<
1025        com.baidu.bifromq.plugin.authprovider.type.UnsubAction, com.baidu.bifromq.plugin.authprovider.type.UnsubAction.Builder, com.baidu.bifromq.plugin.authprovider.type.UnsubActionOrBuilder> 
1026        getUnsubFieldBuilder() {
1027      if (unsubBuilder_ == null) {
1028        if (!(typeCase_ == 3)) {
1029          type_ = com.baidu.bifromq.plugin.authprovider.type.UnsubAction.getDefaultInstance();
1030        }
1031        unsubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
1032            com.baidu.bifromq.plugin.authprovider.type.UnsubAction, com.baidu.bifromq.plugin.authprovider.type.UnsubAction.Builder, com.baidu.bifromq.plugin.authprovider.type.UnsubActionOrBuilder>(
1033                (com.baidu.bifromq.plugin.authprovider.type.UnsubAction) type_,
1034                getParentForChildren(),
1035                isClean());
1036        type_ = null;
1037      }
1038      typeCase_ = 3;
1039      onChanged();
1040      return unsubBuilder_;
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:checktypes.MQTTAction)
1056  }
1057
1058  // @@protoc_insertion_point(class_scope:checktypes.MQTTAction)
1059  private static final com.baidu.bifromq.plugin.authprovider.type.MQTTAction DEFAULT_INSTANCE;
1060  static {
1061    DEFAULT_INSTANCE = new com.baidu.bifromq.plugin.authprovider.type.MQTTAction();
1062  }
1063
1064  public static com.baidu.bifromq.plugin.authprovider.type.MQTTAction getDefaultInstance() {
1065    return DEFAULT_INSTANCE;
1066  }
1067
1068  private static final com.google.protobuf.Parser<MQTTAction>
1069      PARSER = new com.google.protobuf.AbstractParser<MQTTAction>() {
1070    @java.lang.Override
1071    public MQTTAction 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<MQTTAction> parser() {
1091    return PARSER;
1092  }
1093
1094  @java.lang.Override
1095  public com.google.protobuf.Parser<MQTTAction> getParserForType() {
1096    return PARSER;
1097  }
1098
1099  @java.lang.Override
1100  public com.baidu.bifromq.plugin.authprovider.type.MQTTAction getDefaultInstanceForType() {
1101    return DEFAULT_INSTANCE;
1102  }
1103
1104}
1105