Ë
    ímxiG  ã                   ó¤   — 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y)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y)ÚDomainé   é   N)Ú__name__Ú
__module__Ú__qualname__ÚGOOGLE_INTERNALÚPUBLIC© ó    úV/home/htdocs/ttos/venv/lib/python3.12/site-packages/google/protobuf/runtime_version.pyr   r      s   „ Ø€/Ø�&r   r   é   é   Ú é   c                   ó   — e Zd ZdZy)Ú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           
      ó¾  — t        j                  d«      }|�|j                  «       dk(  ryt        › dt        › dt
        › t        › �}|› d|› d|› |› �}|dk  s
|dk  s|dk  rt        d|› �«      ‚d}	| t        k7  r-t        d|› d	| j                  › d
t        j                  › d�«       |t        k7  rY|t        dz
  k(  r6t        t        k  r@t        j                  d|›d|›d|›d�«       t        dz  ant        d|› d	|› d
|› d|	› �«       t        |k  st        |k(  r t
        |k  rt        d|› d	|› d
|› d|	› �«       |t        k7  rt        d|› d	|› d
|› d|	› �«       yy)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.r   zProtobuf gencode version z= is exactly one major version older than the runtime version z at zZ. Please update the gencode to avoid compatibility violations in the next runtime release.zIDetected mismatched Protobuf Gencode/Runtime major versions when loading z". Same major version is required. zEDetected incompatible Protobuf Gencode/Runtime versions when loading zC. Runtime version cannot be older than the linked gencode version. zKDetected mismatched Protobuf Gencode/Runtime version suffixes when loading z%. Version suffixes must be the same. )ÚosÚgetenvÚlowerÚMAJORÚMINORÚPATCHÚSUFFIXr   ÚDOMAINr   ÚnameÚ_warning_countÚ_MAX_WARNING_COUNTÚwarningsÚwarn)
Ú
gen_domainÚ	gen_majorÚ	gen_minorÚ	gen_patchÚ
gen_suffixÚlocationÚdisable_flagÚversionÚgen_versionÚerror_prompts
             r   ÚValidateProtobufRuntimeVersionr5   5   sÅ  € ô$ —‘ÐGÓH€,ØÐ ,×"4Ñ"4Ó"6¸&Ò"@Ø
ô ˆg�Q”u�g˜Qœu˜g¤f XÐ.€'Ø�+˜Q˜y˜k¨¨9¨+°j°\ÐB€+à�‚]�i !’m y°1¢}Ü
Ð2°;°-Ð@Ó
AÐAðGð ð
 ”6ÒÜð	Øˆ:�Z 
§¡Ð0°	¼&¿+¹+¸ð G<ð	<ôð ”%ÒØ”E˜A‘IÒÜ	Ô,Ò	,Ü�Šò šG¢Xð/ô	
ô 	˜!Ñ‰äðØ�Z˜z¨+¨°iÀ¸yð I.Ø.:¨^ð=ôô ˆYÒœ5 IÒ-´%¸)Ò2CÜð	Øˆ:�Z ˜}¨I°g°Yð ?=Ø=I¸Nð	Lôð ”6ÒÜð	Ø�:˜Z¨ }°I¸g¸Yð G/Ø/;¨nð	>õð r   )r   Ú
__author__Úenumr   r   r)   r   r   Ú
OSS_DOMAINÚ	OSS_MAJORÚ	OSS_MINORÚ	OSS_PATCHÚ
OSS_SUFFIXr%   r!   r"   r#   r$   r(   r'   Ú	Exceptionr   r   r5   r   r   r   ú<module>r>      s‚   ðñð .€
å Û 	Û ôˆTô ð �]‰]€
Ø€	Ø€	Ø€	Ø€
à	€Ø€Ø€Ø€Ø	€ð Ð Ø€ô/�9ô /òóGr   