Exemplo n.º 1
0
 public void error(
     com.google.protobuf.RpcController controller,
     org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyRequestProto request,
     com.google.protobuf.RpcCallback<
             org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyResponseProto>
         done) {
   channel.callMethod(
       getDescriptor().getMethods().get(2),
       controller,
       request,
       org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyResponseProto
           .getDefaultInstance(),
       com.google.protobuf.RpcUtil.generalizeCallback(
           done,
           org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyResponseProto.class,
           org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyResponseProto
               .getDefaultInstance()));
 }
Exemplo n.º 2
0
 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.");
   }
 }
Exemplo n.º 3
0
 public org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyResponseProto error(
     com.google.protobuf.RpcController controller,
     org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyRequestProto request)
     throws com.google.protobuf.ServiceException {
   return (org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyResponseProto)
       channel.callBlockingMethod(
           getDescriptor().getMethods().get(2),
           controller,
           request,
           org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyResponseProto
               .getDefaultInstance());
 }