Ë ÛK i ãó¦—dZddlmZmZddlmZddlmZddlm Z  ddede d e d e d eed e d e fd„Z ddeede de d eede d ef d„Zy)z1Contains the Nextgen Pythonic Protobuf JSON APIs.é)ÚOptionalÚType)ÚMessage)ÚDescriptorPool)Ú json_formatNÚmessageÚ$always_print_fields_with_no_presenceÚpreserving_proto_field_nameÚuse_integers_for_enumsÚdescriptor_poolÚfloat_precisionÚreturncó6—tj|||||¬«S)aÒConverts protobuf message to a dictionary. When the dictionary is encoded to JSON, it conforms to proto3 JSON spec. Args: message: The protocol buffers message instance to serialize. always_print_fields_with_no_presence: If True, fields without presence (implicit presence scalars, repeated fields, and map fields) will always be serialized. Any field that supports presence is not affected by this option (including singular message fields and oneof fields). preserving_proto_field_name: If True, use the original proto field names as defined in the .proto file. If False, convert the field names to lowerCamelCase. use_integers_for_enums: If true, print integers instead of enum names. descriptor_pool: A Descriptor Pool for resolving types. If None use the default. float_precision: If set, use this to specify float field valid digits. Returns: A dict representation of the protocol buffer message. )r r r r )rÚ MessageToDict)rr r r r r s ú`/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/google/protobuf/proto_json.pyÚ serializers&€ô: × "Ñ "Ø Ø+OØ"=Ø3Ø%ô  ðóÚ message_classÚjs_dictÚignore_unknown_fieldsÚmax_recursion_depthcóH—|«}tj|||||¬«|S)a-Parses a JSON dictionary representation into a message. Args: message_class: The message meta class. js_dict: Dict representation of a JSON message. ignore_unknown_fields: If True, do not raise errors for unknown fields. descriptor_pool: A Descriptor Pool for resolving types. If None use the default. max_recursion_depth: max recursion depth of JSON message to be deserialized. JSON messages over this depth will fail to be deserialized. Default value is 100. Returns: A new message passed from json_dict. )rrrr r)rÚ ParseDict)rrrr rÚ new_messages rÚparser5s0€ñ,“€+Ü ×ÑØØØ1Ø%Ø-õ ð Ðr)FFFNN)FNéd)Ú__doc__ÚtypingrrÚgoogle.protobuf.messagerÚgoogle.protobuf.descriptor_poolrÚgoogle.protobufrÚboolÚintÚdictrr©rrúr&sÅðñ8ç!å+Ý:Ý'ð05Ø&+Ø!&Ø.2Øñ #Ø ð#à*.ð#ð"&ð#ð!ð #ð ˜nÑ-ð #ð ð #ð ó#ðP!&Ø.2Ø ñ ؘ‘=ðà ðð ðð˜nÑ-ð ð ð ð  ô r