• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc.  All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
7 
8 // Utility functions to convert between protobuf binary format and proto3 JSON
9 // format.
10 #ifndef GOOGLE_PROTOBUF_UTIL_JSON_UTIL_H__
11 #define GOOGLE_PROTOBUF_UTIL_JSON_UTIL_H__
12 
13 #include "absl/base/attributes.h"
14 #include "google/protobuf/json/json.h"
15 
16 namespace google {
17 namespace protobuf {
18 namespace util {
19 using JsonParseOptions = ::google::protobuf::json::ParseOptions;
20 using JsonPrintOptions = ::google::protobuf::json::PrintOptions;
21 
22 using JsonOptions ABSL_DEPRECATED("use JsonPrintOptions instead") =
23     JsonPrintOptions;
24 
25 using ::google::protobuf::json::BinaryToJsonStream;
26 using ::google::protobuf::json::BinaryToJsonString;
27 
28 using ::google::protobuf::json::JsonStringToMessage;
29 using ::google::protobuf::json::JsonToBinaryStream;
30 
31 using ::google::protobuf::json::JsonToBinaryString;
32 using ::google::protobuf::json::MessageToJsonString;
33 }  // namespace util
34 }  // namespace protobuf
35 }  // namespace google
36 
37 #endif  // GOOGLE_PROTOBUF_UTIL_JSON_UTIL_H__
38