Spade
Mini Shell
| Directory:~$ /proc/self/root/usr/lib/python2.7/site-packages/google/protobuf/ |
| [Home] [System Details] [Kill Me] |
�
Q�,Qc@s�dZdZddlmZddlmZddlmZddlmZdefd��YZej �Z
eje
�Ze�Z
d �Zd
�ZdS(s9Provides a factory class for generating dynamic
messages.s"matthewtoia@google.com (Matt
Toia)i����(tdescriptor_database(tdescriptor_pool(tmessage(t
reflectiontMessageFactorycBs eZdZd�Zd�ZRS(s@Factory for
creating Proto2 messages from descriptors in a
pool.cCs
i|_dS(sInitializes a new
factory.N(t_classes(tself((sC/usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyt__init__,scCs�|j|jkr�tj|jjdd�tjfi|d6�}||j|j<x0|jD]"}|j r]|j
|j �q]q]Wn|j|jS(sDBuilds a proto2 message class based on the
passed in descriptor.
Passing a descriptor with a fully qualified name matching a previous
invocation will cause the same class to be returned.
Args:
descriptor: The descriptor to build from.
Returns:
A class describing the passed in descriptor.
tasciitignoret
DESCRIPTOR(t full_nameRRtGeneratedProtocolMessageTypetnametencodeRtMessagetfieldstmessage_typetGetPrototype(Rt
descriptortresult_classtfield((sC/usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyR0s
(t__name__t
__module__t__doc__RR(((sC/usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyR)s cCsoi}x|D]}tj|�q
WxD|D]<}x3t|j|j�D]}tj|�||j<qGWq+W|S(s/Builds
a dictionary of all the messages available in a set of files.
Args:
file_protos: A sequence of file protos to build messages out of.
Returns:
A dictionary containing all the message types in the files mapping the
fully qualified name to a Message subclass for the descriptor.
(t_DBtAddt_GetAllDescriptorsRtpackaget_FACTORYRR(tfile_protostresultt
file_prototdesc((sC/usr/lib/python2.7/site-packages/google/protobuf/message_factory.pytGetMessagesNs
ccs]xV|D]N}dj||jf�}tj|�Vxt|j|�D]}|VqFWqWdS(s�Gets
all levels of nested message types as a flattened list of descriptors.
Args:
desc_protos: The descriptor protos to process.
package: The package where the protos are defined.
Yields:
Each message descriptor for each nested type.
t.N(tjoinR
t_POOLtFindMessageTypeByNameRtnested_type(tdesc_protosRt
desc_protoR
tnested_desc((sC/usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyRbs
N(Rt
__author__tgoogle.protobufRRRRtobjectRtDescriptorDatabaseRtDescriptorPoolR%RR"R(((sC/usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyt<module>s