#NEWLINE# def write( self , ostream ) : #NEWLINE# #INDENT# '\n        Write the data encoding the QueryRequestPayload object to a stream.\n\n        Args:\n            ostream (Stream): A data stream in which to encode object data,\n                supporting a write method; usually a BytearrayStream object.\n        ' #NEWLINE# tstream = BytearrayStream ( ) #NEWLINE# for query_function in self . query_functions : #NEWLINE# #INDENT# query_function . write ( tstream ) #NEWLINE# #UNINDENT# self . length = tstream . length ( ) #NEWLINE# super ( QueryRequestPayload , self ) . write ( self ) #NEWLINE# ostream . write ( tstream . buffer )