Hi Kenton,
I am facing the same issue. In my case, I have multiple proto files created
under the same package. When I add more than one proto file from the same
package on to a project, each proto file is generating its own .pb.cc and
.h files and each generated file has the below two methods.
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 othe
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 values
> as well, how do