Hacked By AnonymousFox

Current Path : /opt/imunify360/venv/lib/python3.11/site-packages/google/protobuf/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib/python3.11/site-packages/google/protobuf/__pycache__/message.cpython-311.pyc

�

h��f�8���dZdZGd�de��ZGd�de��ZGd�de��ZGd�d	e��Zd
�ZdS)z6Contains an abstract base class for protocol messages.z#robinson@google.com (Will Robinson)c��eZdZdZdS)�Errorz Base error type for this module.N��__name__�
__module__�__qualname__�__doc__���y/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/google/protobuf/message.pyrr's������(�(��$r
rc��eZdZdZdS)�DecodeErrorz-Exception raised when deserializing messages.Nrr	r
rr
r
,s������5�5��$r
r
c��eZdZdZdS)�EncodeErrorz+Exception raised when serializing messages.Nrr	r
rrr1s������3�3��$r
rc���eZdZdZgZdZd!d�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zed���Ze d���Z!d�Z"d�Z#d�Z$d �Z%dS)"�Messagez�Abstract base class for protocol messages.

  Protocol message classes are almost always generated by the protocol
  compiler.  These generated types subclass Message and implement the methods
  shown below.
  Nc�^�t|����}|�|��|S�N)�type�	MergeFrom)�self�memo�clones   r�__deepcopy__zMessage.__deepcopy__Qs*���D��J�J�L�L�E�	�O�O�D�����Lr
c��t�)z9Recursively compares two messages by value and structure.��NotImplementedError�r�	other_msgs  r�__eq__zMessage.__eq__V���
�r
c��||kSrr	rs  r�__ne__zMessage.__ne__Zs���y� � � r
c� �td���)Nzunhashable object)�	TypeError�rs r�__hash__zMessage.__hash__^s��
�'�
(�
(�(r
c��t��z7Outputs a human-readable representation of the message.rr%s r�__str__zMessage.__str__ar r
c��t�r(rr%s r�__unicode__zMessage.__unicode__er r
c��t�)a�Merges the contents of the specified message into current message.

    This method merges the contents of the specified message into the current
    message. Singular fields that are set in the specified message overwrite
    the corresponding fields in the current message. Repeated fields are
    appended. Singular sub-messages and groups are recursively merged.

    Args:
      other_msg (Message): A message to merge into the current message.
    rrs  rrzMessage.MergeFromis
���r
c�d�||urdS|���|�|��dS)z�Copies the content of the specified message into the current message.

    The method clears the current message and then merges the specified
    message using MergeFrom.

    Args:
      other_msg (Message): A message to copy into the current one.
    N)�Clearrrs  r�CopyFromzMessage.CopyFromvs9���y����f��J�J�L�L�L��N�N�9�����r
c��t�)z,Clears all data that was set in the message.rr%s rr.z
Message.Clear�r r
c��t�)a Mark this as present in the parent.

    This normally happens automatically when you assign a field of a
    sub-message, but sometimes you want to make the sub-message
    present while keeping it empty.  If you find yourself using this,
    you may want to reconsider your design.
    rr%s r�SetInParentzMessage.SetInParent��
���r
c��t�)z�Checks if the message is initialized.

    Returns:
      bool: The method returns True if the message is initialized (i.e. all of
      its required fields are set).
    rr%s r�
IsInitializedzMessage.IsInitialized�s
���r
c��t�)aEMerges serialized protocol buffer data into this message.

    When we find a field in `serialized` that is already present
    in this message:

    -   If it's a "repeated" field, we append to the end of our list.
    -   Else, if it's a scalar, we overwrite our field.
    -   Else, (it's a nonrepeated composite), we recursively merge
        into the existing composite.

    Args:
      serialized (bytes): Any object that allows us to call
        ``memoryview(serialized)`` to access a string of bytes using the
        buffer interface.

    Returns:
      int: The number of bytes read from `serialized`.
      For non-group messages, this will always be `len(serialized)`,
      but for messages which are actually groups, this will
      generally be less than `len(serialized)`, since we must
      stop when we reach an ``END_GROUP`` tag.  Note that if
      we *do* stop because of an ``END_GROUP`` tag, the number
      of bytes returned does not include the bytes
      for the ``END_GROUP`` tag information.

    Raises:
      DecodeError: if the input cannot be parsed.
    r�r�
serializeds  r�MergeFromStringzMessage.MergeFromString�s
��>�r
c�T�|���|�|��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�L�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.WhichOneof+r@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.ClearExtensionM�
���r
c��t�)zqReturns the UnknownFieldSet.

    Returns:
      UnknownFieldSet: The unknown fields stored in this message.
    rr%s r�
UnknownFieldszMessage.UnknownFieldsUrVr
c��t�)zlClears all fields in the :class:`UnknownFieldSet`.

    This operation is recursive for nested message.
    rr%s r�DiscardUnknownFieldszMessage.DiscardUnknownFields]s
��
�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.ByteSizedr3r
c��t�rr)�cls�ss  r�
FromStringzMessage.FromStringnr r
c��t�rr)rRs r�RegisterExtensionzMessage.RegisterExtensionrr 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._SetListenervs
��&�r
c�F�t|������S)�Support the pickle protocol.)r8)�dictrBr%s r�__getstate__zMessage.__getstate__�s���4�8�8�:�:�;�;�;�;r
c��|���|d}t|t��s|�d��}|�|��dS)rgr8�latin1N)�__init__�
isinstance�bytes�encoder;)r�stater8s   r�__setstate__zMessage.__setstate__�sZ���M�M�O�O�O��|�$�J��j�%�(�(�/��$�$�X�.�.�j�����$�$�$�$�$r
c��|j}|j�$t|��d|���fS|}t|jf|���fS)Nr	)�
DESCRIPTOR�containing_typerri�_InternalConstructMessage�	full_name)r�message_descriptor�	containers   r�
__reduce__zMessage.__reduce__�s]������)�1�
�$�Z�Z��T�.�.�0�0�
0�0�#�I�%�	�(;�'=������!�!r
r)&rrrr�	__slots__rsrrr"r&r)r+rr/r.r2r5r9r;r?rBrErIrLrOrSrUrXrZr\�classmethodr`�staticmethodrbrerirqryr	r
rrr6s��������&�)��*�����
���!�!�!�)�)�)�������������������������B	,�	,�	,���� 
�
�
�>
�
�
����$������ ���$����������������;������<�����*<�<�<�%�%�%�	!�	!�	!�	!�	!r
rc�l�ddlm}|����|����S)zConstructs a nested message.�)�symbol_database)�google.protobufr�Default�	GetSymbol)rvrs  rruru�s<��-�-�-�-�-�-�	7��	 �	 �	"�	"�	,�	,�Y�	7�	7�	9�	9�9r
N)	r�
__author__�	Exceptionrr
r�objectrrur	r
r�<module>r�s���F=�<�
2�
������I����
�����%����
�����%����
l!�l!�l!�l!�l!�f�l!�l!�l!�^:�:�:�:�:r

Hacked By AnonymousFox1.0, Coded By AnonymousFox