mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-28 18:25:46 +00:00
1dab2cb0ad
According to google.protobuf.FieldDescriptorProto.default_value documentation: >>> For strings, contains the default text contents (not escaped in any way). For bytes, contains the C escaped value. All bytes >= 128 are escaped. <<< Thus, use the default value ad-verbatim if the kind is a string. For the bytes kind, we use the text format hack to unescape the string, since the text format uses the same unescape syntax as C due to its heritage. Change-Id: I79e6d4d7e8f0d1ebedccecb9424a49384485589d Reviewed-on: https://go-review.googlesource.com/138515 Reviewed-by: Damien Neil <dneil@google.com> |
||
---|---|---|
.. | ||
protoreflect | ||
protoregistry | ||
prototype |