§
    YŠtjÙ  ã                   ó¨   — d Z dZddlmZ ddlZddlZ G d„ de¦  «        Zej        ZdZ	dZ
d	Zd
ZeZe	Ze
ZeZeZdZda G d„ de¦  «        Zd„ Zd„ ZdS )zProtobuf Runtime versions and validators.

It should only be accessed by Protobuf gencodes and tests. DO NOT USE it
elsewhere.
zshaod@google.com (Dennis Shao)é    )ÚEnumNc                   ó   — e Zd ZdZdZdS )ÚDomainé   é   N)Ú__name__Ú
__module__Ú__qualname__ÚGOOGLE_INTERNALÚPUBLIC© ó    ú]/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/google/protobuf/runtime_version.pyr   r      s   € € € € € Ø€/Ø€&€&€&r   r   é   é#   r   Ú é   c                   ó   — e Zd ZdZdS )ÚVersionErrorz&Exception class for version violation.N)r   r	   r
   Ú__doc__r   r   r   r   r   -   s   € € € € € Ø.Ð.Ð.Ð.r   r   c                 ó    — t          | ¦  «        ‚)N)r   )Úmsgs    r   Ú_ReportVersionErrorr   1   s   € Ý�SÑÔÐr   c           
      ó6  — t          j        d¦  «        }|�|                     ¦   «         dk    rdS t          › dt          › dt
          › t          › �}|› d|› d|› |› �}|dk     s|dk     s|dk     rt          d|› �¦  «        ‚d}	| t          k    r(t          d|› d	| j
        › d
t          j
        › d�¦  «         t          |k     s7t          |k    rt          |k     s!t          |k    r3t          |k    r*t
          |k     r!t          d|› d	|› d
|› d|	› �¦  «         dS dS dS dS )aü  Function to validate versions.

  Args:
    gen_domain: The domain where the code was generated from.
    gen_major: The major version number of the gencode.
    gen_minor: The minor version number of the gencode.
    gen_patch: The patch version number of the gencode.
    gen_suffix: The version suffix e.g. '-dev', '-rc1' of the gencode.
    location: The proto location that causes the version violation.

  Raises:
    VersionError: if gencode version is invalid or incompatible with the
    runtime.
  Ú*TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECKNÚtrueú.r   zInvalid gencode version: z`See Protobuf version guarantees at https://protobuf.dev/support/cross-version-runtime-guarantee.zBDetected mismatched Protobuf Gencode/Runtime domains when loading z
: gencode z	 runtime z2. Cross-domain usage of Protobuf is not supported.zEDetected incompatible Protobuf Gencode/Runtime versions when loading zC. Runtime version cannot be older than the linked gencode version. )ÚosÚgetenvÚlowerÚMAJORÚMINORÚPATCHÚSUFFIXr   ÚDOMAINr   Úname)
Ú
gen_domainÚ	gen_majorÚ	gen_minorÚ	gen_patchÚ
gen_suffixÚlocationÚdisable_flagÚversionÚgen_versionÚerror_prompts
             r   ÚValidateProtobufRuntimeVersionr1   5   s¹  € õ$ ”ÐGÑHÔH€,ØÐ ,×"4Ò"4Ñ"6Ô"6¸&Ò"@Ð"@Ø
€Fõ Ð.Ð.•uÐ.Ð.�uÐ.¥fÐ.Ð.€'ØÐBÐB˜yÐBÐB¨9ÐB°jÐBÐB€+à�‚]€]�i !’m�m y°1¢} }Ý
Ð@°;Ð@Ð@Ñ
AÔ
AÐAðGð ð
 •6ÒÐÝð	<Øð	<ð 	<Ø *¤ð	<ð 	<Ý:@¼+ð	<ð 	<ð 	<ñô ð õ ˆiÒÐÝ
�9Ò
Ð
¥¨Ò!2Ð!2Ý
�9Ò
Ð
¥¨)Ò!3Ð!3½À	Ò8IÐ8Iåð	LØð	Lð 	LØ +ð	Lð 	LØ6=ð	Lð 	Là=Ið	Lð 	Lñô ð ð ð ð Ð
Ð!3Ð!3Ð8IÐ8Ir   )r   Ú
__author__Úenumr   r   Úwarningsr   r   Ú
OSS_DOMAINÚ	OSS_MAJORÚ	OSS_MINORÚ	OSS_PATCHÚ
OSS_SUFFIXr%   r!   r"   r#   r$   Ú_MAX_WARNING_COUNTÚ_warning_countÚ	Exceptionr   r   r1   r   r   r   ú<module>r=      sù   ððð ð .€
à Ð Ð Ð Ð Ð Ø 	€	€	€	Ø €€€ðð ð ð ð ˆTñ ô ð ð Œ]€
Ø€	Ø€	Ø€	Ø€
à	€Ø€Ø€Ø€Ø	€ð Ð Ø€ð/ð /ð /ð /ð /�9ñ /ô /ð /ðð ð ð3ð 3ð 3ð 3ð 3r   