HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/site-packages/mysqlx/protobuf/__pycache__/__init__.cpython-311.pyc
�

�nc�M��`�dZdZdZegZ	ddlZd�eD��ZdZn
#e$rdZYnwxYwddl	m
Z
mZmZ	dd	l
mZdd
lmZmZmZmZddlmZ	ddlmZe�e��n#e$rYnwxYwe�e��eed
��rejZddlmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'iZ(e#j)j*�+��D]
\Z,Z-e-e(de,��<�e#j.j*�+��D]
\Z,Z-e-e(de,��<�e#j/j0�+��D]
\Z,Z-e-e(de,��<�ej1�+��D]
\Z,Z-e-e(de,��<�ej2j3�+��D]
\Z,Z-e-e(de,��<�ej4j5�+��D]
\Z,Z-e-e(de,��<�ej6j7�+��D]
\Z,Z-e-e(de,��<�ej8j*�+��D]
\Z,Z-e-e(de,��<�ej9j*�+��D]
\Z,Z-e-e(de,��<�e j:j;j<�+��D]
\Z,Z-e-e(de,��<�e j:j;j=�+��D]
\Z,Z-e-e(de,��<�e j:j>�+��D]
\Z,Z-e-e(de,��<�e!j?j*�+��D]
\Z,Z-e-e(de,��<�e!j@j*�+��D]
\Z,Z-e-e(de,��<�e"jAjB�+��D]
\Z,Z-e-e(de,��<�e"jCjD�+��D]
\Z,Z-e-e(de,��<�e"jEjF�+��D]
\Z,Z-e-e(d e,��<�e$jGjHj*�+��D]
\Z,Z-e-e(d!e,��<�e%jIjJ�+��D]
\Z,Z-e-e(d"e,��<�ejK��ZLejMeL��ZNeL�OejP�QejRjS����eL�OejP�QejRjS����eL�OejP�QejRjS����eL�OejP�QejRjS����eL�OejP�Qe jRjS����eL�OejP�Qe!jRjS����eL�OejP�Qe"jRjS����eL�OejP�Qe#jRjS����eL�OejP�Qe$jRjS����eL�OejP�Qe%jRjS����eL�OejP�Qe&jRjS����eL�OejP�Qe'jRjS����d#�eD��ZdZTdZUGd$�d%��ZVn.#eeWeXf$r#ZYdZTe�eYnd&ZUesed'eU����eY�YdZY[YndZY[YwwxYwd(d)d*d+d,d-�ZZGd.�d/��Z[Gd0�d1��Z\d2�Z]dS)3z?Implementation of a helper class for MySQL X Protobuf messages.))zMysqlx.ServerMessages.Type.OKz	Mysqlx.Ok)z Mysqlx.ServerMessages.Type.ERRORzMysqlx.Error)z,Mysqlx.ServerMessages.Type.CONN_CAPABILITIESzMysqlx.Connection.Capabilities)z5Mysqlx.ServerMessages.Type.SESS_AUTHENTICATE_CONTINUEz#Mysqlx.Session.AuthenticateContinue)z/Mysqlx.ServerMessages.Type.SESS_AUTHENTICATE_OKzMysqlx.Session.AuthenticateOk)z!Mysqlx.ServerMessages.Type.NOTICEzMysqlx.Notice.Frame)z5Mysqlx.ServerMessages.Type.RESULTSET_COLUMN_META_DATAzMysqlx.Resultset.ColumnMetaData)z(Mysqlx.ServerMessages.Type.RESULTSET_ROWzMysqlx.Resultset.Row)z/Mysqlx.ServerMessages.Type.RESULTSET_FETCH_DONEzMysqlx.Resultset.FetchDone)z4Mysqlx.ServerMessages.Type.RESULTSET_FETCH_SUSPENDEDzMysqlx.Resultset.FetchSuspended)z?Mysqlx.ServerMessages.Type.RESULTSET_FETCH_DONE_MORE_RESULTSETSz(Mysqlx.Resultset.FetchDoneMoreResultsets)z.Mysqlx.ServerMessages.Type.SQL_STMT_EXECUTE_OKzMysqlx.Sql.StmtExecuteOk)z?Mysqlx.ServerMessages.Type.RESULTSET_FETCH_DONE_MORE_OUT_PARAMSz'Mysqlx.Resultset.FetchDoneMoreOutParams)z&Mysqlx.ServerMessages.Type.COMPRESSIONzMysqlx.Connection.CompressionN�c�X�i|]'\}}ttj|����|��(S�)�int�	_mysqlxpb�
enum_value��.0�key�vals   �:D:\Python311\Lib\site-packages\mysqlx/protobuf/__init__.py�
<dictcomp>r
Us>�����08��S��I� ��%�%�&�&�����TF�)�
BYTE_TYPES�
NUMERIC_TYPES�encode_to_bytes)�protobuf)�descriptor_database�descriptor_pb2�descriptor_pool�message_factory)�RepeatedCompositeFieldContainer)�RepeatedCompositeContainer�__version__�)�mysqlx_connection_pb2�mysqlx_crud_pb2�mysqlx_cursor_pb2�mysqlx_datatypes_pb2�mysqlx_expect_pb2�mysqlx_expr_pb2�mysqlx_notice_pb2�
mysqlx_pb2�mysqlx_prepare_pb2�mysqlx_resultset_pb2�mysqlx_session_pb2�mysqlx_sql_pb2zMysqlx.ClientMessages.Type.zMysqlx.ServerMessages.Type.zMysqlx.Error.Severity.zMysqlx.Crud.DataModel.zMysqlx.Crud.Find.RowLock.zMysqlx.Crud.Order.Direction.z'Mysqlx.Crud.UpdateOperation.UpdateType.zMysqlx.Datatypes.Scalar.Type.zMysqlx.Datatypes.Any.Type.z0Mysqlx.Expect.Open.Condition.ConditionOperation.z!Mysqlx.Expect.Open.Condition.Key.z Mysqlx.Expect.Open.CtxOperation.zMysqlx.Expr.Expr.Type.z"Mysqlx.Expr.DocumentPathItem.Type.zMysqlx.Notice.Frame.Scope.zMysqlx.Notice.Warning.Level.z,Mysqlx.Notice.SessionStateChanged.Parameter.z)Mysqlx.Prepare.Prepare.OneOfMessage.Type.z*Mysqlx.Resultset.ColumnMetaData.FieldType.c�0�i|]\}}t||��Sr��	_MESSAGESrs   rr
r
�s"��S�S�S�x�s�C�y��~�s�S�S�Src��eZdZdZej��Zed���Zed���Z	ed���Z
ed���Zed���Zed���Z
dS)	�_mysqlxpb_purez]This class implements the methods in pure Python used by the
        _mysqlxpb C++ extension.c��tj�t�|����}|��S)z�Create new Protobuf message.

            Args:
                name (str): Message type name.

            Returns:
                object: Protobuf message.
            )r,�factory�GetPrototype�_DESCRIPTOR_POOL�FindMessageTypeByName)�name�clss  r�new_messagez_mysqlxpb_pure.new_messages:��!�(�5�5� �6�6�t�<�<���C��3�5�5�Lrc��t|S)z�Return enum value.

            Args:
                enum_key (str): Enum key.

            Returns:
                object: Protobuf message.
            r))�enum_keys rrz_mysqlxpb_pure.enum_values���X�&�&rc�*�|���S)z�Serialize message.

            Args:
                msg (object): Protobuf message.

            Returns:
                str: Serialized message string.
            )�SerializeToString��msgs r�serialize_messagez _mysqlxpb_pure.serialize_message"s���(�(�*�*�*rc�*�|���S)z�Serialize partial message.

            Args:
                msg (object): Protobuf message.

            Returns:
                str: Serialized partial message string.
            )�SerializePartialToStringr9s r�serialize_partial_messagez(_mysqlxpb_pure.serialize_partial_message.s���/�/�1�1�1rc�d�t�|��}|�|��|S)z�Serialize partial message.

            Args:
                msg_type_name (str): Message type name.
                payload (bytes): Payload.

            Returns:
                object: Message parsed from string.
            )r,r4�ParseFromString)�
msg_type_name�payloadr:s   r�
parse_messagez_mysqlxpb_pure.parse_message:s0��!�,�,�]�;�;�C�����(�(�(��Jrc��t�|��}|std|�����t�|��}|�|��|S)z�Parse server message message.

            Args:
                msg_type (str): Message type name.
                payload (bytes): Payload.

            Returns:
                object: Server message parsed from string.
            zUnknown msg_type: )�SERVER_MESSAGES�get�
ValueErrorr,r4r@)�msg_typerBrAr:s    r�parse_server_messagez#_mysqlxpb_pure.parse_server_messageIsc��,�/�/��9�9�M� �
B� �!@�h�!@�!@�A�A�A� �,�,�]�;�;�C�����(�(�(��JrN)�__name__�
__module__�__qualname__�__doc__r�MessageFactoryr.�staticmethodr4rr;r>rCrIrrrr,r,s�������	$�	$�1�/�0�2�2��	�	�	�
��	�
�		'�		'�
��		'�
�		+�		+�
��		+�
�		2�		2�
��		2�
�	�	�
��	�
�	�	�
��	�	�	rr,zProtobuf >=3.11.0 is required�Protobuf is not available: )z-Mysqlx.Prepare.Prepare.OneOfMessage.Type.FIND�find)z/Mysqlx.Prepare.Prepare.OneOfMessage.Type.INSERT�insert)z/Mysqlx.Prepare.Prepare.OneOfMessage.Type.UPDATE�update)z/Mysqlx.Prepare.Prepare.OneOfMessage.Type.DELETE�delete)z-Mysqlx.Prepare.Prepare.OneOfMessage.Type.STMT�stmt_execute)z$Mysqlx.ClientMessages.Type.CRUD_FINDz&Mysqlx.ClientMessages.Type.CRUD_INSERTz&Mysqlx.ClientMessages.Type.CRUD_UPDATEz&Mysqlx.ClientMessages.Type.CRUD_DELETEz+Mysqlx.ClientMessages.Type.SQL_STMT_EXECUTEc�:�eZdZdZereneZeZe	d���Z
dS)�Protobufz�Protobuf class acts as a container of the Protobuf message class.

    It allows the switch between the C extension and pure Python implementation
    message handlers, by patching the `mysqlxpb` class attribute.
    c���|rtstdt�����|ststd���|rtnt
t_|t_dS)z�Sets whether to use the C extension or pure Python implementation.

        Args:
            use_pure (bool): `True` to use pure Python implementation.
        rPz-MySQL X Protobuf C extension is not availableN)	�
HAVE_PROTOBUF�ImportError�HAVE_PROTOBUF_ERROR�HAVE_MYSQLXPB_CEXTr,rrW�mysqlxpb�use_pure)r^s r�set_use_purezProtobuf.set_use_pure�sm���	S�M�	S��Q�<O�Q�Q�R�R�R��	O� 2�	O��M�N�N�N�.6�E�N�N�I���$����rN)rJrKrLrMr\rr,r]r^rOr_rrrrWrW{sO��������/�B�y�y�N�H�%�%�H��%�%��\�%�%�%rrWc���eZdZdZdd�Zd�Zd�Zd�Zd�Zdd�Z	d	�Z
d
�Zd�Zd�Z
ed
���Zed���Zed���Zed���Zed���Zed���ZdS)�Messagez�Helper class for interfacing with the MySQL X Protobuf extension.

    Args:
        msg_type_name (string): Protobuf type name.
        **kwargs: Arbitrary keyword arguments with values for the message.
    Nc��|rtj�|��nd|jd<|���D]\}}|�||���dS)N�_msg)rWr]r4�__dict__�items�__setattr__)�selfrA�kwargsr2�values     r�__init__zMessage.__init__�sl��<I�S�H��)�)�-�8�8�8�t�	
�
�f��"�<�<�>�>�	*�	*�K�D�%����T�5�)�)�)�)�	*�	*rc���tj�r(t|t��r%t	|j|t
|����dSt|ttf��rt	|j||��dSt|t��r*t|j|���|��dSt|t��r<t|j|���
|�����dSt|j|���
|��dSt|t��r|���n||j|<dS�N)rWr^�
isinstance�str�setattrrcrrr�list�getattr�extendra�	MergeFrom�get_message�rgr2ris   rrfzMessage.__setattr__�sH����	��%��%�%�	
:���	�4���)?�)?�@�@�@�@�@��E�M�:�#>�?�?�
:���	�4��/�/�/�/�/��E�4�(�(�
:���	�4�(�(�/�/��6�6�6�6�6��E�7�+�+�
:���	�4�(�(�2�2�5�3D�3D�3F�3F�G�G�G�G�G���	�4�(�(�2�2�5�9�9�9�9�9�(2�%��'A�'A�L��!�!�#�#�#�u�
�I�d�O�O�Orc��	tjs
|j|nt|j|��S#t$r	t
d�wxYwrl)rWr^rcrq�KeyError�AttributeError�rgr2s  r�__getattr__zMessage.__getattr__�sS��	+�'/�'8�V��	�$���g�d�i�QU�>V�>V�
���	+�	+�	+� �d�*�	+���s	�-0�Ac�2�|�||��dSrl)rfrus   r�__setitem__zMessage.__setitem__�s������u�%�%�%�%�%rc�,�|�|��Srl)rzrys  r�__getitem__zMessage.__getitem__�s������%�%�%rc��tjs!|jd�||��nt	|jd||��S)a
Returns the value of an element of the message dictionary.

        Args:
            name (string): Key name.
            default (object): The default value if the key does not exists.

        Returns:
            object: The value of the provided key name.
        rc)rWr^rdrFrq)rgr2�defaults   rrFzMessage.get�sF���$�
?�D�M�&�!�%�%�d�G�4�4�4����v�.��g�>�>�	
rc��||jd<dS)zdSets the message.

        Args:
            msg (dict): Dictionary representing a message.
        rcN�rd)rgr:s  r�set_messagezMessage.set_message�s��!$��
�f���rc��|jdS)z�Returns the dictionary representing a message containing parsed
        data.

        Returns:
            dict: The dictionary representing a message containing parsed data.
        rcr��rgs rrtzMessage.get_message�s���}�V�$�$rc�J�tj�|j��S)z�Serializes a message to a string.

        Returns:
            str: A string representing a message containing parsed data.
        )rWr]r;rcr�s r�serialize_to_stringzMessage.serialize_to_string�s��� �2�2�4�9�=�=�=rc�J�tj�|j��S)z�Serializes the protocol message to a binary string.

        This method is similar to serialize_to_string but doesn't check if the
        message is initialized.

        Returns:
            str: A string representation of the partial message.
        )rWr]r>rcr�s r�serialize_partial_to_stringz#Message.serialize_partial_to_string�s��� �:�:�4�9�E�E�Erc�V�tjs
|jdn|jjjS)zstring: Message type name.�_mysqlxpb_type_name)rWr^rc�
DESCRIPTOR�	full_namer�s r�typezMessage.type�s,��
�$�
0�D�I�+�,�,���%�/�	
rc�B�tj�||��S)a>Creates a new message, initialized with parsed data.

        Args:
            msg_type_name (string): Message type name.
            payload (string): Serialized message data.

        Returns:
            dict: The dictionary representing a message containing parsed data.

        .. versionadded:: 8.0.21
        )rWr]rC)rArBs  r�parsez
Message.parse�s��� �.�.�}�g�F�F�Frc��tjr|���n-tt	|�������S)z�Returns the size of the message in bytes.

        Args:
            msg (mysqlx.protobuf.Message): MySQL X Protobuf Message.

        Returns:
            int: Size of the message in bytes.

        .. versionadded:: 8.0.21
        )rWr^�ByteSize�lenrr�r9s r�	byte_sizezMessage.byte_sizes@��� �
A�C�L�L�N�N�N��_�S�%<�%<�%>�%>�?�?�@�@�	
rc�B�tj�||��S)aCreates a new server-side message, initialized with parsed data.

        Args:
            msg_type (int): Message type.
            payload (string): Serialized message data.

        Returns:
            dict: The dictionary representing a message containing parsed data.
        )rWr]rI)rHrBs  r�parse_from_serverzMessage.parse_from_server s��� �5�5�h��H�H�Hrc��|��}|�tj�||����|S)a�Creates a new message, initialized with parsed data and returns a
        :class:`mysqlx.protobuf.Message` object.

        Args:
            msg_type_name (string): Message type name.
            payload (string): Serialized message data.

        Returns:
            mysqlx.protobuf.Message: The Message representing a message
                                     containing parsed data.
        )r�rWr]rC)r3rArBr:s    r�from_messagezMessage.from_message-s9���c�e�e������)�7�7�
�w�O�O�P�P�P��
rc��|��}|�tj�||����|S)a�Creates a new server-side message, initialized with parsed data and
        returns a :class:`mysqlx.protobuf.Message` object.

        Args:
            msg_type (int): Message type.
            payload (string): Serialized message data.

        Returns:
            mysqlx.protobuf.Message: The Message representing a message
                                     containing parsed data.
        )r�rWr]rI)r3rHrBr:s    r�from_server_messagezMessage.from_server_message>s9���c�e�e������)�>�>�x��Q�Q�R�R�R��
rrl)rJrKrLrMrjrfrzr|r~rFr�rtr�r��propertyr�rOr�r�r��classmethodr�r�rrrrara�si��������*�*�*�*����"+�+�+�&�&�&�&�&�&�
�
�
�
� $�$�$�%�%�%�>�>�>�	F�	F�	F��
�
��X�
��G�G��\�G��
�
��\�
�"�
I�
I��\�
I�����[�� ����[���rrac�@�tj�|��S)z�Returns the value of a MySQL X Protobuf enumerator.

    Args:
        name (string): MySQL X Protobuf numerator name.

    Returns:
        int: Value of the enumerator.
    )rWr]r)r2s r�
mysqlxpb_enumr�Ps����'�'��-�-�-r)^rM�_SERVER_MESSAGES_TUPLES�PROTOBUF_VERSIONrp�PROTOBUF_REPEATED_TYPESrrEr\rZ�helpersrrr�googler�google.protobufrrrr�#google.protobuf.internal.containersr�google.protobuf.pyext._messager�append�hasattrr�rrrrr r!r"r#r$r%r&r'r*�ClientMessages�Typerer
r�ServerMessages�Error�Severity�	DataModel�Find�RowLock�Order�	Direction�UpdateOperation�
UpdateType�Scalar�Any�Open�	Condition�ConditionOperation�Key�CtxOperation�Expr�DocumentPathItem�Frame�Scope�Warning�Level�SessionStateChanged�	Parameter�Prepare�OneOfMessage�ColumnMetaData�	FieldType�DescriptorDatabase�_DESCRIPTOR_DB�DescriptorPoolr0�Add�FileDescriptorProto�
FromStringr��
serialized_pbrYr[r,�SyntaxError�	TypeError�err�CRUD_PREPARE_MAPPINGrWrar�rrr�<module>r�s�
��:F�E�-��^���&���������<S����O�����������������A�@�@�@�@�@�@�@�@�@�CX�������������������T�S�S�S�S�S�
�M�M�M�M�M�M��&�&�'A�B�B�B�B���
�
�
���
�����"�"�#B�C�C�C��w�x��'�'�0�#�/��
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
� �I��-�2�8�8�:�:�=�=���S�9<�	�5��5�5�6�6��-�2�8�8�:�:�=�=���S�9<�	�5��5�5�6�6��$�-�3�3�5�5�8�8���S�47�	�0�3�0�0�1�1�$�-�3�3�5�5�8�8���S�47�	�0�3�0�0�1�1�#�(�0�6�6�8�8�;�;���S�7:�	�3�c�3�3�4�4�#�)�3�9�9�;�;�>�>���S�:=�	�6��6�6�7�7�#�3�>�D�D�F�F�I�I���S�EH�	�A�C�A�A�B�B�)�/�4�:�:�<�<�?�?���S�;>�	�7�#�7�7�8�8�(�,�1�7�7�9�9�<�<���S�8;�	�4�s�4�4�5�5�&�*�4�G�M�M�O�O�R�R���S�NQ�	�J�S�J�J�K�K�%�*�4�8�>�>�@�@�C�C���S�?B�	�;�c�;�;�<�<�%�*�7�=�=�?�?�B�B���S�>A�	�:�S�:�:�;�;�$�(�-�3�3�5�5�8�8���S�47�	�0�3�0�0�1�1�#�4�9�?�?�A�A�D�D���S�@C�	�<�s�<�<�=�=�&�+�1�7�7�9�9�<�<���S�8;�	�4�s�4�4�5�5�%�-�3�9�9�;�;�>�>���S�:=�	�6��6�6�7�7�%�9�C�I�I�K�K�N�N���S�JM�	�F��F�F�G�G�'�.�;�@�F�F�H�H�K�K���S�GJ�	�C�c�C�C�D�D�)�7�A�G�G�I�I�L�L���S�HK�	�D�s�D�D�E�E�<�(�;�=�=�N�5��5�n�E�E������*�5�5�!�,�:�	
�	
����
����*�5�5��&�4�	
�	
����
����*�5�5��(�6�	
�	
����
����*�5�5� �+�9�	
�	
����
����*�5�5��(�6�	
�	
����
����*�5�5��&�4�	
�	
����
����*�5�5��(�6�	
�	
����
����*�5�5��!�/�	
�	
����
����*�5�5��)�7�	
�	
����
����*�5�5� �+�9�	
�	
����
����*�5�5��)�7�	
�	
����
����*�5�5��%�3�	
�	
����T�S�;R�S�S�S�O��M���X�X�X�X�X�X�X�X�X��t	�[�)�,�X�X�X��M��P���1P���X��k�M�8K�M�M�N�N�TW�W�X�X�X�X�X�����X����-�/�/�/�4�#���0%�%�%�%�%�%�%�%�2y�y�y�y�y�y�y�y�x	.�	.�	.�	.�	.sH��(�(�[�A+�*[�+A3�0[�2A3�3Y'[�\�#\�\