Google APIs Common Protos
The 'googleapis-common-protos' library provides common protocol buffer types used across various Google APIs. The current version is 1.73.1, released on March 28, 2026. The library is actively maintained with regular updates to ensure compatibility and feature enhancements.
Warnings
- breaking Version 1.67.0 removed .proto files from wheels, causing issues for users relying on these files for building Python Protobuf bindings.
- breaking Incompatibility with 'protobuf' versions 4.21.5 and above, leading to import errors in dependent packages.
- gotcha Importing modules directly without the 'from' syntax may lead to import errors due to module resolution issues.
Install
-
pip install googleapis-common-protos
Imports
- error_details_pb2
from google.rpc import error_details_pb2
Quickstart
from google.rpc import error_details_pb2 # Create an instance of a common error detail message detail = error_details_pb2.DebugInfo() detail.detail = 'Detailed error information' # Serialize the message to a string serialized_detail = detail.SerializeToString() # Deserialize the string back to a message new_detail = error_details_pb2.DebugInfo() new_detail.ParseFromString(serialized_detail) print(new_detail.detail)