File indexing completed on 2025-02-28 10:10:19
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef GOOGLE_PROTOBUF_JSON_INTERNAL_UNPARSER_H__
0009 #define GOOGLE_PROTOBUF_JSON_INTERNAL_UNPARSER_H__
0010
0011 #include <string>
0012
0013 #include "absl/strings/string_view.h"
0014 #include "google/protobuf/json/internal/writer.h"
0015 #include "google/protobuf/message.h"
0016 #include "google/protobuf/util/type_resolver.h"
0017
0018 namespace google {
0019 namespace protobuf {
0020 namespace json_internal {
0021
0022
0023 absl::Status MessageToJsonString(const Message& message, std::string* output,
0024 json_internal::WriterOptions options);
0025
0026
0027 absl::Status BinaryToJsonStream(google::protobuf::util::TypeResolver* resolver,
0028 const std::string& type_url,
0029 io::ZeroCopyInputStream* binary_input,
0030 io::ZeroCopyOutputStream* json_output,
0031 json_internal::WriterOptions options);
0032 }
0033 }
0034 }
0035
0036 #endif