EchoProto.java revision 415529de
1415529deSShuo Chen// Generated by the protocol buffer compiler.  DO NOT EDIT!
2415529deSShuo Chen// source: echo.proto
3415529deSShuo Chen
4415529deSShuo Chenpackage echo;
5415529deSShuo Chen
6415529deSShuo Chenpublic final class EchoProto {
7415529deSShuo Chen  private EchoProto() {}
8415529deSShuo Chen  public static void registerAllExtensions(
9415529deSShuo Chen      com.google.protobuf.ExtensionRegistry registry) {
10415529deSShuo Chen  }
11415529deSShuo Chen  public interface EchoRequestOrBuilder
12415529deSShuo Chen      extends com.google.protobuf.MessageOrBuilder {
13415529deSShuo Chen
14415529deSShuo Chen    // required string payload = 1;
15415529deSShuo Chen    boolean hasPayload();
16415529deSShuo Chen    String getPayload();
17415529deSShuo Chen  }
18415529deSShuo Chen  public static final class EchoRequest extends
19415529deSShuo Chen      com.google.protobuf.GeneratedMessage
20415529deSShuo Chen      implements EchoRequestOrBuilder {
21415529deSShuo Chen    // Use EchoRequest.newBuilder() to construct.
22415529deSShuo Chen    private EchoRequest(Builder builder) {
23415529deSShuo Chen      super(builder);
24415529deSShuo Chen    }
25415529deSShuo Chen    private EchoRequest(boolean noInit) {}
26415529deSShuo Chen
27415529deSShuo Chen    private static final EchoRequest defaultInstance;
28415529deSShuo Chen    public static EchoRequest getDefaultInstance() {
29415529deSShuo Chen      return defaultInstance;
30415529deSShuo Chen    }
31415529deSShuo Chen
32415529deSShuo Chen    public EchoRequest getDefaultInstanceForType() {
33415529deSShuo Chen      return defaultInstance;
34415529deSShuo Chen    }
35415529deSShuo Chen
36415529deSShuo Chen    public static final com.google.protobuf.Descriptors.Descriptor
37415529deSShuo Chen        getDescriptor() {
38415529deSShuo Chen      return echo.EchoProto.internal_static_echo_EchoRequest_descriptor;
39415529deSShuo Chen    }
40415529deSShuo Chen
41415529deSShuo Chen    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
42415529deSShuo Chen        internalGetFieldAccessorTable() {
43415529deSShuo Chen      return echo.EchoProto.internal_static_echo_EchoRequest_fieldAccessorTable;
44415529deSShuo Chen    }
45415529deSShuo Chen
46415529deSShuo Chen    private int bitField0_;
47415529deSShuo Chen    // required string payload = 1;
48415529deSShuo Chen    public static final int PAYLOAD_FIELD_NUMBER = 1;
49415529deSShuo Chen    private Object payload_;
50415529deSShuo Chen    public boolean hasPayload() {
51415529deSShuo Chen      return ((bitField0_ & 0x00000001) == 0x00000001);
52415529deSShuo Chen    }
53415529deSShuo Chen    public String getPayload() {
54415529deSShuo Chen      Object ref = payload_;
55415529deSShuo Chen      if (ref instanceof String) {
56415529deSShuo Chen        return (String) ref;
57415529deSShuo Chen      } else {
58415529deSShuo Chen        com.google.protobuf.ByteString bs =
59415529deSShuo Chen            (com.google.protobuf.ByteString) ref;
60415529deSShuo Chen        String s = bs.toStringUtf8();
61415529deSShuo Chen        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
62415529deSShuo Chen          payload_ = s;
63415529deSShuo Chen        }
64415529deSShuo Chen        return s;
65415529deSShuo Chen      }
66415529deSShuo Chen    }
67415529deSShuo Chen    private com.google.protobuf.ByteString getPayloadBytes() {
68415529deSShuo Chen      Object ref = payload_;
69415529deSShuo Chen      if (ref instanceof String) {
70415529deSShuo Chen        com.google.protobuf.ByteString b =
71415529deSShuo Chen            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
72415529deSShuo Chen        payload_ = b;
73415529deSShuo Chen        return b;
74415529deSShuo Chen      } else {
75415529deSShuo Chen        return (com.google.protobuf.ByteString) ref;
76415529deSShuo Chen      }
77415529deSShuo Chen    }
78415529deSShuo Chen
79415529deSShuo Chen    private void initFields() {
80415529deSShuo Chen      payload_ = "";
81415529deSShuo Chen    }
82415529deSShuo Chen    private byte memoizedIsInitialized = -1;
83415529deSShuo Chen    public final boolean isInitialized() {
84415529deSShuo Chen      byte isInitialized = memoizedIsInitialized;
85415529deSShuo Chen      if (isInitialized != -1) return isInitialized == 1;
86415529deSShuo Chen
87415529deSShuo Chen      if (!hasPayload()) {
88415529deSShuo Chen        memoizedIsInitialized = 0;
89415529deSShuo Chen        return false;
90415529deSShuo Chen      }
91415529deSShuo Chen      memoizedIsInitialized = 1;
92415529deSShuo Chen      return true;
93415529deSShuo Chen    }
94415529deSShuo Chen
95415529deSShuo Chen    public void writeTo(com.google.protobuf.CodedOutputStream output)
96415529deSShuo Chen                        throws java.io.IOException {
97415529deSShuo Chen      getSerializedSize();
98415529deSShuo Chen      if (((bitField0_ & 0x00000001) == 0x00000001)) {
99415529deSShuo Chen        output.writeBytes(1, getPayloadBytes());
100415529deSShuo Chen      }
101415529deSShuo Chen      getUnknownFields().writeTo(output);
102415529deSShuo Chen    }
103415529deSShuo Chen
104415529deSShuo Chen    private int memoizedSerializedSize = -1;
105415529deSShuo Chen    public int getSerializedSize() {
106415529deSShuo Chen      int size = memoizedSerializedSize;
107415529deSShuo Chen      if (size != -1) return size;
108415529deSShuo Chen
109415529deSShuo Chen      size = 0;
110415529deSShuo Chen      if (((bitField0_ & 0x00000001) == 0x00000001)) {
111415529deSShuo Chen        size += com.google.protobuf.CodedOutputStream
112415529deSShuo Chen          .computeBytesSize(1, getPayloadBytes());
113415529deSShuo Chen      }
114415529deSShuo Chen      size += getUnknownFields().getSerializedSize();
115415529deSShuo Chen      memoizedSerializedSize = size;
116415529deSShuo Chen      return size;
117415529deSShuo Chen    }
118415529deSShuo Chen
119415529deSShuo Chen    @java.lang.Override
120415529deSShuo Chen    protected Object writeReplace() throws java.io.ObjectStreamException {
121415529deSShuo Chen      return super.writeReplace();
122415529deSShuo Chen    }
123415529deSShuo Chen
124415529deSShuo Chen    public static echo.EchoProto.EchoRequest parseFrom(
125415529deSShuo Chen        com.google.protobuf.ByteString data)
126415529deSShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
127415529deSShuo Chen      return newBuilder().mergeFrom(data).buildParsed();
128415529deSShuo Chen    }
129415529deSShuo Chen    public static echo.EchoProto.EchoRequest parseFrom(
130415529deSShuo Chen        com.google.protobuf.ByteString data,
131415529deSShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
132415529deSShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
133415529deSShuo Chen      return newBuilder().mergeFrom(data, extensionRegistry)
134415529deSShuo Chen               .buildParsed();
135415529deSShuo Chen    }
136415529deSShuo Chen    public static echo.EchoProto.EchoRequest parseFrom(byte[] data)
137415529deSShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
138415529deSShuo Chen      return newBuilder().mergeFrom(data).buildParsed();
139415529deSShuo Chen    }
140415529deSShuo Chen    public static echo.EchoProto.EchoRequest parseFrom(
141415529deSShuo Chen        byte[] data,
142415529deSShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
143415529deSShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
144415529deSShuo Chen      return newBuilder().mergeFrom(data, extensionRegistry)
145415529deSShuo Chen               .buildParsed();
146415529deSShuo Chen    }
147415529deSShuo Chen    public static echo.EchoProto.EchoRequest parseFrom(java.io.InputStream input)
148415529deSShuo Chen        throws java.io.IOException {
149415529deSShuo Chen      return newBuilder().mergeFrom(input).buildParsed();
150415529deSShuo Chen    }
151415529deSShuo Chen    public static echo.EchoProto.EchoRequest parseFrom(
152415529deSShuo Chen        java.io.InputStream input,
153415529deSShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
154415529deSShuo Chen        throws java.io.IOException {
155415529deSShuo Chen      return newBuilder().mergeFrom(input, extensionRegistry)
156415529deSShuo Chen               .buildParsed();
157415529deSShuo Chen    }
158415529deSShuo Chen    public static echo.EchoProto.EchoRequest parseDelimitedFrom(java.io.InputStream input)
159415529deSShuo Chen        throws java.io.IOException {
160415529deSShuo Chen      Builder builder = newBuilder();
161415529deSShuo Chen      if (builder.mergeDelimitedFrom(input)) {
162415529deSShuo Chen        return builder.buildParsed();
163415529deSShuo Chen      } else {
164415529deSShuo Chen        return null;
165415529deSShuo Chen      }
166415529deSShuo Chen    }
167415529deSShuo Chen    public static echo.EchoProto.EchoRequest parseDelimitedFrom(
168415529deSShuo Chen        java.io.InputStream input,
169415529deSShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
170415529deSShuo Chen        throws java.io.IOException {
171415529deSShuo Chen      Builder builder = newBuilder();
172415529deSShuo Chen      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
173415529deSShuo Chen        return builder.buildParsed();
174415529deSShuo Chen      } else {
175415529deSShuo Chen        return null;
176415529deSShuo Chen      }
177415529deSShuo Chen    }
178415529deSShuo Chen    public static echo.EchoProto.EchoRequest parseFrom(
179415529deSShuo Chen        com.google.protobuf.CodedInputStream input)
180415529deSShuo Chen        throws java.io.IOException {
181415529deSShuo Chen      return newBuilder().mergeFrom(input).buildParsed();
182415529deSShuo Chen    }
183415529deSShuo Chen    public static echo.EchoProto.EchoRequest parseFrom(
184415529deSShuo Chen        com.google.protobuf.CodedInputStream input,
185415529deSShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
186415529deSShuo Chen        throws java.io.IOException {
187415529deSShuo Chen      return newBuilder().mergeFrom(input, extensionRegistry)
188415529deSShuo Chen               .buildParsed();
189415529deSShuo Chen    }
190415529deSShuo Chen
191415529deSShuo Chen    public static Builder newBuilder() { return Builder.create(); }
192415529deSShuo Chen    public Builder newBuilderForType() { return newBuilder(); }
193415529deSShuo Chen    public static Builder newBuilder(echo.EchoProto.EchoRequest prototype) {
194415529deSShuo Chen      return newBuilder().mergeFrom(prototype);
195415529deSShuo Chen    }
196415529deSShuo Chen    public Builder toBuilder() { return newBuilder(this); }
197415529deSShuo Chen
198415529deSShuo Chen    @java.lang.Override
199415529deSShuo Chen    protected Builder newBuilderForType(
200415529deSShuo Chen        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
201415529deSShuo Chen      Builder builder = new Builder(parent);
202415529deSShuo Chen      return builder;
203415529deSShuo Chen    }
204415529deSShuo Chen    public static final class Builder extends
205415529deSShuo Chen        com.google.protobuf.GeneratedMessage.Builder<Builder>
206415529deSShuo Chen       implements echo.EchoProto.EchoRequestOrBuilder {
207415529deSShuo Chen      public static final com.google.protobuf.Descriptors.Descriptor
208415529deSShuo Chen          getDescriptor() {
209415529deSShuo Chen        return echo.EchoProto.internal_static_echo_EchoRequest_descriptor;
210415529deSShuo Chen      }
211415529deSShuo Chen
212415529deSShuo Chen      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
213415529deSShuo Chen          internalGetFieldAccessorTable() {
214415529deSShuo Chen        return echo.EchoProto.internal_static_echo_EchoRequest_fieldAccessorTable;
215415529deSShuo Chen      }
216415529deSShuo Chen
217415529deSShuo Chen      // Construct using echo.EchoProto.EchoRequest.newBuilder()
218415529deSShuo Chen      private Builder() {
219415529deSShuo Chen        maybeForceBuilderInitialization();
220415529deSShuo Chen      }
221415529deSShuo Chen
222415529deSShuo Chen      private Builder(BuilderParent parent) {
223415529deSShuo Chen        super(parent);
224415529deSShuo Chen        maybeForceBuilderInitialization();
225415529deSShuo Chen      }
226415529deSShuo Chen      private void maybeForceBuilderInitialization() {
227415529deSShuo Chen        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
228415529deSShuo Chen        }
229415529deSShuo Chen      }
230415529deSShuo Chen      private static Builder create() {
231415529deSShuo Chen        return new Builder();
232415529deSShuo Chen      }
233415529deSShuo Chen
234415529deSShuo Chen      public Builder clear() {
235415529deSShuo Chen        super.clear();
236415529deSShuo Chen        payload_ = "";
237415529deSShuo Chen        bitField0_ = (bitField0_ & ~0x00000001);
238415529deSShuo Chen        return this;
239415529deSShuo Chen      }
240415529deSShuo Chen
241415529deSShuo Chen      public Builder clone() {
242415529deSShuo Chen        return create().mergeFrom(buildPartial());
243415529deSShuo Chen      }
244415529deSShuo Chen
245415529deSShuo Chen      public com.google.protobuf.Descriptors.Descriptor
246415529deSShuo Chen          getDescriptorForType() {
247415529deSShuo Chen        return echo.EchoProto.EchoRequest.getDescriptor();
248415529deSShuo Chen      }
249415529deSShuo Chen
250415529deSShuo Chen      public echo.EchoProto.EchoRequest getDefaultInstanceForType() {
251415529deSShuo Chen        return echo.EchoProto.EchoRequest.getDefaultInstance();
252415529deSShuo Chen      }
253415529deSShuo Chen
254415529deSShuo Chen      public echo.EchoProto.EchoRequest build() {
255415529deSShuo Chen        echo.EchoProto.EchoRequest result = buildPartial();
256415529deSShuo Chen        if (!result.isInitialized()) {
257415529deSShuo Chen          throw newUninitializedMessageException(result);
258415529deSShuo Chen        }
259415529deSShuo Chen        return result;
260415529deSShuo Chen      }
261415529deSShuo Chen
262415529deSShuo Chen      private echo.EchoProto.EchoRequest buildParsed()
263415529deSShuo Chen          throws com.google.protobuf.InvalidProtocolBufferException {
264415529deSShuo Chen        echo.EchoProto.EchoRequest result = buildPartial();
265415529deSShuo Chen        if (!result.isInitialized()) {
266415529deSShuo Chen          throw newUninitializedMessageException(
267415529deSShuo Chen            result).asInvalidProtocolBufferException();
268415529deSShuo Chen        }
269415529deSShuo Chen        return result;
270415529deSShuo Chen      }
271415529deSShuo Chen
272415529deSShuo Chen      public echo.EchoProto.EchoRequest buildPartial() {
273415529deSShuo Chen        echo.EchoProto.EchoRequest result = new echo.EchoProto.EchoRequest(this);
274415529deSShuo Chen        int from_bitField0_ = bitField0_;
275415529deSShuo Chen        int to_bitField0_ = 0;
276415529deSShuo Chen        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
277415529deSShuo Chen          to_bitField0_ |= 0x00000001;
278415529deSShuo Chen        }
279415529deSShuo Chen        result.payload_ = payload_;
280415529deSShuo Chen        result.bitField0_ = to_bitField0_;
281415529deSShuo Chen        onBuilt();
282415529deSShuo Chen        return result;
283415529deSShuo Chen      }
284415529deSShuo Chen
285415529deSShuo Chen      public Builder mergeFrom(com.google.protobuf.Message other) {
286415529deSShuo Chen        if (other instanceof echo.EchoProto.EchoRequest) {
287415529deSShuo Chen          return mergeFrom((echo.EchoProto.EchoRequest)other);
288415529deSShuo Chen        } else {
289415529deSShuo Chen          super.mergeFrom(other);
290415529deSShuo Chen          return this;
291415529deSShuo Chen        }
292415529deSShuo Chen      }
293415529deSShuo Chen
294415529deSShuo Chen      public Builder mergeFrom(echo.EchoProto.EchoRequest other) {
295415529deSShuo Chen        if (other == echo.EchoProto.EchoRequest.getDefaultInstance()) return this;
296415529deSShuo Chen        if (other.hasPayload()) {
297415529deSShuo Chen          setPayload(other.getPayload());
298415529deSShuo Chen        }
299415529deSShuo Chen        this.mergeUnknownFields(other.getUnknownFields());
300415529deSShuo Chen        return this;
301415529deSShuo Chen      }
302415529deSShuo Chen
303415529deSShuo Chen      public final boolean isInitialized() {
304415529deSShuo Chen        if (!hasPayload()) {
305415529deSShuo Chen
306415529deSShuo Chen          return false;
307415529deSShuo Chen        }
308415529deSShuo Chen        return true;
309415529deSShuo Chen      }
310415529deSShuo Chen
311415529deSShuo Chen      public Builder mergeFrom(
312415529deSShuo Chen          com.google.protobuf.CodedInputStream input,
313415529deSShuo Chen          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
314415529deSShuo Chen          throws java.io.IOException {
315415529deSShuo Chen        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
316415529deSShuo Chen          com.google.protobuf.UnknownFieldSet.newBuilder(
317415529deSShuo Chen            this.getUnknownFields());
318415529deSShuo Chen        while (true) {
319415529deSShuo Chen          int tag = input.readTag();
320415529deSShuo Chen          switch (tag) {
321415529deSShuo Chen            case 0:
322415529deSShuo Chen              this.setUnknownFields(unknownFields.build());
323415529deSShuo Chen              onChanged();
324415529deSShuo Chen              return this;
325415529deSShuo Chen            default: {
326415529deSShuo Chen              if (!parseUnknownField(input, unknownFields,
327415529deSShuo Chen                                     extensionRegistry, tag)) {
328415529deSShuo Chen                this.setUnknownFields(unknownFields.build());
329415529deSShuo Chen                onChanged();
330415529deSShuo Chen                return this;
331415529deSShuo Chen              }
332415529deSShuo Chen              break;
333415529deSShuo Chen            }
334415529deSShuo Chen            case 10: {
335415529deSShuo Chen              bitField0_ |= 0x00000001;
336415529deSShuo Chen              payload_ = input.readBytes();
337415529deSShuo Chen              break;
338415529deSShuo Chen            }
339415529deSShuo Chen          }
340415529deSShuo Chen        }
341415529deSShuo Chen      }
342415529deSShuo Chen
343415529deSShuo Chen      private int bitField0_;
344415529deSShuo Chen
345415529deSShuo Chen      // required string payload = 1;
346415529deSShuo Chen      private Object payload_ = "";
347415529deSShuo Chen      public boolean hasPayload() {
348415529deSShuo Chen        return ((bitField0_ & 0x00000001) == 0x00000001);
349415529deSShuo Chen      }
350415529deSShuo Chen      public String getPayload() {
351415529deSShuo Chen        Object ref = payload_;
352415529deSShuo Chen        if (!(ref instanceof String)) {
353415529deSShuo Chen          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
354415529deSShuo Chen          payload_ = s;
355415529deSShuo Chen          return s;
356415529deSShuo Chen        } else {
357415529deSShuo Chen          return (String) ref;
358415529deSShuo Chen        }
359415529deSShuo Chen      }
360415529deSShuo Chen      public Builder setPayload(String value) {
361415529deSShuo Chen        if (value == null) {
362415529deSShuo Chen    throw new NullPointerException();
363415529deSShuo Chen  }
364415529deSShuo Chen  bitField0_ |= 0x00000001;
365415529deSShuo Chen        payload_ = value;
366415529deSShuo Chen        onChanged();
367415529deSShuo Chen        return this;
368415529deSShuo Chen      }
369415529deSShuo Chen      public Builder clearPayload() {
370415529deSShuo Chen        bitField0_ = (bitField0_ & ~0x00000001);
371415529deSShuo Chen        payload_ = getDefaultInstance().getPayload();
372415529deSShuo Chen        onChanged();
373415529deSShuo Chen        return this;
374415529deSShuo Chen      }
375415529deSShuo Chen      void setPayload(com.google.protobuf.ByteString value) {
376415529deSShuo Chen        bitField0_ |= 0x00000001;
377415529deSShuo Chen        payload_ = value;
378415529deSShuo Chen        onChanged();
379415529deSShuo Chen      }
380415529deSShuo Chen
381415529deSShuo Chen      // @@protoc_insertion_point(builder_scope:echo.EchoRequest)
382415529deSShuo Chen    }
383415529deSShuo Chen
384415529deSShuo Chen    static {
385415529deSShuo Chen      defaultInstance = new EchoRequest(true);
386415529deSShuo Chen      defaultInstance.initFields();
387415529deSShuo Chen    }
388415529deSShuo Chen
389415529deSShuo Chen    // @@protoc_insertion_point(class_scope:echo.EchoRequest)
390415529deSShuo Chen  }
391415529deSShuo Chen
392415529deSShuo Chen  public interface EchoResponseOrBuilder
393415529deSShuo Chen      extends com.google.protobuf.MessageOrBuilder {
394415529deSShuo Chen
395415529deSShuo Chen    // required string payload = 2;
396415529deSShuo Chen    boolean hasPayload();
397415529deSShuo Chen    String getPayload();
398415529deSShuo Chen  }
399415529deSShuo Chen  public static final class EchoResponse extends
400415529deSShuo Chen      com.google.protobuf.GeneratedMessage
401415529deSShuo Chen      implements EchoResponseOrBuilder {
402415529deSShuo Chen    // Use EchoResponse.newBuilder() to construct.
403415529deSShuo Chen    private EchoResponse(Builder builder) {
404415529deSShuo Chen      super(builder);
405415529deSShuo Chen    }
406415529deSShuo Chen    private EchoResponse(boolean noInit) {}
407415529deSShuo Chen
408415529deSShuo Chen    private static final EchoResponse defaultInstance;
409415529deSShuo Chen    public static EchoResponse getDefaultInstance() {
410415529deSShuo Chen      return defaultInstance;
411415529deSShuo Chen    }
412415529deSShuo Chen
413415529deSShuo Chen    public EchoResponse getDefaultInstanceForType() {
414415529deSShuo Chen      return defaultInstance;
415415529deSShuo Chen    }
416415529deSShuo Chen
417415529deSShuo Chen    public static final com.google.protobuf.Descriptors.Descriptor
418415529deSShuo Chen        getDescriptor() {
419415529deSShuo Chen      return echo.EchoProto.internal_static_echo_EchoResponse_descriptor;
420415529deSShuo Chen    }
421415529deSShuo Chen
422415529deSShuo Chen    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
423415529deSShuo Chen        internalGetFieldAccessorTable() {
424415529deSShuo Chen      return echo.EchoProto.internal_static_echo_EchoResponse_fieldAccessorTable;
425415529deSShuo Chen    }
426415529deSShuo Chen
427415529deSShuo Chen    private int bitField0_;
428415529deSShuo Chen    // required string payload = 2;
429415529deSShuo Chen    public static final int PAYLOAD_FIELD_NUMBER = 2;
430415529deSShuo Chen    private Object payload_;
431415529deSShuo Chen    public boolean hasPayload() {
432415529deSShuo Chen      return ((bitField0_ & 0x00000001) == 0x00000001);
433415529deSShuo Chen    }
434415529deSShuo Chen    public String getPayload() {
435415529deSShuo Chen      Object ref = payload_;
436415529deSShuo Chen      if (ref instanceof String) {
437415529deSShuo Chen        return (String) ref;
438415529deSShuo Chen      } else {
439415529deSShuo Chen        com.google.protobuf.ByteString bs =
440415529deSShuo Chen            (com.google.protobuf.ByteString) ref;
441415529deSShuo Chen        String s = bs.toStringUtf8();
442415529deSShuo Chen        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
443415529deSShuo Chen          payload_ = s;
444415529deSShuo Chen        }
445415529deSShuo Chen        return s;
446415529deSShuo Chen      }
447415529deSShuo Chen    }
448415529deSShuo Chen    private com.google.protobuf.ByteString getPayloadBytes() {
449415529deSShuo Chen      Object ref = payload_;
450415529deSShuo Chen      if (ref instanceof String) {
451415529deSShuo Chen        com.google.protobuf.ByteString b =
452415529deSShuo Chen            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
453415529deSShuo Chen        payload_ = b;
454415529deSShuo Chen        return b;
455415529deSShuo Chen      } else {
456415529deSShuo Chen        return (com.google.protobuf.ByteString) ref;
457415529deSShuo Chen      }
458415529deSShuo Chen    }
459415529deSShuo Chen
460415529deSShuo Chen    private void initFields() {
461415529deSShuo Chen      payload_ = "";
462415529deSShuo Chen    }
463415529deSShuo Chen    private byte memoizedIsInitialized = -1;
464415529deSShuo Chen    public final boolean isInitialized() {
465415529deSShuo Chen      byte isInitialized = memoizedIsInitialized;
466415529deSShuo Chen      if (isInitialized != -1) return isInitialized == 1;
467415529deSShuo Chen
468415529deSShuo Chen      if (!hasPayload()) {
469415529deSShuo Chen        memoizedIsInitialized = 0;
470415529deSShuo Chen        return false;
471415529deSShuo Chen      }
472415529deSShuo Chen      memoizedIsInitialized = 1;
473415529deSShuo Chen      return true;
474415529deSShuo Chen    }
475415529deSShuo Chen
476415529deSShuo Chen    public void writeTo(com.google.protobuf.CodedOutputStream output)
477415529deSShuo Chen                        throws java.io.IOException {
478415529deSShuo Chen      getSerializedSize();
479415529deSShuo Chen      if (((bitField0_ & 0x00000001) == 0x00000001)) {
480415529deSShuo Chen        output.writeBytes(2, getPayloadBytes());
481415529deSShuo Chen      }
482415529deSShuo Chen      getUnknownFields().writeTo(output);
483415529deSShuo Chen    }
484415529deSShuo Chen
485415529deSShuo Chen    private int memoizedSerializedSize = -1;
486415529deSShuo Chen    public int getSerializedSize() {
487415529deSShuo Chen      int size = memoizedSerializedSize;
488415529deSShuo Chen      if (size != -1) return size;
489415529deSShuo Chen
490415529deSShuo Chen      size = 0;
491415529deSShuo Chen      if (((bitField0_ & 0x00000001) == 0x00000001)) {
492415529deSShuo Chen        size += com.google.protobuf.CodedOutputStream
493415529deSShuo Chen          .computeBytesSize(2, getPayloadBytes());
494415529deSShuo Chen      }
495415529deSShuo Chen      size += getUnknownFields().getSerializedSize();
496415529deSShuo Chen      memoizedSerializedSize = size;
497415529deSShuo Chen      return size;
498415529deSShuo Chen    }
499415529deSShuo Chen
500415529deSShuo Chen    @java.lang.Override
501415529deSShuo Chen    protected Object writeReplace() throws java.io.ObjectStreamException {
502415529deSShuo Chen      return super.writeReplace();
503415529deSShuo Chen    }
504415529deSShuo Chen
505415529deSShuo Chen    public static echo.EchoProto.EchoResponse parseFrom(
506415529deSShuo Chen        com.google.protobuf.ByteString data)
507415529deSShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
508415529deSShuo Chen      return newBuilder().mergeFrom(data).buildParsed();
509415529deSShuo Chen    }
510415529deSShuo Chen    public static echo.EchoProto.EchoResponse parseFrom(
511415529deSShuo Chen        com.google.protobuf.ByteString data,
512415529deSShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
513415529deSShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
514415529deSShuo Chen      return newBuilder().mergeFrom(data, extensionRegistry)
515415529deSShuo Chen               .buildParsed();
516415529deSShuo Chen    }
517415529deSShuo Chen    public static echo.EchoProto.EchoResponse parseFrom(byte[] data)
518415529deSShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
519415529deSShuo Chen      return newBuilder().mergeFrom(data).buildParsed();
520415529deSShuo Chen    }
521415529deSShuo Chen    public static echo.EchoProto.EchoResponse parseFrom(
522415529deSShuo Chen        byte[] data,
523415529deSShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
524415529deSShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
525415529deSShuo Chen      return newBuilder().mergeFrom(data, extensionRegistry)
526415529deSShuo Chen               .buildParsed();
527415529deSShuo Chen    }
528415529deSShuo Chen    public static echo.EchoProto.EchoResponse parseFrom(java.io.InputStream input)
529415529deSShuo Chen        throws java.io.IOException {
530415529deSShuo Chen      return newBuilder().mergeFrom(input).buildParsed();
531415529deSShuo Chen    }
532415529deSShuo Chen    public static echo.EchoProto.EchoResponse parseFrom(
533415529deSShuo Chen        java.io.InputStream input,
534415529deSShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
535415529deSShuo Chen        throws java.io.IOException {
536415529deSShuo Chen      return newBuilder().mergeFrom(input, extensionRegistry)
537415529deSShuo Chen               .buildParsed();
538415529deSShuo Chen    }
539415529deSShuo Chen    public static echo.EchoProto.EchoResponse parseDelimitedFrom(java.io.InputStream input)
540415529deSShuo Chen        throws java.io.IOException {
541415529deSShuo Chen      Builder builder = newBuilder();
542415529deSShuo Chen      if (builder.mergeDelimitedFrom(input)) {
543415529deSShuo Chen        return builder.buildParsed();
544415529deSShuo Chen      } else {
545415529deSShuo Chen        return null;
546415529deSShuo Chen      }
547415529deSShuo Chen    }
548415529deSShuo Chen    public static echo.EchoProto.EchoResponse parseDelimitedFrom(
549415529deSShuo Chen        java.io.InputStream input,
550415529deSShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
551415529deSShuo Chen        throws java.io.IOException {
552415529deSShuo Chen      Builder builder = newBuilder();
553415529deSShuo Chen      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
554415529deSShuo Chen        return builder.buildParsed();
555415529deSShuo Chen      } else {
556415529deSShuo Chen        return null;
557415529deSShuo Chen      }
558415529deSShuo Chen    }
559415529deSShuo Chen    public static echo.EchoProto.EchoResponse parseFrom(
560415529deSShuo Chen        com.google.protobuf.CodedInputStream input)
561415529deSShuo Chen        throws java.io.IOException {
562415529deSShuo Chen      return newBuilder().mergeFrom(input).buildParsed();
563415529deSShuo Chen    }
564415529deSShuo Chen    public static echo.EchoProto.EchoResponse parseFrom(
565415529deSShuo Chen        com.google.protobuf.CodedInputStream input,
566415529deSShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
567415529deSShuo Chen        throws java.io.IOException {
568415529deSShuo Chen      return newBuilder().mergeFrom(input, extensionRegistry)
569415529deSShuo Chen               .buildParsed();
570415529deSShuo Chen    }
571415529deSShuo Chen
572415529deSShuo Chen    public static Builder newBuilder() { return Builder.create(); }
573415529deSShuo Chen    public Builder newBuilderForType() { return newBuilder(); }
574415529deSShuo Chen    public static Builder newBuilder(echo.EchoProto.EchoResponse prototype) {
575415529deSShuo Chen      return newBuilder().mergeFrom(prototype);
576415529deSShuo Chen    }
577415529deSShuo Chen    public Builder toBuilder() { return newBuilder(this); }
578415529deSShuo Chen
579415529deSShuo Chen    @java.lang.Override
580415529deSShuo Chen    protected Builder newBuilderForType(
581415529deSShuo Chen        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
582415529deSShuo Chen      Builder builder = new Builder(parent);
583415529deSShuo Chen      return builder;
584415529deSShuo Chen    }
585415529deSShuo Chen    public static final class Builder extends
586415529deSShuo Chen        com.google.protobuf.GeneratedMessage.Builder<Builder>
587415529deSShuo Chen       implements echo.EchoProto.EchoResponseOrBuilder {
588415529deSShuo Chen      public static final com.google.protobuf.Descriptors.Descriptor
589415529deSShuo Chen          getDescriptor() {
590415529deSShuo Chen        return echo.EchoProto.internal_static_echo_EchoResponse_descriptor;
591415529deSShuo Chen      }
592415529deSShuo Chen
593415529deSShuo Chen      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
594415529deSShuo Chen          internalGetFieldAccessorTable() {
595415529deSShuo Chen        return echo.EchoProto.internal_static_echo_EchoResponse_fieldAccessorTable;
596415529deSShuo Chen      }
597415529deSShuo Chen
598415529deSShuo Chen      // Construct using echo.EchoProto.EchoResponse.newBuilder()
599415529deSShuo Chen      private Builder() {
600415529deSShuo Chen        maybeForceBuilderInitialization();
601415529deSShuo Chen      }
602415529deSShuo Chen
603415529deSShuo Chen      private Builder(BuilderParent parent) {
604415529deSShuo Chen        super(parent);
605415529deSShuo Chen        maybeForceBuilderInitialization();
606415529deSShuo Chen      }
607415529deSShuo Chen      private void maybeForceBuilderInitialization() {
608415529deSShuo Chen        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
609415529deSShuo Chen        }
610415529deSShuo Chen      }
611415529deSShuo Chen      private static Builder create() {
612415529deSShuo Chen        return new Builder();
613415529deSShuo Chen      }
614415529deSShuo Chen
615415529deSShuo Chen      public Builder clear() {
616415529deSShuo Chen        super.clear();
617415529deSShuo Chen        payload_ = "";
618415529deSShuo Chen        bitField0_ = (bitField0_ & ~0x00000001);
619415529deSShuo Chen        return this;
620415529deSShuo Chen      }
621415529deSShuo Chen
622415529deSShuo Chen      public Builder clone() {
623415529deSShuo Chen        return create().mergeFrom(buildPartial());
624415529deSShuo Chen      }
625415529deSShuo Chen
626415529deSShuo Chen      public com.google.protobuf.Descriptors.Descriptor
627415529deSShuo Chen          getDescriptorForType() {
628415529deSShuo Chen        return echo.EchoProto.EchoResponse.getDescriptor();
629415529deSShuo Chen      }
630415529deSShuo Chen
631415529deSShuo Chen      public echo.EchoProto.EchoResponse getDefaultInstanceForType() {
632415529deSShuo Chen        return echo.EchoProto.EchoResponse.getDefaultInstance();
633415529deSShuo Chen      }
634415529deSShuo Chen
635415529deSShuo Chen      public echo.EchoProto.EchoResponse build() {
636415529deSShuo Chen        echo.EchoProto.EchoResponse result = buildPartial();
637415529deSShuo Chen        if (!result.isInitialized()) {
638415529deSShuo Chen          throw newUninitializedMessageException(result);
639415529deSShuo Chen        }
640415529deSShuo Chen        return result;
641415529deSShuo Chen      }
642415529deSShuo Chen
643415529deSShuo Chen      private echo.EchoProto.EchoResponse buildParsed()
644415529deSShuo Chen          throws com.google.protobuf.InvalidProtocolBufferException {
645415529deSShuo Chen        echo.EchoProto.EchoResponse result = buildPartial();
646415529deSShuo Chen        if (!result.isInitialized()) {
647415529deSShuo Chen          throw newUninitializedMessageException(
648415529deSShuo Chen            result).asInvalidProtocolBufferException();
649415529deSShuo Chen        }
650415529deSShuo Chen        return result;
651415529deSShuo Chen      }
652415529deSShuo Chen
653415529deSShuo Chen      public echo.EchoProto.EchoResponse buildPartial() {
654415529deSShuo Chen        echo.EchoProto.EchoResponse result = new echo.EchoProto.EchoResponse(this);
655415529deSShuo Chen        int from_bitField0_ = bitField0_;
656415529deSShuo Chen        int to_bitField0_ = 0;
657415529deSShuo Chen        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
658415529deSShuo Chen          to_bitField0_ |= 0x00000001;
659415529deSShuo Chen        }
660415529deSShuo Chen        result.payload_ = payload_;
661415529deSShuo Chen        result.bitField0_ = to_bitField0_;
662415529deSShuo Chen        onBuilt();
663415529deSShuo Chen        return result;
664415529deSShuo Chen      }
665415529deSShuo Chen
666415529deSShuo Chen      public Builder mergeFrom(com.google.protobuf.Message other) {
667415529deSShuo Chen        if (other instanceof echo.EchoProto.EchoResponse) {
668415529deSShuo Chen          return mergeFrom((echo.EchoProto.EchoResponse)other);
669415529deSShuo Chen        } else {
670415529deSShuo Chen          super.mergeFrom(other);
671415529deSShuo Chen          return this;
672415529deSShuo Chen        }
673415529deSShuo Chen      }
674415529deSShuo Chen
675415529deSShuo Chen      public Builder mergeFrom(echo.EchoProto.EchoResponse other) {
676415529deSShuo Chen        if (other == echo.EchoProto.EchoResponse.getDefaultInstance()) return this;
677415529deSShuo Chen        if (other.hasPayload()) {
678415529deSShuo Chen          setPayload(other.getPayload());
679415529deSShuo Chen        }
680415529deSShuo Chen        this.mergeUnknownFields(other.getUnknownFields());
681415529deSShuo Chen        return this;
682415529deSShuo Chen      }
683415529deSShuo Chen
684415529deSShuo Chen      public final boolean isInitialized() {
685415529deSShuo Chen        if (!hasPayload()) {
686415529deSShuo Chen
687415529deSShuo Chen          return false;
688415529deSShuo Chen        }
689415529deSShuo Chen        return true;
690415529deSShuo Chen      }
691415529deSShuo Chen
692415529deSShuo Chen      public Builder mergeFrom(
693415529deSShuo Chen          com.google.protobuf.CodedInputStream input,
694415529deSShuo Chen          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
695415529deSShuo Chen          throws java.io.IOException {
696415529deSShuo Chen        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
697415529deSShuo Chen          com.google.protobuf.UnknownFieldSet.newBuilder(
698415529deSShuo Chen            this.getUnknownFields());
699415529deSShuo Chen        while (true) {
700415529deSShuo Chen          int tag = input.readTag();
701415529deSShuo Chen          switch (tag) {
702415529deSShuo Chen            case 0:
703415529deSShuo Chen              this.setUnknownFields(unknownFields.build());
704415529deSShuo Chen              onChanged();
705415529deSShuo Chen              return this;
706415529deSShuo Chen            default: {
707415529deSShuo Chen              if (!parseUnknownField(input, unknownFields,
708415529deSShuo Chen                                     extensionRegistry, tag)) {
709415529deSShuo Chen                this.setUnknownFields(unknownFields.build());
710415529deSShuo Chen                onChanged();
711415529deSShuo Chen                return this;
712415529deSShuo Chen              }
713415529deSShuo Chen              break;
714415529deSShuo Chen            }
715415529deSShuo Chen            case 18: {
716415529deSShuo Chen              bitField0_ |= 0x00000001;
717415529deSShuo Chen              payload_ = input.readBytes();
718415529deSShuo Chen              break;
719415529deSShuo Chen            }
720415529deSShuo Chen          }
721415529deSShuo Chen        }
722415529deSShuo Chen      }
723415529deSShuo Chen
724415529deSShuo Chen      private int bitField0_;
725415529deSShuo Chen
726415529deSShuo Chen      // required string payload = 2;
727415529deSShuo Chen      private Object payload_ = "";
728415529deSShuo Chen      public boolean hasPayload() {
729415529deSShuo Chen        return ((bitField0_ & 0x00000001) == 0x00000001);
730415529deSShuo Chen      }
731415529deSShuo Chen      public String getPayload() {
732415529deSShuo Chen        Object ref = payload_;
733415529deSShuo Chen        if (!(ref instanceof String)) {
734415529deSShuo Chen          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
735415529deSShuo Chen          payload_ = s;
736415529deSShuo Chen          return s;
737415529deSShuo Chen        } else {
738415529deSShuo Chen          return (String) ref;
739415529deSShuo Chen        }
740415529deSShuo Chen      }
741415529deSShuo Chen      public Builder setPayload(String value) {
742415529deSShuo Chen        if (value == null) {
743415529deSShuo Chen    throw new NullPointerException();
744415529deSShuo Chen  }
745415529deSShuo Chen  bitField0_ |= 0x00000001;
746415529deSShuo Chen        payload_ = value;
747415529deSShuo Chen        onChanged();
748415529deSShuo Chen        return this;
749415529deSShuo Chen      }
750415529deSShuo Chen      public Builder clearPayload() {
751415529deSShuo Chen        bitField0_ = (bitField0_ & ~0x00000001);
752415529deSShuo Chen        payload_ = getDefaultInstance().getPayload();
753415529deSShuo Chen        onChanged();
754415529deSShuo Chen        return this;
755415529deSShuo Chen      }
756415529deSShuo Chen      void setPayload(com.google.protobuf.ByteString value) {
757415529deSShuo Chen        bitField0_ |= 0x00000001;
758415529deSShuo Chen        payload_ = value;
759415529deSShuo Chen        onChanged();
760415529deSShuo Chen      }
761415529deSShuo Chen
762415529deSShuo Chen      // @@protoc_insertion_point(builder_scope:echo.EchoResponse)
763415529deSShuo Chen    }
764415529deSShuo Chen
765415529deSShuo Chen    static {
766415529deSShuo Chen      defaultInstance = new EchoResponse(true);
767415529deSShuo Chen      defaultInstance.initFields();
768415529deSShuo Chen    }
769415529deSShuo Chen
770415529deSShuo Chen    // @@protoc_insertion_point(class_scope:echo.EchoResponse)
771415529deSShuo Chen  }
772415529deSShuo Chen
773415529deSShuo Chen  public static abstract class EchoService
774415529deSShuo Chen      implements com.google.protobuf.Service {
775415529deSShuo Chen    protected EchoService() {}
776415529deSShuo Chen
777415529deSShuo Chen    public interface Interface {
778415529deSShuo Chen      public abstract void echo(
779415529deSShuo Chen          com.google.protobuf.RpcController controller,
780415529deSShuo Chen          echo.EchoProto.EchoRequest request,
781415529deSShuo Chen          com.google.protobuf.RpcCallback<echo.EchoProto.EchoResponse> done);
782415529deSShuo Chen
783415529deSShuo Chen    }
784415529deSShuo Chen
785415529deSShuo Chen    public static com.google.protobuf.Service newReflectiveService(
786415529deSShuo Chen        final Interface impl) {
787415529deSShuo Chen      return new EchoService() {
788415529deSShuo Chen        @java.lang.Override
789415529deSShuo Chen        public  void echo(
790415529deSShuo Chen            com.google.protobuf.RpcController controller,
791415529deSShuo Chen            echo.EchoProto.EchoRequest request,
792415529deSShuo Chen            com.google.protobuf.RpcCallback<echo.EchoProto.EchoResponse> done) {
793415529deSShuo Chen          impl.echo(controller, request, done);
794415529deSShuo Chen        }
795415529deSShuo Chen
796415529deSShuo Chen      };
797415529deSShuo Chen    }
798415529deSShuo Chen
799415529deSShuo Chen    public static com.google.protobuf.BlockingService
800415529deSShuo Chen        newReflectiveBlockingService(final BlockingInterface impl) {
801415529deSShuo Chen      return new com.google.protobuf.BlockingService() {
802415529deSShuo Chen        public final com.google.protobuf.Descriptors.ServiceDescriptor
803415529deSShuo Chen            getDescriptorForType() {
804415529deSShuo Chen          return getDescriptor();
805415529deSShuo Chen        }
806415529deSShuo Chen
807415529deSShuo Chen        public final com.google.protobuf.Message callBlockingMethod(
808415529deSShuo Chen            com.google.protobuf.Descriptors.MethodDescriptor method,
809415529deSShuo Chen            com.google.protobuf.RpcController controller,
810415529deSShuo Chen            com.google.protobuf.Message request)
811415529deSShuo Chen            throws com.google.protobuf.ServiceException {
812415529deSShuo Chen          if (method.getService() != getDescriptor()) {
813415529deSShuo Chen            throw new java.lang.IllegalArgumentException(
814415529deSShuo Chen              "Service.callBlockingMethod() given method descriptor for " +
815415529deSShuo Chen              "wrong service type.");
816415529deSShuo Chen          }
817415529deSShuo Chen          switch(method.getIndex()) {
818415529deSShuo Chen            case 0:
819415529deSShuo Chen              return impl.echo(controller, (echo.EchoProto.EchoRequest)request);
820415529deSShuo Chen            default:
821415529deSShuo Chen              throw new java.lang.AssertionError("Can't get here.");
822415529deSShuo Chen          }
823415529deSShuo Chen        }
824415529deSShuo Chen
825415529deSShuo Chen        public final com.google.protobuf.Message
826415529deSShuo Chen            getRequestPrototype(
827415529deSShuo Chen            com.google.protobuf.Descriptors.MethodDescriptor method) {
828415529deSShuo Chen          if (method.getService() != getDescriptor()) {
829415529deSShuo Chen            throw new java.lang.IllegalArgumentException(
830415529deSShuo Chen              "Service.getRequestPrototype() given method " +
831415529deSShuo Chen              "descriptor for wrong service type.");
832415529deSShuo Chen          }
833415529deSShuo Chen          switch(method.getIndex()) {
834415529deSShuo Chen            case 0:
835415529deSShuo Chen              return echo.EchoProto.EchoRequest.getDefaultInstance();
836415529deSShuo Chen            default:
837415529deSShuo Chen              throw new java.lang.AssertionError("Can't get here.");
838415529deSShuo Chen          }
839415529deSShuo Chen        }
840415529deSShuo Chen
841415529deSShuo Chen        public final com.google.protobuf.Message
842415529deSShuo Chen            getResponsePrototype(
843415529deSShuo Chen            com.google.protobuf.Descriptors.MethodDescriptor method) {
844415529deSShuo Chen          if (method.getService() != getDescriptor()) {
845415529deSShuo Chen            throw new java.lang.IllegalArgumentException(
846415529deSShuo Chen              "Service.getResponsePrototype() given method " +
847415529deSShuo Chen              "descriptor for wrong service type.");
848415529deSShuo Chen          }
849415529deSShuo Chen          switch(method.getIndex()) {
850415529deSShuo Chen            case 0:
851415529deSShuo Chen              return echo.EchoProto.EchoResponse.getDefaultInstance();
852415529deSShuo Chen            default:
853415529deSShuo Chen              throw new java.lang.AssertionError("Can't get here.");
854415529deSShuo Chen          }
855415529deSShuo Chen        }
856415529deSShuo Chen
857415529deSShuo Chen      };
858415529deSShuo Chen    }
859415529deSShuo Chen
860415529deSShuo Chen    public abstract void echo(
861415529deSShuo Chen        com.google.protobuf.RpcController controller,
862415529deSShuo Chen        echo.EchoProto.EchoRequest request,
863415529deSShuo Chen        com.google.protobuf.RpcCallback<echo.EchoProto.EchoResponse> done);
864415529deSShuo Chen
865415529deSShuo Chen    public static final
866415529deSShuo Chen        com.google.protobuf.Descriptors.ServiceDescriptor
867415529deSShuo Chen        getDescriptor() {
868415529deSShuo Chen      return echo.EchoProto.getDescriptor().getServices().get(0);
869415529deSShuo Chen    }
870415529deSShuo Chen    public final com.google.protobuf.Descriptors.ServiceDescriptor
871415529deSShuo Chen        getDescriptorForType() {
872415529deSShuo Chen      return getDescriptor();
873415529deSShuo Chen    }
874415529deSShuo Chen
875415529deSShuo Chen    public final void callMethod(
876415529deSShuo Chen        com.google.protobuf.Descriptors.MethodDescriptor method,
877415529deSShuo Chen        com.google.protobuf.RpcController controller,
878415529deSShuo Chen        com.google.protobuf.Message request,
879415529deSShuo Chen        com.google.protobuf.RpcCallback<
880415529deSShuo Chen          com.google.protobuf.Message> done) {
881415529deSShuo Chen      if (method.getService() != getDescriptor()) {
882415529deSShuo Chen        throw new java.lang.IllegalArgumentException(
883415529deSShuo Chen          "Service.callMethod() given method descriptor for wrong " +
884415529deSShuo Chen          "service type.");
885415529deSShuo Chen      }
886415529deSShuo Chen      switch(method.getIndex()) {
887415529deSShuo Chen        case 0:
888415529deSShuo Chen          this.echo(controller, (echo.EchoProto.EchoRequest)request,
889415529deSShuo Chen            com.google.protobuf.RpcUtil.<echo.EchoProto.EchoResponse>specializeCallback(
890415529deSShuo Chen              done));
891415529deSShuo Chen          return;
892415529deSShuo Chen        default:
893415529deSShuo Chen          throw new java.lang.AssertionError("Can't get here.");
894415529deSShuo Chen      }
895415529deSShuo Chen    }
896415529deSShuo Chen
897415529deSShuo Chen    public final com.google.protobuf.Message
898415529deSShuo Chen        getRequestPrototype(
899415529deSShuo Chen        com.google.protobuf.Descriptors.MethodDescriptor method) {
900415529deSShuo Chen      if (method.getService() != getDescriptor()) {
901415529deSShuo Chen        throw new java.lang.IllegalArgumentException(
902415529deSShuo Chen          "Service.getRequestPrototype() given method " +
903415529deSShuo Chen          "descriptor for wrong service type.");
904415529deSShuo Chen      }
905415529deSShuo Chen      switch(method.getIndex()) {
906415529deSShuo Chen        case 0:
907415529deSShuo Chen          return echo.EchoProto.EchoRequest.getDefaultInstance();
908415529deSShuo Chen        default:
909415529deSShuo Chen          throw new java.lang.AssertionError("Can't get here.");
910415529deSShuo Chen      }
911415529deSShuo Chen    }
912415529deSShuo Chen
913415529deSShuo Chen    public final com.google.protobuf.Message
914415529deSShuo Chen        getResponsePrototype(
915415529deSShuo Chen        com.google.protobuf.Descriptors.MethodDescriptor method) {
916415529deSShuo Chen      if (method.getService() != getDescriptor()) {
917415529deSShuo Chen        throw new java.lang.IllegalArgumentException(
918415529deSShuo Chen          "Service.getResponsePrototype() given method " +
919415529deSShuo Chen          "descriptor for wrong service type.");
920415529deSShuo Chen      }
921415529deSShuo Chen      switch(method.getIndex()) {
922415529deSShuo Chen        case 0:
923415529deSShuo Chen          return echo.EchoProto.EchoResponse.getDefaultInstance();
924415529deSShuo Chen        default:
925415529deSShuo Chen          throw new java.lang.AssertionError("Can't get here.");
926415529deSShuo Chen      }
927415529deSShuo Chen    }
928415529deSShuo Chen
929415529deSShuo Chen    public static Stub newStub(
930415529deSShuo Chen        com.google.protobuf.RpcChannel channel) {
931415529deSShuo Chen      return new Stub(channel);
932415529deSShuo Chen    }
933415529deSShuo Chen
934415529deSShuo Chen    public static final class Stub extends echo.EchoProto.EchoService implements Interface {
935415529deSShuo Chen      private Stub(com.google.protobuf.RpcChannel channel) {
936415529deSShuo Chen        this.channel = channel;
937415529deSShuo Chen      }
938415529deSShuo Chen
939415529deSShuo Chen      private final com.google.protobuf.RpcChannel channel;
940415529deSShuo Chen
941415529deSShuo Chen      public com.google.protobuf.RpcChannel getChannel() {
942415529deSShuo Chen        return channel;
943415529deSShuo Chen      }
944415529deSShuo Chen
945415529deSShuo Chen      public  void echo(
946415529deSShuo Chen          com.google.protobuf.RpcController controller,
947415529deSShuo Chen          echo.EchoProto.EchoRequest request,
948415529deSShuo Chen          com.google.protobuf.RpcCallback<echo.EchoProto.EchoResponse> done) {
949415529deSShuo Chen        channel.callMethod(
950415529deSShuo Chen          getDescriptor().getMethods().get(0),
951415529deSShuo Chen          controller,
952415529deSShuo Chen          request,
953415529deSShuo Chen          echo.EchoProto.EchoResponse.getDefaultInstance(),
954415529deSShuo Chen          com.google.protobuf.RpcUtil.generalizeCallback(
955415529deSShuo Chen            done,
956415529deSShuo Chen            echo.EchoProto.EchoResponse.class,
957415529deSShuo Chen            echo.EchoProto.EchoResponse.getDefaultInstance()));
958415529deSShuo Chen      }
959415529deSShuo Chen    }
960415529deSShuo Chen
961415529deSShuo Chen    public static BlockingInterface newBlockingStub(
962415529deSShuo Chen        com.google.protobuf.BlockingRpcChannel channel) {
963415529deSShuo Chen      return new BlockingStub(channel);
964415529deSShuo Chen    }
965415529deSShuo Chen
966415529deSShuo Chen    public interface BlockingInterface {
967415529deSShuo Chen      public echo.EchoProto.EchoResponse echo(
968415529deSShuo Chen          com.google.protobuf.RpcController controller,
969415529deSShuo Chen          echo.EchoProto.EchoRequest request)
970415529deSShuo Chen          throws com.google.protobuf.ServiceException;
971415529deSShuo Chen    }
972415529deSShuo Chen
973415529deSShuo Chen    private static final class BlockingStub implements BlockingInterface {
974415529deSShuo Chen      private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
975415529deSShuo Chen        this.channel = channel;
976415529deSShuo Chen      }
977415529deSShuo Chen
978415529deSShuo Chen      private final com.google.protobuf.BlockingRpcChannel channel;
979415529deSShuo Chen
980415529deSShuo Chen      public echo.EchoProto.EchoResponse echo(
981415529deSShuo Chen          com.google.protobuf.RpcController controller,
982415529deSShuo Chen          echo.EchoProto.EchoRequest request)
983415529deSShuo Chen          throws com.google.protobuf.ServiceException {
984415529deSShuo Chen        return (echo.EchoProto.EchoResponse) channel.callBlockingMethod(
985415529deSShuo Chen          getDescriptor().getMethods().get(0),
986415529deSShuo Chen          controller,
987415529deSShuo Chen          request,
988415529deSShuo Chen          echo.EchoProto.EchoResponse.getDefaultInstance());
989415529deSShuo Chen      }
990415529deSShuo Chen
991415529deSShuo Chen    }
992415529deSShuo Chen  }
993415529deSShuo Chen
994415529deSShuo Chen  private static com.google.protobuf.Descriptors.Descriptor
995415529deSShuo Chen    internal_static_echo_EchoRequest_descriptor;
996415529deSShuo Chen  private static
997415529deSShuo Chen    com.google.protobuf.GeneratedMessage.FieldAccessorTable
998415529deSShuo Chen      internal_static_echo_EchoRequest_fieldAccessorTable;
999415529deSShuo Chen  private static com.google.protobuf.Descriptors.Descriptor
1000415529deSShuo Chen    internal_static_echo_EchoResponse_descriptor;
1001415529deSShuo Chen  private static
1002415529deSShuo Chen    com.google.protobuf.GeneratedMessage.FieldAccessorTable
1003415529deSShuo Chen      internal_static_echo_EchoResponse_fieldAccessorTable;
1004415529deSShuo Chen
1005415529deSShuo Chen  public static com.google.protobuf.Descriptors.FileDescriptor
1006415529deSShuo Chen      getDescriptor() {
1007415529deSShuo Chen    return descriptor;
1008415529deSShuo Chen  }
1009415529deSShuo Chen  private static com.google.protobuf.Descriptors.FileDescriptor
1010415529deSShuo Chen      descriptor;
1011415529deSShuo Chen  static {
1012415529deSShuo Chen    java.lang.String[] descriptorData = {
1013415529deSShuo Chen      "\n\necho.proto\022\004echo\"\036\n\013EchoRequest\022\017\n\007pay" +
1014415529deSShuo Chen      "load\030\001 \002(\t\"\037\n\014EchoResponse\022\017\n\007payload\030\002 " +
1015415529deSShuo Chen      "\002(\t2<\n\013EchoService\022-\n\004Echo\022\021.echo.EchoRe" +
1016415529deSShuo Chen      "quest\032\022.echo.EchoResponseB\024\n\004echoB\tEchoP" +
1017415529deSShuo Chen      "roto\210\001\001"
1018415529deSShuo Chen    };
1019415529deSShuo Chen    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1020415529deSShuo Chen      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1021415529deSShuo Chen        public com.google.protobuf.ExtensionRegistry assignDescriptors(
1022415529deSShuo Chen            com.google.protobuf.Descriptors.FileDescriptor root) {
1023415529deSShuo Chen          descriptor = root;
1024415529deSShuo Chen          internal_static_echo_EchoRequest_descriptor =
1025415529deSShuo Chen            getDescriptor().getMessageTypes().get(0);
1026415529deSShuo Chen          internal_static_echo_EchoRequest_fieldAccessorTable = new
1027415529deSShuo Chen            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1028415529deSShuo Chen              internal_static_echo_EchoRequest_descriptor,
1029415529deSShuo Chen              new java.lang.String[] { "Payload", },
1030415529deSShuo Chen              echo.EchoProto.EchoRequest.class,
1031415529deSShuo Chen              echo.EchoProto.EchoRequest.Builder.class);
1032415529deSShuo Chen          internal_static_echo_EchoResponse_descriptor =
1033415529deSShuo Chen            getDescriptor().getMessageTypes().get(1);
1034415529deSShuo Chen          internal_static_echo_EchoResponse_fieldAccessorTable = new
1035415529deSShuo Chen            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1036415529deSShuo Chen              internal_static_echo_EchoResponse_descriptor,
1037415529deSShuo Chen              new java.lang.String[] { "Payload", },
1038415529deSShuo Chen              echo.EchoProto.EchoResponse.class,
1039415529deSShuo Chen              echo.EchoProto.EchoResponse.Builder.class);
1040415529deSShuo Chen          return null;
1041415529deSShuo Chen        }
1042415529deSShuo Chen      };
1043415529deSShuo Chen    com.google.protobuf.Descriptors.FileDescriptor
1044415529deSShuo Chen      .internalBuildGeneratedFileFrom(descriptorData,
1045415529deSShuo Chen        new com.google.protobuf.Descriptors.FileDescriptor[] {
1046415529deSShuo Chen        }, assigner);
1047415529deSShuo Chen  }
1048415529deSShuo Chen
1049415529deSShuo Chen  // @@protoc_insertion_point(outer_class_scope)
1050415529deSShuo Chen}
1051