hfpdZdZddlZGddeZGddeZGdd eZd ZdS) z*Provides a container for DescriptorProtos.z"matthewtoia@google.com (Matt Toia)NceZdZdS)ErrorN)__name__ __module__ __qualname__/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/google/protobuf/descriptor_database.pyrr&s$r rceZdZdZdS),DescriptorDatabaseConflictingDefinitionErrorzGRaised when a proto is added with the same name & different descriptor.N)rrr__doc__rr r r r *sOOOOr r c<eZdZdZdZdZdZdZdZdZ dZ d S) DescriptorDatabasezEA container accepting FileDescriptorProtos and maps DescriptorProtos.c"i|_i|_dSN)_file_desc_protos_by_file_file_desc_protos_by_symbol)selfs r __init__zDescriptorDatabase.__init__1s%'D"')D$$$r c|j}||jvr ||j|<n%|j||krtd|zdS|j}|jD]+}t ||D]}|||,|jD]`}|d||jf||j D]&}||j d||jf<'a|j D]2}|d||jf|3|j D]2} |d|| jf|3dS)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.Add5s!%J7773Bd$Z00 ' 3 F F 8 ADDhmHn----r-rs r rrs5<P300,+k!+|<< llll'33i ((L).1 2 2222233r ) r __author__r9 Exceptionrr objectrrrr r rDs>10 1 IPPPPP5PPPp=p=p=p=p=p=p=p=f33333r