Appendix B: Scalar Value Types
This document addendum to the OpenCannabis Specification enumerates Scalar Value Types, or raw native types used in the specification. This list originates directly from Google's Protobuf documentation.
Subpart 1: Default Values
From Protobuf's documentation:
When a message is parsed, if the encoded message does not contain a particular singular element, the corresponding field in the parsed object is set to the default value for that field. These defaults are type-specific:
- For strings, the default value is the empty string.
- For bytes, the default value is empty bytes.
- For bools, the default value is false.
- For numeric types, the default value is zero.
- For enums, the default value is the first defined enum value, which must be 0.
- For message fields, the field is not set. Its exact value is language-dependent. See the generated code guide for details.