1// Generated by the protocol buffer compiler.  DO NOT EDIT!
2// source: query.proto
3
4package muduo.codec.tests;
5
6public final class QueryProtos {
7  private QueryProtos() {}
8  public static void registerAllExtensions(
9      com.google.protobuf.ExtensionRegistry registry) {
10  }
11  public interface QueryOrBuilder
12      extends com.google.protobuf.MessageOrBuilder {
13
14    // required int64 id = 1;
15    boolean hasId();
16    long getId();
17
18    // required string questioner = 2;
19    boolean hasQuestioner();
20    String getQuestioner();
21
22    // repeated string question = 3;
23    java.util.List<String> getQuestionList();
24    int getQuestionCount();
25    String getQuestion(int index);
26  }
27  public static final class Query extends
28      com.google.protobuf.GeneratedMessage
29      implements QueryOrBuilder {
30    // Use Query.newBuilder() to construct.
31    private Query(Builder builder) {
32      super(builder);
33    }
34    private Query(boolean noInit) {}
35
36    private static final Query defaultInstance;
37    public static Query getDefaultInstance() {
38      return defaultInstance;
39    }
40
41    public Query getDefaultInstanceForType() {
42      return defaultInstance;
43    }
44
45    public static final com.google.protobuf.Descriptors.Descriptor
46        getDescriptor() {
47      return muduo.codec.tests.QueryProtos.internal_static_muduo_Query_descriptor;
48    }
49
50    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
51        internalGetFieldAccessorTable() {
52      return muduo.codec.tests.QueryProtos.internal_static_muduo_Query_fieldAccessorTable;
53    }
54
55    private int bitField0_;
56    // required int64 id = 1;
57    public static final int ID_FIELD_NUMBER = 1;
58    private long id_;
59    public boolean hasId() {
60      return ((bitField0_ & 0x00000001) == 0x00000001);
61    }
62    public long getId() {
63      return id_;
64    }
65
66    // required string questioner = 2;
67    public static final int QUESTIONER_FIELD_NUMBER = 2;
68    private Object questioner_;
69    public boolean hasQuestioner() {
70      return ((bitField0_ & 0x00000002) == 0x00000002);
71    }
72    public String getQuestioner() {
73      Object ref = questioner_;
74      if (ref instanceof String) {
75        return (String) ref;
76      } else {
77        com.google.protobuf.ByteString bs =
78            (com.google.protobuf.ByteString) ref;
79        String s = bs.toStringUtf8();
80        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
81          questioner_ = s;
82        }
83        return s;
84      }
85    }
86    private com.google.protobuf.ByteString getQuestionerBytes() {
87      Object ref = questioner_;
88      if (ref instanceof String) {
89        com.google.protobuf.ByteString b =
90            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
91        questioner_ = b;
92        return b;
93      } else {
94        return (com.google.protobuf.ByteString) ref;
95      }
96    }
97
98    // repeated string question = 3;
99    public static final int QUESTION_FIELD_NUMBER = 3;
100    private com.google.protobuf.LazyStringList question_;
101    public java.util.List<String>
102        getQuestionList() {
103      return question_;
104    }
105    public int getQuestionCount() {
106      return question_.size();
107    }
108    public String getQuestion(int index) {
109      return question_.get(index);
110    }
111
112    private void initFields() {
113      id_ = 0L;
114      questioner_ = "";
115      question_ = com.google.protobuf.LazyStringArrayList.EMPTY;
116    }
117    private byte memoizedIsInitialized = -1;
118    public final boolean isInitialized() {
119      byte isInitialized = memoizedIsInitialized;
120      if (isInitialized != -1) return isInitialized == 1;
121
122      if (!hasId()) {
123        memoizedIsInitialized = 0;
124        return false;
125      }
126      if (!hasQuestioner()) {
127        memoizedIsInitialized = 0;
128        return false;
129      }
130      memoizedIsInitialized = 1;
131      return true;
132    }
133
134    public void writeTo(com.google.protobuf.CodedOutputStream output)
135                        throws java.io.IOException {
136      getSerializedSize();
137      if (((bitField0_ & 0x00000001) == 0x00000001)) {
138        output.writeInt64(1, id_);
139      }
140      if (((bitField0_ & 0x00000002) == 0x00000002)) {
141        output.writeBytes(2, getQuestionerBytes());
142      }
143      for (int i = 0; i < question_.size(); i++) {
144        output.writeBytes(3, question_.getByteString(i));
145      }
146      getUnknownFields().writeTo(output);
147    }
148
149    private int memoizedSerializedSize = -1;
150    public int getSerializedSize() {
151      int size = memoizedSerializedSize;
152      if (size != -1) return size;
153
154      size = 0;
155      if (((bitField0_ & 0x00000001) == 0x00000001)) {
156        size += com.google.protobuf.CodedOutputStream
157          .computeInt64Size(1, id_);
158      }
159      if (((bitField0_ & 0x00000002) == 0x00000002)) {
160        size += com.google.protobuf.CodedOutputStream
161          .computeBytesSize(2, getQuestionerBytes());
162      }
163      {
164        int dataSize = 0;
165        for (int i = 0; i < question_.size(); i++) {
166          dataSize += com.google.protobuf.CodedOutputStream
167            .computeBytesSizeNoTag(question_.getByteString(i));
168        }
169        size += dataSize;
170        size += 1 * getQuestionList().size();
171      }
172      size += getUnknownFields().getSerializedSize();
173      memoizedSerializedSize = size;
174      return size;
175    }
176
177    @java.lang.Override
178    protected Object writeReplace() throws java.io.ObjectStreamException {
179      return super.writeReplace();
180    }
181
182    public static muduo.codec.tests.QueryProtos.Query parseFrom(
183        com.google.protobuf.ByteString data)
184        throws com.google.protobuf.InvalidProtocolBufferException {
185      return newBuilder().mergeFrom(data).buildParsed();
186    }
187    public static muduo.codec.tests.QueryProtos.Query parseFrom(
188        com.google.protobuf.ByteString data,
189        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
190        throws com.google.protobuf.InvalidProtocolBufferException {
191      return newBuilder().mergeFrom(data, extensionRegistry)
192               .buildParsed();
193    }
194    public static muduo.codec.tests.QueryProtos.Query parseFrom(byte[] data)
195        throws com.google.protobuf.InvalidProtocolBufferException {
196      return newBuilder().mergeFrom(data).buildParsed();
197    }
198    public static muduo.codec.tests.QueryProtos.Query parseFrom(
199        byte[] data,
200        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
201        throws com.google.protobuf.InvalidProtocolBufferException {
202      return newBuilder().mergeFrom(data, extensionRegistry)
203               .buildParsed();
204    }
205    public static muduo.codec.tests.QueryProtos.Query parseFrom(java.io.InputStream input)
206        throws java.io.IOException {
207      return newBuilder().mergeFrom(input).buildParsed();
208    }
209    public static muduo.codec.tests.QueryProtos.Query parseFrom(
210        java.io.InputStream input,
211        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
212        throws java.io.IOException {
213      return newBuilder().mergeFrom(input, extensionRegistry)
214               .buildParsed();
215    }
216    public static muduo.codec.tests.QueryProtos.Query parseDelimitedFrom(java.io.InputStream input)
217        throws java.io.IOException {
218      Builder builder = newBuilder();
219      if (builder.mergeDelimitedFrom(input)) {
220        return builder.buildParsed();
221      } else {
222        return null;
223      }
224    }
225    public static muduo.codec.tests.QueryProtos.Query parseDelimitedFrom(
226        java.io.InputStream input,
227        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
228        throws java.io.IOException {
229      Builder builder = newBuilder();
230      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
231        return builder.buildParsed();
232      } else {
233        return null;
234      }
235    }
236    public static muduo.codec.tests.QueryProtos.Query parseFrom(
237        com.google.protobuf.CodedInputStream input)
238        throws java.io.IOException {
239      return newBuilder().mergeFrom(input).buildParsed();
240    }
241    public static muduo.codec.tests.QueryProtos.Query parseFrom(
242        com.google.protobuf.CodedInputStream input,
243        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
244        throws java.io.IOException {
245      return newBuilder().mergeFrom(input, extensionRegistry)
246               .buildParsed();
247    }
248
249    public static Builder newBuilder() { return Builder.create(); }
250    public Builder newBuilderForType() { return newBuilder(); }
251    public static Builder newBuilder(muduo.codec.tests.QueryProtos.Query prototype) {
252      return newBuilder().mergeFrom(prototype);
253    }
254    public Builder toBuilder() { return newBuilder(this); }
255
256    @java.lang.Override
257    protected Builder newBuilderForType(
258        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
259      Builder builder = new Builder(parent);
260      return builder;
261    }
262    public static final class Builder extends
263        com.google.protobuf.GeneratedMessage.Builder<Builder>
264       implements muduo.codec.tests.QueryProtos.QueryOrBuilder {
265      public static final com.google.protobuf.Descriptors.Descriptor
266          getDescriptor() {
267        return muduo.codec.tests.QueryProtos.internal_static_muduo_Query_descriptor;
268      }
269
270      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
271          internalGetFieldAccessorTable() {
272        return muduo.codec.tests.QueryProtos.internal_static_muduo_Query_fieldAccessorTable;
273      }
274
275      // Construct using muduo.codec.tests.QueryProtos.Query.newBuilder()
276      private Builder() {
277        maybeForceBuilderInitialization();
278      }
279
280      private Builder(BuilderParent parent) {
281        super(parent);
282        maybeForceBuilderInitialization();
283      }
284      private void maybeForceBuilderInitialization() {
285        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
286        }
287      }
288      private static Builder create() {
289        return new Builder();
290      }
291
292      public Builder clear() {
293        super.clear();
294        id_ = 0L;
295        bitField0_ = (bitField0_ & ~0x00000001);
296        questioner_ = "";
297        bitField0_ = (bitField0_ & ~0x00000002);
298        question_ = com.google.protobuf.LazyStringArrayList.EMPTY;
299        bitField0_ = (bitField0_ & ~0x00000004);
300        return this;
301      }
302
303      public Builder clone() {
304        return create().mergeFrom(buildPartial());
305      }
306
307      public com.google.protobuf.Descriptors.Descriptor
308          getDescriptorForType() {
309        return muduo.codec.tests.QueryProtos.Query.getDescriptor();
310      }
311
312      public muduo.codec.tests.QueryProtos.Query getDefaultInstanceForType() {
313        return muduo.codec.tests.QueryProtos.Query.getDefaultInstance();
314      }
315
316      public muduo.codec.tests.QueryProtos.Query build() {
317        muduo.codec.tests.QueryProtos.Query result = buildPartial();
318        if (!result.isInitialized()) {
319          throw newUninitializedMessageException(result);
320        }
321        return result;
322      }
323
324      private muduo.codec.tests.QueryProtos.Query buildParsed()
325          throws com.google.protobuf.InvalidProtocolBufferException {
326        muduo.codec.tests.QueryProtos.Query result = buildPartial();
327        if (!result.isInitialized()) {
328          throw newUninitializedMessageException(
329            result).asInvalidProtocolBufferException();
330        }
331        return result;
332      }
333
334      public muduo.codec.tests.QueryProtos.Query buildPartial() {
335        muduo.codec.tests.QueryProtos.Query result = new muduo.codec.tests.QueryProtos.Query(this);
336        int from_bitField0_ = bitField0_;
337        int to_bitField0_ = 0;
338        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
339          to_bitField0_ |= 0x00000001;
340        }
341        result.id_ = id_;
342        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
343          to_bitField0_ |= 0x00000002;
344        }
345        result.questioner_ = questioner_;
346        if (((bitField0_ & 0x00000004) == 0x00000004)) {
347          question_ = new com.google.protobuf.UnmodifiableLazyStringList(
348              question_);
349          bitField0_ = (bitField0_ & ~0x00000004);
350        }
351        result.question_ = question_;
352        result.bitField0_ = to_bitField0_;
353        onBuilt();
354        return result;
355      }
356
357      public Builder mergeFrom(com.google.protobuf.Message other) {
358        if (other instanceof muduo.codec.tests.QueryProtos.Query) {
359          return mergeFrom((muduo.codec.tests.QueryProtos.Query)other);
360        } else {
361          super.mergeFrom(other);
362          return this;
363        }
364      }
365
366      public Builder mergeFrom(muduo.codec.tests.QueryProtos.Query other) {
367        if (other == muduo.codec.tests.QueryProtos.Query.getDefaultInstance()) return this;
368        if (other.hasId()) {
369          setId(other.getId());
370        }
371        if (other.hasQuestioner()) {
372          setQuestioner(other.getQuestioner());
373        }
374        if (!other.question_.isEmpty()) {
375          if (question_.isEmpty()) {
376            question_ = other.question_;
377            bitField0_ = (bitField0_ & ~0x00000004);
378          } else {
379            ensureQuestionIsMutable();
380            question_.addAll(other.question_);
381          }
382          onChanged();
383        }
384        this.mergeUnknownFields(other.getUnknownFields());
385        return this;
386      }
387
388      public final boolean isInitialized() {
389        if (!hasId()) {
390
391          return false;
392        }
393        if (!hasQuestioner()) {
394
395          return false;
396        }
397        return true;
398      }
399
400      public Builder mergeFrom(
401          com.google.protobuf.CodedInputStream input,
402          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
403          throws java.io.IOException {
404        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
405          com.google.protobuf.UnknownFieldSet.newBuilder(
406            this.getUnknownFields());
407        while (true) {
408          int tag = input.readTag();
409          switch (tag) {
410            case 0:
411              this.setUnknownFields(unknownFields.build());
412              onChanged();
413              return this;
414            default: {
415              if (!parseUnknownField(input, unknownFields,
416                                     extensionRegistry, tag)) {
417                this.setUnknownFields(unknownFields.build());
418                onChanged();
419                return this;
420              }
421              break;
422            }
423            case 8: {
424              bitField0_ |= 0x00000001;
425              id_ = input.readInt64();
426              break;
427            }
428            case 18: {
429              bitField0_ |= 0x00000002;
430              questioner_ = input.readBytes();
431              break;
432            }
433            case 26: {
434              ensureQuestionIsMutable();
435              question_.add(input.readBytes());
436              break;
437            }
438          }
439        }
440      }
441
442      private int bitField0_;
443
444      // required int64 id = 1;
445      private long id_ ;
446      public boolean hasId() {
447        return ((bitField0_ & 0x00000001) == 0x00000001);
448      }
449      public long getId() {
450        return id_;
451      }
452      public Builder setId(long value) {
453        bitField0_ |= 0x00000001;
454        id_ = value;
455        onChanged();
456        return this;
457      }
458      public Builder clearId() {
459        bitField0_ = (bitField0_ & ~0x00000001);
460        id_ = 0L;
461        onChanged();
462        return this;
463      }
464
465      // required string questioner = 2;
466      private Object questioner_ = "";
467      public boolean hasQuestioner() {
468        return ((bitField0_ & 0x00000002) == 0x00000002);
469      }
470      public String getQuestioner() {
471        Object ref = questioner_;
472        if (!(ref instanceof String)) {
473          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
474          questioner_ = s;
475          return s;
476        } else {
477          return (String) ref;
478        }
479      }
480      public Builder setQuestioner(String value) {
481        if (value == null) {
482    throw new NullPointerException();
483  }
484  bitField0_ |= 0x00000002;
485        questioner_ = value;
486        onChanged();
487        return this;
488      }
489      public Builder clearQuestioner() {
490        bitField0_ = (bitField0_ & ~0x00000002);
491        questioner_ = getDefaultInstance().getQuestioner();
492        onChanged();
493        return this;
494      }
495      void setQuestioner(com.google.protobuf.ByteString value) {
496        bitField0_ |= 0x00000002;
497        questioner_ = value;
498        onChanged();
499      }
500
501      // repeated string question = 3;
502      private com.google.protobuf.LazyStringList question_ = com.google.protobuf.LazyStringArrayList.EMPTY;
503      private void ensureQuestionIsMutable() {
504        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
505          question_ = new com.google.protobuf.LazyStringArrayList(question_);
506          bitField0_ |= 0x00000004;
507         }
508      }
509      public java.util.List<String>
510          getQuestionList() {
511        return java.util.Collections.unmodifiableList(question_);
512      }
513      public int getQuestionCount() {
514        return question_.size();
515      }
516      public String getQuestion(int index) {
517        return question_.get(index);
518      }
519      public Builder setQuestion(
520          int index, String value) {
521        if (value == null) {
522    throw new NullPointerException();
523  }
524  ensureQuestionIsMutable();
525        question_.set(index, value);
526        onChanged();
527        return this;
528      }
529      public Builder addQuestion(String value) {
530        if (value == null) {
531    throw new NullPointerException();
532  }
533  ensureQuestionIsMutable();
534        question_.add(value);
535        onChanged();
536        return this;
537      }
538      public Builder addAllQuestion(
539          java.lang.Iterable<String> values) {
540        ensureQuestionIsMutable();
541        super.addAll(values, question_);
542        onChanged();
543        return this;
544      }
545      public Builder clearQuestion() {
546        question_ = com.google.protobuf.LazyStringArrayList.EMPTY;
547        bitField0_ = (bitField0_ & ~0x00000004);
548        onChanged();
549        return this;
550      }
551      void addQuestion(com.google.protobuf.ByteString value) {
552        ensureQuestionIsMutable();
553        question_.add(value);
554        onChanged();
555      }
556
557      // @@protoc_insertion_point(builder_scope:muduo.Query)
558    }
559
560    static {
561      defaultInstance = new Query(true);
562      defaultInstance.initFields();
563    }
564
565    // @@protoc_insertion_point(class_scope:muduo.Query)
566  }
567
568  public interface AnswerOrBuilder
569      extends com.google.protobuf.MessageOrBuilder {
570
571    // required int64 id = 1;
572    boolean hasId();
573    long getId();
574
575    // required string questioner = 2;
576    boolean hasQuestioner();
577    String getQuestioner();
578
579    // required string answerer = 3;
580    boolean hasAnswerer();
581    String getAnswerer();
582
583    // repeated string solution = 4;
584    java.util.List<String> getSolutionList();
585    int getSolutionCount();
586    String getSolution(int index);
587  }
588  public static final class Answer extends
589      com.google.protobuf.GeneratedMessage
590      implements AnswerOrBuilder {
591    // Use Answer.newBuilder() to construct.
592    private Answer(Builder builder) {
593      super(builder);
594    }
595    private Answer(boolean noInit) {}
596
597    private static final Answer defaultInstance;
598    public static Answer getDefaultInstance() {
599      return defaultInstance;
600    }
601
602    public Answer getDefaultInstanceForType() {
603      return defaultInstance;
604    }
605
606    public static final com.google.protobuf.Descriptors.Descriptor
607        getDescriptor() {
608      return muduo.codec.tests.QueryProtos.internal_static_muduo_Answer_descriptor;
609    }
610
611    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
612        internalGetFieldAccessorTable() {
613      return muduo.codec.tests.QueryProtos.internal_static_muduo_Answer_fieldAccessorTable;
614    }
615
616    private int bitField0_;
617    // required int64 id = 1;
618    public static final int ID_FIELD_NUMBER = 1;
619    private long id_;
620    public boolean hasId() {
621      return ((bitField0_ & 0x00000001) == 0x00000001);
622    }
623    public long getId() {
624      return id_;
625    }
626
627    // required string questioner = 2;
628    public static final int QUESTIONER_FIELD_NUMBER = 2;
629    private Object questioner_;
630    public boolean hasQuestioner() {
631      return ((bitField0_ & 0x00000002) == 0x00000002);
632    }
633    public String getQuestioner() {
634      Object ref = questioner_;
635      if (ref instanceof String) {
636        return (String) ref;
637      } else {
638        com.google.protobuf.ByteString bs =
639            (com.google.protobuf.ByteString) ref;
640        String s = bs.toStringUtf8();
641        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
642          questioner_ = s;
643        }
644        return s;
645      }
646    }
647    private com.google.protobuf.ByteString getQuestionerBytes() {
648      Object ref = questioner_;
649      if (ref instanceof String) {
650        com.google.protobuf.ByteString b =
651            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
652        questioner_ = b;
653        return b;
654      } else {
655        return (com.google.protobuf.ByteString) ref;
656      }
657    }
658
659    // required string answerer = 3;
660    public static final int ANSWERER_FIELD_NUMBER = 3;
661    private Object answerer_;
662    public boolean hasAnswerer() {
663      return ((bitField0_ & 0x00000004) == 0x00000004);
664    }
665    public String getAnswerer() {
666      Object ref = answerer_;
667      if (ref instanceof String) {
668        return (String) ref;
669      } else {
670        com.google.protobuf.ByteString bs =
671            (com.google.protobuf.ByteString) ref;
672        String s = bs.toStringUtf8();
673        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
674          answerer_ = s;
675        }
676        return s;
677      }
678    }
679    private com.google.protobuf.ByteString getAnswererBytes() {
680      Object ref = answerer_;
681      if (ref instanceof String) {
682        com.google.protobuf.ByteString b =
683            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
684        answerer_ = b;
685        return b;
686      } else {
687        return (com.google.protobuf.ByteString) ref;
688      }
689    }
690
691    // repeated string solution = 4;
692    public static final int SOLUTION_FIELD_NUMBER = 4;
693    private com.google.protobuf.LazyStringList solution_;
694    public java.util.List<String>
695        getSolutionList() {
696      return solution_;
697    }
698    public int getSolutionCount() {
699      return solution_.size();
700    }
701    public String getSolution(int index) {
702      return solution_.get(index);
703    }
704
705    private void initFields() {
706      id_ = 0L;
707      questioner_ = "";
708      answerer_ = "";
709      solution_ = com.google.protobuf.LazyStringArrayList.EMPTY;
710    }
711    private byte memoizedIsInitialized = -1;
712    public final boolean isInitialized() {
713      byte isInitialized = memoizedIsInitialized;
714      if (isInitialized != -1) return isInitialized == 1;
715
716      if (!hasId()) {
717        memoizedIsInitialized = 0;
718        return false;
719      }
720      if (!hasQuestioner()) {
721        memoizedIsInitialized = 0;
722        return false;
723      }
724      if (!hasAnswerer()) {
725        memoizedIsInitialized = 0;
726        return false;
727      }
728      memoizedIsInitialized = 1;
729      return true;
730    }
731
732    public void writeTo(com.google.protobuf.CodedOutputStream output)
733                        throws java.io.IOException {
734      getSerializedSize();
735      if (((bitField0_ & 0x00000001) == 0x00000001)) {
736        output.writeInt64(1, id_);
737      }
738      if (((bitField0_ & 0x00000002) == 0x00000002)) {
739        output.writeBytes(2, getQuestionerBytes());
740      }
741      if (((bitField0_ & 0x00000004) == 0x00000004)) {
742        output.writeBytes(3, getAnswererBytes());
743      }
744      for (int i = 0; i < solution_.size(); i++) {
745        output.writeBytes(4, solution_.getByteString(i));
746      }
747      getUnknownFields().writeTo(output);
748    }
749
750    private int memoizedSerializedSize = -1;
751    public int getSerializedSize() {
752      int size = memoizedSerializedSize;
753      if (size != -1) return size;
754
755      size = 0;
756      if (((bitField0_ & 0x00000001) == 0x00000001)) {
757        size += com.google.protobuf.CodedOutputStream
758          .computeInt64Size(1, id_);
759      }
760      if (((bitField0_ & 0x00000002) == 0x00000002)) {
761        size += com.google.protobuf.CodedOutputStream
762          .computeBytesSize(2, getQuestionerBytes());
763      }
764      if (((bitField0_ & 0x00000004) == 0x00000004)) {
765        size += com.google.protobuf.CodedOutputStream
766          .computeBytesSize(3, getAnswererBytes());
767      }
768      {
769        int dataSize = 0;
770        for (int i = 0; i < solution_.size(); i++) {
771          dataSize += com.google.protobuf.CodedOutputStream
772            .computeBytesSizeNoTag(solution_.getByteString(i));
773        }
774        size += dataSize;
775        size += 1 * getSolutionList().size();
776      }
777      size += getUnknownFields().getSerializedSize();
778      memoizedSerializedSize = size;
779      return size;
780    }
781
782    @java.lang.Override
783    protected Object writeReplace() throws java.io.ObjectStreamException {
784      return super.writeReplace();
785    }
786
787    public static muduo.codec.tests.QueryProtos.Answer parseFrom(
788        com.google.protobuf.ByteString data)
789        throws com.google.protobuf.InvalidProtocolBufferException {
790      return newBuilder().mergeFrom(data).buildParsed();
791    }
792    public static muduo.codec.tests.QueryProtos.Answer parseFrom(
793        com.google.protobuf.ByteString data,
794        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
795        throws com.google.protobuf.InvalidProtocolBufferException {
796      return newBuilder().mergeFrom(data, extensionRegistry)
797               .buildParsed();
798    }
799    public static muduo.codec.tests.QueryProtos.Answer parseFrom(byte[] data)
800        throws com.google.protobuf.InvalidProtocolBufferException {
801      return newBuilder().mergeFrom(data).buildParsed();
802    }
803    public static muduo.codec.tests.QueryProtos.Answer parseFrom(
804        byte[] data,
805        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
806        throws com.google.protobuf.InvalidProtocolBufferException {
807      return newBuilder().mergeFrom(data, extensionRegistry)
808               .buildParsed();
809    }
810    public static muduo.codec.tests.QueryProtos.Answer parseFrom(java.io.InputStream input)
811        throws java.io.IOException {
812      return newBuilder().mergeFrom(input).buildParsed();
813    }
814    public static muduo.codec.tests.QueryProtos.Answer parseFrom(
815        java.io.InputStream input,
816        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
817        throws java.io.IOException {
818      return newBuilder().mergeFrom(input, extensionRegistry)
819               .buildParsed();
820    }
821    public static muduo.codec.tests.QueryProtos.Answer parseDelimitedFrom(java.io.InputStream input)
822        throws java.io.IOException {
823      Builder builder = newBuilder();
824      if (builder.mergeDelimitedFrom(input)) {
825        return builder.buildParsed();
826      } else {
827        return null;
828      }
829    }
830    public static muduo.codec.tests.QueryProtos.Answer parseDelimitedFrom(
831        java.io.InputStream input,
832        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
833        throws java.io.IOException {
834      Builder builder = newBuilder();
835      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
836        return builder.buildParsed();
837      } else {
838        return null;
839      }
840    }
841    public static muduo.codec.tests.QueryProtos.Answer parseFrom(
842        com.google.protobuf.CodedInputStream input)
843        throws java.io.IOException {
844      return newBuilder().mergeFrom(input).buildParsed();
845    }
846    public static muduo.codec.tests.QueryProtos.Answer parseFrom(
847        com.google.protobuf.CodedInputStream input,
848        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
849        throws java.io.IOException {
850      return newBuilder().mergeFrom(input, extensionRegistry)
851               .buildParsed();
852    }
853
854    public static Builder newBuilder() { return Builder.create(); }
855    public Builder newBuilderForType() { return newBuilder(); }
856    public static Builder newBuilder(muduo.codec.tests.QueryProtos.Answer prototype) {
857      return newBuilder().mergeFrom(prototype);
858    }
859    public Builder toBuilder() { return newBuilder(this); }
860
861    @java.lang.Override
862    protected Builder newBuilderForType(
863        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
864      Builder builder = new Builder(parent);
865      return builder;
866    }
867    public static final class Builder extends
868        com.google.protobuf.GeneratedMessage.Builder<Builder>
869       implements muduo.codec.tests.QueryProtos.AnswerOrBuilder {
870      public static final com.google.protobuf.Descriptors.Descriptor
871          getDescriptor() {
872        return muduo.codec.tests.QueryProtos.internal_static_muduo_Answer_descriptor;
873      }
874
875      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
876          internalGetFieldAccessorTable() {
877        return muduo.codec.tests.QueryProtos.internal_static_muduo_Answer_fieldAccessorTable;
878      }
879
880      // Construct using muduo.codec.tests.QueryProtos.Answer.newBuilder()
881      private Builder() {
882        maybeForceBuilderInitialization();
883      }
884
885      private Builder(BuilderParent parent) {
886        super(parent);
887        maybeForceBuilderInitialization();
888      }
889      private void maybeForceBuilderInitialization() {
890        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
891        }
892      }
893      private static Builder create() {
894        return new Builder();
895      }
896
897      public Builder clear() {
898        super.clear();
899        id_ = 0L;
900        bitField0_ = (bitField0_ & ~0x00000001);
901        questioner_ = "";
902        bitField0_ = (bitField0_ & ~0x00000002);
903        answerer_ = "";
904        bitField0_ = (bitField0_ & ~0x00000004);
905        solution_ = com.google.protobuf.LazyStringArrayList.EMPTY;
906        bitField0_ = (bitField0_ & ~0x00000008);
907        return this;
908      }
909
910      public Builder clone() {
911        return create().mergeFrom(buildPartial());
912      }
913
914      public com.google.protobuf.Descriptors.Descriptor
915          getDescriptorForType() {
916        return muduo.codec.tests.QueryProtos.Answer.getDescriptor();
917      }
918
919      public muduo.codec.tests.QueryProtos.Answer getDefaultInstanceForType() {
920        return muduo.codec.tests.QueryProtos.Answer.getDefaultInstance();
921      }
922
923      public muduo.codec.tests.QueryProtos.Answer build() {
924        muduo.codec.tests.QueryProtos.Answer result = buildPartial();
925        if (!result.isInitialized()) {
926          throw newUninitializedMessageException(result);
927        }
928        return result;
929      }
930
931      private muduo.codec.tests.QueryProtos.Answer buildParsed()
932          throws com.google.protobuf.InvalidProtocolBufferException {
933        muduo.codec.tests.QueryProtos.Answer result = buildPartial();
934        if (!result.isInitialized()) {
935          throw newUninitializedMessageException(
936            result).asInvalidProtocolBufferException();
937        }
938        return result;
939      }
940
941      public muduo.codec.tests.QueryProtos.Answer buildPartial() {
942        muduo.codec.tests.QueryProtos.Answer result = new muduo.codec.tests.QueryProtos.Answer(this);
943        int from_bitField0_ = bitField0_;
944        int to_bitField0_ = 0;
945        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
946          to_bitField0_ |= 0x00000001;
947        }
948        result.id_ = id_;
949        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
950          to_bitField0_ |= 0x00000002;
951        }
952        result.questioner_ = questioner_;
953        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
954          to_bitField0_ |= 0x00000004;
955        }
956        result.answerer_ = answerer_;
957        if (((bitField0_ & 0x00000008) == 0x00000008)) {
958          solution_ = new com.google.protobuf.UnmodifiableLazyStringList(
959              solution_);
960          bitField0_ = (bitField0_ & ~0x00000008);
961        }
962        result.solution_ = solution_;
963        result.bitField0_ = to_bitField0_;
964        onBuilt();
965        return result;
966      }
967
968      public Builder mergeFrom(com.google.protobuf.Message other) {
969        if (other instanceof muduo.codec.tests.QueryProtos.Answer) {
970          return mergeFrom((muduo.codec.tests.QueryProtos.Answer)other);
971        } else {
972          super.mergeFrom(other);
973          return this;
974        }
975      }
976
977      public Builder mergeFrom(muduo.codec.tests.QueryProtos.Answer other) {
978        if (other == muduo.codec.tests.QueryProtos.Answer.getDefaultInstance()) return this;
979        if (other.hasId()) {
980          setId(other.getId());
981        }
982        if (other.hasQuestioner()) {
983          setQuestioner(other.getQuestioner());
984        }
985        if (other.hasAnswerer()) {
986          setAnswerer(other.getAnswerer());
987        }
988        if (!other.solution_.isEmpty()) {
989          if (solution_.isEmpty()) {
990            solution_ = other.solution_;
991            bitField0_ = (bitField0_ & ~0x00000008);
992          } else {
993            ensureSolutionIsMutable();
994            solution_.addAll(other.solution_);
995          }
996          onChanged();
997        }
998        this.mergeUnknownFields(other.getUnknownFields());
999        return this;
1000      }
1001
1002      public final boolean isInitialized() {
1003        if (!hasId()) {
1004
1005          return false;
1006        }
1007        if (!hasQuestioner()) {
1008
1009          return false;
1010        }
1011        if (!hasAnswerer()) {
1012
1013          return false;
1014        }
1015        return true;
1016      }
1017
1018      public Builder mergeFrom(
1019          com.google.protobuf.CodedInputStream input,
1020          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1021          throws java.io.IOException {
1022        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1023          com.google.protobuf.UnknownFieldSet.newBuilder(
1024            this.getUnknownFields());
1025        while (true) {
1026          int tag = input.readTag();
1027          switch (tag) {
1028            case 0:
1029              this.setUnknownFields(unknownFields.build());
1030              onChanged();
1031              return this;
1032            default: {
1033              if (!parseUnknownField(input, unknownFields,
1034                                     extensionRegistry, tag)) {
1035                this.setUnknownFields(unknownFields.build());
1036                onChanged();
1037                return this;
1038              }
1039              break;
1040            }
1041            case 8: {
1042              bitField0_ |= 0x00000001;
1043              id_ = input.readInt64();
1044              break;
1045            }
1046            case 18: {
1047              bitField0_ |= 0x00000002;
1048              questioner_ = input.readBytes();
1049              break;
1050            }
1051            case 26: {
1052              bitField0_ |= 0x00000004;
1053              answerer_ = input.readBytes();
1054              break;
1055            }
1056            case 34: {
1057              ensureSolutionIsMutable();
1058              solution_.add(input.readBytes());
1059              break;
1060            }
1061          }
1062        }
1063      }
1064
1065      private int bitField0_;
1066
1067      // required int64 id = 1;
1068      private long id_ ;
1069      public boolean hasId() {
1070        return ((bitField0_ & 0x00000001) == 0x00000001);
1071      }
1072      public long getId() {
1073        return id_;
1074      }
1075      public Builder setId(long value) {
1076        bitField0_ |= 0x00000001;
1077        id_ = value;
1078        onChanged();
1079        return this;
1080      }
1081      public Builder clearId() {
1082        bitField0_ = (bitField0_ & ~0x00000001);
1083        id_ = 0L;
1084        onChanged();
1085        return this;
1086      }
1087
1088      // required string questioner = 2;
1089      private Object questioner_ = "";
1090      public boolean hasQuestioner() {
1091        return ((bitField0_ & 0x00000002) == 0x00000002);
1092      }
1093      public String getQuestioner() {
1094        Object ref = questioner_;
1095        if (!(ref instanceof String)) {
1096          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
1097          questioner_ = s;
1098          return s;
1099        } else {
1100          return (String) ref;
1101        }
1102      }
1103      public Builder setQuestioner(String value) {
1104        if (value == null) {
1105    throw new NullPointerException();
1106  }
1107  bitField0_ |= 0x00000002;
1108        questioner_ = value;
1109        onChanged();
1110        return this;
1111      }
1112      public Builder clearQuestioner() {
1113        bitField0_ = (bitField0_ & ~0x00000002);
1114        questioner_ = getDefaultInstance().getQuestioner();
1115        onChanged();
1116        return this;
1117      }
1118      void setQuestioner(com.google.protobuf.ByteString value) {
1119        bitField0_ |= 0x00000002;
1120        questioner_ = value;
1121        onChanged();
1122      }
1123
1124      // required string answerer = 3;
1125      private Object answerer_ = "";
1126      public boolean hasAnswerer() {
1127        return ((bitField0_ & 0x00000004) == 0x00000004);
1128      }
1129      public String getAnswerer() {
1130        Object ref = answerer_;
1131        if (!(ref instanceof String)) {
1132          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
1133          answerer_ = s;
1134          return s;
1135        } else {
1136          return (String) ref;
1137        }
1138      }
1139      public Builder setAnswerer(String value) {
1140        if (value == null) {
1141    throw new NullPointerException();
1142  }
1143  bitField0_ |= 0x00000004;
1144        answerer_ = value;
1145        onChanged();
1146        return this;
1147      }
1148      public Builder clearAnswerer() {
1149        bitField0_ = (bitField0_ & ~0x00000004);
1150        answerer_ = getDefaultInstance().getAnswerer();
1151        onChanged();
1152        return this;
1153      }
1154      void setAnswerer(com.google.protobuf.ByteString value) {
1155        bitField0_ |= 0x00000004;
1156        answerer_ = value;
1157        onChanged();
1158      }
1159
1160      // repeated string solution = 4;
1161      private com.google.protobuf.LazyStringList solution_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1162      private void ensureSolutionIsMutable() {
1163        if (!((bitField0_ & 0x00000008) == 0x00000008)) {
1164          solution_ = new com.google.protobuf.LazyStringArrayList(solution_);
1165          bitField0_ |= 0x00000008;
1166         }
1167      }
1168      public java.util.List<String>
1169          getSolutionList() {
1170        return java.util.Collections.unmodifiableList(solution_);
1171      }
1172      public int getSolutionCount() {
1173        return solution_.size();
1174      }
1175      public String getSolution(int index) {
1176        return solution_.get(index);
1177      }
1178      public Builder setSolution(
1179          int index, String value) {
1180        if (value == null) {
1181    throw new NullPointerException();
1182  }
1183  ensureSolutionIsMutable();
1184        solution_.set(index, value);
1185        onChanged();
1186        return this;
1187      }
1188      public Builder addSolution(String value) {
1189        if (value == null) {
1190    throw new NullPointerException();
1191  }
1192  ensureSolutionIsMutable();
1193        solution_.add(value);
1194        onChanged();
1195        return this;
1196      }
1197      public Builder addAllSolution(
1198          java.lang.Iterable<String> values) {
1199        ensureSolutionIsMutable();
1200        super.addAll(values, solution_);
1201        onChanged();
1202        return this;
1203      }
1204      public Builder clearSolution() {
1205        solution_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1206        bitField0_ = (bitField0_ & ~0x00000008);
1207        onChanged();
1208        return this;
1209      }
1210      void addSolution(com.google.protobuf.ByteString value) {
1211        ensureSolutionIsMutable();
1212        solution_.add(value);
1213        onChanged();
1214      }
1215
1216      // @@protoc_insertion_point(builder_scope:muduo.Answer)
1217    }
1218
1219    static {
1220      defaultInstance = new Answer(true);
1221      defaultInstance.initFields();
1222    }
1223
1224    // @@protoc_insertion_point(class_scope:muduo.Answer)
1225  }
1226
1227  public interface EmptyOrBuilder
1228      extends com.google.protobuf.MessageOrBuilder {
1229
1230    // optional int32 id = 1;
1231    boolean hasId();
1232    int getId();
1233  }
1234  public static final class Empty extends
1235      com.google.protobuf.GeneratedMessage
1236      implements EmptyOrBuilder {
1237    // Use Empty.newBuilder() to construct.
1238    private Empty(Builder builder) {
1239      super(builder);
1240    }
1241    private Empty(boolean noInit) {}
1242
1243    private static final Empty defaultInstance;
1244    public static Empty getDefaultInstance() {
1245      return defaultInstance;
1246    }
1247
1248    public Empty getDefaultInstanceForType() {
1249      return defaultInstance;
1250    }
1251
1252    public static final com.google.protobuf.Descriptors.Descriptor
1253        getDescriptor() {
1254      return muduo.codec.tests.QueryProtos.internal_static_muduo_Empty_descriptor;
1255    }
1256
1257    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1258        internalGetFieldAccessorTable() {
1259      return muduo.codec.tests.QueryProtos.internal_static_muduo_Empty_fieldAccessorTable;
1260    }
1261
1262    private int bitField0_;
1263    // optional int32 id = 1;
1264    public static final int ID_FIELD_NUMBER = 1;
1265    private int id_;
1266    public boolean hasId() {
1267      return ((bitField0_ & 0x00000001) == 0x00000001);
1268    }
1269    public int getId() {
1270      return id_;
1271    }
1272
1273    private void initFields() {
1274      id_ = 0;
1275    }
1276    private byte memoizedIsInitialized = -1;
1277    public final boolean isInitialized() {
1278      byte isInitialized = memoizedIsInitialized;
1279      if (isInitialized != -1) return isInitialized == 1;
1280
1281      memoizedIsInitialized = 1;
1282      return true;
1283    }
1284
1285    public void writeTo(com.google.protobuf.CodedOutputStream output)
1286                        throws java.io.IOException {
1287      getSerializedSize();
1288      if (((bitField0_ & 0x00000001) == 0x00000001)) {
1289        output.writeInt32(1, id_);
1290      }
1291      getUnknownFields().writeTo(output);
1292    }
1293
1294    private int memoizedSerializedSize = -1;
1295    public int getSerializedSize() {
1296      int size = memoizedSerializedSize;
1297      if (size != -1) return size;
1298
1299      size = 0;
1300      if (((bitField0_ & 0x00000001) == 0x00000001)) {
1301        size += com.google.protobuf.CodedOutputStream
1302          .computeInt32Size(1, id_);
1303      }
1304      size += getUnknownFields().getSerializedSize();
1305      memoizedSerializedSize = size;
1306      return size;
1307    }
1308
1309    @java.lang.Override
1310    protected Object writeReplace() throws java.io.ObjectStreamException {
1311      return super.writeReplace();
1312    }
1313
1314    public static muduo.codec.tests.QueryProtos.Empty parseFrom(
1315        com.google.protobuf.ByteString data)
1316        throws com.google.protobuf.InvalidProtocolBufferException {
1317      return newBuilder().mergeFrom(data).buildParsed();
1318    }
1319    public static muduo.codec.tests.QueryProtos.Empty parseFrom(
1320        com.google.protobuf.ByteString data,
1321        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1322        throws com.google.protobuf.InvalidProtocolBufferException {
1323      return newBuilder().mergeFrom(data, extensionRegistry)
1324               .buildParsed();
1325    }
1326    public static muduo.codec.tests.QueryProtos.Empty parseFrom(byte[] data)
1327        throws com.google.protobuf.InvalidProtocolBufferException {
1328      return newBuilder().mergeFrom(data).buildParsed();
1329    }
1330    public static muduo.codec.tests.QueryProtos.Empty parseFrom(
1331        byte[] data,
1332        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1333        throws com.google.protobuf.InvalidProtocolBufferException {
1334      return newBuilder().mergeFrom(data, extensionRegistry)
1335               .buildParsed();
1336    }
1337    public static muduo.codec.tests.QueryProtos.Empty parseFrom(java.io.InputStream input)
1338        throws java.io.IOException {
1339      return newBuilder().mergeFrom(input).buildParsed();
1340    }
1341    public static muduo.codec.tests.QueryProtos.Empty parseFrom(
1342        java.io.InputStream input,
1343        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1344        throws java.io.IOException {
1345      return newBuilder().mergeFrom(input, extensionRegistry)
1346               .buildParsed();
1347    }
1348    public static muduo.codec.tests.QueryProtos.Empty parseDelimitedFrom(java.io.InputStream input)
1349        throws java.io.IOException {
1350      Builder builder = newBuilder();
1351      if (builder.mergeDelimitedFrom(input)) {
1352        return builder.buildParsed();
1353      } else {
1354        return null;
1355      }
1356    }
1357    public static muduo.codec.tests.QueryProtos.Empty parseDelimitedFrom(
1358        java.io.InputStream input,
1359        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1360        throws java.io.IOException {
1361      Builder builder = newBuilder();
1362      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
1363        return builder.buildParsed();
1364      } else {
1365        return null;
1366      }
1367    }
1368    public static muduo.codec.tests.QueryProtos.Empty parseFrom(
1369        com.google.protobuf.CodedInputStream input)
1370        throws java.io.IOException {
1371      return newBuilder().mergeFrom(input).buildParsed();
1372    }
1373    public static muduo.codec.tests.QueryProtos.Empty parseFrom(
1374        com.google.protobuf.CodedInputStream input,
1375        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1376        throws java.io.IOException {
1377      return newBuilder().mergeFrom(input, extensionRegistry)
1378               .buildParsed();
1379    }
1380
1381    public static Builder newBuilder() { return Builder.create(); }
1382    public Builder newBuilderForType() { return newBuilder(); }
1383    public static Builder newBuilder(muduo.codec.tests.QueryProtos.Empty prototype) {
1384      return newBuilder().mergeFrom(prototype);
1385    }
1386    public Builder toBuilder() { return newBuilder(this); }
1387
1388    @java.lang.Override
1389    protected Builder newBuilderForType(
1390        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1391      Builder builder = new Builder(parent);
1392      return builder;
1393    }
1394    public static final class Builder extends
1395        com.google.protobuf.GeneratedMessage.Builder<Builder>
1396       implements muduo.codec.tests.QueryProtos.EmptyOrBuilder {
1397      public static final com.google.protobuf.Descriptors.Descriptor
1398          getDescriptor() {
1399        return muduo.codec.tests.QueryProtos.internal_static_muduo_Empty_descriptor;
1400      }
1401
1402      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1403          internalGetFieldAccessorTable() {
1404        return muduo.codec.tests.QueryProtos.internal_static_muduo_Empty_fieldAccessorTable;
1405      }
1406
1407      // Construct using muduo.codec.tests.QueryProtos.Empty.newBuilder()
1408      private Builder() {
1409        maybeForceBuilderInitialization();
1410      }
1411
1412      private Builder(BuilderParent parent) {
1413        super(parent);
1414        maybeForceBuilderInitialization();
1415      }
1416      private void maybeForceBuilderInitialization() {
1417        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1418        }
1419      }
1420      private static Builder create() {
1421        return new Builder();
1422      }
1423
1424      public Builder clear() {
1425        super.clear();
1426        id_ = 0;
1427        bitField0_ = (bitField0_ & ~0x00000001);
1428        return this;
1429      }
1430
1431      public Builder clone() {
1432        return create().mergeFrom(buildPartial());
1433      }
1434
1435      public com.google.protobuf.Descriptors.Descriptor
1436          getDescriptorForType() {
1437        return muduo.codec.tests.QueryProtos.Empty.getDescriptor();
1438      }
1439
1440      public muduo.codec.tests.QueryProtos.Empty getDefaultInstanceForType() {
1441        return muduo.codec.tests.QueryProtos.Empty.getDefaultInstance();
1442      }
1443
1444      public muduo.codec.tests.QueryProtos.Empty build() {
1445        muduo.codec.tests.QueryProtos.Empty result = buildPartial();
1446        if (!result.isInitialized()) {
1447          throw newUninitializedMessageException(result);
1448        }
1449        return result;
1450      }
1451
1452      private muduo.codec.tests.QueryProtos.Empty buildParsed()
1453          throws com.google.protobuf.InvalidProtocolBufferException {
1454        muduo.codec.tests.QueryProtos.Empty result = buildPartial();
1455        if (!result.isInitialized()) {
1456          throw newUninitializedMessageException(
1457            result).asInvalidProtocolBufferException();
1458        }
1459        return result;
1460      }
1461
1462      public muduo.codec.tests.QueryProtos.Empty buildPartial() {
1463        muduo.codec.tests.QueryProtos.Empty result = new muduo.codec.tests.QueryProtos.Empty(this);
1464        int from_bitField0_ = bitField0_;
1465        int to_bitField0_ = 0;
1466        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1467          to_bitField0_ |= 0x00000001;
1468        }
1469        result.id_ = id_;
1470        result.bitField0_ = to_bitField0_;
1471        onBuilt();
1472        return result;
1473      }
1474
1475      public Builder mergeFrom(com.google.protobuf.Message other) {
1476        if (other instanceof muduo.codec.tests.QueryProtos.Empty) {
1477          return mergeFrom((muduo.codec.tests.QueryProtos.Empty)other);
1478        } else {
1479          super.mergeFrom(other);
1480          return this;
1481        }
1482      }
1483
1484      public Builder mergeFrom(muduo.codec.tests.QueryProtos.Empty other) {
1485        if (other == muduo.codec.tests.QueryProtos.Empty.getDefaultInstance()) return this;
1486        if (other.hasId()) {
1487          setId(other.getId());
1488        }
1489        this.mergeUnknownFields(other.getUnknownFields());
1490        return this;
1491      }
1492
1493      public final boolean isInitialized() {
1494        return true;
1495      }
1496
1497      public Builder mergeFrom(
1498          com.google.protobuf.CodedInputStream input,
1499          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1500          throws java.io.IOException {
1501        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1502          com.google.protobuf.UnknownFieldSet.newBuilder(
1503            this.getUnknownFields());
1504        while (true) {
1505          int tag = input.readTag();
1506          switch (tag) {
1507            case 0:
1508              this.setUnknownFields(unknownFields.build());
1509              onChanged();
1510              return this;
1511            default: {
1512              if (!parseUnknownField(input, unknownFields,
1513                                     extensionRegistry, tag)) {
1514                this.setUnknownFields(unknownFields.build());
1515                onChanged();
1516                return this;
1517              }
1518              break;
1519            }
1520            case 8: {
1521              bitField0_ |= 0x00000001;
1522              id_ = input.readInt32();
1523              break;
1524            }
1525          }
1526        }
1527      }
1528
1529      private int bitField0_;
1530
1531      // optional int32 id = 1;
1532      private int id_ ;
1533      public boolean hasId() {
1534        return ((bitField0_ & 0x00000001) == 0x00000001);
1535      }
1536      public int getId() {
1537        return id_;
1538      }
1539      public Builder setId(int value) {
1540        bitField0_ |= 0x00000001;
1541        id_ = value;
1542        onChanged();
1543        return this;
1544      }
1545      public Builder clearId() {
1546        bitField0_ = (bitField0_ & ~0x00000001);
1547        id_ = 0;
1548        onChanged();
1549        return this;
1550      }
1551
1552      // @@protoc_insertion_point(builder_scope:muduo.Empty)
1553    }
1554
1555    static {
1556      defaultInstance = new Empty(true);
1557      defaultInstance.initFields();
1558    }
1559
1560    // @@protoc_insertion_point(class_scope:muduo.Empty)
1561  }
1562
1563  private static com.google.protobuf.Descriptors.Descriptor
1564    internal_static_muduo_Query_descriptor;
1565  private static
1566    com.google.protobuf.GeneratedMessage.FieldAccessorTable
1567      internal_static_muduo_Query_fieldAccessorTable;
1568  private static com.google.protobuf.Descriptors.Descriptor
1569    internal_static_muduo_Answer_descriptor;
1570  private static
1571    com.google.protobuf.GeneratedMessage.FieldAccessorTable
1572      internal_static_muduo_Answer_fieldAccessorTable;
1573  private static com.google.protobuf.Descriptors.Descriptor
1574    internal_static_muduo_Empty_descriptor;
1575  private static
1576    com.google.protobuf.GeneratedMessage.FieldAccessorTable
1577      internal_static_muduo_Empty_fieldAccessorTable;
1578
1579  public static com.google.protobuf.Descriptors.FileDescriptor
1580      getDescriptor() {
1581    return descriptor;
1582  }
1583  private static com.google.protobuf.Descriptors.FileDescriptor
1584      descriptor;
1585  static {
1586    java.lang.String[] descriptorData = {
1587      "\n\013query.proto\022\005muduo\"9\n\005Query\022\n\n\002id\030\001 \002(" +
1588      "\003\022\022\n\nquestioner\030\002 \002(\t\022\020\n\010question\030\003 \003(\t\"" +
1589      "L\n\006Answer\022\n\n\002id\030\001 \002(\003\022\022\n\nquestioner\030\002 \002(" +
1590      "\t\022\020\n\010answerer\030\003 \002(\t\022\020\n\010solution\030\004 \003(\t\"\023\n" +
1591      "\005Empty\022\n\n\002id\030\001 \001(\005B \n\021muduo.codec.testsB" +
1592      "\013QueryProtos"
1593    };
1594    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1595      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1596        public com.google.protobuf.ExtensionRegistry assignDescriptors(
1597            com.google.protobuf.Descriptors.FileDescriptor root) {
1598          descriptor = root;
1599          internal_static_muduo_Query_descriptor =
1600            getDescriptor().getMessageTypes().get(0);
1601          internal_static_muduo_Query_fieldAccessorTable = new
1602            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1603              internal_static_muduo_Query_descriptor,
1604              new java.lang.String[] { "Id", "Questioner", "Question", },
1605              muduo.codec.tests.QueryProtos.Query.class,
1606              muduo.codec.tests.QueryProtos.Query.Builder.class);
1607          internal_static_muduo_Answer_descriptor =
1608            getDescriptor().getMessageTypes().get(1);
1609          internal_static_muduo_Answer_fieldAccessorTable = new
1610            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1611              internal_static_muduo_Answer_descriptor,
1612              new java.lang.String[] { "Id", "Questioner", "Answerer", "Solution", },
1613              muduo.codec.tests.QueryProtos.Answer.class,
1614              muduo.codec.tests.QueryProtos.Answer.Builder.class);
1615          internal_static_muduo_Empty_descriptor =
1616            getDescriptor().getMessageTypes().get(2);
1617          internal_static_muduo_Empty_fieldAccessorTable = new
1618            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1619              internal_static_muduo_Empty_descriptor,
1620              new java.lang.String[] { "Id", },
1621              muduo.codec.tests.QueryProtos.Empty.class,
1622              muduo.codec.tests.QueryProtos.Empty.Builder.class);
1623          return null;
1624        }
1625      };
1626    com.google.protobuf.Descriptors.FileDescriptor
1627      .internalBuildGeneratedFileFrom(descriptorData,
1628        new com.google.protobuf.Descriptors.FileDescriptor[] {
1629        }, assigner);
1630  }
1631
1632  // @@protoc_insertion_point(outer_class_scope)
1633}
1634