コード例 #1
0
ファイル: AdminProtos.java プロジェクト: pombredanne/wasp
 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()) {
     default:
       throw new java.lang.AssertionError("Can't get here.");
   }
 }
コード例 #2
0
 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 socialite.proto.QueryProtos.QueryStr.getDefaultInstance();
     default:
       throw new java.lang.AssertionError("Can't get here.");
   }
 }
コード例 #3
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 jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse
           .getDefaultInstance();
     default:
       throw new java.lang.AssertionError("Can't get here.");
   }
 }
コード例 #4
0
ファイル: AdminProtos.java プロジェクト: pombredanne/wasp
 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()) {
     default:
       throw new java.lang.AssertionError("Can't get here.");
   }
 }
コード例 #5
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.");
   }
 }
コード例 #6
0
 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.run(
           controller,
           (socialite.proto.QueryProtos.QueryStr) request,
           com.google.protobuf.RpcUtil.<socialite.proto.QueryProtos.Nothing>specializeCallback(
               done));
       return;
     default:
       throw new java.lang.AssertionError("Can't get here.");
   }
 }
コード例 #7
0
 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.translate(
           controller,
           (jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateRequest) request,
           com.google.protobuf.RpcUtil
               .<jp.go.nict.langrid.client.protobuf.proto.TranslationProtos.TranslateResponse>
                   specializeCallback(done));
       return;
     default:
       throw new java.lang.AssertionError("Can't get here.");
   }
 }
コード例 #8
0
 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.ping(
           controller,
           (org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyRequestProto) request,
           com.google.protobuf.RpcUtil
               .<org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyResponseProto>
                   specializeCallback(done));
       return;
     case 1:
       this.echo(
           controller,
           (org.apache.wasp.ipc.protobuf.generated.TestProtos.EchoRequestProto) request,
           com.google.protobuf.RpcUtil
               .<org.apache.wasp.ipc.protobuf.generated.TestProtos.EchoResponseProto>
                   specializeCallback(done));
       return;
     case 2:
       this.error(
           controller,
           (org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyRequestProto) request,
           com.google.protobuf.RpcUtil
               .<org.apache.wasp.ipc.protobuf.generated.TestProtos.EmptyResponseProto>
                   specializeCallback(done));
       return;
     default:
       throw new java.lang.AssertionError("Can't get here.");
   }
 }