Lines Matching refs:method
42 const MethodDescriptor* method, in PrintProtoRpcDeclarationAsPragma() argument
44 vars["client_stream"] = method->client_streaming() ? "stream " : ""; in PrintProtoRpcDeclarationAsPragma()
45 vars["server_stream"] = method->server_streaming() ? "stream " : ""; in PrintProtoRpcDeclarationAsPragma()
84 void PrintMethodSignature(Printer* printer, const MethodDescriptor* method, in PrintMethodSignature() argument
87 PrintAllComments(method, printer, true); in PrintMethodSignature()
90 if (method->client_streaming()) { in PrintMethodSignature()
97 if (method->server_streaming()) { in PrintMethodSignature()
109 void PrintSimpleSignature(Printer* printer, const MethodDescriptor* method, in PrintSimpleSignature() argument
114 PrintMethodSignature(printer, method, vars); in PrintSimpleSignature()
117 void PrintAdvancedSignature(Printer* printer, const MethodDescriptor* method, in PrintAdvancedSignature() argument
121 PrintMethodSignature(printer, method, vars); in PrintAdvancedSignature()
124 void PrintV2Signature(Printer* printer, const MethodDescriptor* method, in PrintV2Signature() argument
126 if (method->client_streaming()) { in PrintV2Signature()
134 PrintAllComments(method, printer); in PrintV2Signature()
137 if (method->client_streaming()) { in PrintV2Signature()
148 const MethodDescriptor* method) { in GetMethodVars() argument
150 res["method_name"] = method->name(); in GetMethodVars()
151 res["request_type"] = method->input_type()->name(); in GetMethodVars()
152 res["response_type"] = method->output_type()->name(); in GetMethodVars()
153 res["request_class"] = ClassName(method->input_type()); in GetMethodVars()
154 res["response_class"] = ClassName(method->output_type()); in GetMethodVars()
158 void PrintMethodDeclarations(Printer* printer, const MethodDescriptor* method) { in PrintMethodDeclarations() argument
159 if (!ShouldIncludeMethod(method)) return; in PrintMethodDeclarations()
161 map< ::std::string, ::std::string> vars = GetMethodVars(method); in PrintMethodDeclarations()
163 PrintProtoRpcDeclarationAsPragma(printer, method, vars); in PrintMethodDeclarations()
165 PrintSimpleSignature(printer, method, vars); in PrintMethodDeclarations()
167 PrintAdvancedSignature(printer, method, vars); in PrintMethodDeclarations()
172 const MethodDescriptor* method) { in PrintV2MethodDeclarations() argument
173 if (!ShouldIncludeMethod(method)) return; in PrintV2MethodDeclarations()
175 map< ::std::string, ::std::string> vars = GetMethodVars(method); in PrintV2MethodDeclarations()
177 PrintProtoRpcDeclarationAsPragma(printer, method, vars); in PrintV2MethodDeclarations()
179 PrintV2Signature(printer, method, vars); in PrintV2MethodDeclarations()
183 void PrintSimpleImplementation(Printer* printer, const MethodDescriptor* method, in PrintSimpleImplementation() argument
187 if (method->client_streaming()) { in PrintSimpleImplementation()
192 if (method->server_streaming()) { in PrintSimpleImplementation()
201 const MethodDescriptor* method, in PrintAdvancedImplementation() argument
207 if (method->client_streaming()) { in PrintAdvancedImplementation()
216 if (method->server_streaming()) { in PrintAdvancedImplementation()
225 void PrintV2Implementation(Printer* printer, const MethodDescriptor* method, in PrintV2Implementation() argument
228 if (method->client_streaming()) { in PrintV2Implementation()
245 const MethodDescriptor* method, in PrintMethodImplementations() argument
247 if (!ShouldIncludeMethod(method)) return; in PrintMethodImplementations()
249 map< ::std::string, ::std::string> vars = GetMethodVars(method); in PrintMethodImplementations()
251 PrintProtoRpcDeclarationAsPragma(printer, method, vars); in PrintMethodImplementations()
255 PrintSimpleSignature(printer, method, vars); in PrintMethodImplementations()
256 PrintSimpleImplementation(printer, method, vars); in PrintMethodImplementations()
259 PrintAdvancedSignature(printer, method, vars); in PrintMethodImplementations()
260 PrintAdvancedImplementation(printer, method, vars); in PrintMethodImplementations()
263 PrintV2Signature(printer, method, vars); in PrintMethodImplementations()
264 PrintV2Implementation(printer, method, vars); in PrintMethodImplementations()
275 const auto method = service->method(i); in GetAllMessageClasses() local
276 if (ShouldIncludeMethod(method)) { in GetAllMessageClasses()
277 classes.insert(ClassName(method->input_type())); in GetAllMessageClasses()
278 classes.insert(ClassName(method->output_type())); in GetAllMessageClasses()
311 PrintMethodDeclarations(&printer, service->method(i)); in GetProtocol()
330 PrintV2MethodDeclarations(&printer, service->method(i)); in GetV2Protocol()
450 PrintMethodImplementations(&printer, service->method(i), in GetSource()