public void echo( com.google.protobuf.RpcController controller, org.apache.wasp.ipc.protobuf.generated.TestProtos.EchoRequestProto request, com.google.protobuf.RpcCallback< org.apache.wasp.ipc.protobuf.generated.TestProtos.EchoResponseProto> done) { channel.callMethod( getDescriptor().getMethods().get(1), controller, request, org.apache.wasp.ipc.protobuf.generated.TestProtos.EchoResponseProto .getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, org.apache.wasp.ipc.protobuf.generated.TestProtos.EchoResponseProto.class, org.apache.wasp.ipc.protobuf.generated.TestProtos.EchoResponseProto .getDefaultInstance())); }
public org.apache.wasp.ipc.protobuf.generated.TestProtos.EchoResponseProto echo( com.google.protobuf.RpcController controller, org.apache.wasp.ipc.protobuf.generated.TestProtos.EchoRequestProto request) throws com.google.protobuf.ServiceException { return (org.apache.wasp.ipc.protobuf.generated.TestProtos.EchoResponseProto) channel.callBlockingMethod( getDescriptor().getMethods().get(1), controller, request, org.apache.wasp.ipc.protobuf.generated.TestProtos.EchoResponseProto .getDefaultInstance()); }
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 org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyResponseProto .getDefaultInstance(); case 1: return org.apache.wasp.ipc.protobuf.generated.TestProtos.EchoResponseProto .getDefaultInstance(); case 2: return org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyResponseProto .getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } }