3 ms·
You can have conditional protobuf fields / messages. Checkout: - Any: https://developers.google.com/protocol-buffers/docs/proto3#any https://developers.google
by cobookman 8y ago
You can have conditional protobuf fields / messages.
Checkout:
- Any: https://developers.google.com/protocol-buffers/docs/proto3#any https://developers.google.com/protocol-buffers/docs/proto3#a...
- OneOf: https://developers.google.com/protocol-buffers/docs/proto3#oneof https://developers.google.com/protocol-buffers/docs/proto3#o...
I believe Any is the equivalent to having a proto in format of:
```
message MyMessage {
string type = 1;
bytes data = 2;
}
```
- buckhx 8y agoAlso FieldMasks and the View patterns can be very useful for the other issues that were raised https://cloud.google.com/apis/design/design_patterns#partial_response https://cloud.google.com/apis/design/design_patterns#partial...