1// Generated by the protocol buffer compiler.  DO NOT EDIT!
2// source: echo.proto
3
4package echo;
5
6public final class EchoProto {
7  private EchoProto() {}
8  public static void registerAllExtensions(
9      com.google.protobuf.ExtensionRegistry registry) {
10  }
11  public interface EchoRequestOrBuilder
12      extends com.google.protobuf.MessageOrBuilder {
13
14    // required string payload = 1;
15    boolean hasPayload();
16    String getPayload();
17  }
18  public static final class EchoRequest extends
19      com.google.protobuf.GeneratedMessage
20      implements EchoRequestOrBuilder {
21    // Use EchoRequest.newBuilder() to construct.
22    private EchoRequest(Builder builder) {
23      super(builder);
24    }
25    private EchoRequest(boolean noInit) {}
26
27    private static final EchoRequest defaultInstance;
28    public static EchoRequest getDefaultInstance() {
29      return defaultInstance;
30    }
31
32    public EchoRequest getDefaultInstanceForType() {
33      return defaultInstance;
34    }
35
36    public static final com.google.protobuf.Descriptors.Descriptor
37        getDescriptor() {
38      return echo.EchoProto.internal_static_echo_EchoRequest_descriptor;
39    }
40
41    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
42        internalGetFieldAccessorTable() {
43      return echo.EchoProto.internal_static_echo_EchoRequest_fieldAccessorTable;
44    }
45
46    private int bitField0_;
47    // required string payload = 1;
48    public static final int PAYLOAD_FIELD_NUMBER = 1;
49    private Object payload_;
50    public boolean hasPayload() {
51      return ((bitField0_ & 0x00000001) == 0x00000001);
52    }
53    public String getPayload() {
54      Object ref = payload_;
55      if (ref instanceof String) {
56        return (String) ref;
57      } else {
58        com.google.protobuf.ByteString bs =
59            (com.google.protobuf.ByteString) ref;
60        String s = bs.toStringUtf8();
61        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
62          payload_ = s;
63        }
64        return s;
65      }
66    }
67    private com.google.protobuf.ByteString getPayloadBytes() {
68      Object ref = payload_;
69      if (ref instanceof String) {
70        com.google.protobuf.ByteString b =
71            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
72        payload_ = b;
73        return b;
74      } else {
75        return (com.google.protobuf.ByteString) ref;
76      }
77    }
78
79    private void initFields() {
80      payload_ = "";
81    }
82    private byte memoizedIsInitialized = -1;
83    public final boolean isInitialized() {
84      byte isInitialized = memoizedIsInitialized;
85      if (isInitialized != -1) return isInitialized == 1;
86
87      if (!hasPayload()) {
88        memoizedIsInitialized = 0;
89        return false;
90      }
91      memoizedIsInitialized = 1;
92      return true;
93    }
94
95    public void writeTo(com.google.protobuf.CodedOutputStream output)
96                        throws java.io.IOException {
97      getSerializedSize();
98      if (((bitField0_ & 0x00000001) == 0x00000001)) {
99        output.writeBytes(1, getPayloadBytes());
100      }
101      getUnknownFields().writeTo(output);
102    }
103
104    private int memoizedSerializedSize = -1;
105    public int getSerializedSize() {
106      int size = memoizedSerializedSize;
107      if (size != -1) return size;
108
109      size = 0;
110      if (((bitField0_ & 0x00000001) == 0x00000001)) {
111        size += com.google.protobuf.CodedOutputStream
112          .computeBytesSize(1, getPayloadBytes());
113      }
114      size += getUnknownFields().getSerializedSize();
115      memoizedSerializedSize = size;
116      return size;
117    }
118
119    @java.lang.Override
120    protected Object writeReplace() throws java.io.ObjectStreamException {
121      return super.writeReplace();
122    }
123
124    public static echo.EchoProto.EchoRequest parseFrom(
125        com.google.protobuf.ByteString data)
126        throws com.google.protobuf.InvalidProtocolBufferException {
127      return newBuilder().mergeFrom(data).buildParsed();
128    }
129    public static echo.EchoProto.EchoRequest parseFrom(
130        com.google.protobuf.ByteString data,
131        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
132        throws com.google.protobuf.InvalidProtocolBufferException {
133      return newBuilder().mergeFrom(data, extensionRegistry)
134               .buildParsed();
135    }
136    public static echo.EchoProto.EchoRequest parseFrom(byte[] data)
137        throws com.google.protobuf.InvalidProtocolBufferException {
138      return newBuilder().mergeFrom(data).buildParsed();
139    }
140    public static echo.EchoProto.EchoRequest parseFrom(
141        byte[] data,
142        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
143        throws com.google.protobuf.InvalidProtocolBufferException {
144      return newBuilder().mergeFrom(data, extensionRegistry)
145               .buildParsed();
146    }
147    public static echo.EchoProto.EchoRequest parseFrom(java.io.InputStream input)
148        throws java.io.IOException {
149      return newBuilder().mergeFrom(input).buildParsed();
150    }
151    public static echo.EchoProto.EchoRequest parseFrom(
152        java.io.InputStream input,
153        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
154        throws java.io.IOException {
155      return newBuilder().mergeFrom(input, extensionRegistry)
156               .buildParsed();
157    }
158    public static echo.EchoProto.EchoRequest parseDelimitedFrom(java.io.InputStream input)
159        throws java.io.IOException {
160      Builder builder = newBuilder();
161      if (builder.mergeDelimitedFrom(input)) {
162        return builder.buildParsed();
163      } else {
164        return null;
165      }
166    }
167    public static echo.EchoProto.EchoRequest parseDelimitedFrom(
168        java.io.InputStream input,
169        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
170        throws java.io.IOException {
171      Builder builder = newBuilder();
172      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
173        return builder.buildParsed();
174      } else {
175        return null;
176      }
177    }
178    public static echo.EchoProto.EchoRequest parseFrom(
179        com.google.protobuf.CodedInputStream input)
180        throws java.io.IOException {
181      return newBuilder().mergeFrom(input).buildParsed();
182    }
183    public static echo.EchoProto.EchoRequest parseFrom(
184        com.google.protobuf.CodedInputStream input,
185        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
186        throws java.io.IOException {
187      return newBuilder().mergeFrom(input, extensionRegistry)
188               .buildParsed();
189    }
190
191    public static Builder newBuilder() { return Builder.create(); }
192    public Builder newBuilderForType() { return newBuilder(); }
193    public static Builder newBuilder(echo.EchoProto.EchoRequest prototype) {
194      return newBuilder().mergeFrom(prototype);
195    }
196    public Builder toBuilder() { return newBuilder(this); }
197
198    @java.lang.Override
199    protected Builder newBuilderForType(
200        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
201      Builder builder = new Builder(parent);
202      return builder;
203    }
204    public static final class Builder extends
205        com.google.protobuf.GeneratedMessage.Builder<Builder>
206       implements echo.EchoProto.EchoRequestOrBuilder {
207      public static final com.google.protobuf.Descriptors.Descriptor
208          getDescriptor() {
209        return echo.EchoProto.internal_static_echo_EchoRequest_descriptor;
210      }
211
212      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
213          internalGetFieldAccessorTable() {
214        return echo.EchoProto.internal_static_echo_EchoRequest_fieldAccessorTable;
215      }
216
217      // Construct using echo.EchoProto.EchoRequest.newBuilder()
218      private Builder() {
219        maybeForceBuilderInitialization();
220      }
221
222      private Builder(BuilderParent parent) {
223        super(parent);
224        maybeForceBuilderInitialization();
225      }
226      private void maybeForceBuilderInitialization() {
227        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
228        }
229      }
230      private static Builder create() {
231        return new Builder();
232      }
233
234      public Builder clear() {
235        super.clear();
236        payload_ = "";
237        bitField0_ = (bitField0_ & ~0x00000001);
238        return this;
239      }
240
241      public Builder clone() {
242        return create().mergeFrom(buildPartial());
243      }
244
245      public com.google.protobuf.Descriptors.Descriptor
246          getDescriptorForType() {
247        return echo.EchoProto.EchoRequest.getDescriptor();
248      }
249
250      public echo.EchoProto.EchoRequest getDefaultInstanceForType() {
251        return echo.EchoProto.EchoRequest.getDefaultInstance();
252      }
253
254      public echo.EchoProto.EchoRequest build() {
255        echo.EchoProto.EchoRequest result = buildPartial();
256        if (!result.isInitialized()) {
257          throw newUninitializedMessageException(result);
258        }
259        return result;
260      }
261
262      private echo.EchoProto.EchoRequest buildParsed()
263          throws com.google.protobuf.InvalidProtocolBufferException {
264        echo.EchoProto.EchoRequest result = buildPartial();
265        if (!result.isInitialized()) {
266          throw newUninitializedMessageException(
267            result).asInvalidProtocolBufferException();
268        }
269        return result;
270      }
271
272      public echo.EchoProto.EchoRequest buildPartial() {
273        echo.EchoProto.EchoRequest result = new echo.EchoProto.EchoRequest(this);
274        int from_bitField0_ = bitField0_;
275        int to_bitField0_ = 0;
276        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
277          to_bitField0_ |= 0x00000001;
278        }
279        result.payload_ = payload_;
280        result.bitField0_ = to_bitField0_;
281        onBuilt();
282        return result;
283      }
284
285      public Builder mergeFrom(com.google.protobuf.Message other) {
286        if (other instanceof echo.EchoProto.EchoRequest) {
287          return mergeFrom((echo.EchoProto.EchoRequest)other);
288        } else {
289          super.mergeFrom(other);
290          return this;
291        }
292      }
293
294      public Builder mergeFrom(echo.EchoProto.EchoRequest other) {
295        if (other == echo.EchoProto.EchoRequest.getDefaultInstance()) return this;
296        if (other.hasPayload()) {
297          setPayload(other.getPayload());
298        }
299        this.mergeUnknownFields(other.getUnknownFields());
300        return this;
301      }
302
303      public final boolean isInitialized() {
304        if (!hasPayload()) {
305
306          return false;
307        }
308        return true;
309      }
310
311      public Builder mergeFrom(
312          com.google.protobuf.CodedInputStream input,
313          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
314          throws java.io.IOException {
315        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
316          com.google.protobuf.UnknownFieldSet.newBuilder(
317            this.getUnknownFields());
318        while (true) {
319          int tag = input.readTag();
320          switch (tag) {
321            case 0:
322              this.setUnknownFields(unknownFields.build());
323              onChanged();
324              return this;
325            default: {
326              if (!parseUnknownField(input, unknownFields,
327                                     extensionRegistry, tag)) {
328                this.setUnknownFields(unknownFields.build());
329                onChanged();
330                return this;
331              }
332              break;
333            }
334            case 10: {
335              bitField0_ |= 0x00000001;
336              payload_ = input.readBytes();
337              break;
338            }
339          }
340        }
341      }
342
343      private int bitField0_;
344
345      // required string payload = 1;
346      private Object payload_ = "";
347      public boolean hasPayload() {
348        return ((bitField0_ & 0x00000001) == 0x00000001);
349      }
350      public String getPayload() {
351        Object ref = payload_;
352        if (!(ref instanceof String)) {
353          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
354          payload_ = s;
355          return s;
356        } else {
357          return (String) ref;
358        }
359      }
360      public Builder setPayload(String value) {
361        if (value == null) {
362    throw new NullPointerException();
363  }
364  bitField0_ |= 0x00000001;
365        payload_ = value;
366        onChanged();
367        return this;
368      }
369      public Builder clearPayload() {
370        bitField0_ = (bitField0_ & ~0x00000001);
371        payload_ = getDefaultInstance().getPayload();
372        onChanged();
373        return this;
374      }
375      void setPayload(com.google.protobuf.ByteString value) {
376        bitField0_ |= 0x00000001;
377        payload_ = value;
378        onChanged();
379      }
380
381      // @@protoc_insertion_point(builder_scope:echo.EchoRequest)
382    }
383
384    static {
385      defaultInstance = new EchoRequest(true);
386      defaultInstance.initFields();
387    }
388
389    // @@protoc_insertion_point(class_scope:echo.EchoRequest)
390  }
391
392  public interface EchoResponseOrBuilder
393      extends com.google.protobuf.MessageOrBuilder {
394
395    // required string payload = 2;
396    boolean hasPayload();
397    String getPayload();
398  }
399  public static final class EchoResponse extends
400      com.google.protobuf.GeneratedMessage
401      implements EchoResponseOrBuilder {
402    // Use EchoResponse.newBuilder() to construct.
403    private EchoResponse(Builder builder) {
404      super(builder);
405    }
406    private EchoResponse(boolean noInit) {}
407
408    private static final EchoResponse defaultInstance;
409    public static EchoResponse getDefaultInstance() {
410      return defaultInstance;
411    }
412
413    public EchoResponse getDefaultInstanceForType() {
414      return defaultInstance;
415    }
416
417    public static final com.google.protobuf.Descriptors.Descriptor
418        getDescriptor() {
419      return echo.EchoProto.internal_static_echo_EchoResponse_descriptor;
420    }
421
422    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
423        internalGetFieldAccessorTable() {
424      return echo.EchoProto.internal_static_echo_EchoResponse_fieldAccessorTable;
425    }
426
427    private int bitField0_;
428    // required string payload = 2;
429    public static final int PAYLOAD_FIELD_NUMBER = 2;
430    private Object payload_;
431    public boolean hasPayload() {
432      return ((bitField0_ & 0x00000001) == 0x00000001);
433    }
434    public String getPayload() {
435      Object ref = payload_;
436      if (ref instanceof String) {
437        return (String) ref;
438      } else {
439        com.google.protobuf.ByteString bs =
440            (com.google.protobuf.ByteString) ref;
441        String s = bs.toStringUtf8();
442        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
443          payload_ = s;
444        }
445        return s;
446      }
447    }
448    private com.google.protobuf.ByteString getPayloadBytes() {
449      Object ref = payload_;
450      if (ref instanceof String) {
451        com.google.protobuf.ByteString b =
452            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
453        payload_ = b;
454        return b;
455      } else {
456        return (com.google.protobuf.ByteString) ref;
457      }
458    }
459
460    private void initFields() {
461      payload_ = "";
462    }
463    private byte memoizedIsInitialized = -1;
464    public final boolean isInitialized() {
465      byte isInitialized = memoizedIsInitialized;
466      if (isInitialized != -1) return isInitialized == 1;
467
468      if (!hasPayload()) {
469        memoizedIsInitialized = 0;
470        return false;
471      }
472      memoizedIsInitialized = 1;
473      return true;
474    }
475
476    public void writeTo(com.google.protobuf.CodedOutputStream output)
477                        throws java.io.IOException {
478      getSerializedSize();
479      if (((bitField0_ & 0x00000001) == 0x00000001)) {
480        output.writeBytes(2, getPayloadBytes());
481      }
482      getUnknownFields().writeTo(output);
483    }
484
485    private int memoizedSerializedSize = -1;
486    public int getSerializedSize() {
487      int size = memoizedSerializedSize;
488      if (size != -1) return size;
489
490      size = 0;
491      if (((bitField0_ & 0x00000001) == 0x00000001)) {
492        size += com.google.protobuf.CodedOutputStream
493          .computeBytesSize(2, getPayloadBytes());
494      }
495      size += getUnknownFields().getSerializedSize();
496      memoizedSerializedSize = size;
497      return size;
498    }
499
500    @java.lang.Override
501    protected Object writeReplace() throws java.io.ObjectStreamException {
502      return super.writeReplace();
503    }
504
505    public static echo.EchoProto.EchoResponse parseFrom(
506        com.google.protobuf.ByteString data)
507        throws com.google.protobuf.InvalidProtocolBufferException {
508      return newBuilder().mergeFrom(data).buildParsed();
509    }
510    public static echo.EchoProto.EchoResponse parseFrom(
511        com.google.protobuf.ByteString data,
512        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
513        throws com.google.protobuf.InvalidProtocolBufferException {
514      return newBuilder().mergeFrom(data, extensionRegistry)
515               .buildParsed();
516    }
517    public static echo.EchoProto.EchoResponse parseFrom(byte[] data)
518        throws com.google.protobuf.InvalidProtocolBufferException {
519      return newBuilder().mergeFrom(data).buildParsed();
520    }
521    public static echo.EchoProto.EchoResponse parseFrom(
522        byte[] data,
523        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
524        throws com.google.protobuf.InvalidProtocolBufferException {
525      return newBuilder().mergeFrom(data, extensionRegistry)
526               .buildParsed();
527    }
528    public static echo.EchoProto.EchoResponse parseFrom(java.io.InputStream input)
529        throws java.io.IOException {
530      return newBuilder().mergeFrom(input).buildParsed();
531    }
532    public static echo.EchoProto.EchoResponse parseFrom(
533        java.io.InputStream input,
534        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
535        throws java.io.IOException {
536      return newBuilder().mergeFrom(input, extensionRegistry)
537               .buildParsed();
538    }
539    public static echo.EchoProto.EchoResponse parseDelimitedFrom(java.io.InputStream input)
540        throws java.io.IOException {
541      Builder builder = newBuilder();
542      if (builder.mergeDelimitedFrom(input)) {
543        return builder.buildParsed();
544      } else {
545        return null;
546      }
547    }
548    public static echo.EchoProto.EchoResponse parseDelimitedFrom(
549        java.io.InputStream input,
550        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
551        throws java.io.IOException {
552      Builder builder = newBuilder();
553      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
554        return builder.buildParsed();
555      } else {
556        return null;
557      }
558    }
559    public static echo.EchoProto.EchoResponse parseFrom(
560        com.google.protobuf.CodedInputStream input)
561        throws java.io.IOException {
562      return newBuilder().mergeFrom(input).buildParsed();
563    }
564    public static echo.EchoProto.EchoResponse parseFrom(
565        com.google.protobuf.CodedInputStream input,
566        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
567        throws java.io.IOException {
568      return newBuilder().mergeFrom(input, extensionRegistry)
569               .buildParsed();
570    }
571
572    public static Builder newBuilder() { return Builder.create(); }
573    public Builder newBuilderForType() { return newBuilder(); }
574    public static Builder newBuilder(echo.EchoProto.EchoResponse prototype) {
575      return newBuilder().mergeFrom(prototype);
576    }
577    public Builder toBuilder() { return newBuilder(this); }
578
579    @java.lang.Override
580    protected Builder newBuilderForType(
581        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
582      Builder builder = new Builder(parent);
583      return builder;
584    }
585    public static final class Builder extends
586        com.google.protobuf.GeneratedMessage.Builder<Builder>
587       implements echo.EchoProto.EchoResponseOrBuilder {
588      public static final com.google.protobuf.Descriptors.Descriptor
589          getDescriptor() {
590        return echo.EchoProto.internal_static_echo_EchoResponse_descriptor;
591      }
592
593      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
594          internalGetFieldAccessorTable() {
595        return echo.EchoProto.internal_static_echo_EchoResponse_fieldAccessorTable;
596      }
597
598      // Construct using echo.EchoProto.EchoResponse.newBuilder()
599      private Builder() {
600        maybeForceBuilderInitialization();
601      }
602
603      private Builder(BuilderParent parent) {
604        super(parent);
605        maybeForceBuilderInitialization();
606      }
607      private void maybeForceBuilderInitialization() {
608        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
609        }
610      }
611      private static Builder create() {
612        return new Builder();
613      }
614
615      public Builder clear() {
616        super.clear();
617        payload_ = "";
618        bitField0_ = (bitField0_ & ~0x00000001);
619        return this;
620      }
621
622      public Builder clone() {
623        return create().mergeFrom(buildPartial());
624      }
625
626      public com.google.protobuf.Descriptors.Descriptor
627          getDescriptorForType() {
628        return echo.EchoProto.EchoResponse.getDescriptor();
629      }
630
631      public echo.EchoProto.EchoResponse getDefaultInstanceForType() {
632        return echo.EchoProto.EchoResponse.getDefaultInstance();
633      }
634
635      public echo.EchoProto.EchoResponse build() {
636        echo.EchoProto.EchoResponse result = buildPartial();
637        if (!result.isInitialized()) {
638          throw newUninitializedMessageException(result);
639        }
640        return result;
641      }
642
643      private echo.EchoProto.EchoResponse buildParsed()
644          throws com.google.protobuf.InvalidProtocolBufferException {
645        echo.EchoProto.EchoResponse result = buildPartial();
646        if (!result.isInitialized()) {
647          throw newUninitializedMessageException(
648            result).asInvalidProtocolBufferException();
649        }
650        return result;
651      }
652
653      public echo.EchoProto.EchoResponse buildPartial() {
654        echo.EchoProto.EchoResponse result = new echo.EchoProto.EchoResponse(this);
655        int from_bitField0_ = bitField0_;
656        int to_bitField0_ = 0;
657        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
658          to_bitField0_ |= 0x00000001;
659        }
660        result.payload_ = payload_;
661        result.bitField0_ = to_bitField0_;
662        onBuilt();
663        return result;
664      }
665
666      public Builder mergeFrom(com.google.protobuf.Message other) {
667        if (other instanceof echo.EchoProto.EchoResponse) {
668          return mergeFrom((echo.EchoProto.EchoResponse)other);
669        } else {
670          super.mergeFrom(other);
671          return this;
672        }
673      }
674
675      public Builder mergeFrom(echo.EchoProto.EchoResponse other) {
676        if (other == echo.EchoProto.EchoResponse.getDefaultInstance()) return this;
677        if (other.hasPayload()) {
678          setPayload(other.getPayload());
679        }
680        this.mergeUnknownFields(other.getUnknownFields());
681        return this;
682      }
683
684      public final boolean isInitialized() {
685        if (!hasPayload()) {
686
687          return false;
688        }
689        return true;
690      }
691
692      public Builder mergeFrom(
693          com.google.protobuf.CodedInputStream input,
694          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
695          throws java.io.IOException {
696        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
697          com.google.protobuf.UnknownFieldSet.newBuilder(
698            this.getUnknownFields());
699        while (true) {
700          int tag = input.readTag();
701          switch (tag) {
702            case 0:
703              this.setUnknownFields(unknownFields.build());
704              onChanged();
705              return this;
706            default: {
707              if (!parseUnknownField(input, unknownFields,
708                                     extensionRegistry, tag)) {
709                this.setUnknownFields(unknownFields.build());
710                onChanged();
711                return this;
712              }
713              break;
714            }
715            case 18: {
716              bitField0_ |= 0x00000001;
717              payload_ = input.readBytes();
718              break;
719            }
720          }
721        }
722      }
723
724      private int bitField0_;
725
726      // required string payload = 2;
727      private Object payload_ = "";
728      public boolean hasPayload() {
729        return ((bitField0_ & 0x00000001) == 0x00000001);
730      }
731      public String getPayload() {
732        Object ref = payload_;
733        if (!(ref instanceof String)) {
734          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
735          payload_ = s;
736          return s;
737        } else {
738          return (String) ref;
739        }
740      }
741      public Builder setPayload(String value) {
742        if (value == null) {
743    throw new NullPointerException();
744  }
745  bitField0_ |= 0x00000001;
746        payload_ = value;
747        onChanged();
748        return this;
749      }
750      public Builder clearPayload() {
751        bitField0_ = (bitField0_ & ~0x00000001);
752        payload_ = getDefaultInstance().getPayload();
753        onChanged();
754        return this;
755      }
756      void setPayload(com.google.protobuf.ByteString value) {
757        bitField0_ |= 0x00000001;
758        payload_ = value;
759        onChanged();
760      }
761
762      // @@protoc_insertion_point(builder_scope:echo.EchoResponse)
763    }
764
765    static {
766      defaultInstance = new EchoResponse(true);
767      defaultInstance.initFields();
768    }
769
770    // @@protoc_insertion_point(class_scope:echo.EchoResponse)
771  }
772
773  public static abstract class EchoService
774      implements com.google.protobuf.Service {
775    protected EchoService() {}
776
777    public interface Interface {
778      public abstract void echo(
779          com.google.protobuf.RpcController controller,
780          echo.EchoProto.EchoRequest request,
781          com.google.protobuf.RpcCallback<echo.EchoProto.EchoResponse> done);
782
783    }
784
785    public static com.google.protobuf.Service newReflectiveService(
786        final Interface impl) {
787      return new EchoService() {
788        @java.lang.Override
789        public  void echo(
790            com.google.protobuf.RpcController controller,
791            echo.EchoProto.EchoRequest request,
792            com.google.protobuf.RpcCallback<echo.EchoProto.EchoResponse> done) {
793          impl.echo(controller, request, done);
794        }
795
796      };
797    }
798
799    public static com.google.protobuf.BlockingService
800        newReflectiveBlockingService(final BlockingInterface impl) {
801      return new com.google.protobuf.BlockingService() {
802        public final com.google.protobuf.Descriptors.ServiceDescriptor
803            getDescriptorForType() {
804          return getDescriptor();
805        }
806
807        public final com.google.protobuf.Message callBlockingMethod(
808            com.google.protobuf.Descriptors.MethodDescriptor method,
809            com.google.protobuf.RpcController controller,
810            com.google.protobuf.Message request)
811            throws com.google.protobuf.ServiceException {
812          if (method.getService() != getDescriptor()) {
813            throw new java.lang.IllegalArgumentException(
814              "Service.callBlockingMethod() given method descriptor for " +
815              "wrong service type.");
816          }
817          switch(method.getIndex()) {
818            case 0:
819              return impl.echo(controller, (echo.EchoProto.EchoRequest)request);
820            default:
821              throw new java.lang.AssertionError("Can't get here.");
822          }
823        }
824
825        public final com.google.protobuf.Message
826            getRequestPrototype(
827            com.google.protobuf.Descriptors.MethodDescriptor method) {
828          if (method.getService() != getDescriptor()) {
829            throw new java.lang.IllegalArgumentException(
830              "Service.getRequestPrototype() given method " +
831              "descriptor for wrong service type.");
832          }
833          switch(method.getIndex()) {
834            case 0:
835              return echo.EchoProto.EchoRequest.getDefaultInstance();
836            default:
837              throw new java.lang.AssertionError("Can't get here.");
838          }
839        }
840
841        public final com.google.protobuf.Message
842            getResponsePrototype(
843            com.google.protobuf.Descriptors.MethodDescriptor method) {
844          if (method.getService() != getDescriptor()) {
845            throw new java.lang.IllegalArgumentException(
846              "Service.getResponsePrototype() given method " +
847              "descriptor for wrong service type.");
848          }
849          switch(method.getIndex()) {
850            case 0:
851              return echo.EchoProto.EchoResponse.getDefaultInstance();
852            default:
853              throw new java.lang.AssertionError("Can't get here.");
854          }
855        }
856
857      };
858    }
859
860    public abstract void echo(
861        com.google.protobuf.RpcController controller,
862        echo.EchoProto.EchoRequest request,
863        com.google.protobuf.RpcCallback<echo.EchoProto.EchoResponse> done);
864
865    public static final
866        com.google.protobuf.Descriptors.ServiceDescriptor
867        getDescriptor() {
868      return echo.EchoProto.getDescriptor().getServices().get(0);
869    }
870    public final com.google.protobuf.Descriptors.ServiceDescriptor
871        getDescriptorForType() {
872      return getDescriptor();
873    }
874
875    public final void callMethod(
876        com.google.protobuf.Descriptors.MethodDescriptor method,
877        com.google.protobuf.RpcController controller,
878        com.google.protobuf.Message request,
879        com.google.protobuf.RpcCallback<
880          com.google.protobuf.Message> done) {
881      if (method.getService() != getDescriptor()) {
882        throw new java.lang.IllegalArgumentException(
883          "Service.callMethod() given method descriptor for wrong " +
884          "service type.");
885      }
886      switch(method.getIndex()) {
887        case 0:
888          this.echo(controller, (echo.EchoProto.EchoRequest)request,
889            com.google.protobuf.RpcUtil.<echo.EchoProto.EchoResponse>specializeCallback(
890              done));
891          return;
892        default:
893          throw new java.lang.AssertionError("Can't get here.");
894      }
895    }
896
897    public final com.google.protobuf.Message
898        getRequestPrototype(
899        com.google.protobuf.Descriptors.MethodDescriptor method) {
900      if (method.getService() != getDescriptor()) {
901        throw new java.lang.IllegalArgumentException(
902          "Service.getRequestPrototype() given method " +
903          "descriptor for wrong service type.");
904      }
905      switch(method.getIndex()) {
906        case 0:
907          return echo.EchoProto.EchoRequest.getDefaultInstance();
908        default:
909          throw new java.lang.AssertionError("Can't get here.");
910      }
911    }
912
913    public final com.google.protobuf.Message
914        getResponsePrototype(
915        com.google.protobuf.Descriptors.MethodDescriptor method) {
916      if (method.getService() != getDescriptor()) {
917        throw new java.lang.IllegalArgumentException(
918          "Service.getResponsePrototype() given method " +
919          "descriptor for wrong service type.");
920      }
921      switch(method.getIndex()) {
922        case 0:
923          return echo.EchoProto.EchoResponse.getDefaultInstance();
924        default:
925          throw new java.lang.AssertionError("Can't get here.");
926      }
927    }
928
929    public static Stub newStub(
930        com.google.protobuf.RpcChannel channel) {
931      return new Stub(channel);
932    }
933
934    public static final class Stub extends echo.EchoProto.EchoService implements Interface {
935      private Stub(com.google.protobuf.RpcChannel channel) {
936        this.channel = channel;
937      }
938
939      private final com.google.protobuf.RpcChannel channel;
940
941      public com.google.protobuf.RpcChannel getChannel() {
942        return channel;
943      }
944
945      public  void echo(
946          com.google.protobuf.RpcController controller,
947          echo.EchoProto.EchoRequest request,
948          com.google.protobuf.RpcCallback<echo.EchoProto.EchoResponse> done) {
949        channel.callMethod(
950          getDescriptor().getMethods().get(0),
951          controller,
952          request,
953          echo.EchoProto.EchoResponse.getDefaultInstance(),
954          com.google.protobuf.RpcUtil.generalizeCallback(
955            done,
956            echo.EchoProto.EchoResponse.class,
957            echo.EchoProto.EchoResponse.getDefaultInstance()));
958      }
959    }
960
961    public static BlockingInterface newBlockingStub(
962        com.google.protobuf.BlockingRpcChannel channel) {
963      return new BlockingStub(channel);
964    }
965
966    public interface BlockingInterface {
967      public echo.EchoProto.EchoResponse echo(
968          com.google.protobuf.RpcController controller,
969          echo.EchoProto.EchoRequest request)
970          throws com.google.protobuf.ServiceException;
971    }
972
973    private static final class BlockingStub implements BlockingInterface {
974      private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
975        this.channel = channel;
976      }
977
978      private final com.google.protobuf.BlockingRpcChannel channel;
979
980      public echo.EchoProto.EchoResponse echo(
981          com.google.protobuf.RpcController controller,
982          echo.EchoProto.EchoRequest request)
983          throws com.google.protobuf.ServiceException {
984        return (echo.EchoProto.EchoResponse) channel.callBlockingMethod(
985          getDescriptor().getMethods().get(0),
986          controller,
987          request,
988          echo.EchoProto.EchoResponse.getDefaultInstance());
989      }
990
991    }
992  }
993
994  private static com.google.protobuf.Descriptors.Descriptor
995    internal_static_echo_EchoRequest_descriptor;
996  private static
997    com.google.protobuf.GeneratedMessage.FieldAccessorTable
998      internal_static_echo_EchoRequest_fieldAccessorTable;
999  private static com.google.protobuf.Descriptors.Descriptor
1000    internal_static_echo_EchoResponse_descriptor;
1001  private static
1002    com.google.protobuf.GeneratedMessage.FieldAccessorTable
1003      internal_static_echo_EchoResponse_fieldAccessorTable;
1004
1005  public static com.google.protobuf.Descriptors.FileDescriptor
1006      getDescriptor() {
1007    return descriptor;
1008  }
1009  private static com.google.protobuf.Descriptors.FileDescriptor
1010      descriptor;
1011  static {
1012    java.lang.String[] descriptorData = {
1013      "\n\necho.proto\022\004echo\"\036\n\013EchoRequest\022\017\n\007pay" +
1014      "load\030\001 \002(\t\"\037\n\014EchoResponse\022\017\n\007payload\030\002 " +
1015      "\002(\t2<\n\013EchoService\022-\n\004Echo\022\021.echo.EchoRe" +
1016      "quest\032\022.echo.EchoResponseB\024\n\004echoB\tEchoP" +
1017      "roto\210\001\001"
1018    };
1019    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1020      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1021        public com.google.protobuf.ExtensionRegistry assignDescriptors(
1022            com.google.protobuf.Descriptors.FileDescriptor root) {
1023          descriptor = root;
1024          internal_static_echo_EchoRequest_descriptor =
1025            getDescriptor().getMessageTypes().get(0);
1026          internal_static_echo_EchoRequest_fieldAccessorTable = new
1027            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1028              internal_static_echo_EchoRequest_descriptor,
1029              new java.lang.String[] { "Payload", },
1030              echo.EchoProto.EchoRequest.class,
1031              echo.EchoProto.EchoRequest.Builder.class);
1032          internal_static_echo_EchoResponse_descriptor =
1033            getDescriptor().getMessageTypes().get(1);
1034          internal_static_echo_EchoResponse_fieldAccessorTable = new
1035            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1036              internal_static_echo_EchoResponse_descriptor,
1037              new java.lang.String[] { "Payload", },
1038              echo.EchoProto.EchoResponse.class,
1039              echo.EchoProto.EchoResponse.Builder.class);
1040          return null;
1041        }
1042      };
1043    com.google.protobuf.Descriptors.FileDescriptor
1044      .internalBuildGeneratedFileFrom(descriptorData,
1045        new com.google.protobuf.Descriptors.FileDescriptor[] {
1046        }, assigner);
1047  }
1048
1049  // @@protoc_insertion_point(outer_class_scope)
1050}
1051