Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Implemented
-
1.4.0
Description
Protobuf guide recommends:
Enums should include a default FOO_UNSPECIFIED value as the first value in the declaration.
Rationale:
When new values are added to a proto2 enum, old clients will see the field as unset and the getter will return the default value or the first-declared value if no default exists.
Attachments
Issue Links
- links to