def ParseMessage(descriptor, byte_str):
 class _ResultClass(message.Message, ):
  __metaclass__ = GeneratedProtocolMessageType
  DESCRIPTOR = descriptor
 new_msg = _ResultClass()
 new_msg.ParseFromString(byte_str)
 return new_msg

def ParseMessage ( descriptor , byte_str ) : class _ResultClass ( message . Message , ) : __metaclass__ = GeneratedProtocolMessageType DESCRIPTOR = descriptor new_msg = _ResultClass ( ) new_msg . ParseFromString ( byte_str ) return new_msg
generate a new message instance from this descriptor and a byte string .