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.PubAction}
008 */
009public final class PubAction extends
010    com.google.protobuf.GeneratedMessageV3 implements
011    // @@protoc_insertion_point(message_implements:checktypes.PubAction)
012    PubActionOrBuilder {
013private static final long serialVersionUID = 0L;
014  // Use PubAction.newBuilder() to construct.
015  private PubAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
016    super(builder);
017  }
018  private PubAction() {
019    topic_ = "";
020    qos_ = 0;
021  }
022
023  @java.lang.Override
024  @SuppressWarnings({"unused"})
025  protected java.lang.Object newInstance(
026      UnusedPrivateParameter unused) {
027    return new PubAction();
028  }
029
030  @java.lang.Override
031  public final com.google.protobuf.UnknownFieldSet
032  getUnknownFields() {
033    return this.unknownFields;
034  }
035  public static final com.google.protobuf.Descriptors.Descriptor
036      getDescriptor() {
037    return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_PubAction_descriptor;
038  }
039
040  @java.lang.Override
041  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
042      internalGetFieldAccessorTable() {
043    return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_PubAction_fieldAccessorTable
044        .ensureFieldAccessorsInitialized(
045            com.baidu.bifromq.plugin.authprovider.type.PubAction.class, com.baidu.bifromq.plugin.authprovider.type.PubAction.Builder.class);
046  }
047
048  public static final int TOPIC_FIELD_NUMBER = 1;
049  @SuppressWarnings("serial")
050  private volatile java.lang.Object topic_ = "";
051  /**
052   * <code>string topic = 1;</code>
053   * @return The topic.
054   */
055  @java.lang.Override
056  public java.lang.String getTopic() {
057    java.lang.Object ref = topic_;
058    if (ref instanceof java.lang.String) {
059      return (java.lang.String) ref;
060    } else {
061      com.google.protobuf.ByteString bs = 
062          (com.google.protobuf.ByteString) ref;
063      java.lang.String s = bs.toStringUtf8();
064      topic_ = s;
065      return s;
066    }
067  }
068  /**
069   * <code>string topic = 1;</code>
070   * @return The bytes for topic.
071   */
072  @java.lang.Override
073  public com.google.protobuf.ByteString
074      getTopicBytes() {
075    java.lang.Object ref = topic_;
076    if (ref instanceof java.lang.String) {
077      com.google.protobuf.ByteString b = 
078          com.google.protobuf.ByteString.copyFromUtf8(
079              (java.lang.String) ref);
080      topic_ = b;
081      return b;
082    } else {
083      return (com.google.protobuf.ByteString) ref;
084    }
085  }
086
087  public static final int QOS_FIELD_NUMBER = 2;
088  private int qos_ = 0;
089  /**
090   * <code>.commontype.QoS qos = 2;</code>
091   * @return The enum numeric value on the wire for qos.
092   */
093  @java.lang.Override public int getQosValue() {
094    return qos_;
095  }
096  /**
097   * <code>.commontype.QoS qos = 2;</code>
098   * @return The qos.
099   */
100  @java.lang.Override public com.baidu.bifromq.type.QoS getQos() {
101    com.baidu.bifromq.type.QoS result = com.baidu.bifromq.type.QoS.forNumber(qos_);
102    return result == null ? com.baidu.bifromq.type.QoS.UNRECOGNIZED : result;
103  }
104
105  public static final int ISRETAINED_FIELD_NUMBER = 3;
106  private boolean isRetained_ = false;
107  /**
108   * <code>bool isRetained = 3;</code>
109   * @return The isRetained.
110   */
111  @java.lang.Override
112  public boolean getIsRetained() {
113    return isRetained_;
114  }
115
116  private byte memoizedIsInitialized = -1;
117  @java.lang.Override
118  public final boolean isInitialized() {
119    byte isInitialized = memoizedIsInitialized;
120    if (isInitialized == 1) return true;
121    if (isInitialized == 0) return false;
122
123    memoizedIsInitialized = 1;
124    return true;
125  }
126
127  @java.lang.Override
128  public void writeTo(com.google.protobuf.CodedOutputStream output)
129                      throws java.io.IOException {
130    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
131      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
132    }
133    if (qos_ != com.baidu.bifromq.type.QoS.AT_MOST_ONCE.getNumber()) {
134      output.writeEnum(2, qos_);
135    }
136    if (isRetained_ != false) {
137      output.writeBool(3, isRetained_);
138    }
139    getUnknownFields().writeTo(output);
140  }
141
142  @java.lang.Override
143  public int getSerializedSize() {
144    int size = memoizedSize;
145    if (size != -1) return size;
146
147    size = 0;
148    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
149      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
150    }
151    if (qos_ != com.baidu.bifromq.type.QoS.AT_MOST_ONCE.getNumber()) {
152      size += com.google.protobuf.CodedOutputStream
153        .computeEnumSize(2, qos_);
154    }
155    if (isRetained_ != false) {
156      size += com.google.protobuf.CodedOutputStream
157        .computeBoolSize(3, isRetained_);
158    }
159    size += getUnknownFields().getSerializedSize();
160    memoizedSize = size;
161    return size;
162  }
163
164  @java.lang.Override
165  public boolean equals(final java.lang.Object obj) {
166    if (obj == this) {
167     return true;
168    }
169    if (!(obj instanceof com.baidu.bifromq.plugin.authprovider.type.PubAction)) {
170      return super.equals(obj);
171    }
172    com.baidu.bifromq.plugin.authprovider.type.PubAction other = (com.baidu.bifromq.plugin.authprovider.type.PubAction) obj;
173
174    if (!getTopic()
175        .equals(other.getTopic())) return false;
176    if (qos_ != other.qos_) return false;
177    if (getIsRetained()
178        != other.getIsRetained()) return false;
179    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
180    return true;
181  }
182
183  @java.lang.Override
184  public int hashCode() {
185    if (memoizedHashCode != 0) {
186      return memoizedHashCode;
187    }
188    int hash = 41;
189    hash = (19 * hash) + getDescriptor().hashCode();
190    hash = (37 * hash) + TOPIC_FIELD_NUMBER;
191    hash = (53 * hash) + getTopic().hashCode();
192    hash = (37 * hash) + QOS_FIELD_NUMBER;
193    hash = (53 * hash) + qos_;
194    hash = (37 * hash) + ISRETAINED_FIELD_NUMBER;
195    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
196        getIsRetained());
197    hash = (29 * hash) + getUnknownFields().hashCode();
198    memoizedHashCode = hash;
199    return hash;
200  }
201
202  public static com.baidu.bifromq.plugin.authprovider.type.PubAction parseFrom(
203      java.nio.ByteBuffer data)
204      throws com.google.protobuf.InvalidProtocolBufferException {
205    return PARSER.parseFrom(data);
206  }
207  public static com.baidu.bifromq.plugin.authprovider.type.PubAction parseFrom(
208      java.nio.ByteBuffer data,
209      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
210      throws com.google.protobuf.InvalidProtocolBufferException {
211    return PARSER.parseFrom(data, extensionRegistry);
212  }
213  public static com.baidu.bifromq.plugin.authprovider.type.PubAction parseFrom(
214      com.google.protobuf.ByteString data)
215      throws com.google.protobuf.InvalidProtocolBufferException {
216    return PARSER.parseFrom(data);
217  }
218  public static com.baidu.bifromq.plugin.authprovider.type.PubAction parseFrom(
219      com.google.protobuf.ByteString data,
220      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
221      throws com.google.protobuf.InvalidProtocolBufferException {
222    return PARSER.parseFrom(data, extensionRegistry);
223  }
224  public static com.baidu.bifromq.plugin.authprovider.type.PubAction parseFrom(byte[] data)
225      throws com.google.protobuf.InvalidProtocolBufferException {
226    return PARSER.parseFrom(data);
227  }
228  public static com.baidu.bifromq.plugin.authprovider.type.PubAction parseFrom(
229      byte[] data,
230      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
231      throws com.google.protobuf.InvalidProtocolBufferException {
232    return PARSER.parseFrom(data, extensionRegistry);
233  }
234  public static com.baidu.bifromq.plugin.authprovider.type.PubAction parseFrom(java.io.InputStream input)
235      throws java.io.IOException {
236    return com.google.protobuf.GeneratedMessageV3
237        .parseWithIOException(PARSER, input);
238  }
239  public static com.baidu.bifromq.plugin.authprovider.type.PubAction parseFrom(
240      java.io.InputStream input,
241      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
242      throws java.io.IOException {
243    return com.google.protobuf.GeneratedMessageV3
244        .parseWithIOException(PARSER, input, extensionRegistry);
245  }
246  public static com.baidu.bifromq.plugin.authprovider.type.PubAction parseDelimitedFrom(java.io.InputStream input)
247      throws java.io.IOException {
248    return com.google.protobuf.GeneratedMessageV3
249        .parseDelimitedWithIOException(PARSER, input);
250  }
251  public static com.baidu.bifromq.plugin.authprovider.type.PubAction parseDelimitedFrom(
252      java.io.InputStream input,
253      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
254      throws java.io.IOException {
255    return com.google.protobuf.GeneratedMessageV3
256        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
257  }
258  public static com.baidu.bifromq.plugin.authprovider.type.PubAction parseFrom(
259      com.google.protobuf.CodedInputStream input)
260      throws java.io.IOException {
261    return com.google.protobuf.GeneratedMessageV3
262        .parseWithIOException(PARSER, input);
263  }
264  public static com.baidu.bifromq.plugin.authprovider.type.PubAction parseFrom(
265      com.google.protobuf.CodedInputStream input,
266      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
267      throws java.io.IOException {
268    return com.google.protobuf.GeneratedMessageV3
269        .parseWithIOException(PARSER, input, extensionRegistry);
270  }
271
272  @java.lang.Override
273  public Builder newBuilderForType() { return newBuilder(); }
274  public static Builder newBuilder() {
275    return DEFAULT_INSTANCE.toBuilder();
276  }
277  public static Builder newBuilder(com.baidu.bifromq.plugin.authprovider.type.PubAction prototype) {
278    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
279  }
280  @java.lang.Override
281  public Builder toBuilder() {
282    return this == DEFAULT_INSTANCE
283        ? new Builder() : new Builder().mergeFrom(this);
284  }
285
286  @java.lang.Override
287  protected Builder newBuilderForType(
288      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
289    Builder builder = new Builder(parent);
290    return builder;
291  }
292  /**
293   * Protobuf type {@code checktypes.PubAction}
294   */
295  public static final class Builder extends
296      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
297      // @@protoc_insertion_point(builder_implements:checktypes.PubAction)
298      com.baidu.bifromq.plugin.authprovider.type.PubActionOrBuilder {
299    public static final com.google.protobuf.Descriptors.Descriptor
300        getDescriptor() {
301      return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_PubAction_descriptor;
302    }
303
304    @java.lang.Override
305    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
306        internalGetFieldAccessorTable() {
307      return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_PubAction_fieldAccessorTable
308          .ensureFieldAccessorsInitialized(
309              com.baidu.bifromq.plugin.authprovider.type.PubAction.class, com.baidu.bifromq.plugin.authprovider.type.PubAction.Builder.class);
310    }
311
312    // Construct using com.baidu.bifromq.plugin.authprovider.type.PubAction.newBuilder()
313    private Builder() {
314
315    }
316
317    private Builder(
318        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
319      super(parent);
320
321    }
322    @java.lang.Override
323    public Builder clear() {
324      super.clear();
325      bitField0_ = 0;
326      topic_ = "";
327      qos_ = 0;
328      isRetained_ = false;
329      return this;
330    }
331
332    @java.lang.Override
333    public com.google.protobuf.Descriptors.Descriptor
334        getDescriptorForType() {
335      return com.baidu.bifromq.plugin.authprovider.type.CheckTypesProto.internal_static_checktypes_PubAction_descriptor;
336    }
337
338    @java.lang.Override
339    public com.baidu.bifromq.plugin.authprovider.type.PubAction getDefaultInstanceForType() {
340      return com.baidu.bifromq.plugin.authprovider.type.PubAction.getDefaultInstance();
341    }
342
343    @java.lang.Override
344    public com.baidu.bifromq.plugin.authprovider.type.PubAction build() {
345      com.baidu.bifromq.plugin.authprovider.type.PubAction result = buildPartial();
346      if (!result.isInitialized()) {
347        throw newUninitializedMessageException(result);
348      }
349      return result;
350    }
351
352    @java.lang.Override
353    public com.baidu.bifromq.plugin.authprovider.type.PubAction buildPartial() {
354      com.baidu.bifromq.plugin.authprovider.type.PubAction result = new com.baidu.bifromq.plugin.authprovider.type.PubAction(this);
355      if (bitField0_ != 0) { buildPartial0(result); }
356      onBuilt();
357      return result;
358    }
359
360    private void buildPartial0(com.baidu.bifromq.plugin.authprovider.type.PubAction result) {
361      int from_bitField0_ = bitField0_;
362      if (((from_bitField0_ & 0x00000001) != 0)) {
363        result.topic_ = topic_;
364      }
365      if (((from_bitField0_ & 0x00000002) != 0)) {
366        result.qos_ = qos_;
367      }
368      if (((from_bitField0_ & 0x00000004) != 0)) {
369        result.isRetained_ = isRetained_;
370      }
371    }
372
373    @java.lang.Override
374    public Builder clone() {
375      return super.clone();
376    }
377    @java.lang.Override
378    public Builder setField(
379        com.google.protobuf.Descriptors.FieldDescriptor field,
380        java.lang.Object value) {
381      return super.setField(field, value);
382    }
383    @java.lang.Override
384    public Builder clearField(
385        com.google.protobuf.Descriptors.FieldDescriptor field) {
386      return super.clearField(field);
387    }
388    @java.lang.Override
389    public Builder clearOneof(
390        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
391      return super.clearOneof(oneof);
392    }
393    @java.lang.Override
394    public Builder setRepeatedField(
395        com.google.protobuf.Descriptors.FieldDescriptor field,
396        int index, java.lang.Object value) {
397      return super.setRepeatedField(field, index, value);
398    }
399    @java.lang.Override
400    public Builder addRepeatedField(
401        com.google.protobuf.Descriptors.FieldDescriptor field,
402        java.lang.Object value) {
403      return super.addRepeatedField(field, value);
404    }
405    @java.lang.Override
406    public Builder mergeFrom(com.google.protobuf.Message other) {
407      if (other instanceof com.baidu.bifromq.plugin.authprovider.type.PubAction) {
408        return mergeFrom((com.baidu.bifromq.plugin.authprovider.type.PubAction)other);
409      } else {
410        super.mergeFrom(other);
411        return this;
412      }
413    }
414
415    public Builder mergeFrom(com.baidu.bifromq.plugin.authprovider.type.PubAction other) {
416      if (other == com.baidu.bifromq.plugin.authprovider.type.PubAction.getDefaultInstance()) return this;
417      if (!other.getTopic().isEmpty()) {
418        topic_ = other.topic_;
419        bitField0_ |= 0x00000001;
420        onChanged();
421      }
422      if (other.qos_ != 0) {
423        setQosValue(other.getQosValue());
424      }
425      if (other.getIsRetained() != false) {
426        setIsRetained(other.getIsRetained());
427      }
428      this.mergeUnknownFields(other.getUnknownFields());
429      onChanged();
430      return this;
431    }
432
433    @java.lang.Override
434    public final boolean isInitialized() {
435      return true;
436    }
437
438    @java.lang.Override
439    public Builder mergeFrom(
440        com.google.protobuf.CodedInputStream input,
441        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
442        throws java.io.IOException {
443      if (extensionRegistry == null) {
444        throw new java.lang.NullPointerException();
445      }
446      try {
447        boolean done = false;
448        while (!done) {
449          int tag = input.readTag();
450          switch (tag) {
451            case 0:
452              done = true;
453              break;
454            case 10: {
455              topic_ = input.readStringRequireUtf8();
456              bitField0_ |= 0x00000001;
457              break;
458            } // case 10
459            case 16: {
460              qos_ = input.readEnum();
461              bitField0_ |= 0x00000002;
462              break;
463            } // case 16
464            case 24: {
465              isRetained_ = input.readBool();
466              bitField0_ |= 0x00000004;
467              break;
468            } // case 24
469            default: {
470              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
471                done = true; // was an endgroup tag
472              }
473              break;
474            } // default:
475          } // switch (tag)
476        } // while (!done)
477      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
478        throw e.unwrapIOException();
479      } finally {
480        onChanged();
481      } // finally
482      return this;
483    }
484    private int bitField0_;
485
486    private java.lang.Object topic_ = "";
487    /**
488     * <code>string topic = 1;</code>
489     * @return The topic.
490     */
491    public java.lang.String getTopic() {
492      java.lang.Object ref = topic_;
493      if (!(ref instanceof java.lang.String)) {
494        com.google.protobuf.ByteString bs =
495            (com.google.protobuf.ByteString) ref;
496        java.lang.String s = bs.toStringUtf8();
497        topic_ = s;
498        return s;
499      } else {
500        return (java.lang.String) ref;
501      }
502    }
503    /**
504     * <code>string topic = 1;</code>
505     * @return The bytes for topic.
506     */
507    public com.google.protobuf.ByteString
508        getTopicBytes() {
509      java.lang.Object ref = topic_;
510      if (ref instanceof String) {
511        com.google.protobuf.ByteString b = 
512            com.google.protobuf.ByteString.copyFromUtf8(
513                (java.lang.String) ref);
514        topic_ = b;
515        return b;
516      } else {
517        return (com.google.protobuf.ByteString) ref;
518      }
519    }
520    /**
521     * <code>string topic = 1;</code>
522     * @param value The topic to set.
523     * @return This builder for chaining.
524     */
525    public Builder setTopic(
526        java.lang.String value) {
527      if (value == null) { throw new NullPointerException(); }
528      topic_ = value;
529      bitField0_ |= 0x00000001;
530      onChanged();
531      return this;
532    }
533    /**
534     * <code>string topic = 1;</code>
535     * @return This builder for chaining.
536     */
537    public Builder clearTopic() {
538      topic_ = getDefaultInstance().getTopic();
539      bitField0_ = (bitField0_ & ~0x00000001);
540      onChanged();
541      return this;
542    }
543    /**
544     * <code>string topic = 1;</code>
545     * @param value The bytes for topic to set.
546     * @return This builder for chaining.
547     */
548    public Builder setTopicBytes(
549        com.google.protobuf.ByteString value) {
550      if (value == null) { throw new NullPointerException(); }
551      checkByteStringIsUtf8(value);
552      topic_ = value;
553      bitField0_ |= 0x00000001;
554      onChanged();
555      return this;
556    }
557
558    private int qos_ = 0;
559    /**
560     * <code>.commontype.QoS qos = 2;</code>
561     * @return The enum numeric value on the wire for qos.
562     */
563    @java.lang.Override public int getQosValue() {
564      return qos_;
565    }
566    /**
567     * <code>.commontype.QoS qos = 2;</code>
568     * @param value The enum numeric value on the wire for qos to set.
569     * @return This builder for chaining.
570     */
571    public Builder setQosValue(int value) {
572      qos_ = value;
573      bitField0_ |= 0x00000002;
574      onChanged();
575      return this;
576    }
577    /**
578     * <code>.commontype.QoS qos = 2;</code>
579     * @return The qos.
580     */
581    @java.lang.Override
582    public com.baidu.bifromq.type.QoS getQos() {
583      com.baidu.bifromq.type.QoS result = com.baidu.bifromq.type.QoS.forNumber(qos_);
584      return result == null ? com.baidu.bifromq.type.QoS.UNRECOGNIZED : result;
585    }
586    /**
587     * <code>.commontype.QoS qos = 2;</code>
588     * @param value The qos to set.
589     * @return This builder for chaining.
590     */
591    public Builder setQos(com.baidu.bifromq.type.QoS value) {
592      if (value == null) {
593        throw new NullPointerException();
594      }
595      bitField0_ |= 0x00000002;
596      qos_ = value.getNumber();
597      onChanged();
598      return this;
599    }
600    /**
601     * <code>.commontype.QoS qos = 2;</code>
602     * @return This builder for chaining.
603     */
604    public Builder clearQos() {
605      bitField0_ = (bitField0_ & ~0x00000002);
606      qos_ = 0;
607      onChanged();
608      return this;
609    }
610
611    private boolean isRetained_ ;
612    /**
613     * <code>bool isRetained = 3;</code>
614     * @return The isRetained.
615     */
616    @java.lang.Override
617    public boolean getIsRetained() {
618      return isRetained_;
619    }
620    /**
621     * <code>bool isRetained = 3;</code>
622     * @param value The isRetained to set.
623     * @return This builder for chaining.
624     */
625    public Builder setIsRetained(boolean value) {
626      
627      isRetained_ = value;
628      bitField0_ |= 0x00000004;
629      onChanged();
630      return this;
631    }
632    /**
633     * <code>bool isRetained = 3;</code>
634     * @return This builder for chaining.
635     */
636    public Builder clearIsRetained() {
637      bitField0_ = (bitField0_ & ~0x00000004);
638      isRetained_ = false;
639      onChanged();
640      return this;
641    }
642    @java.lang.Override
643    public final Builder setUnknownFields(
644        final com.google.protobuf.UnknownFieldSet unknownFields) {
645      return super.setUnknownFields(unknownFields);
646    }
647
648    @java.lang.Override
649    public final Builder mergeUnknownFields(
650        final com.google.protobuf.UnknownFieldSet unknownFields) {
651      return super.mergeUnknownFields(unknownFields);
652    }
653
654
655    // @@protoc_insertion_point(builder_scope:checktypes.PubAction)
656  }
657
658  // @@protoc_insertion_point(class_scope:checktypes.PubAction)
659  private static final com.baidu.bifromq.plugin.authprovider.type.PubAction DEFAULT_INSTANCE;
660  static {
661    DEFAULT_INSTANCE = new com.baidu.bifromq.plugin.authprovider.type.PubAction();
662  }
663
664  public static com.baidu.bifromq.plugin.authprovider.type.PubAction getDefaultInstance() {
665    return DEFAULT_INSTANCE;
666  }
667
668  private static final com.google.protobuf.Parser<PubAction>
669      PARSER = new com.google.protobuf.AbstractParser<PubAction>() {
670    @java.lang.Override
671    public PubAction parsePartialFrom(
672        com.google.protobuf.CodedInputStream input,
673        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
674        throws com.google.protobuf.InvalidProtocolBufferException {
675      Builder builder = newBuilder();
676      try {
677        builder.mergeFrom(input, extensionRegistry);
678      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
679        throw e.setUnfinishedMessage(builder.buildPartial());
680      } catch (com.google.protobuf.UninitializedMessageException e) {
681        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
682      } catch (java.io.IOException e) {
683        throw new com.google.protobuf.InvalidProtocolBufferException(e)
684            .setUnfinishedMessage(builder.buildPartial());
685      }
686      return builder.buildPartial();
687    }
688  };
689
690  public static com.google.protobuf.Parser<PubAction> parser() {
691    return PARSER;
692  }
693
694  @java.lang.Override
695  public com.google.protobuf.Parser<PubAction> getParserForType() {
696    return PARSER;
697  }
698
699  @java.lang.Override
700  public com.baidu.bifromq.plugin.authprovider.type.PubAction getDefaultInstanceForType() {
701    return DEFAULT_INSTANCE;
702  }
703
704}
705