This directory contains .pb.go
and _grpc.pb.go
files generated from the .proto
files in //cabe/proto/...
To update any of cabe's protobuf definitions:
.proto
files(s) in //cabe/proto/...go generate
from this directory to update the generated .go
filesoptional
keyword.optional
is no longer a keyword in proto3, since fields are optional by default now.
The go generate
step here appears to be perfectly fine if .proto files contain the optional
keyword, but these files all use proto3
syntax. Other protoc invocations (such as the ones used to generate the python stubs for cabe in chromeperf's codebase) have had problems with optional
and fail with error messages about it.
So optional
is unnecessary in proto3, and it breaks things elsewhere if you include it here, so please don't.