Ë !‹Ú§ÿ?|ãóh—dZddlmZddlZddlZddlmZddlmZddlmZddlm Z d„Z d d „Z d „Z y) zDynamic Protobuf class creator.é)Ú OrderedDictN)Údescriptor_pb2)Ú descriptor)Údescriptor_pool)Úmessage_factorycóR—|j|«}tj|«}|S)a-Get a proto class from the MessageFactory by name. Args: pool: a descriptor pool. full_name: str, the fully qualified name of the proto type. Returns: A class, for the type identified by full_name. Raises: KeyError, if the proto is not found in the factory's descriptor pool. )ÚFindMessageTypeByNamerÚGetMessageClass)ÚpoolÚ full_nameÚproto_descriptorÚ proto_clss úB/usr/lib/python3.12/site-packages/google/protobuf/proto_builder.pyÚ_GetMessageFromFactoryrs,€ð×/Ñ/° Ó:ÐÜ×-Ñ-Ð.>Ó?€)Ø Ðócór—|xstj«}|� t||«}|S|j «}t |t «s t|«}tj«}|D]N\}}|j|jd««|jt|«jd««ŒP|j«dz} |€"d|j«z} t||«}|S|jt| ||««t||«S#t$rYŒüwxYw#t$rYŒBwxYw)aêCreate a Protobuf class whose fields are basic types. Note: this doesn't validate field names! Args: fields: dict of {name: field_type} mappings for each field in the proto. If this is an OrderedDict the order will be maintained, otherwise the fields will be sorted by name. full_name: optional str, the fully-qualified name of the proto type. pool: optional DescriptorPool instance. Returns: a class, the new protobuf class with a FileDescriptor. zutf-8z.protoz6net.proto2.python.public.proto_builder.AnonymousProto_)rÚDescriptorPoolrÚKeyErrorÚitemsÚ isinstancerÚsortedÚhashlibÚsha1ÚupdateÚencodeÚstrÚ hexdigestÚAddÚ_MakeFileDescriptorProto) Úfieldsr r Ú pool_instancerÚ field_itemsÚ fields_hashÚf_nameÚf_typeÚproto_file_names rÚMakeSimpleProtoClassr'$s@€ðÒ:œ/×8Ñ8Ó:€-ØÐð Ü(¨¸ ÓB€iØ Ðð— ‘ “€+Ü �FœKÔ (ܘÓ%€Kô— ‘ “€+Û#�n€fˆfØ×Ñ�v—}‘} WÓ-Ô.Ø×Ñ”s˜6“{×)Ñ)¨'Ó2Õ3ð$ð ×)Ñ)Ó+¨hÑ6€/ðÐØIØ×&Ñ&Ó(ñ)€Ið Ü(¨¸ ÓB€iØ Ðð ×Ñܘ° ¸;ÓGôIä   ¨yÓ 9Ð9øôC ò á ð ûô4 ò á ð ús#œ DÃ% D*Ä D'Ä&D'Ä* D6Ä5D6cóŒ—|jdd«\}}tj«}tjj |j dd«|«|_||_|jj«}||_t|d«D]®\}\}} |jj«} || _|tjjk\r;|tjj tjjz dzz }|| _tj$j&| _| | _Œ°|S)zAPopulate FileDescriptorProto for MessageFactory's DescriptorPool.Ú.éÚ/)ÚrsplitrÚFileDescriptorProtoÚosÚpathÚjoinÚreplaceÚnameÚpackageÚ message_typeÚaddÚ enumerateÚfieldrÚFieldDescriptorÚFIRST_RESERVED_FIELD_NUMBERÚLAST_RESERVED_FIELD_NUMBERÚnumberÚFieldDescriptorProtoÚLABEL_OPTIONALÚlabelÚtype) r&r r"r3r2Ú file_protoÚ desc_protoÚf_numberr$r%Ú field_protos rrr[s€à×"Ñ" 3¨Ó*�-€'ˆ4Ü×1Ñ1Ó3€*Ü—G‘G—L‘L §¡°°cÓ!:¸OÓL€*„/Ø€*ÔØ×&Ñ&×*Ñ*Ó,€*Ø€*„/Ü$-¨k¸1Ö$=Ñ €hÑ �˜Ø×"Ñ"×&Ñ&Ó(€KØ€KÔð”:×-Ñ-×IÑIÒIØÜ × $Ñ $× ?Ñ ?Ü × $Ñ $× @Ñ @ñ AØCDñ EñF€hð"€KÔÜ&×;Ñ;×JÑJ€KÔØ€KÕð%>ð Ðr)NN) Ú__doc__Ú collectionsrrr.Úgoogle.protobufrrrrrr'r©rrÚrHs/ðñ&å#ÛÛ å*Ý&Ý+Ý+ò ó 4:ónr