OwlCyberSecurity - MANAGER
Edit File: descriptor_database.pyc
� Du�ac�����������@���s[���d��Z��d�Z�d�e�f�d�������YZ�d�e�f�d�������YZ�d�e�f�d�������YZ�d����Z�d �S( ���s*���Provides a container for DescriptorProtos.s"���matthewtoia@google.com (Matt Toia)t���Errorc�����������B���s���e��Z�RS(����(���t���__name__t ���__module__(����(����(����sG���/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyR����$���s���t,���DescriptorDatabaseConflictingDefinitionErrorc�����������B���s���e��Z�d��Z�RS(���sG���Raised when a proto is added with the same name & different descriptor.(���R���R���t���__doc__(����(����(����sG���/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyR���(���s���t���DescriptorDatabasec�����������B���s2���e��Z�d��Z�d����Z�d����Z�d����Z�d����Z�RS(���sE���A container accepting FileDescriptorProtos and maps DescriptorProtos.c���������C���s���i��|��_��i��|��_�d��S(���N(���t���_file_desc_protos_by_filet���_file_desc_protos_by_symbol(���t���self(����(����sG���/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyt���__init__/���s���� c������������s1�����j��}�|�|��j�k�r(����|��j�|�<n&�|��j�|����k�rN�t�d�|�����n�����j�}�x:����j�D]/�}�|��j�j����f�d����t�|�|���D����qa�Wx0����j�D]%�}����|��j�d�j �|�|�j��f���<q��Wx0����j �D]%�}����|��j�d�j �|�|�j��f���<q��Wx0����j�D]%�}����|��j�d�j �|�|�j��f���<qWd�S(���sM��Adds the FileDescriptorProto and its types to this database. Args: file_desc_proto: The FileDescriptorProto to add. Raises: DescriptorDatabaseConflictingDefinitionError: if an attempt is made to add a proto with the same name but different definition than an exisiting proto in the database. s0���%s already added, but with different descriptor.c���������3���s���|��]�}�|����f�Vq�d��S(���N(����(���t���.0t���name(���t���file_desc_proto(����sG���/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pys ���<genexpr>H���s����t���.N(���R���R���R���t���packaget���message_typeR���t���updatet���_ExtractSymbolst ���enum_typet���joint ���extensiont���service(���R���R���t ���proto_nameR���t���messaget���enumR���R���(����(���R���sG���/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyt���Add3���s ���� $##c���������C���s���|��j��|�S(���s���Finds the file descriptor proto by file name. Typically the file name is a relative path ending to a .proto file. The proto with the given name will have to have been added to this database using the Add method or else an error will be raised. Args: name: The file name to find. Returns: The file descriptor proto matching the name. Raises: KeyError if no file by the given name was added. (���R���(���R���R���(����(����sG���/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyt���FindFileByNameS���s����c���������C���sG���y�|��j��|�SWn1�t�k �rB�|�j�d���\�}�}�}�|��j��|�SXd�S(���s���Finds the file descriptor proto containing the specified symbol. The symbol should be a fully qualified name including the file descriptor's package and any containing messages. Some examples: 'some.package.name.Message' 'some.package.name.Message.NestedEnum' 'some.package.name.Message.some_field' The file descriptor proto containing the specified symbol must be added to this database using the Add method or else an error will be raised. Args: symbol: The fully qualified symbol name. Returns: The file descriptor proto containing the symbol. Raises: KeyError if no file contains the specified symbol. R ���N(���R���t���KeyErrort ���rpartition(���R���t���symbolt ���top_levelt���_(����(����sG���/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyt���FindFileContainingSymbolf���s ���� (���R���R���R���R ���R���R���R ���(����(����(����sG���/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyR���,���s ��� c���������c���s����|�r�|�d�|��j��n�|��j��}�|�Vx0�|��j�D]%�}�x�t�|�|���D]�}�|�VqE�Wq/�Wx(�|��j�D]�}�d�j�|�|�j��f���Vqb�Wd�S(���s����Pulls out all the symbols from a descriptor proto. Args: desc_proto: The proto to extract symbols from. package: The package containing the descriptor type. Yields: The fully qualified name found in the descriptor. R ���N(���R���t���nested_typeR���R���R���(���t ���desc_protoR���t���message_nameR!���R���R���(����(����sG���/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyR�������s���� N(���R���t ���__author__t ���ExceptionR����R���t���objectR���R���(����(����(����sG���/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyt���<module>���s ���\