Google APIs Common Protos

1.73.1 · active · verified Sat Mar 28

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

Install

Imports

Quickstart

This example demonstrates how to create, serialize, and deserialize a common error detail message using the 'googleapis-common-protos' library.

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)

view raw JSON →