K i0\dZdZddlZGddeZGddeZGdd eZd Zy) z*Provides a container for DescriptorProtos.z"matthewtoia@google.com (Matt Toia)Nc eZdZy)ErrorN)__name__ __module__ __qualname__i/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/google/protobuf/descriptor_database.pyrrsr rceZdZdZy),DescriptorDatabaseConflictingDefinitionErrorzGRaised when a proto is added with the same name & different descriptor.N)rrr__doc__rr r r r sOr r c:eZdZdZdZdZdZdZdZdZ dZ y ) DescriptorDatabasezEA container accepting FileDescriptorProtos and maps DescriptorProtos.c i|_i|_yN)_file_desc_protos_by_file_file_desc_protos_by_symbol)selfs r __init__zDescriptorDatabase.__init__s%'D"')D$r ct|j}||jvr||j|<n!|j||k7rtd|zy|j}|jD]%}t ||D]}|j ||'|jD]}|j |rdj||jfn |j||jD]:}||j|rdj||jfn |j<<|jD]=}|j |rdj||jfn |j|?|jD]=} |j |rdj|| jfn | j|?y)aLAdds 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 existing proto in the database. z0%s already added, but with different descriptor.N.) namerr package message_type_ExtractSymbols _AddSymbol enum_typejoinvaluer extensionservice) rfile_desc_proto proto_namermessagerenum enum_valuer r!s r AddzDescriptorDatabase.Adds!%%J7773Bd$$Z0 ' ' 3 F 8 ADDhmmHn--) r __author__r. Exceptionrr objectrrrr r rGs@1 1 IP5PB=B=J3r