#NEWLINE# def read( self , istream ) : #NEWLINE# #INDENT# '\n        Read the data encoding the QueryResponsePayload object and decode it\n        into its constituent parts.\n\n        Args:\n            istream (Stream): A data stream containing encoded object data,\n                supporting a read method; usually a BytearrayStream object.\n        ' #NEWLINE# super ( QueryResponsePayload , self ) . read ( istream ) #NEWLINE# tstream = BytearrayStream ( istream . read ( self . length ) ) #NEWLINE# while self . is_tag_next ( Tags . OPERATION , tstream ) : #NEWLINE# #INDENT# operation = Operation ( ) #NEWLINE# operation . read ( tstream ) #NEWLINE# self . operations . append ( operation ) #NEWLINE# #UNINDENT# while self . is_tag_next ( Tags . OBJECT_TYPE , tstream ) : #NEWLINE# #INDENT# object_type = ObjectType ( ) #NEWLINE# object_type . read ( tstream ) #NEWLINE# self . object_types . append ( object_type ) #NEWLINE# #UNINDENT# if self . is_tag_next ( Tags . VENDOR_IDENTIFICATION , tstream ) : #NEWLINE# #INDENT# self . vendor_identification = VendorIdentification ( ) #NEWLINE# self . vendor_identification . read ( tstream ) #NEWLINE# #UNINDENT# if self . is_tag_next ( Tags . SERVER_INFORMATION , tstream ) : #NEWLINE# #INDENT# self . server_information = ServerInformation ( ) #NEWLINE# self . server_information . read ( tstream ) #NEWLINE# #UNINDENT# while self . is_tag_next ( Tags . APPLICATION_NAMESPACE , tstream ) : #NEWLINE# #INDENT# application_namespace = ApplicationNamespace ( ) #NEWLINE# application_namespace . read ( tstream ) #NEWLINE# self . application_namespaces . append ( application_namespace ) #NEWLINE# #UNINDENT# while self . is_tag_next ( Tags . EXTENSION_INFORMATION , tstream ) : #NEWLINE# #INDENT# extension_information = ExtensionInformation ( ) #NEWLINE# extension_information . read ( tstream ) #NEWLINE# self . extension_information . append ( object_type ) #NEWLINE# #UNINDENT# self . is_oversized ( tstream ) #NEWLINE# self . validate ( )