// Generated by the protocol buffer compiler. DO NOT EDIT! // source: echo.proto package echo; public final class EchoProto { private EchoProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface EchoRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string payload = 1; boolean hasPayload(); String getPayload(); } public static final class EchoRequest extends com.google.protobuf.GeneratedMessage implements EchoRequestOrBuilder { // Use EchoRequest.newBuilder() to construct. private EchoRequest(Builder builder) { super(builder); } private EchoRequest(boolean noInit) {} private static final EchoRequest defaultInstance; public static EchoRequest getDefaultInstance() { return defaultInstance; } public EchoRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return echo.EchoProto.internal_static_echo_EchoRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return echo.EchoProto.internal_static_echo_EchoRequest_fieldAccessorTable; } private int bitField0_; // required string payload = 1; public static final int PAYLOAD_FIELD_NUMBER = 1; private Object payload_; public boolean hasPayload() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getPayload() { Object ref = payload_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { payload_ = s; } return s; } } private com.google.protobuf.ByteString getPayloadBytes() { Object ref = payload_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); payload_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { payload_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasPayload()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getPayloadBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getPayloadBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static echo.EchoProto.EchoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static echo.EchoProto.EchoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static echo.EchoProto.EchoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static echo.EchoProto.EchoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static echo.EchoProto.EchoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static echo.EchoProto.EchoRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static echo.EchoProto.EchoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static echo.EchoProto.EchoRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static echo.EchoProto.EchoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static echo.EchoProto.EchoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(echo.EchoProto.EchoRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements echo.EchoProto.EchoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return echo.EchoProto.internal_static_echo_EchoRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return echo.EchoProto.internal_static_echo_EchoRequest_fieldAccessorTable; } // Construct using echo.EchoProto.EchoRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); payload_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return echo.EchoProto.EchoRequest.getDescriptor(); } public echo.EchoProto.EchoRequest getDefaultInstanceForType() { return echo.EchoProto.EchoRequest.getDefaultInstance(); } public echo.EchoProto.EchoRequest build() { echo.EchoProto.EchoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private echo.EchoProto.EchoRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { echo.EchoProto.EchoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public echo.EchoProto.EchoRequest buildPartial() { echo.EchoProto.EchoRequest result = new echo.EchoProto.EchoRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.payload_ = payload_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof echo.EchoProto.EchoRequest) { return mergeFrom((echo.EchoProto.EchoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(echo.EchoProto.EchoRequest other) { if (other == echo.EchoProto.EchoRequest.getDefaultInstance()) return this; if (other.hasPayload()) { setPayload(other.getPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasPayload()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; payload_ = input.readBytes(); break; } } } } private int bitField0_; // required string payload = 1; private Object payload_ = ""; public boolean hasPayload() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getPayload() { Object ref = payload_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); payload_ = s; return s; } else { return (String) ref; } } public Builder setPayload(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; payload_ = value; onChanged(); return this; } public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000001); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } void setPayload(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; payload_ = value; onChanged(); } // @@protoc_insertion_point(builder_scope:echo.EchoRequest) } static { defaultInstance = new EchoRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:echo.EchoRequest) } public interface EchoResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string payload = 2; boolean hasPayload(); String getPayload(); } public static final class EchoResponse extends com.google.protobuf.GeneratedMessage implements EchoResponseOrBuilder { // Use EchoResponse.newBuilder() to construct. private EchoResponse(Builder builder) { super(builder); } private EchoResponse(boolean noInit) {} private static final EchoResponse defaultInstance; public static EchoResponse getDefaultInstance() { return defaultInstance; } public EchoResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return echo.EchoProto.internal_static_echo_EchoResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return echo.EchoProto.internal_static_echo_EchoResponse_fieldAccessorTable; } private int bitField0_; // required string payload = 2; public static final int PAYLOAD_FIELD_NUMBER = 2; private Object payload_; public boolean hasPayload() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getPayload() { Object ref = payload_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { payload_ = s; } return s; } } private com.google.protobuf.ByteString getPayloadBytes() { Object ref = payload_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); payload_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { payload_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasPayload()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, getPayloadBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getPayloadBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static echo.EchoProto.EchoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static echo.EchoProto.EchoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static echo.EchoProto.EchoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static echo.EchoProto.EchoResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static echo.EchoProto.EchoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static echo.EchoProto.EchoResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static echo.EchoProto.EchoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static echo.EchoProto.EchoResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static echo.EchoProto.EchoResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static echo.EchoProto.EchoResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(echo.EchoProto.EchoResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements echo.EchoProto.EchoResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return echo.EchoProto.internal_static_echo_EchoResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return echo.EchoProto.internal_static_echo_EchoResponse_fieldAccessorTable; } // Construct using echo.EchoProto.EchoResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); payload_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return echo.EchoProto.EchoResponse.getDescriptor(); } public echo.EchoProto.EchoResponse getDefaultInstanceForType() { return echo.EchoProto.EchoResponse.getDefaultInstance(); } public echo.EchoProto.EchoResponse build() { echo.EchoProto.EchoResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private echo.EchoProto.EchoResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { echo.EchoProto.EchoResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public echo.EchoProto.EchoResponse buildPartial() { echo.EchoProto.EchoResponse result = new echo.EchoProto.EchoResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.payload_ = payload_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof echo.EchoProto.EchoResponse) { return mergeFrom((echo.EchoProto.EchoResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(echo.EchoProto.EchoResponse other) { if (other == echo.EchoProto.EchoResponse.getDefaultInstance()) return this; if (other.hasPayload()) { setPayload(other.getPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasPayload()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 18: { bitField0_ |= 0x00000001; payload_ = input.readBytes(); break; } } } } private int bitField0_; // required string payload = 2; private Object payload_ = ""; public boolean hasPayload() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getPayload() { Object ref = payload_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); payload_ = s; return s; } else { return (String) ref; } } public Builder setPayload(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; payload_ = value; onChanged(); return this; } public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000001); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } void setPayload(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; payload_ = value; onChanged(); } // @@protoc_insertion_point(builder_scope:echo.EchoResponse) } static { defaultInstance = new EchoResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:echo.EchoResponse) } public static abstract class EchoService implements com.google.protobuf.Service { protected EchoService() {} public interface Interface { public abstract void echo( com.google.protobuf.RpcController controller, echo.EchoProto.EchoRequest request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new EchoService() { @java.lang.Override public void echo( com.google.protobuf.RpcController controller, echo.EchoProto.EchoRequest request, com.google.protobuf.RpcCallback done) { impl.echo(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.echo(controller, (echo.EchoProto.EchoRequest)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return echo.EchoProto.EchoRequest.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return echo.EchoProto.EchoResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } public abstract void echo( com.google.protobuf.RpcController controller, echo.EchoProto.EchoRequest request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return echo.EchoProto.getDescriptor().getServices().get(0); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.echo(controller, (echo.EchoProto.EchoRequest)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return echo.EchoProto.EchoRequest.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return echo.EchoProto.EchoResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends echo.EchoProto.EchoService implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void echo( com.google.protobuf.RpcController controller, echo.EchoProto.EchoRequest request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, echo.EchoProto.EchoResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, echo.EchoProto.EchoResponse.class, echo.EchoProto.EchoResponse.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public echo.EchoProto.EchoResponse echo( com.google.protobuf.RpcController controller, echo.EchoProto.EchoRequest request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public echo.EchoProto.EchoResponse echo( com.google.protobuf.RpcController controller, echo.EchoProto.EchoRequest request) throws com.google.protobuf.ServiceException { return (echo.EchoProto.EchoResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, echo.EchoProto.EchoResponse.getDefaultInstance()); } } } private static com.google.protobuf.Descriptors.Descriptor internal_static_echo_EchoRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_echo_EchoRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_echo_EchoResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_echo_EchoResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\necho.proto\022\004echo\"\036\n\013EchoRequest\022\017\n\007pay" + "load\030\001 \002(\t\"\037\n\014EchoResponse\022\017\n\007payload\030\002 " + "\002(\t2<\n\013EchoService\022-\n\004Echo\022\021.echo.EchoRe" + "quest\032\022.echo.EchoResponseB\024\n\004echoB\tEchoP" + "roto\210\001\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_echo_EchoRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_echo_EchoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_echo_EchoRequest_descriptor, new java.lang.String[] { "Payload", }, echo.EchoProto.EchoRequest.class, echo.EchoProto.EchoRequest.Builder.class); internal_static_echo_EchoResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_echo_EchoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_echo_EchoResponse_descriptor, new java.lang.String[] { "Payload", }, echo.EchoProto.EchoResponse.class, echo.EchoProto.EchoResponse.Builder.class); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }