ó Du—ac@shdZdZddlmZddlmZddlmZdefd„ƒYZeƒZd„Z d S( soProvides a factory class for generating dynamic messages. The easiest way to use this class is if you have access to the FileDescriptor protos containing the messages you want to create you can just do the following: message_classes = message_factory.GetMessages(iterable_of_file_descriptors) my_proto_instance = message_classes['some.proto.package.MessageName']() s"matthewtoia@google.com (Matt Toia)iÿÿÿÿ(tdescriptor_pool(tmessage(t reflectiontMessageFactorycBs,eZdZdd„Zd„Zd„ZRS(s@Factory for creating Proto2 messages from descriptors in a pool.cCs"|ptjƒ|_i|_dS(sInitializes a new factory.N(RtDescriptorPooltpoolt_classes(tselfR((sC/usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyt__init__2scCs ||jkrþ|j}ttkr<|jjddƒ}ntj|tjfi|d6dd6ƒ}||j|Žs csJx3|jD](}|ˆkr ˆˆj|ƒƒq q Wtjj|ƒdS(N(t dependencytpopt_FACTORYRtAdd(R.R/(t_AddFilet file_by_name(sC/usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyR3s i(tpopitemR1R*R (t file_protosR.((R3R4sC/usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyR*s  N( R,t __author__tgoogle.protobufRRRtobjectRR1R*(((sC/usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyt&sO