parameters: (self, printer, name, method_info_map)
docstring: Write a single service declaration to a proto file.
docstring_summary: Write a single service declaration to a proto file.
docstring_tokens: Write a single service declaration to a proto file .
function: def __WriteProtoServiceDeclaration(self, printer, name, method_info_map):
          """Write a single service declaration to a proto file."""
          printer()
          printer('service %s {', self.__GetServiceClassName(name))
          with printer.Indent():
              for method_name, method_info in method_info_map.items():
                  for line in textwrap.wrap(method_info.description,
                                            printer.CalculateWidth() - 3):
                      printer('// %s', line)
                  printer('rpc %s (%s) returns (%s);',
                          method_name,
                          method_info.request_type_name,
                          method_info.response_type_name)
          printer('}')
function_tokens: def __WriteProtoServiceDeclaration ( self , printer , name , method_info_map ) : printer ( ) printer ( 'service %s {' , self . __GetServiceClassName ( name ) ) with printer . Indent ( ) : for method_name , method_info in method_info_map . items ( ) : for line in textwrap . wrap ( method_info . description , printer . CalculateWidth ( ) - 3 ) : printer ( '// %s' , line ) printer ( 'rpc %s (%s) returns (%s);' , method_name , method_info . request_type_name , method_info . response_type_name ) printer ( '}' )