Hello All, I am having trouble on using message_factory module. I am trying to use the GetMessages function . I tried to created a FileDescriptorProto and supply it but GetMessage raises an Attribute exception. I am not sure what I am missing. below is the code that I supplied. I used the FileDescriptorProto because it was used in the internal module message_factory_test.
from google.protobuf import message_factory from google.protobuf import descriptor_pb2 import protofile_pb2 msg_factory = message_factory.MessageFactory() file_desc = descriptor_pb2.FieldDescriptorProto.FromString( protofile_pb2.DESCRIPTOR.serialized_pb ) message_classes = message_factory.GetMessages([file_desc]) My Questions: 1 - what am I missing ? I tried using FileDescriptor as an argument but that did not help. 2- Will this module be available on V3.0 Protocol buffers -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
