Ë ÛK i»ãó"—dZddlmZmZmZmZmZmZddlm Z ddl m Z ddl m Z ee eeefegeefZ dde ded ed ed ed ed eedeededee dedeedededefd„Z ddee dedededee dede fd„Zy)z8Contains the Nextgen Pythonic Protobuf Text Format APIs.é)ÚAnyStrÚCallableÚOptionalÚTextÚTypeÚUnion)Ú text_format)ÚDescriptorPool)ÚMessageNÚmessageÚas_utf8Ú as_one_lineÚuse_short_repeated_primitivesÚpointy_bracketsÚuse_index_orderÚ float_formatÚ double_formatÚuse_field_numberÚdescriptor_poolÚindentÚmessage_formatterÚprint_unknown_fieldsÚ force_colonÚreturncóH—tj|||||||||| | | | | ¬«S)a¸Convert protobuf message to text format. Double values can be formatted compactly with 15 digits of precision (which is the most that IEEE 754 "double" can guarantee) using double_format='.15g'. To ensure that converting to text and back to a proto will result in an identical value, double_format='.17g' should be used. Args: message: The protocol buffers message. as_utf8: Return unescaped Unicode for non-ASCII characters. as_one_line: Don't introduce newlines between fields. use_short_repeated_primitives: Use short repeated format for primitives. pointy_brackets: If True, use angle brackets instead of curly braces for nesting. use_index_order: If True, fields of a proto message will be printed using the order defined in source code instead of the field number, extensions will be printed at the end of the message and their relative order is determined by the extension number. By default, use the field number order. float_format (str): If set, use this to specify float field formatting (per the "Format Specification Mini-Language"); otherwise, shortest float that has same value in wire will be printed. Also affect double field if double_format is not set but float_format is set. double_format (str): If set, use this to specify double field formatting (per the "Format Specification Mini-Language"); if it is not set but float_format is set, use float_format. Otherwise, use ``str()`` use_field_number: If True, print field numbers instead of names. descriptor_pool (DescriptorPool): Descriptor pool used to resolve Any types. indent (int): The initial indent level, in terms of spaces, for pretty print. message_formatter (function(message, indent, as_one_line) -> unicode|None): Custom formatter for selected sub-messages (usually based on message type). Use to pretty print parts of the protobuf for easier diffing. print_unknown_fields: If True, unknown fields will be printed. force_colon: If set, a colon will be added after the field name even if the field is a proto message. Returns: str: A string of the text formatted protocol buffer message. ©r r rrrrrrrrrrrr)r ÚMessageToStringrs ú`/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/google/protobuf/proto_text.pyÚ serializersB€ôp × $Ñ $ØØØØ$AØ%Ø%ØØ!Ø'Ø%Ø Ø)Ø/Øô ðóÚ message_classÚtextÚallow_unknown_extensionÚallow_field_numberÚallow_unknown_fieldcóJ—|«}tj||||||¬«|S)aParses a text representation of a protocol message into a message. Args: message_class: The message meta class. text (str): Message text representation. message (Message): A protocol buffer message to merge into. allow_unknown_extension: if True, skip over missing extensions and keep parsing allow_field_number: if True, both field number and field name are allowed. descriptor_pool (DescriptorPool): Descriptor pool used to resolve Any types. allow_unknown_field: if True, skip over unknown field and keep parsing. Avoid to use this option if possible. It may hide some errors (e.g. spelling error on field name) Returns: Message: A new message passed from text. Raises: ParseError: On text parsing problems. )r"r r#r$rr%)r ÚParse)r!r"r#r$rr%Ú new_messages rÚparser)\s3€ñ8“€+Ü ×ÑØ ØØ5Ø+Ø%Ø-õ ð Ðr ) TFFFFNNFNrNFF)FFNF)Ú__doc__ÚtypingrrrrrrÚgoogle.protobufr Úgoogle.protobuf.descriptor_poolr Úgoogle.protobuf.messager ÚintÚboolÚ _MsgFormatterÚstrrr)©r rúr4s}ðñ?ß@×@å'Ý:Ý+à˜' 5¨¨d¨Ñ#3°TÐ:¸HÀT¹NÐJÑK€ ð ØØ*/Ø!Ø!Ø"&Ø#'Ø"Ø04ØØ15Ø!&ØñGØ ðGà ðGððGð$(ð Gð ð Gð ð Gð˜3‘-ðGð˜C‘=ðGððGð˜nÑ-ðGð ðGð   Ñ.ðGððGððGð óGðZ%*Ø$Ø04Ø %ñ %ؘ‘=ð%à ð%ð"ð%ðð %ð ˜nÑ-ð %ð ð %ð ô%r