compiler,stub: update RpcMethod docs and usage

This commit is contained in:
Carl Mastrangelo 2018-07-12 17:01:47 -07:00 committed by GitHub
parent 9925049dce
commit 146b6006b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 70 additions and 119 deletions

View File

@ -31,8 +31,7 @@ public final class HandshakerServiceGrpc {
io.grpc.alts.internal.Handshaker.HandshakerResp> getDoHandshakeMethod; io.grpc.alts.internal.Handshaker.HandshakerResp> getDoHandshakeMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.gcp.HandshakerService", fullMethodName = SERVICE_NAME + '/' + "DoHandshake",
methodName = "DoHandshake",
requestType = io.grpc.alts.internal.Handshaker.HandshakerReq.class, requestType = io.grpc.alts.internal.Handshaker.HandshakerReq.class,
responseType = io.grpc.alts.internal.Handshaker.HandshakerResp.class, responseType = io.grpc.alts.internal.Handshaker.HandshakerResp.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)

View File

@ -31,8 +31,7 @@ public final class BenchmarkServiceGrpc {
io.grpc.benchmarks.proto.Messages.SimpleResponse> getUnaryCallMethod; io.grpc.benchmarks.proto.Messages.SimpleResponse> getUnaryCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.BenchmarkService", fullMethodName = SERVICE_NAME + '/' + "UnaryCall",
methodName = "UnaryCall",
requestType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class, requestType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class,
responseType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class, responseType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -64,8 +63,7 @@ public final class BenchmarkServiceGrpc {
io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingCallMethod; io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.BenchmarkService", fullMethodName = SERVICE_NAME + '/' + "StreamingCall",
methodName = "StreamingCall",
requestType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class, requestType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class,
responseType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class, responseType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
@ -97,8 +95,7 @@ public final class BenchmarkServiceGrpc {
io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingFromClientMethod; io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingFromClientMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.BenchmarkService", fullMethodName = SERVICE_NAME + '/' + "StreamingFromClient",
methodName = "StreamingFromClient",
requestType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class, requestType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class,
responseType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class, responseType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
@ -130,8 +127,7 @@ public final class BenchmarkServiceGrpc {
io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingFromServerMethod; io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingFromServerMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.BenchmarkService", fullMethodName = SERVICE_NAME + '/' + "StreamingFromServer",
methodName = "StreamingFromServer",
requestType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class, requestType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class,
responseType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class, responseType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
@ -163,8 +159,7 @@ public final class BenchmarkServiceGrpc {
io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingBothWaysMethod; io.grpc.benchmarks.proto.Messages.SimpleResponse> getStreamingBothWaysMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.BenchmarkService", fullMethodName = SERVICE_NAME + '/' + "StreamingBothWays",
methodName = "StreamingBothWays",
requestType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class, requestType = io.grpc.benchmarks.proto.Messages.SimpleRequest.class,
responseType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class, responseType = io.grpc.benchmarks.proto.Messages.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)

View File

@ -31,8 +31,7 @@ public final class ReportQpsScenarioServiceGrpc {
io.grpc.benchmarks.proto.Control.Void> getReportScenarioMethod; io.grpc.benchmarks.proto.Control.Void> getReportScenarioMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.ReportQpsScenarioService", fullMethodName = SERVICE_NAME + '/' + "ReportScenario",
methodName = "ReportScenario",
requestType = io.grpc.benchmarks.proto.Control.ScenarioResult.class, requestType = io.grpc.benchmarks.proto.Control.ScenarioResult.class,
responseType = io.grpc.benchmarks.proto.Control.Void.class, responseType = io.grpc.benchmarks.proto.Control.Void.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)

View File

@ -31,8 +31,7 @@ public final class WorkerServiceGrpc {
io.grpc.benchmarks.proto.Control.ServerStatus> getRunServerMethod; io.grpc.benchmarks.proto.Control.ServerStatus> getRunServerMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.WorkerService", fullMethodName = SERVICE_NAME + '/' + "RunServer",
methodName = "RunServer",
requestType = io.grpc.benchmarks.proto.Control.ServerArgs.class, requestType = io.grpc.benchmarks.proto.Control.ServerArgs.class,
responseType = io.grpc.benchmarks.proto.Control.ServerStatus.class, responseType = io.grpc.benchmarks.proto.Control.ServerStatus.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
@ -64,8 +63,7 @@ public final class WorkerServiceGrpc {
io.grpc.benchmarks.proto.Control.ClientStatus> getRunClientMethod; io.grpc.benchmarks.proto.Control.ClientStatus> getRunClientMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.WorkerService", fullMethodName = SERVICE_NAME + '/' + "RunClient",
methodName = "RunClient",
requestType = io.grpc.benchmarks.proto.Control.ClientArgs.class, requestType = io.grpc.benchmarks.proto.Control.ClientArgs.class,
responseType = io.grpc.benchmarks.proto.Control.ClientStatus.class, responseType = io.grpc.benchmarks.proto.Control.ClientStatus.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
@ -97,8 +95,7 @@ public final class WorkerServiceGrpc {
io.grpc.benchmarks.proto.Control.CoreResponse> getCoreCountMethod; io.grpc.benchmarks.proto.Control.CoreResponse> getCoreCountMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.WorkerService", fullMethodName = SERVICE_NAME + '/' + "CoreCount",
methodName = "CoreCount",
requestType = io.grpc.benchmarks.proto.Control.CoreRequest.class, requestType = io.grpc.benchmarks.proto.Control.CoreRequest.class,
responseType = io.grpc.benchmarks.proto.Control.CoreResponse.class, responseType = io.grpc.benchmarks.proto.Control.CoreResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -130,8 +127,7 @@ public final class WorkerServiceGrpc {
io.grpc.benchmarks.proto.Control.Void> getQuitWorkerMethod; io.grpc.benchmarks.proto.Control.Void> getQuitWorkerMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.WorkerService", fullMethodName = SERVICE_NAME + '/' + "QuitWorker",
methodName = "QuitWorker",
requestType = io.grpc.benchmarks.proto.Control.Void.class, requestType = io.grpc.benchmarks.proto.Control.Void.class,
responseType = io.grpc.benchmarks.proto.Control.Void.class, responseType = io.grpc.benchmarks.proto.Control.Void.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)

View File

@ -478,8 +478,7 @@ static void PrintMethodFields(
" $output_type$> $method_new_field_name$;\n" " $output_type$> $method_new_field_name$;\n"
"\n" "\n"
"@$RpcMethod$(\n" "@$RpcMethod$(\n"
" fullServiceName = \"$Package$$service_name$\",\n" " fullMethodName = SERVICE_NAME + '/' + \"$method_name$\",\n"
" methodName = \"$method_name$\",\n"
" requestType = $input_type$.class,\n" " requestType = $input_type$.class,\n"
" responseType = $output_type$.class,\n" " responseType = $output_type$.class,\n"
" methodType = $MethodType$.$method_type$)\n" " methodType = $MethodType$.$method_type$)\n"

View File

@ -34,8 +34,7 @@ public final class TestServiceGrpc {
io.grpc.testing.compiler.Test.SimpleResponse> getUnaryCallMethod; io.grpc.testing.compiler.Test.SimpleResponse> getUnaryCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.compiler.TestService", fullMethodName = SERVICE_NAME + '/' + "UnaryCall",
methodName = "UnaryCall",
requestType = io.grpc.testing.compiler.Test.SimpleRequest.class, requestType = io.grpc.testing.compiler.Test.SimpleRequest.class,
responseType = io.grpc.testing.compiler.Test.SimpleResponse.class, responseType = io.grpc.testing.compiler.Test.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -67,8 +66,7 @@ public final class TestServiceGrpc {
io.grpc.testing.compiler.Test.StreamingOutputCallResponse> getStreamingOutputCallMethod; io.grpc.testing.compiler.Test.StreamingOutputCallResponse> getStreamingOutputCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.compiler.TestService", fullMethodName = SERVICE_NAME + '/' + "StreamingOutputCall",
methodName = "StreamingOutputCall",
requestType = io.grpc.testing.compiler.Test.StreamingOutputCallRequest.class, requestType = io.grpc.testing.compiler.Test.StreamingOutputCallRequest.class,
responseType = io.grpc.testing.compiler.Test.StreamingOutputCallResponse.class, responseType = io.grpc.testing.compiler.Test.StreamingOutputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
@ -100,8 +98,7 @@ public final class TestServiceGrpc {
io.grpc.testing.compiler.Test.StreamingInputCallResponse> getStreamingInputCallMethod; io.grpc.testing.compiler.Test.StreamingInputCallResponse> getStreamingInputCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.compiler.TestService", fullMethodName = SERVICE_NAME + '/' + "StreamingInputCall",
methodName = "StreamingInputCall",
requestType = io.grpc.testing.compiler.Test.StreamingInputCallRequest.class, requestType = io.grpc.testing.compiler.Test.StreamingInputCallRequest.class,
responseType = io.grpc.testing.compiler.Test.StreamingInputCallResponse.class, responseType = io.grpc.testing.compiler.Test.StreamingInputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
@ -133,8 +130,7 @@ public final class TestServiceGrpc {
io.grpc.testing.compiler.Test.StreamingOutputCallResponse> getFullBidiCallMethod; io.grpc.testing.compiler.Test.StreamingOutputCallResponse> getFullBidiCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.compiler.TestService", fullMethodName = SERVICE_NAME + '/' + "FullBidiCall",
methodName = "FullBidiCall",
requestType = io.grpc.testing.compiler.Test.StreamingOutputCallRequest.class, requestType = io.grpc.testing.compiler.Test.StreamingOutputCallRequest.class,
responseType = io.grpc.testing.compiler.Test.StreamingOutputCallResponse.class, responseType = io.grpc.testing.compiler.Test.StreamingOutputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
@ -166,8 +162,7 @@ public final class TestServiceGrpc {
io.grpc.testing.compiler.Test.StreamingOutputCallResponse> getHalfBidiCallMethod; io.grpc.testing.compiler.Test.StreamingOutputCallResponse> getHalfBidiCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.compiler.TestService", fullMethodName = SERVICE_NAME + '/' + "HalfBidiCall",
methodName = "HalfBidiCall",
requestType = io.grpc.testing.compiler.Test.StreamingOutputCallRequest.class, requestType = io.grpc.testing.compiler.Test.StreamingOutputCallRequest.class,
responseType = io.grpc.testing.compiler.Test.StreamingOutputCallResponse.class, responseType = io.grpc.testing.compiler.Test.StreamingOutputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
@ -199,8 +194,7 @@ public final class TestServiceGrpc {
io.grpc.testing.compiler.Test.StreamingInputCallResponse> getImportMethod; io.grpc.testing.compiler.Test.StreamingInputCallResponse> getImportMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.compiler.TestService", fullMethodName = SERVICE_NAME + '/' + "Import",
methodName = "Import",
requestType = io.grpc.testing.compiler.Test.StreamingInputCallRequest.class, requestType = io.grpc.testing.compiler.Test.StreamingInputCallRequest.class,
responseType = io.grpc.testing.compiler.Test.StreamingInputCallResponse.class, responseType = io.grpc.testing.compiler.Test.StreamingInputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)

View File

@ -34,8 +34,7 @@ public final class TestServiceGrpc {
io.grpc.testing.compiler.Test.SimpleResponse> getUnaryCallMethod; io.grpc.testing.compiler.Test.SimpleResponse> getUnaryCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.compiler.TestService", fullMethodName = SERVICE_NAME + '/' + "UnaryCall",
methodName = "UnaryCall",
requestType = io.grpc.testing.compiler.Test.SimpleRequest.class, requestType = io.grpc.testing.compiler.Test.SimpleRequest.class,
responseType = io.grpc.testing.compiler.Test.SimpleResponse.class, responseType = io.grpc.testing.compiler.Test.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -66,8 +65,7 @@ public final class TestServiceGrpc {
io.grpc.testing.compiler.Test.StreamingOutputCallResponse> getStreamingOutputCallMethod; io.grpc.testing.compiler.Test.StreamingOutputCallResponse> getStreamingOutputCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.compiler.TestService", fullMethodName = SERVICE_NAME + '/' + "StreamingOutputCall",
methodName = "StreamingOutputCall",
requestType = io.grpc.testing.compiler.Test.StreamingOutputCallRequest.class, requestType = io.grpc.testing.compiler.Test.StreamingOutputCallRequest.class,
responseType = io.grpc.testing.compiler.Test.StreamingOutputCallResponse.class, responseType = io.grpc.testing.compiler.Test.StreamingOutputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
@ -98,8 +96,7 @@ public final class TestServiceGrpc {
io.grpc.testing.compiler.Test.StreamingInputCallResponse> getStreamingInputCallMethod; io.grpc.testing.compiler.Test.StreamingInputCallResponse> getStreamingInputCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.compiler.TestService", fullMethodName = SERVICE_NAME + '/' + "StreamingInputCall",
methodName = "StreamingInputCall",
requestType = io.grpc.testing.compiler.Test.StreamingInputCallRequest.class, requestType = io.grpc.testing.compiler.Test.StreamingInputCallRequest.class,
responseType = io.grpc.testing.compiler.Test.StreamingInputCallResponse.class, responseType = io.grpc.testing.compiler.Test.StreamingInputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
@ -130,8 +127,7 @@ public final class TestServiceGrpc {
io.grpc.testing.compiler.Test.StreamingOutputCallResponse> getFullBidiCallMethod; io.grpc.testing.compiler.Test.StreamingOutputCallResponse> getFullBidiCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.compiler.TestService", fullMethodName = SERVICE_NAME + '/' + "FullBidiCall",
methodName = "FullBidiCall",
requestType = io.grpc.testing.compiler.Test.StreamingOutputCallRequest.class, requestType = io.grpc.testing.compiler.Test.StreamingOutputCallRequest.class,
responseType = io.grpc.testing.compiler.Test.StreamingOutputCallResponse.class, responseType = io.grpc.testing.compiler.Test.StreamingOutputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
@ -162,8 +158,7 @@ public final class TestServiceGrpc {
io.grpc.testing.compiler.Test.StreamingOutputCallResponse> getHalfBidiCallMethod; io.grpc.testing.compiler.Test.StreamingOutputCallResponse> getHalfBidiCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.compiler.TestService", fullMethodName = SERVICE_NAME + '/' + "HalfBidiCall",
methodName = "HalfBidiCall",
requestType = io.grpc.testing.compiler.Test.StreamingOutputCallRequest.class, requestType = io.grpc.testing.compiler.Test.StreamingOutputCallRequest.class,
responseType = io.grpc.testing.compiler.Test.StreamingOutputCallResponse.class, responseType = io.grpc.testing.compiler.Test.StreamingOutputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
@ -194,8 +189,7 @@ public final class TestServiceGrpc {
io.grpc.testing.compiler.Test.StreamingInputCallResponse> getImportMethod; io.grpc.testing.compiler.Test.StreamingInputCallResponse> getImportMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.compiler.TestService", fullMethodName = SERVICE_NAME + '/' + "Import",
methodName = "Import",
requestType = io.grpc.testing.compiler.Test.StreamingInputCallRequest.class, requestType = io.grpc.testing.compiler.Test.StreamingInputCallRequest.class,
responseType = io.grpc.testing.compiler.Test.StreamingInputCallResponse.class, responseType = io.grpc.testing.compiler.Test.StreamingInputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)

View File

@ -365,7 +365,7 @@ public final class MethodDescriptor<ReqT, RespT> {
} }
/** /**
* Generate the fully qualified method name. * Generate the fully qualified method name. This matches the the name
* *
* @param fullServiceName the fully qualified service name that is prefixed with the package name * @param fullServiceName the fully qualified service name that is prefixed with the package name
* @param methodName the short method name * @param methodName the short method name

View File

@ -31,8 +31,7 @@ public final class LoadBalancerGrpc {
io.grpc.grpclb.LoadBalanceResponse> getBalanceLoadMethod; io.grpc.grpclb.LoadBalanceResponse> getBalanceLoadMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.lb.v1.LoadBalancer", fullMethodName = SERVICE_NAME + '/' + "BalanceLoad",
methodName = "BalanceLoad",
requestType = io.grpc.grpclb.LoadBalanceRequest.class, requestType = io.grpc.grpclb.LoadBalanceRequest.class,
responseType = io.grpc.grpclb.LoadBalanceResponse.class, responseType = io.grpc.grpclb.LoadBalanceResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)

View File

@ -31,8 +31,7 @@ public final class MetricsServiceGrpc {
io.grpc.testing.integration.Metrics.GaugeResponse> getGetAllGaugesMethod; io.grpc.testing.integration.Metrics.GaugeResponse> getGetAllGaugesMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.MetricsService", fullMethodName = SERVICE_NAME + '/' + "GetAllGauges",
methodName = "GetAllGauges",
requestType = io.grpc.testing.integration.Metrics.EmptyMessage.class, requestType = io.grpc.testing.integration.Metrics.EmptyMessage.class,
responseType = io.grpc.testing.integration.Metrics.GaugeResponse.class, responseType = io.grpc.testing.integration.Metrics.GaugeResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
@ -64,8 +63,7 @@ public final class MetricsServiceGrpc {
io.grpc.testing.integration.Metrics.GaugeResponse> getGetGaugeMethod; io.grpc.testing.integration.Metrics.GaugeResponse> getGetGaugeMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.MetricsService", fullMethodName = SERVICE_NAME + '/' + "GetGauge",
methodName = "GetGauge",
requestType = io.grpc.testing.integration.Metrics.GaugeRequest.class, requestType = io.grpc.testing.integration.Metrics.GaugeRequest.class,
responseType = io.grpc.testing.integration.Metrics.GaugeResponse.class, responseType = io.grpc.testing.integration.Metrics.GaugeResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)

View File

@ -34,8 +34,7 @@ public final class ReconnectServiceGrpc {
io.grpc.testing.integration.EmptyProtos.Empty> getStartMethod; io.grpc.testing.integration.EmptyProtos.Empty> getStartMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.ReconnectService", fullMethodName = SERVICE_NAME + '/' + "Start",
methodName = "Start",
requestType = io.grpc.testing.integration.EmptyProtos.Empty.class, requestType = io.grpc.testing.integration.EmptyProtos.Empty.class,
responseType = io.grpc.testing.integration.EmptyProtos.Empty.class, responseType = io.grpc.testing.integration.EmptyProtos.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -67,8 +66,7 @@ public final class ReconnectServiceGrpc {
io.grpc.testing.integration.Messages.ReconnectInfo> getStopMethod; io.grpc.testing.integration.Messages.ReconnectInfo> getStopMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.ReconnectService", fullMethodName = SERVICE_NAME + '/' + "Stop",
methodName = "Stop",
requestType = io.grpc.testing.integration.EmptyProtos.Empty.class, requestType = io.grpc.testing.integration.EmptyProtos.Empty.class,
responseType = io.grpc.testing.integration.Messages.ReconnectInfo.class, responseType = io.grpc.testing.integration.Messages.ReconnectInfo.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)

View File

@ -35,8 +35,7 @@ public final class TestServiceGrpc {
io.grpc.testing.integration.EmptyProtos.Empty> getEmptyCallMethod; io.grpc.testing.integration.EmptyProtos.Empty> getEmptyCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.TestService", fullMethodName = SERVICE_NAME + '/' + "EmptyCall",
methodName = "EmptyCall",
requestType = io.grpc.testing.integration.EmptyProtos.Empty.class, requestType = io.grpc.testing.integration.EmptyProtos.Empty.class,
responseType = io.grpc.testing.integration.EmptyProtos.Empty.class, responseType = io.grpc.testing.integration.EmptyProtos.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -68,8 +67,7 @@ public final class TestServiceGrpc {
io.grpc.testing.integration.Messages.SimpleResponse> getUnaryCallMethod; io.grpc.testing.integration.Messages.SimpleResponse> getUnaryCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.TestService", fullMethodName = SERVICE_NAME + '/' + "UnaryCall",
methodName = "UnaryCall",
requestType = io.grpc.testing.integration.Messages.SimpleRequest.class, requestType = io.grpc.testing.integration.Messages.SimpleRequest.class,
responseType = io.grpc.testing.integration.Messages.SimpleResponse.class, responseType = io.grpc.testing.integration.Messages.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -101,8 +99,7 @@ public final class TestServiceGrpc {
io.grpc.testing.integration.Messages.SimpleResponse> getCacheableUnaryCallMethod; io.grpc.testing.integration.Messages.SimpleResponse> getCacheableUnaryCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.TestService", fullMethodName = SERVICE_NAME + '/' + "CacheableUnaryCall",
methodName = "CacheableUnaryCall",
requestType = io.grpc.testing.integration.Messages.SimpleRequest.class, requestType = io.grpc.testing.integration.Messages.SimpleRequest.class,
responseType = io.grpc.testing.integration.Messages.SimpleResponse.class, responseType = io.grpc.testing.integration.Messages.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -134,8 +131,7 @@ public final class TestServiceGrpc {
io.grpc.testing.integration.Messages.StreamingOutputCallResponse> getStreamingOutputCallMethod; io.grpc.testing.integration.Messages.StreamingOutputCallResponse> getStreamingOutputCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.TestService", fullMethodName = SERVICE_NAME + '/' + "StreamingOutputCall",
methodName = "StreamingOutputCall",
requestType = io.grpc.testing.integration.Messages.StreamingOutputCallRequest.class, requestType = io.grpc.testing.integration.Messages.StreamingOutputCallRequest.class,
responseType = io.grpc.testing.integration.Messages.StreamingOutputCallResponse.class, responseType = io.grpc.testing.integration.Messages.StreamingOutputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
@ -167,8 +163,7 @@ public final class TestServiceGrpc {
io.grpc.testing.integration.Messages.StreamingInputCallResponse> getStreamingInputCallMethod; io.grpc.testing.integration.Messages.StreamingInputCallResponse> getStreamingInputCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.TestService", fullMethodName = SERVICE_NAME + '/' + "StreamingInputCall",
methodName = "StreamingInputCall",
requestType = io.grpc.testing.integration.Messages.StreamingInputCallRequest.class, requestType = io.grpc.testing.integration.Messages.StreamingInputCallRequest.class,
responseType = io.grpc.testing.integration.Messages.StreamingInputCallResponse.class, responseType = io.grpc.testing.integration.Messages.StreamingInputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
@ -200,8 +195,7 @@ public final class TestServiceGrpc {
io.grpc.testing.integration.Messages.StreamingOutputCallResponse> getFullDuplexCallMethod; io.grpc.testing.integration.Messages.StreamingOutputCallResponse> getFullDuplexCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.TestService", fullMethodName = SERVICE_NAME + '/' + "FullDuplexCall",
methodName = "FullDuplexCall",
requestType = io.grpc.testing.integration.Messages.StreamingOutputCallRequest.class, requestType = io.grpc.testing.integration.Messages.StreamingOutputCallRequest.class,
responseType = io.grpc.testing.integration.Messages.StreamingOutputCallResponse.class, responseType = io.grpc.testing.integration.Messages.StreamingOutputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
@ -233,8 +227,7 @@ public final class TestServiceGrpc {
io.grpc.testing.integration.Messages.StreamingOutputCallResponse> getHalfDuplexCallMethod; io.grpc.testing.integration.Messages.StreamingOutputCallResponse> getHalfDuplexCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.TestService", fullMethodName = SERVICE_NAME + '/' + "HalfDuplexCall",
methodName = "HalfDuplexCall",
requestType = io.grpc.testing.integration.Messages.StreamingOutputCallRequest.class, requestType = io.grpc.testing.integration.Messages.StreamingOutputCallRequest.class,
responseType = io.grpc.testing.integration.Messages.StreamingOutputCallResponse.class, responseType = io.grpc.testing.integration.Messages.StreamingOutputCallResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
@ -266,8 +259,7 @@ public final class TestServiceGrpc {
io.grpc.testing.integration.EmptyProtos.Empty> getUnimplementedCallMethod; io.grpc.testing.integration.EmptyProtos.Empty> getUnimplementedCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.TestService", fullMethodName = SERVICE_NAME + '/' + "UnimplementedCall",
methodName = "UnimplementedCall",
requestType = io.grpc.testing.integration.EmptyProtos.Empty.class, requestType = io.grpc.testing.integration.EmptyProtos.Empty.class,
responseType = io.grpc.testing.integration.EmptyProtos.Empty.class, responseType = io.grpc.testing.integration.EmptyProtos.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)

View File

@ -35,8 +35,7 @@ public final class UnimplementedServiceGrpc {
io.grpc.testing.integration.EmptyProtos.Empty> getUnimplementedCallMethod; io.grpc.testing.integration.EmptyProtos.Empty> getUnimplementedCallMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.UnimplementedService", fullMethodName = SERVICE_NAME + '/' + "UnimplementedCall",
methodName = "UnimplementedCall",
requestType = io.grpc.testing.integration.EmptyProtos.Empty.class, requestType = io.grpc.testing.integration.EmptyProtos.Empty.class,
responseType = io.grpc.testing.integration.EmptyProtos.Empty.class, responseType = io.grpc.testing.integration.EmptyProtos.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)

View File

@ -35,8 +35,7 @@ public final class ChannelzGrpc {
io.grpc.channelz.v1.GetTopChannelsResponse> getGetTopChannelsMethod; io.grpc.channelz.v1.GetTopChannelsResponse> getGetTopChannelsMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.channelz.v1.Channelz", fullMethodName = SERVICE_NAME + '/' + "GetTopChannels",
methodName = "GetTopChannels",
requestType = io.grpc.channelz.v1.GetTopChannelsRequest.class, requestType = io.grpc.channelz.v1.GetTopChannelsRequest.class,
responseType = io.grpc.channelz.v1.GetTopChannelsResponse.class, responseType = io.grpc.channelz.v1.GetTopChannelsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -68,8 +67,7 @@ public final class ChannelzGrpc {
io.grpc.channelz.v1.GetServersResponse> getGetServersMethod; io.grpc.channelz.v1.GetServersResponse> getGetServersMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.channelz.v1.Channelz", fullMethodName = SERVICE_NAME + '/' + "GetServers",
methodName = "GetServers",
requestType = io.grpc.channelz.v1.GetServersRequest.class, requestType = io.grpc.channelz.v1.GetServersRequest.class,
responseType = io.grpc.channelz.v1.GetServersResponse.class, responseType = io.grpc.channelz.v1.GetServersResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -101,8 +99,7 @@ public final class ChannelzGrpc {
io.grpc.channelz.v1.GetServerSocketsResponse> getGetServerSocketsMethod; io.grpc.channelz.v1.GetServerSocketsResponse> getGetServerSocketsMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.channelz.v1.Channelz", fullMethodName = SERVICE_NAME + '/' + "GetServerSockets",
methodName = "GetServerSockets",
requestType = io.grpc.channelz.v1.GetServerSocketsRequest.class, requestType = io.grpc.channelz.v1.GetServerSocketsRequest.class,
responseType = io.grpc.channelz.v1.GetServerSocketsResponse.class, responseType = io.grpc.channelz.v1.GetServerSocketsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -134,8 +131,7 @@ public final class ChannelzGrpc {
io.grpc.channelz.v1.GetChannelResponse> getGetChannelMethod; io.grpc.channelz.v1.GetChannelResponse> getGetChannelMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.channelz.v1.Channelz", fullMethodName = SERVICE_NAME + '/' + "GetChannel",
methodName = "GetChannel",
requestType = io.grpc.channelz.v1.GetChannelRequest.class, requestType = io.grpc.channelz.v1.GetChannelRequest.class,
responseType = io.grpc.channelz.v1.GetChannelResponse.class, responseType = io.grpc.channelz.v1.GetChannelResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -167,8 +163,7 @@ public final class ChannelzGrpc {
io.grpc.channelz.v1.GetSubchannelResponse> getGetSubchannelMethod; io.grpc.channelz.v1.GetSubchannelResponse> getGetSubchannelMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.channelz.v1.Channelz", fullMethodName = SERVICE_NAME + '/' + "GetSubchannel",
methodName = "GetSubchannel",
requestType = io.grpc.channelz.v1.GetSubchannelRequest.class, requestType = io.grpc.channelz.v1.GetSubchannelRequest.class,
responseType = io.grpc.channelz.v1.GetSubchannelResponse.class, responseType = io.grpc.channelz.v1.GetSubchannelResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -200,8 +195,7 @@ public final class ChannelzGrpc {
io.grpc.channelz.v1.GetSocketResponse> getGetSocketMethod; io.grpc.channelz.v1.GetSocketResponse> getGetSocketMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.channelz.v1.Channelz", fullMethodName = SERVICE_NAME + '/' + "GetSocket",
methodName = "GetSocket",
requestType = io.grpc.channelz.v1.GetSocketRequest.class, requestType = io.grpc.channelz.v1.GetSocketRequest.class,
responseType = io.grpc.channelz.v1.GetSocketResponse.class, responseType = io.grpc.channelz.v1.GetSocketResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)

View File

@ -31,8 +31,7 @@ public final class HealthGrpc {
io.grpc.health.v1.HealthCheckResponse> getCheckMethod; io.grpc.health.v1.HealthCheckResponse> getCheckMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.health.v1.Health", fullMethodName = SERVICE_NAME + '/' + "Check",
methodName = "Check",
requestType = io.grpc.health.v1.HealthCheckRequest.class, requestType = io.grpc.health.v1.HealthCheckRequest.class,
responseType = io.grpc.health.v1.HealthCheckResponse.class, responseType = io.grpc.health.v1.HealthCheckResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)

View File

@ -31,8 +31,7 @@ public final class ServerReflectionGrpc {
io.grpc.reflection.v1alpha.ServerReflectionResponse> getServerReflectionInfoMethod; io.grpc.reflection.v1alpha.ServerReflectionResponse> getServerReflectionInfoMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.reflection.v1alpha.ServerReflection", fullMethodName = SERVICE_NAME + '/' + "ServerReflectionInfo",
methodName = "ServerReflectionInfo",
requestType = io.grpc.reflection.v1alpha.ServerReflectionRequest.class, requestType = io.grpc.reflection.v1alpha.ServerReflectionRequest.class,
responseType = io.grpc.reflection.v1alpha.ServerReflectionResponse.class, responseType = io.grpc.reflection.v1alpha.ServerReflectionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)

View File

@ -34,8 +34,7 @@ public final class AnotherDynamicServiceGrpc {
io.grpc.reflection.testing.DynamicReply> getMethodMethod; io.grpc.reflection.testing.DynamicReply> getMethodMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.reflection.testing.AnotherDynamicService", fullMethodName = SERVICE_NAME + '/' + "Method",
methodName = "Method",
requestType = io.grpc.reflection.testing.DynamicRequest.class, requestType = io.grpc.reflection.testing.DynamicRequest.class,
responseType = io.grpc.reflection.testing.DynamicReply.class, responseType = io.grpc.reflection.testing.DynamicReply.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)

View File

@ -34,8 +34,7 @@ public final class DynamicServiceGrpc {
io.grpc.reflection.testing.DynamicReply> getMethodMethod; io.grpc.reflection.testing.DynamicReply> getMethodMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.reflection.testing.DynamicService", fullMethodName = SERVICE_NAME + '/' + "Method",
methodName = "Method",
requestType = io.grpc.reflection.testing.DynamicRequest.class, requestType = io.grpc.reflection.testing.DynamicRequest.class,
responseType = io.grpc.reflection.testing.DynamicReply.class, responseType = io.grpc.reflection.testing.DynamicReply.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)

View File

@ -31,8 +31,7 @@ public final class ReflectableServiceGrpc {
io.grpc.reflection.testing.Reply> getMethodMethod; io.grpc.reflection.testing.Reply> getMethodMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.reflection.testing.ReflectableService", fullMethodName = SERVICE_NAME + '/' + "Method",
methodName = "Method",
requestType = io.grpc.reflection.testing.Request.class, requestType = io.grpc.reflection.testing.Request.class,
responseType = io.grpc.reflection.testing.Reply.class, responseType = io.grpc.reflection.testing.Reply.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)

View File

@ -29,8 +29,8 @@ import java.lang.annotation.Target;
* *
* <p> * <p>
* This annotation is used by the gRPC stub compiler to annotate {@link MethodDescriptor} * This annotation is used by the gRPC stub compiler to annotate {@link MethodDescriptor}
* getters. Users should not annotate their own classes with annotation. Not all stubs may have * getters. Users should not annotate their own classes with this annotation. Not all stubs may
* this annotation, so consumers should not assume that it is present. * have this annotation, so consumers should not assume that it is present.
* </p> * </p>
* *
* @since 1.14.0 * @since 1.14.0
@ -40,27 +40,31 @@ import java.lang.annotation.Target;
public @interface RpcMethod { public @interface RpcMethod {
/** /**
* The full service name for the method * The fully qualified method name. This should match the name as returned by
* {@link MethodDescriptor#generateFullMethodName(String, String)}.
*/ */
String fullServiceName(); String fullMethodName();
/** /**
* The method name for the method * The request type of the method. The request type class should be assignable from (i.e.
*/ * {@link Class#isAssignableFrom(Class)} the request type {@code ReqT} of the
String methodName(); * {@link MethodDescriptor}. Additionally, if the request {@code MethodDescriptor.Marshaller}
* is a {@code MethodDescriptor.ReflectableMarshaller}, the request type should be assignable
/** * from {@code MethodDescriptor.ReflectableMarshaller#getMessageClass()}.
* The request type of the method
*/ */
Class<?> requestType(); Class<?> requestType();
/** /**
* The response type of the method * The response type of the method. The response type class should be assignable from (i.e.
* {@link Class#isAssignableFrom(Class)} the response type {@code RespT} of the
* {@link MethodDescriptor}. Additionally, if the response {@code MethodDescriptor.Marshaller}
* is a {@code MethodDescriptor.ReflectableMarshaller}, the response type should be assignable
* from {@code MethodDescriptor.ReflectableMarshaller#getMessageClass()}.
*/ */
Class<?> responseType(); Class<?> responseType();
/** /**
* The call type of the method * The call type of the method.
*/ */
MethodDescriptor.MethodType methodType(); MethodDescriptor.MethodType methodType();
} }

View File

@ -34,8 +34,7 @@ public final class SimpleServiceGrpc {
io.grpc.testing.protobuf.SimpleResponse> getUnaryRpcMethod; io.grpc.testing.protobuf.SimpleResponse> getUnaryRpcMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.SimpleService", fullMethodName = SERVICE_NAME + '/' + "UnaryRpc",
methodName = "UnaryRpc",
requestType = io.grpc.testing.protobuf.SimpleRequest.class, requestType = io.grpc.testing.protobuf.SimpleRequest.class,
responseType = io.grpc.testing.protobuf.SimpleResponse.class, responseType = io.grpc.testing.protobuf.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY) methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
@ -67,8 +66,7 @@ public final class SimpleServiceGrpc {
io.grpc.testing.protobuf.SimpleResponse> getClientStreamingRpcMethod; io.grpc.testing.protobuf.SimpleResponse> getClientStreamingRpcMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.SimpleService", fullMethodName = SERVICE_NAME + '/' + "ClientStreamingRpc",
methodName = "ClientStreamingRpc",
requestType = io.grpc.testing.protobuf.SimpleRequest.class, requestType = io.grpc.testing.protobuf.SimpleRequest.class,
responseType = io.grpc.testing.protobuf.SimpleResponse.class, responseType = io.grpc.testing.protobuf.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
@ -100,8 +98,7 @@ public final class SimpleServiceGrpc {
io.grpc.testing.protobuf.SimpleResponse> getServerStreamingRpcMethod; io.grpc.testing.protobuf.SimpleResponse> getServerStreamingRpcMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.SimpleService", fullMethodName = SERVICE_NAME + '/' + "ServerStreamingRpc",
methodName = "ServerStreamingRpc",
requestType = io.grpc.testing.protobuf.SimpleRequest.class, requestType = io.grpc.testing.protobuf.SimpleRequest.class,
responseType = io.grpc.testing.protobuf.SimpleResponse.class, responseType = io.grpc.testing.protobuf.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
@ -133,8 +130,7 @@ public final class SimpleServiceGrpc {
io.grpc.testing.protobuf.SimpleResponse> getBidiStreamingRpcMethod; io.grpc.testing.protobuf.SimpleResponse> getBidiStreamingRpcMethod;
@io.grpc.stub.annotations.RpcMethod( @io.grpc.stub.annotations.RpcMethod(
fullServiceName = "grpc.testing.SimpleService", fullMethodName = SERVICE_NAME + '/' + "BidiStreamingRpc",
methodName = "BidiStreamingRpc",
requestType = io.grpc.testing.protobuf.SimpleRequest.class, requestType = io.grpc.testing.protobuf.SimpleRequest.class,
responseType = io.grpc.testing.protobuf.SimpleResponse.class, responseType = io.grpc.testing.protobuf.SimpleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)