K i dZdZddlmZddlZddlZGddeZejZdZ dZ d Z d Z eZ e Ze Ze Ze Zd ZdaGd d eZdZdZy)zProtobuf Runtime versions and validators. It should only be accessed by Protobuf gencodes and tests. DO NOT USE it elsewhere. zshaod@google.com (Dennis Shao))EnumNceZdZdZdZy)DomainN)__name__ __module__ __qualname__GOOGLE_INTERNALPUBLICe/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/google/protobuf/runtime_version.pyrrs / &rr!rceZdZdZy) VersionErrorz&Exception class for version violation.N)rr r __doc__r rrrr-s.rrct|)N)r)msgs r_ReportVersionErrorr1s Src tjd}||jdk(rytdtdt t }|d|d||}|dks |dks|dkrtd|d} |tk7r-td|d |jd tjd t|ks-t|k(r t|kst|k(r,t|k(r"t |krtd |d |d |d | yyyy)aFunction 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_CHECKNtrue.rzInvalid 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. ) osgetenvlowerMAJORMINORPATCHSUFFIXrDOMAINrname) gen_domain gen_major gen_minor gen_patch gen_suffixlocation disable_flagversion gen_version error_prompts rValidateProtobufRuntimeVersionr15s8$GH,,"4"4"6&"@ gQugQugfX .'+Qyk9+j\B+]i!my1} 2;-@ AAG 6 :Z 0 &++G< < i 9 !2 9 )!3 8I :Z }IgY?==IN L9J!3 r)r __author__enumrrwarningsrr OSS_DOMAIN OSS_MAJOR OSS_MINOR OSS_PATCH OSS_SUFFIXr%r!r"r#r$_MAX_WARNING_COUNT_warning_count Exceptionrrr1r rrr=s .   T ]]    /9/3r