4 ms·
gRPC is based on protobuf3, which doesn't support "required" or "optional" in the first place.
by vardump 10y ago
gRPC is based on protobuf3, which doesn't support "required" or "optional" in the first place.
- andrewingram 10y agoso everything is optional?
- beastman82 10y agoyes
- euyyn 10y agoExcept primitive types. So this is avoided: > You'll just end up with structures where everything is a Maybe type, so you end up needing tons of bespoke client-side code to handle the possible permutations. Absent primitive values default to zero, while absent message fields are mapped to what makes most sense in the specific programming language (in most of them, "null" or "nil").