https://github.com/saurfang/protobuf-default-value
https://github.com/saurfang/protobuf-default-value
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/saurfang/protobuf-default-value
- Owner: saurfang
- Created: 2015-05-24T21:48:11.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-25T00:50:19.000Z (about 10 years ago)
- Last Synced: 2025-01-30T01:41:27.691Z (4 months ago)
- Language: Scala
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Quick fiddle with protobuf to verify some behavior involving default values.
It seems that you can indeed distinguish whether a field has been explicitly set.
However with the default value in play, it's ambigious whether you meant the field is missing (i.e. null)
or you just want to use the default value.