#NEWLINE# def ParseMessage( descriptor , byte_str ) : #NEWLINE# #INDENT# 'Generate a new Message instance from this Descriptor and a byte string.\n\n  Args:\n    descriptor: Protobuf Descriptor object\n    byte_str: Serialized protocol buffer byte string\n\n  Returns:\n    Newly created protobuf Message object.\n  ' #NEWLINE# result_class = MakeClass ( descriptor ) #NEWLINE# new_msg = result_class ( ) #NEWLINE# new_msg . ParseFromString ( byte_str ) #NEWLINE# return new_msg