703 B
703 B
Protocol Buffers for Codespaces
Instructions for generating and adding gRPC protocol buffers.
Generate Protocol Buffers
- Download
protoc - Download protocol compiler plugins for Go
- Install moq:
go install github.com/matryer/moq@latest - Run
./generate.shfrom theinternal/codespaces/rpcdirectory
Add New Protocol Buffers
- Download a
.protocontract from the service repo - Create a new directory and copy the
.prototo it - Update
generate.shto include the include the new.proto - Follow the instructions to Generate Protocol Buffers