Functions | Variables
google.protobuf.internal.api_implementation Namespace Reference

Functions

def _SetType (implementation_type)
 
def IsPythonDefaultSerializationDeterministic ()
 
def Type ()
 
def Version ()
 

Variables

 _api_version = _api_implementation.api_version
 
tuple _default_implementation_type
 
 _implementation_type
 
 _implementation_version = int(_implementation_version_str)
 
 _implementation_version_str
 
bool _proto_extension_modules_exist_in_build = True
 
bool _python_deterministic_proto_serialization = True
 

Function Documentation

◆ _SetType()

def google.protobuf.internal.api_implementation._SetType (   implementation_type)
private
Never use! Only for protobuf benchmark.

Definition at line 140 of file bloaty/third_party/protobuf/python/google/protobuf/internal/api_implementation.py.

◆ IsPythonDefaultSerializationDeterministic()

def google.protobuf.internal.api_implementation.IsPythonDefaultSerializationDeterministic ( )

◆ Type()

def google.protobuf.internal.api_implementation.Type ( )

◆ Version()

def google.protobuf.internal.api_implementation.Version ( )

Variable Documentation

◆ _api_version

int google.protobuf.internal.api_implementation._api_version = _api_implementation.api_version
private

◆ _default_implementation_type

tuple google.protobuf.internal.api_implementation._default_implementation_type
private
Initial value:
1 = (
2  'python' if _api_version <= 0 else 'cpp')

Definition at line 77 of file bloaty/third_party/protobuf/python/google/protobuf/internal/api_implementation.py.

◆ _implementation_type

string google.protobuf.internal.api_implementation._implementation_type
private
Initial value:
1 = os.getenv('PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION',
2  _default_implementation_type)

Definition at line 84 of file bloaty/third_party/protobuf/python/google/protobuf/internal/api_implementation.py.

◆ _implementation_version

google.protobuf.internal.api_implementation._implementation_version = int(_implementation_version_str)
private

◆ _implementation_version_str

google.protobuf.internal.api_implementation._implementation_version_str
private
Initial value:
1 = os.getenv(
2  'PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION', '2')

Definition at line 99 of file bloaty/third_party/protobuf/python/google/protobuf/internal/api_implementation.py.

◆ _proto_extension_modules_exist_in_build

bool google.protobuf.internal.api_implementation._proto_extension_modules_exist_in_build = True
private

◆ _python_deterministic_proto_serialization

bool google.protobuf.internal.api_implementation._python_deterministic_proto_serialization = True
private


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:26