#NEWLINE# def _generate_func_serialize_stream_event_context_proto( self , stream ) : #NEWLINE# #INDENT# tmpl = templates . _FUNC_SERIALIZE_STREAM_EVENT_CONTEXT_PROTO_BEGIN #NEWLINE# self . _cg . add_lines ( tmpl . format ( prefix = stream . _cfg . prefix , sname = stream . name ) ) #NEWLINE# if ( stream . event_context_type is not None ) : #NEWLINE# #INDENT# self . _generate_proto_params ( stream . event_context_type , _PREFIX_SEC , [ ] ) #NEWLINE# #UNINDENT# tmpl = templates . _FUNC_SERIALIZE_STREAM_EVENT_CONTEXT_PROTO_END #NEWLINE# self . _cg . add_lines ( tmpl )