o
    {j6h                     @   s  d Z ddlZddlZddlZddlZdZdd ZdZzddlm	Z	 ee	j
ZW n	 ey0   Y nw dd Zedu rIed	r@d
Zn	edrGdZndZedeZedvrZededejv rjedkrjed dZdZedkrzddlmZ eejd< eZ[W n ey   ed Y nw ed
krzddlmZ eZ[W n ey   ed dZY nw 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S )zLDetermine which implementation of the protobuf API is used in this process.
    NTc                 C   s,   | dkrdS | dkrt d| dkrdS d S )N   cpp   z%api_version=1 is no longer supported.r   python)
ValueError)api_version r   z/var/www/html/chefvision.cloud.itp360.com/venv/lib/python3.10/site-packages/google/protobuf/internal/api_implementation.py_ApiVersionToImplementationType   s   r
   )_api_implementationc                 C   s6   zt | }|st| d W dS  ty   Y dS w )Nz import succeeded but was NoneTF)	importlibimport_moduleImportError)mod_namemodr   r   r	   
_CanImport)   s   
r   zgoogle._upb._messageupbzgoogle.protobuf.pyext._messager   r   &PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION)r   r   r   zdPROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION {0} is not supported. Please set to 'python', 'cpp' or 'upb'.PyPyz\PyPy does not work yet with cpp protocol buffers. Falling back to the python implementation.)_messagez/google3.net.proto2.python.internal.cpp._messagez-Selected implementation cpp is not available.zXSelected implementation upb is not available. Falling back to the python implementation.)(enable_deterministic_proto_serializationFc                   C      t S N)_implementation_typer   r   r   r	   Type      r   c                   C   s   dS )Nr   r   r   r   r   r	   Version   r   r   c                   C   r   r   ))_python_deterministic_proto_serializationr   r   r   r	   )IsPythonDefaultSerializationDeterministic   r   r   )__doc__r   ossyswarnings_GOOGLE3_PYTHON_UPB_DEFAULTr
   r   google.protobuf.internalr   r   r   r   getenvr   formatversionwarn	_c_modulegoogle.protobuf.pyextr   modulesgoogle._upbgoogle.protobufr   r   r   r   r   r   r   r   r	   <module>   s   



