HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //proc/self/root/lib/python2.7/site-packages/google/protobuf/message_factory.pyc
�
Q�,Qc@s�dZdZddlmZddlmZddlmZddlmZdefd��YZej	�Z
eje
�Ze�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_nameRRtGeneratedProtocolMessageTypetnametencodeRtMessagetfieldstmessage_typetGetPrototype(Rt
descriptortresult_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