0

Need equivalent proto syntax for Map<String, Object>

map<string, object/Value> is failed during the generate phase

Syed Rafi
  • 825
  • 2
  • 12
  • 35

1 Answers1

0

You can either use an Any or a struct to accomplish this

  1. map<string, google.protobuf.Any>

  2. Struct https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/struct.proto#L51

Asad Awadia
  • 1,417
  • 2
  • 9
  • 15