o
    b                     @   s  d Z ddlZddlZddlZzddlmZ ejZdZW n e	y(   dZdZY nw edkr1e
dedk rmzdd	lmZ esBe	d
[dZddlmZ ed e	yl   zddlmZ [dZW n	 e	yi   Y nw Y nw edkrsdndZedeatdkrdadejv rtdkred daeddZedkre
de d eeZz
ddlmZ dZW n e	y   dZY nw dd Zdd Zdd Zdd ZdS ) zLDetermine which implementation of the protobuf API is used in this process.
    N)_api_implementationTF   z%api_version=1 is no longer supported.)_use_fast_cpp_protosz2_use_fast_cpp_protos import succeeded but was None   )use_pure_pythonzConflicting deps on both :use_fast_cpp_protos and :use_pure_python.
 go/build_deps_on_BOTH_use_fast_cpp_protos_AND_use_pure_python
This should be impossible via a link error at build time...pythoncppZ&PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATIONPyPyz\PyPy does not work yet with cpp protocol buffers. Falling back to the python implementation.Z.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION2z=unsupported PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION: "z" (supported versions: 2))(enable_deterministic_proto_serializationc                   C      t S N_implementation_type r   r   j/var/www/secure340b-portal/env/lib/python3.10/site-packages/google/protobuf/internal/api_implementation.pyType      r   c                 C   s   | a dS )z'Never use! Only for protobuf benchmark.Nr   )Zimplementation_typer   r   r   _SetType   s   r   c                   C   r   r   )_implementation_versionr   r   r   r   Version   r   r   c                   C   r   r   ))_python_deterministic_proto_serializationr   r   r   r   )IsPythonDefaultSerializationDeterministic   r   r   )__doc__ossyswarningsZgoogle.protobuf.internalr   api_versionZ_api_versionZ'_proto_extension_modules_exist_in_buildImportError
ValueErrorZgoogle.protobufr   r   RuntimeErrorZ_default_implementation_typegetenvr   versionwarnZ_implementation_version_strintr   r   r   r   r   r   r   r   r   r   r   <module>   s   
