diff options
author | jbingham-google <40675267+jbingham-google@users.noreply.github.com> | 2018-07-06 18:02:01 -0600 |
---|---|---|
committer | Eric Anderson <ejona@google.com> | 2018-07-06 17:02:01 -0700 |
commit | 9229e30287db156f334a39a78040059b6ec0294b (patch) | |
tree | 808e451ba49202d81039dc8d1c5bb4ec5f28e640 /benchmarks | |
parent | dd57b667cc26212d4494727b1020cdfae4010126 (diff) | |
download | grpc-grpc-java-9229e30287db156f334a39a78040059b6ec0294b.tar.gz |
compiler, stub: Add @RpcMethod annotation
This annotation will enable Java APT to generate code.
Addresses part of #3173.
Diffstat (limited to 'benchmarks')
3 files changed, 60 insertions, 0 deletions
diff --git a/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java index 82cb5b2b0..6be515010 100644 --- a/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java +++ b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java @@ -30,6 +30,12 @@ public final class BenchmarkServiceGrpc { private static volatile io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getUnaryCallMethod; + @io.grpc.stub.annotations.RpcMethod( + fullServiceName = "grpc.testing.BenchmarkService", + methodName = "UnaryCall", + inputType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class, + outputType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getUnaryCallMethod() { io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getUnaryCallMethod; @@ -57,6 +63,12 @@ public final class BenchmarkServiceGrpc { private static volatile io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingCallMethod; + @io.grpc.stub.annotations.RpcMethod( + fullServiceName = "grpc.testing.BenchmarkService", + methodName = "StreamingCall", + inputType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class, + outputType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingCallMethod() { io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingCallMethod; @@ -84,6 +96,12 @@ public final class BenchmarkServiceGrpc { private static volatile io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingFromClientMethod; + @io.grpc.stub.annotations.RpcMethod( + fullServiceName = "grpc.testing.BenchmarkService", + methodName = "StreamingFromClient", + inputType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class, + outputType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) public static io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingFromClientMethod() { io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingFromClientMethod; @@ -111,6 +129,12 @@ public final class BenchmarkServiceGrpc { private static volatile io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingFromServerMethod; + @io.grpc.stub.annotations.RpcMethod( + fullServiceName = "grpc.testing.BenchmarkService", + methodName = "StreamingFromServer", + inputType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class, + outputType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingFromServerMethod() { io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingFromServerMethod; @@ -138,6 +162,12 @@ public final class BenchmarkServiceGrpc { private static volatile io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingBothWaysMethod; + @io.grpc.stub.annotations.RpcMethod( + fullServiceName = "grpc.testing.BenchmarkService", + methodName = "StreamingBothWays", + inputType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class, + outputType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingBothWaysMethod() { io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Messages.SimpleRequest, io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingBothWaysMethod; diff --git a/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/ReportQpsScenarioServiceGrpc.java b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/ReportQpsScenarioServiceGrpc.java index 8a0cc45e0..3eb572cca 100644 --- a/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/ReportQpsScenarioServiceGrpc.java +++ b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/ReportQpsScenarioServiceGrpc.java @@ -30,6 +30,12 @@ public final class ReportQpsScenarioServiceGrpc { private static volatile io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.ScenarioResult, io.grpc.benchmarks.proto.Control.Void> getReportScenarioMethod; + @io.grpc.stub.annotations.RpcMethod( + fullServiceName = "grpc.testing.ReportQpsScenarioService", + methodName = "ReportScenario", + inputType = io.grpc.benchmarks.proto.Control.ScenarioResult.class, + outputType = io.grpc.benchmarks.proto.Control.Void.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.ScenarioResult, io.grpc.benchmarks.proto.Control.Void> getReportScenarioMethod() { io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.ScenarioResult, io.grpc.benchmarks.proto.Control.Void> getReportScenarioMethod; diff --git a/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/WorkerServiceGrpc.java b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/WorkerServiceGrpc.java index eb83c1882..1db4066c4 100644 --- a/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/WorkerServiceGrpc.java +++ b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/WorkerServiceGrpc.java @@ -30,6 +30,12 @@ public final class WorkerServiceGrpc { private static volatile io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.ServerArgs, io.grpc.benchmarks.proto.Control.ServerStatus> getRunServerMethod; + @io.grpc.stub.annotations.RpcMethod( + fullServiceName = "grpc.testing.WorkerService", + methodName = "RunServer", + inputType = io.grpc.benchmarks.proto.Control.ServerArgs.class, + outputType = io.grpc.benchmarks.proto.Control.ServerStatus.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.ServerArgs, io.grpc.benchmarks.proto.Control.ServerStatus> getRunServerMethod() { io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.ServerArgs, io.grpc.benchmarks.proto.Control.ServerStatus> getRunServerMethod; @@ -57,6 +63,12 @@ public final class WorkerServiceGrpc { private static volatile io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.ClientArgs, io.grpc.benchmarks.proto.Control.ClientStatus> getRunClientMethod; + @io.grpc.stub.annotations.RpcMethod( + fullServiceName = "grpc.testing.WorkerService", + methodName = "RunClient", + inputType = io.grpc.benchmarks.proto.Control.ClientArgs.class, + outputType = io.grpc.benchmarks.proto.Control.ClientStatus.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.ClientArgs, io.grpc.benchmarks.proto.Control.ClientStatus> getRunClientMethod() { io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.ClientArgs, io.grpc.benchmarks.proto.Control.ClientStatus> getRunClientMethod; @@ -84,6 +96,12 @@ public final class WorkerServiceGrpc { private static volatile io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.CoreRequest, io.grpc.benchmarks.proto.Control.CoreResponse> getCoreCountMethod; + @io.grpc.stub.annotations.RpcMethod( + fullServiceName = "grpc.testing.WorkerService", + methodName = "CoreCount", + inputType = io.grpc.benchmarks.proto.Control.CoreRequest.class, + outputType = io.grpc.benchmarks.proto.Control.CoreResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.CoreRequest, io.grpc.benchmarks.proto.Control.CoreResponse> getCoreCountMethod() { io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.CoreRequest, io.grpc.benchmarks.proto.Control.CoreResponse> getCoreCountMethod; @@ -111,6 +129,12 @@ public final class WorkerServiceGrpc { private static volatile io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.Void, io.grpc.benchmarks.proto.Control.Void> getQuitWorkerMethod; + @io.grpc.stub.annotations.RpcMethod( + fullServiceName = "grpc.testing.WorkerService", + methodName = "QuitWorker", + inputType = io.grpc.benchmarks.proto.Control.Void.class, + outputType = io.grpc.benchmarks.proto.Control.Void.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.Void, io.grpc.benchmarks.proto.Control.Void> getQuitWorkerMethod() { io.grpc.MethodDescriptor<io.grpc.benchmarks.proto.Control.Void, io.grpc.benchmarks.proto.Control.Void> getQuitWorkerMethod; |