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