#NEWLINE# def _generate_func_serialize_event_proto( self , stream , event ) : #NEWLINE# #INDENT# tmpl = templates . _FUNC_SERIALIZE_EVENT_PROTO_BEGIN #NEWLINE# self . _cg . add_lines ( tmpl . format ( prefix = self . _cfg . prefix , sname = stream . name , evname = event . name ) ) #NEWLINE# self . _generate_func_trace_proto_params ( stream , event ) #NEWLINE# tmpl = templates . _FUNC_SERIALIZE_EVENT_PROTO_END #NEWLINE# self . _cg . add_lines ( tmpl )