Even though it's not a field on FieldOptions, you can supply a
"pseudo-option" for default value named simply default:
https://developers.google.com/protocol-buffers/docs/proto#optional
When protoc compiles this source, the default value ends up in a field on
FieldDescriptorProto. There is one
requested claritication and *possibly* answered here:
https://stackoverflow.com/questions/47246474/protobuf-how-to-combine-fieldoptions-with-default-values-in-messages
On 12 Nov 2017 7:12 a.m., wrote:
> I have an message using FieldOptions but I also want to use default
I have an message using FieldOptions but I also want to use default values
as well, how do I combine two of those things ?
extend google.protobuf.MessageOptions {
optional CommandInfo cmd = 5678;
}
message TestCmd {
optional bool BoolFlag = 1 [(info) = { name: "bool-flag" value: