Lines Matching refs:method
128 const MethodDescriptor* method) { in GenerateDocCommentServerMethod() argument
129 if (GenerateDocCommentBody(printer, method)) { in GenerateDocCommentServerMethod()
130 if (method->client_streaming()) { in GenerateDocCommentServerMethod()
139 if (method->server_streaming()) { in GenerateDocCommentServerMethod()
147 if (method->server_streaming()) { in GenerateDocCommentServerMethod()
160 const MethodDescriptor* method, in GenerateDocCommentClientMethod() argument
162 if (GenerateDocCommentBody(printer, method)) { in GenerateDocCommentClientMethod()
163 if (!method->client_streaming()) { in GenerateDocCommentClientMethod()
203 std::string GetCSharpMethodType(const MethodDescriptor* method) { in GetCSharpMethodType() argument
204 if (method->client_streaming()) { in GetCSharpMethodType()
205 if (method->server_streaming()) { in GetCSharpMethodType()
211 if (method->server_streaming()) { in GetCSharpMethodType()
219 std::string GetCSharpServerMethodType(const MethodDescriptor* method) { in GetCSharpServerMethodType() argument
220 if (method->client_streaming()) { in GetCSharpServerMethodType()
221 if (method->server_streaming()) { in GetCSharpServerMethodType()
227 if (method->server_streaming()) { in GetCSharpServerMethodType()
242 std::string GetMethodFieldName(const MethodDescriptor* method) { in GetMethodFieldName() argument
243 return "__Method_" + method->name(); in GetMethodFieldName()
246 std::string GetMethodRequestParamMaybe(const MethodDescriptor* method, in GetMethodRequestParamMaybe() argument
248 if (method->client_streaming()) { in GetMethodRequestParamMaybe()
254 return GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->input_type()) + " request, "; in GetMethodRequestParamMaybe()
261 std::string GetMethodReturnTypeClient(const MethodDescriptor* method) { in GetMethodReturnTypeClient() argument
262 if (method->client_streaming()) { in GetMethodReturnTypeClient()
263 if (method->server_streaming()) { in GetMethodReturnTypeClient()
265 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->input_type()) + ", " + in GetMethodReturnTypeClient()
266 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->output_type()) + ">"; in GetMethodReturnTypeClient()
269 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->input_type()) + ", " + in GetMethodReturnTypeClient()
270 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->output_type()) + ">"; in GetMethodReturnTypeClient()
273 if (method->server_streaming()) { in GetMethodReturnTypeClient()
275 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->output_type()) + ">"; in GetMethodReturnTypeClient()
278 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->output_type()) + ">"; in GetMethodReturnTypeClient()
283 std::string GetMethodRequestParamServer(const MethodDescriptor* method) { in GetMethodRequestParamServer() argument
284 if (method->client_streaming()) { in GetMethodRequestParamServer()
286 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->input_type()) + in GetMethodRequestParamServer()
289 return GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->input_type()) + " request"; in GetMethodRequestParamServer()
292 std::string GetMethodReturnTypeServer(const MethodDescriptor* method) { in GetMethodReturnTypeServer() argument
293 if (method->server_streaming()) { in GetMethodReturnTypeServer()
297 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->output_type()) + ">"; in GetMethodReturnTypeServer()
300 std::string GetMethodResponseStreamMaybe(const MethodDescriptor* method) { in GetMethodResponseStreamMaybe() argument
301 if (method->server_streaming()) { in GetMethodResponseStreamMaybe()
303 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->output_type()) + in GetMethodResponseStreamMaybe()
316 const MethodDescriptor* method = service->method(i); in GetUsedMessages() local
317 if (descriptor_set.find(method->input_type()) == descriptor_set.end()) { in GetUsedMessages()
318 descriptor_set.insert(method->input_type()); in GetUsedMessages()
319 result.push_back(method->input_type()); in GetUsedMessages()
321 if (descriptor_set.find(method->output_type()) == descriptor_set.end()) { in GetUsedMessages()
322 descriptor_set.insert(method->output_type()); in GetUsedMessages()
323 result.push_back(method->output_type()); in GetUsedMessages()
411 void GenerateStaticMethodField(Printer* out, const MethodDescriptor* method) { in GenerateStaticMethodField() argument
416 "fieldname", GetMethodFieldName(method), "request", in GenerateStaticMethodField()
417 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->input_type()), "response", in GenerateStaticMethodField()
418 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->output_type())); in GenerateStaticMethodField()
421 out->Print("$methodtype$,\n", "methodtype", GetCSharpMethodType(method)); in GenerateStaticMethodField()
424 out->Print("\"$methodname$\",\n", "methodname", method->name()); in GenerateStaticMethodField()
426 GetMarshallerFieldName(method->input_type())); in GenerateStaticMethodField()
428 GetMarshallerFieldName(method->output_type())); in GenerateStaticMethodField()
466 const MethodDescriptor* method = service->method(i); in GenerateServerClass() local
467 GenerateDocCommentServerMethod(out, method); in GenerateServerClass()
468 GenerateObsoleteAttribute(out, method->options().deprecated()); in GenerateServerClass()
474 "methodname", method->name(), "returntype", in GenerateServerClass()
475 GetMethodReturnTypeServer(method), "request", in GenerateServerClass()
476 GetMethodRequestParamServer(method), "response_stream_maybe", in GenerateServerClass()
477 GetMethodResponseStreamMaybe(method)); in GenerateServerClass()
544 const MethodDescriptor* method = service->method(i); in GenerateClientStub() local
545 const bool is_deprecated = method->options().deprecated(); in GenerateClientStub()
546 if (!method->client_streaming() && !method->server_streaming()) { in GenerateClientStub()
548 GenerateDocCommentClientMethod(out, method, true, false); in GenerateClientStub()
558 "methodname", method->name(), "request", in GenerateClientStub()
559 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->input_type()), "response", in GenerateClientStub()
560 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->output_type())); in GenerateClientStub()
567 "methodname", method->name()); in GenerateClientStub()
572 GenerateDocCommentClientMethod(out, method, true, true); in GenerateClientStub()
578 "methodname", method->name(), "request", in GenerateClientStub()
579 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->input_type()), "response", in GenerateClientStub()
580 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->output_type())); in GenerateClientStub()
586 "methodfield", GetMethodFieldName(method)); in GenerateClientStub()
591 std::string method_name = method->name(); in GenerateClientStub()
592 if (!method->client_streaming() && !method->server_streaming()) { in GenerateClientStub()
595 GenerateDocCommentClientMethod(out, method, false, false); in GenerateClientStub()
606 GetMethodRequestParamMaybe(method), "returntype", in GenerateClientStub()
607 GetMethodReturnTypeClient(method)); in GenerateClientStub()
616 GetMethodRequestParamMaybe(method, true)); in GenerateClientStub()
621 GenerateDocCommentClientMethod(out, method, false, true); in GenerateClientStub()
629 GetMethodRequestParamMaybe(method), "returntype", in GenerateClientStub()
630 GetMethodReturnTypeClient(method)); in GenerateClientStub()
633 if (!method->client_streaming() && !method->server_streaming()) { in GenerateClientStub()
638 "methodfield", GetMethodFieldName(method)); in GenerateClientStub()
639 } else if (method->client_streaming() && !method->server_streaming()) { in GenerateClientStub()
644 "methodfield", GetMethodFieldName(method)); in GenerateClientStub()
645 } else if (!method->client_streaming() && method->server_streaming()) { in GenerateClientStub()
650 "methodfield", GetMethodFieldName(method)); in GenerateClientStub()
656 "methodfield", GetMethodFieldName(method)); in GenerateClientStub()
702 const MethodDescriptor* method = service->method(i); in GenerateBindServiceMethod() local
704 "methodfield", GetMethodFieldName(method), "methodname", in GenerateBindServiceMethod()
705 method->name()); in GenerateBindServiceMethod()
742 const MethodDescriptor* method = service->method(i); in GenerateBindServiceWithBinderMethod() local
747 "methodfield", GetMethodFieldName(method), "servermethodtype", in GenerateBindServiceWithBinderMethod()
748 GetCSharpServerMethodType(method), "inputtype", in GenerateBindServiceWithBinderMethod()
749 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->input_type()), "outputtype", in GenerateBindServiceWithBinderMethod()
750 GRPC_CUSTOM_CSHARP_GETCLASSNAME(method->output_type()), "methodname", in GenerateBindServiceWithBinderMethod()
751 method->name()); in GenerateBindServiceWithBinderMethod()
777 GenerateStaticMethodField(out, service->method(i)); in GenerateService()