Open Spanner
Contribute

SDK Code Generation

Regenerate OpenAPI artifacts and SDK packages.

SDK packages are generated from the SDK OpenAPI spec. The SDK spec is intentionally narrower than the full REST API so package consumers only get the meter and usage surface.

Regenerate all SDK inputs:

task openapi:sdk

Check one SDK:

task sdk:typescript:check
task sdk:python:check
task sdk:csharp:check
task sdk:go:check

Use the language-specific task when you only changed one generator or README template.

Protobuf

gRPC code is generated from the protobuf schema in proto/open_spanner/v1.

task proto

Check protobuf linting and generated Go stubs:

task proto:check

Open Spanner uses Buf remote plugins so contributors do not need a local protoc or protoc-gen-go install.

On this page