aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-19 09:12:18 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-19 09:12:18 -0700
commit6d8340847caf0634853818ff4b8745e83c5279d3 (patch)
tree09f04ffc7f6bf463fb2198b63222cb35e785cb6c
parent4264ea2b55f46c1904fc179fb0db7b733b8c3e4b (diff)
Name changes in compiler
-rw-r--r--src/compiler/objective_c_generator.cc4
-rw-r--r--src/compiler/objective_c_plugin.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/objective_c_generator.cc b/src/compiler/objective_c_generator.cc
index eb67e9bb88..0a6b64f595 100644
--- a/src/compiler/objective_c_generator.cc
+++ b/src/compiler/objective_c_generator.cc
@@ -127,11 +127,11 @@ void PrintV2Signature(Printer* printer, const MethodDescriptor* method,
printer->Print(vars, "- ($return_type$)$method_name$With");
if (method->client_streaming()) {
- printer->Print("ResponseHandler:(id<GRPCResponseHandler>)handler");
+ printer->Print("ResponseHandler:(id<GRPCProtoResponseHandler>)handler");
} else {
printer->Print(vars,
"Message:($request_class$ *)message "
- "responseHandler:(id<GRPCResponseHandler>)handler");
+ "responseHandler:(id<GRPCProtoResponseHandler>)handler");
}
printer->Print(" callOptions:(GRPCCallOptions *_Nullable)callOptions");
}
diff --git a/src/compiler/objective_c_plugin.cc b/src/compiler/objective_c_plugin.cc
index d0ef9ed0d6..87977095d0 100644
--- a/src/compiler/objective_c_plugin.cc
+++ b/src/compiler/objective_c_plugin.cc
@@ -98,7 +98,7 @@ class ObjectiveCGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator {
"@class GRPCUnaryProtoCall;\n"
"@class GRPCStreamingProtoCall;\n"
"@class GRPCCallOptions;\n"
- "@protocol GRPCResponseHandler;\n"
+ "@protocol GRPCProtoResponseHandler;\n"
"\n";
::grpc::string class_declarations =