Ë ¯?oð‹h«mãój—dZdZGd„de«ZGd„de«ZGd„de«ZGd„d e«Zd „Zy ) z6Contains an abstract base class for protocol messages.z#robinson@google.com (Will Robinson)có—eZdZdZy)ÚErrorz Base error type for this module.N©Ú__name__Ú __module__Ú __qualname__Ú__doc__©óú Ðr cóD—|j«|j|«S)zÙParse serialized protocol buffer data in binary form into this message. Like :func:`MergeFromString()`, except we clear the object first. Raises: message.DecodeError if the input cannot be parsed. )r.r9r7s r ÚParseFromStringzMessage.ParseFromString§s€ð ‡J�J„LØ × Ñ   Ó +Ð+r c ó—t‚)aÓSerializes the protocol message to a binary string. Keyword Args: deterministic (bool): If true, requests deterministic serialization of the protobuf, with predictable ordering of map keys. Returns: A binary string representation of the message if all of the required fields in the message are set (i.e. the message is initialized). Raises: EncodeError: if the message isn't initialized (see :func:`IsInitialized`). r©rÚkwargss r ÚSerializeToStringzMessage.SerializeToString²ó €ô Ðr c ó—t‚)aŠSerializes the protocol message to a binary string. This method is similar to SerializeToString but doesn't check if the message is initialized. Keyword Args: deterministic (bool): If true, requests deterministic serialization of the protobuf, with predictable ordering of map keys. Returns: bytes: A serialized representation of the partial message. rr=s r ÚSerializePartialToStringz Message.SerializePartialToStringÂó €ô Ðr có—t‚)a'Returns a list of (FieldDescriptor, value) tuples for present fields. A message field is non-empty if HasField() would return true. A singular primitive field is non-empty if HasField() would return true in proto2 or it is non zero in proto3. A repeated field is non-empty if it contains at least one element. The fields are ordered by field number. Returns: list[tuple(FieldDescriptor, value)]: field descriptors and values for all fields in the message which are not empty. The values vary by field type. rr%s r Ú ListFieldszMessage.ListFieldsárCr có—t‚)aÑChecks if a certain field is set for the message. For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, :exc:`ValueError` will be raised. Args: field_name (str): The name of the field to check for presence. Returns: bool: Whether a value has been set for the named field. Raises: ValueError: if the `field_name` is not a member of this message. r©rÚ field_names r ÚHasFieldzMessage.HasFieldðó €ô Ðr có—t‚)a^Clears the contents of a given field. Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, :exc:`ValueError` is raised. Args: field_name (str): The name of the field to check for presence. Raises: ValueError: if the `field_name` is not a member of this message. rrGs r Ú ClearFieldzMessage.ClearFields €ô Ðr có—t‚)aEReturns the name of the field that is set inside a oneof group. If no field is set, returns None. Args: oneof_group (str): the name of the oneof group to check. Returns: str or None: The name of the group that is set, or None. Raises: ValueError: no group with the given name exists r)rÚ oneof_groups r Ú WhichOneofzMessage.WhichOneofr@r có—t‚)aöChecks if a certain extension is present for this message. Extensions are retrieved using the :attr:`Extensions` mapping (if present). Args: field_descriptor: The field descriptor for the extension to check. Returns: bool: Whether the extension is present for this message. Raises: KeyError: if the extension is repeated. Similar to repeated fields, there is no separate notion of presence: a "not present" repeated extension is an empty list. r©rÚfield_descriptors r Ú HasExtensionzMessage.HasExtension rJr có—t‚)z‚Clears the contents of a given extension. Args: field_descriptor: The field descriptor for the extension to clear. rrQs r ÚClearExtensionzMessage.ClearExtension2ó €ô Ðr có—t‚)zqReturns the UnknownFieldSet. Returns: UnknownFieldSet: The unknown fields stored in this message. rr%s r Ú UnknownFieldszMessage.UnknownFields:rVr có—t‚)zlClears all fields in the :class:`UnknownFieldSet`. This operation is recursive for nested message. rr%s r ÚDiscardUnknownFieldszMessage.DiscardUnknownFieldsBs €ô Ðr có—t‚)z¿Returns the serialized size of this message. Recursively calls ByteSize() on all contained messages. Returns: int: The number of bytes required to serialize this message. rr%s r ÚByteSizezMessage.ByteSizeIr3r có—t‚rr)ÚclsÚss r Ú FromStringzMessage.FromStringSr r có—t‚rr)rRs r ÚRegisterExtensionzMessage.RegisterExtensionXr r có—t‚)a6Internal method used by the protocol message implementation. Clients should not call this directly. Sets a listener that this message will call on certain state transitions. The purpose of this method is to register back-edges from children to parents at runtime, for the purpose of setting "has" bits and byte-size-dirty bits in the parent and ancestor objects whenever a child or descendant object is modified. If the client wants to disconnect this Message from the object tree, she explicitly sets callback to None. If message_listener is None, unregisters any existing listener. Otherwise, message_listener must implement the MessageListener interface in internal/message_listener.py, and we discard any listener registered via a previous _SetListener() call. r)rÚmessage_listeners r Ú _SetListenerzMessage._SetListener\s €ô& Ðr có6—t|j«¬«S)úSupport the pickle protocol.)r8)ÚdictrBr%s r Ú __getstate__zMessage.__getstate__qs€ä ˜4×8Ñ8Ó:Ô ;Ð;r có’—|j«|d}t|t«s|jd«}|j |«y)rgr8Úlatin1N)Ú__init__Ú isinstanceÚbytesÚencoder;)rÚstater8s r Ú __setstate__zMessage.__setstate__us?€à‡M�M„OØ�|Ñ$€Jô �j¤%Ô (Ø×$Ñ$ XÓ.€jØ×јÕ$r có²—|j}|j€t|«d|j«fS|}t|j f|j«fS)Nr )Ú DESCRIPTORÚcontaining_typerriÚ_InternalConstructMessageÚ full_name)rÚmessage_descriptorÚ containers r Ú __reduce__zMessage.__reduce__s]€ØŸ™ÐØ×)Ñ)Ð1Ü �$‹Z˜˜T×.Ñ.Ó0Ð 0Ð0ð#€IÜ %¨ ×(;Ñ(;Ð'=Ø × Ñ Ó ð !ð!r r)&rrrrÚ __slots__rsrrr"r&r)r+rr/r.r2r5r9r;r?rBrErIrLrOrSrUrXrZr\Ú classmethodr`Ú staticmethodrbrerirqryr r r rrsÊ„ñð€)ð€*óò ò!ò)òòò ò òòòòòB ,òò ò> òò$ òò ò$òòòðñóððñóðòò*<ò%ó !r rcóV—ddlm}|j«j|««S)zConstructs a nested message.é)Úsymbol_database)Úgoogle.protobufrÚDefaultÚ GetSymbol)rvrs r ruru‹s$€å-à 7ˆ× Ñ Ó "× ,Ñ ,¨YÓ 7Ó 9Ð9r N) rÚ __author__Ú Exceptionrr rÚobjectrrur r r Úr†sGðñ=à 2€ ôˆIôô �%ôô �%ôô i!ˆfôi!óX :r