Lines Matching refs:method
48 static void GenerateClientFuncName(const grpc_generator::Method *method, in GenerateClientFuncName() argument
52 if (method->NoStreaming()) { in GenerateClientFuncName()
61 if (method->ServerStreaming()) { in GenerateClientFuncName()
71 if (method->ClientStreaming()) { in GenerateClientFuncName()
86 static void GenerateClientFuncBody(const grpc_generator::Method *method, in GenerateClientFuncBody() argument
92 if (method->NoStreaming()) { in GenerateClientFuncBody()
104 if (method->ServerStreaming()) { in GenerateClientFuncBody()
117 if (method->ClientStreaming()) { in GenerateClientFuncBody()
154 auto method = service->method(it); in GenerateClientProtocol() local
155 vars["Input"] = GenerateMessage(method->get_input_namespace_parts(), in GenerateClientProtocol()
156 method->get_input_type_name()); in GenerateClientProtocol()
157 vars["Output"] = GenerateMessage(method->get_output_namespace_parts(), in GenerateClientProtocol()
158 method->get_output_type_name()); in GenerateClientProtocol()
159 vars["MethodName"] = method->name(); in GenerateClientProtocol()
161 GenerateClientFuncName(method.get(), &*printer, &vars); in GenerateClientProtocol()
174 auto method = service->method(it); in GenerateClientProtocol() local
175 vars["Input"] = GenerateMessage(method->get_input_namespace_parts(), in GenerateClientProtocol()
176 method->get_input_type_name()); in GenerateClientProtocol()
177 vars["Output"] = GenerateMessage(method->get_output_namespace_parts(), in GenerateClientProtocol()
178 method->get_output_type_name()); in GenerateClientProtocol()
179 vars["MethodName"] = method->name(); in GenerateClientProtocol()
182 GenerateClientFuncName(method.get(), &*printer, &vars); in GenerateClientProtocol()
184 GenerateClientFuncBody(method.get(), &*printer, &vars); in GenerateClientProtocol()
194 auto method = service->method(it); in GenerateClientProtocol() local
195 vars["Input"] = GenerateMessage(method->get_input_namespace_parts(), in GenerateClientProtocol()
196 method->get_input_type_name()); in GenerateClientProtocol()
197 vars["Output"] = GenerateMessage(method->get_output_namespace_parts(), in GenerateClientProtocol()
198 method->get_output_type_name()); in GenerateClientProtocol()
199 vars["MethodName"] = method->name(); in GenerateClientProtocol()
240 grpc::string GenerateServerFuncName(const grpc_generator::Method *method) { in GenerateServerFuncName() argument
241 if (method->NoStreaming()) { in GenerateServerFuncName()
246 if (method->ClientStreaming()) { in GenerateServerFuncName()
252 if (method->ServerStreaming()) { in GenerateServerFuncName()
261 grpc::string GenerateServerExtensionBody(const grpc_generator::Method *method) { in GenerateServerExtensionBody() argument
266 if (method->NoStreaming()) { in GenerateServerExtensionBody()
275 if (method->ServerStreaming()) { in GenerateServerExtensionBody()
284 if (method->ClientStreaming()) { in GenerateServerExtensionBody()
293 if (method->BidiStreaming()) { in GenerateServerExtensionBody()
317 auto method = service->method(it); in GenerateServerProtocol() local
318 vars["Input"] = GenerateMessage(method->get_input_namespace_parts(), in GenerateServerProtocol()
319 method->get_input_type_name()); in GenerateServerProtocol()
320 vars["Output"] = GenerateMessage(method->get_output_namespace_parts(), in GenerateServerProtocol()
321 method->get_output_type_name()); in GenerateServerProtocol()
322 vars["MethodName"] = method->name(); in GenerateServerProtocol()
324 auto func = GenerateServerFuncName(method.get()); in GenerateServerProtocol()
341 auto method = service->method(it); in GenerateServerProtocol() local
342 vars["Input"] = GenerateMessage(method->get_input_namespace_parts(), in GenerateServerProtocol()
343 method->get_input_type_name()); in GenerateServerProtocol()
344 vars["Output"] = GenerateMessage(method->get_output_namespace_parts(), in GenerateServerProtocol()
345 method->get_output_type_name()); in GenerateServerProtocol()
346 vars["MethodName"] = method->name(); in GenerateServerProtocol()
347 auto body = GenerateServerExtensionBody(method.get()); in GenerateServerProtocol()
360 auto method = service->method(it); in GenerateServerProtocol() local
361 vars["Input"] = GenerateMessage(method->get_input_namespace_parts(), in GenerateServerProtocol()
362 method->get_input_type_name()); in GenerateServerProtocol()
363 vars["Output"] = GenerateMessage(method->get_output_namespace_parts(), in GenerateServerProtocol()
364 method->get_output_type_name()); in GenerateServerProtocol()
365 vars["MethodName"] = method->name(); in GenerateServerProtocol()