mirror of https://github.com/grpc/grpc-java.git
Inlcude the file that was used to generate service descriptors
This commit is contained in:
parent
de72f6915d
commit
72f1e88d78
|
|
@ -13,7 +13,9 @@ import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||||
|
|
||||||
@javax.annotation.Generated("by gRPC proto compiler")
|
@javax.annotation.Generated(
|
||||||
|
value = "by gRPC proto compiler",
|
||||||
|
comments = "Source: qpstest.proto")
|
||||||
public class TestServiceGrpc {
|
public class TestServiceGrpc {
|
||||||
|
|
||||||
private TestServiceGrpc() {}
|
private TestServiceGrpc() {}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@ import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||||
|
|
||||||
@javax.annotation.Generated("by gRPC proto compiler")
|
@javax.annotation.Generated(
|
||||||
|
value = "by gRPC proto compiler",
|
||||||
|
comments = "Source: qpstest.proto")
|
||||||
public class WorkerGrpc {
|
public class WorkerGrpc {
|
||||||
|
|
||||||
private WorkerGrpc() {}
|
private WorkerGrpc() {}
|
||||||
|
|
|
||||||
|
|
@ -639,10 +639,13 @@ static void PrintService(const ServiceDescriptor* service,
|
||||||
Printer* p,
|
Printer* p,
|
||||||
bool generate_nano) {
|
bool generate_nano) {
|
||||||
(*vars)["service_name"] = service->name();
|
(*vars)["service_name"] = service->name();
|
||||||
|
(*vars)["file_name"] = service->file()->name();
|
||||||
(*vars)["service_class_name"] = ServiceClassName(service);
|
(*vars)["service_class_name"] = ServiceClassName(service);
|
||||||
p->Print(
|
p->Print(
|
||||||
*vars,
|
*vars,
|
||||||
"@$Generated$(\"by gRPC proto compiler\")\n"
|
"@$Generated$(\n"
|
||||||
|
" value = \"by gRPC proto compiler\",\n"
|
||||||
|
" comments = \"Source: $file_name$\")\n"
|
||||||
"public class $service_class_name$ {\n\n");
|
"public class $service_class_name$ {\n\n");
|
||||||
p->Indent();
|
p->Indent();
|
||||||
p->Print(
|
p->Print(
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@ import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||||
|
|
||||||
@javax.annotation.Generated("by gRPC proto compiler")
|
@javax.annotation.Generated(
|
||||||
|
value = "by gRPC proto compiler",
|
||||||
|
comments = "Source: test.proto")
|
||||||
public class TestServiceGrpc {
|
public class TestServiceGrpc {
|
||||||
|
|
||||||
private TestServiceGrpc() {}
|
private TestServiceGrpc() {}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,9 @@ import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
@javax.annotation.Generated("by gRPC proto compiler")
|
@javax.annotation.Generated(
|
||||||
|
value = "by gRPC proto compiler",
|
||||||
|
comments = "Source: test.proto")
|
||||||
public class TestServiceGrpc {
|
public class TestServiceGrpc {
|
||||||
|
|
||||||
private TestServiceGrpc() {}
|
private TestServiceGrpc() {}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@ import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||||
|
|
||||||
@javax.annotation.Generated("by gRPC proto compiler")
|
@javax.annotation.Generated(
|
||||||
|
value = "by gRPC proto compiler",
|
||||||
|
comments = "Source: helloworld.proto")
|
||||||
public class GreeterGrpc {
|
public class GreeterGrpc {
|
||||||
|
|
||||||
private GreeterGrpc() {}
|
private GreeterGrpc() {}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@ import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||||
|
|
||||||
@javax.annotation.Generated("by gRPC proto compiler")
|
@javax.annotation.Generated(
|
||||||
|
value = "by gRPC proto compiler",
|
||||||
|
comments = "Source: route_guide.proto")
|
||||||
public class RouteGuideGrpc {
|
public class RouteGuideGrpc {
|
||||||
|
|
||||||
private RouteGuideGrpc() {}
|
private RouteGuideGrpc() {}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@ import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||||
|
|
||||||
@javax.annotation.Generated("by gRPC proto compiler")
|
@javax.annotation.Generated(
|
||||||
|
value = "by gRPC proto compiler",
|
||||||
|
comments = "Source: load_balancer.proto")
|
||||||
public class LoadBalancerGrpc {
|
public class LoadBalancerGrpc {
|
||||||
|
|
||||||
private LoadBalancerGrpc() {}
|
private LoadBalancerGrpc() {}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@ import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||||
|
|
||||||
@javax.annotation.Generated("by gRPC proto compiler")
|
@javax.annotation.Generated(
|
||||||
|
value = "by gRPC proto compiler",
|
||||||
|
comments = "Source: io/grpc/testing/integration/test.proto")
|
||||||
public class ReconnectServiceGrpc {
|
public class ReconnectServiceGrpc {
|
||||||
|
|
||||||
private ReconnectServiceGrpc() {}
|
private ReconnectServiceGrpc() {}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@ import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||||
|
|
||||||
@javax.annotation.Generated("by gRPC proto compiler")
|
@javax.annotation.Generated(
|
||||||
|
value = "by gRPC proto compiler",
|
||||||
|
comments = "Source: io/grpc/testing/integration/test.proto")
|
||||||
public class TestServiceGrpc {
|
public class TestServiceGrpc {
|
||||||
|
|
||||||
private TestServiceGrpc() {}
|
private TestServiceGrpc() {}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@ import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||||
|
|
||||||
@javax.annotation.Generated("by gRPC proto compiler")
|
@javax.annotation.Generated(
|
||||||
|
value = "by gRPC proto compiler",
|
||||||
|
comments = "Source: io/grpc/testing/integration/test.proto")
|
||||||
public class UnimplementedServiceGrpc {
|
public class UnimplementedServiceGrpc {
|
||||||
|
|
||||||
private UnimplementedServiceGrpc() {}
|
private UnimplementedServiceGrpc() {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue