old-json-alias.patch 660 B

123456789101112131415
  1. --- contrib/libs/protobuf/src/google/protobuf/json/json.h (109a04575819756fff3dc3e089008c9b1e971f85)
  2. +++ contrib/libs/protobuf/src/google/protobuf/json/json.h (9dbbd3dce374a64a46474b4ba78bceb44689f396)
  3. @@ -87,6 +87,12 @@ struct PrintOptions {
  4. preserve_proto_field_names(false) {}
  5. };
  6. +#ifdef USE_DEPRECATED_NAMESPACE
  7. +using JsonParseOptions = ParseOptions;
  8. +using JsonPrintOptions = PrintOptions;
  9. +using JsonOptions = PrintOptions;
  10. +#endif
  11. +
  12. // Converts from protobuf message to JSON and appends it to |output|. This is a
  13. // simple wrapper of BinaryToJsonString(). It will use the DescriptorPool of the
  14. // passed-in message to resolve Any types.