Skip to main content

Module proto

Module proto 

Source
Expand description

Proto file generation from resource definitions (M16).

Generates .proto files from ResourceDefinitions. Each resource produces a service with CRUD RPCs including server-streaming for list endpoints.

Functionsยง

generate_all_protos
Generates proto files for all resources, returning (filename, content) pairs.
generate_proto
Generates a .proto file content from a single ResourceDefinition.
needs_wkt_import
Returns true if the field type requires a well-known-types import.