__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

aptanhua@216.73.216.200: ~ $
3

���h��@sNdZdZddlmZddlmZddlmZGdd�de�Ze�Zdd	�Z	d
S)aoProvides 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']()
z"matthewtoia@google.com (Matt Toia)�)�descriptor_pool)�message)�
reflectionc@s*eZdZdZd	dd�Zdd�Zdd�ZdS)
�MessageFactoryz@Factory for creating Proto2 messages from descriptors in a pool.NcCs|p
tj�|_i|_dS)zInitializes a new factory.N)rZDescriptorPool�pool�_classes)�selfr�r	�%/usr/lib/python3.6/message_factory.py�__init__2szMessageFactory.__init__cCs�||jkr�|j}ttkr&|jjdd�}tj|tjf|dd��}||j|<x |j	D]}|j
rP|j|j
�qPWx>|jj
D]2}|j|jkr�|j|j�|j|j}|j|�qtW|j|S)aDBuilds 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.
    �ascii�ignoreN)�
DESCRIPTOR�
__module__)r�name�str�bytes�encoderZGeneratedProtocolMessageTyperZMessageZfieldsZmessage_type�GetPrototyper�
extensions�containing_type�RegisterExtension)rZ
descriptorZdescriptor_nameZresult_classZfield�	extension�extended_classr	r	r
r9s$

zMessageFactory.GetPrototypecCs�i}x�|D]~}|jj|�}x&t|jj��D]}|j|�||j<q*WxDt|jj��D]2}|j|j	krn|j|j�|j	|j}|j
|�qRWq
W|S)a�Gets all the messages from a specified file.

    This will find and resolve dependencies, failing if the descriptor
    pool cannot satisfy them.

    Args:
      files: The file names to extract messages from.

    Returns:
      A dictionary mapping proto names to the message classes. This will include
      any dependent messages as well as any messages defined in the same file as
      a specified message.
    )rZFindFileByName�listZmessage_types_by_name�valuesrZ	full_nameZextensions_by_namerrr)r�files�result�	file_nameZ	file_descZdescrrr	r	r
�GetMessagesYs
zMessageFactory.GetMessages)N)�__name__r�__qualname__�__doc__rrrr	r	r	r
r/s
 rcsJdd�|D����fdd��x�r4��j�d�qWtjdd�|D��S)a^Builds a dictionary of all the messages available in a set of files.

  Args:
    file_protos: Iterable of FileDescriptorProto to build messages out of.

  Returns:
    A dictionary mapping proto names to the message classes. This will include
    any dependent messages as well as any messages defined in the same file as
    a specified message.
  cSsi|]}||j�qSr	)r)�.0�
file_protor	r	r
�
<dictcomp>�szGetMessages.<locals>.<dictcomp>cs6x$|jD]}|�kr��j|��qWtjj|�dS)N)�
dependency�pop�_FACTORYrZAdd)r$r&)�_AddFile�file_by_namer	r
r)�szGetMessages.<locals>._AddFile�cSsg|]
}|j�qSr	)r)r#r$r	r	r
�
<listcomp>�szGetMessages.<locals>.<listcomp>)�popitemr(r)Zfile_protosr	)r)r*r
r�s

rN)
r"�
__author__Zgoogle.protobufrrr�objectrr(rr	r	r	r
�<module>&sO

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 319 B 0644
__init__.cpython-36.pyc File 319 B 0644
any_pb2.cpython-36.opt-1.pyc File 2.09 KB 0644
any_pb2.cpython-36.pyc File 2.09 KB 0644
any_test_pb2.cpython-36.opt-1.pyc File 2.18 KB 0644
any_test_pb2.cpython-36.pyc File 2.18 KB 0644
api_pb2.cpython-36.opt-1.pyc File 4.73 KB 0644
api_pb2.cpython-36.pyc File 4.73 KB 0644
descriptor.cpython-36.opt-1.pyc File 31.27 KB 0644
descriptor.cpython-36.pyc File 31.27 KB 0644
descriptor_database.cpython-36.opt-1.pyc File 4.11 KB 0644
descriptor_database.cpython-36.pyc File 4.11 KB 0644
descriptor_pb2.cpython-36.opt-1.pyc File 30.36 KB 0644
descriptor_pb2.cpython-36.pyc File 30.36 KB 0644
descriptor_pool.cpython-36.opt-1.pyc File 26.77 KB 0644
descriptor_pool.cpython-36.pyc File 26.8 KB 0644
duration_pb2.cpython-36.opt-1.pyc File 2.13 KB 0644
duration_pb2.cpython-36.pyc File 2.13 KB 0644
empty_pb2.cpython-36.opt-1.pyc File 1.69 KB 0644
empty_pb2.cpython-36.pyc File 1.69 KB 0644
field_mask_pb2.cpython-36.opt-1.pyc File 2.05 KB 0644
field_mask_pb2.cpython-36.pyc File 2.05 KB 0644
json_format.cpython-36.opt-1.pyc File 20.32 KB 0644
json_format.cpython-36.pyc File 20.32 KB 0644
map_proto2_unittest_pb2.cpython-36.opt-1.pyc File 18.31 KB 0644
map_proto2_unittest_pb2.cpython-36.pyc File 18.31 KB 0644
map_unittest_pb2.cpython-36.opt-1.pyc File 39.56 KB 0644
map_unittest_pb2.cpython-36.pyc File 39.56 KB 0644
message.cpython-36.opt-1.pyc File 10.48 KB 0644
message.cpython-36.pyc File 10.48 KB 0644
message_factory.cpython-36.opt-1.pyc File 3.93 KB 0644
message_factory.cpython-36.pyc File 3.93 KB 0644
proto_builder.cpython-36.opt-1.pyc File 2.68 KB 0644
proto_builder.cpython-36.pyc File 2.68 KB 0644
reflection.cpython-36.opt-1.pyc File 2.65 KB 0644
reflection.cpython-36.pyc File 2.65 KB 0644
service.cpython-36.opt-1.pyc File 8.56 KB 0644
service.cpython-36.pyc File 8.56 KB 0644
service_reflection.cpython-36.opt-1.pyc File 9.76 KB 0644
service_reflection.cpython-36.pyc File 9.76 KB 0644
source_context_pb2.cpython-36.opt-1.pyc File 2.15 KB 0644
source_context_pb2.cpython-36.pyc File 2.15 KB 0644
struct_pb2.cpython-36.opt-1.pyc File 5.02 KB 0644
struct_pb2.cpython-36.pyc File 5.02 KB 0644
symbol_database.cpython-36.opt-1.pyc File 5.32 KB 0644
symbol_database.cpython-36.pyc File 5.32 KB 0644
test_messages_proto2_pb2.cpython-36.opt-1.pyc File 38.69 KB 0644
test_messages_proto2_pb2.cpython-36.pyc File 38.69 KB 0644
test_messages_proto3_pb2.cpython-36.opt-1.pyc File 43.27 KB 0644
test_messages_proto3_pb2.cpython-36.pyc File 43.27 KB 0644
text_encoding.cpython-36.opt-1.pyc File 3.06 KB 0644
text_encoding.cpython-36.pyc File 3.06 KB 0644
text_format.cpython-36.opt-1.pyc File 38.55 KB 0644
text_format.cpython-36.pyc File 38.58 KB 0644
timestamp_pb2.cpython-36.opt-1.pyc File 2.14 KB 0644
timestamp_pb2.cpython-36.pyc File 2.14 KB 0644
type_pb2.cpython-36.opt-1.pyc File 8.49 KB 0644
type_pb2.cpython-36.pyc File 8.49 KB 0644
unittest_arena_pb2.cpython-36.opt-1.pyc File 2.76 KB 0644
unittest_arena_pb2.cpython-36.pyc File 2.76 KB 0644
unittest_custom_options_pb2.cpython-36.opt-1.pyc File 32.24 KB 0644
unittest_custom_options_pb2.cpython-36.pyc File 32.24 KB 0644
unittest_import_pb2.cpython-36.opt-1.pyc File 3.11 KB 0644
unittest_import_pb2.cpython-36.pyc File 3.11 KB 0644
unittest_import_public_pb2.cpython-36.opt-1.pyc File 1.93 KB 0644
unittest_import_public_pb2.cpython-36.pyc File 1.93 KB 0644
unittest_mset_pb2.cpython-36.opt-1.pyc File 4.46 KB 0644
unittest_mset_pb2.cpython-36.pyc File 4.46 KB 0644
unittest_mset_wire_format_pb2.cpython-36.opt-1.pyc File 2.51 KB 0644
unittest_mset_wire_format_pb2.cpython-36.pyc File 2.51 KB 0644
unittest_no_arena_import_pb2.cpython-36.opt-1.pyc File 1.83 KB 0644
unittest_no_arena_import_pb2.cpython-36.pyc File 1.83 KB 0644
unittest_no_arena_pb2.cpython-36.opt-1.pyc File 20.24 KB 0644
unittest_no_arena_pb2.cpython-36.pyc File 20.24 KB 0644
unittest_no_generic_services_pb2.cpython-36.opt-1.pyc File 3.23 KB 0644
unittest_no_generic_services_pb2.cpython-36.pyc File 3.23 KB 0644
unittest_pb2.cpython-36.opt-1.pyc File 124.95 KB 0644
unittest_pb2.cpython-36.pyc File 124.95 KB 0644
unittest_proto3_arena_pb2.cpython-36.opt-1.pyc File 21.42 KB 0644
unittest_proto3_arena_pb2.cpython-36.pyc File 21.42 KB 0644
wrappers_pb2.cpython-36.opt-1.pyc File 4.58 KB 0644
wrappers_pb2.cpython-36.pyc File 4.58 KB 0644