aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/json2proto.h
diff options
context:
space:
mode:
authorArslan Urtashev <urtashev@gmail.com>2022-02-10 16:48:55 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:55 +0300
commitb97740540e7302cec9efa181e106ae1990a0cc1c (patch)
tree1a2a0bfe523c3272d207e2d75254a41d3945a3bb /library/cpp/protobuf/json/json2proto.h
parent31789673dc3562bc7540e00fe031ba84ae282c24 (diff)
downloadydb-b97740540e7302cec9efa181e106ae1990a0cc1c.tar.gz
Restoring authorship annotation for Arslan Urtashev <urtashev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/protobuf/json/json2proto.h')
-rw-r--r--library/cpp/protobuf/json/json2proto.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/protobuf/json/json2proto.h b/library/cpp/protobuf/json/json2proto.h
index 4c33498dfa..5d35991cf3 100644
--- a/library/cpp/protobuf/json/json2proto.h
+++ b/library/cpp/protobuf/json/json2proto.h
@@ -1,7 +1,7 @@
#pragma once
#include "string_transform.h"
-#include "name_generator.h"
+#include "name_generator.h"
#include <library/cpp/json/json_reader.h>
#include <library/cpp/json/json_value.h>
@@ -105,7 +105,7 @@ namespace NProtobufJson {
FldNameMode FieldNameMode = FieldNameOriginalCase;
bool AllowUnknownFields = true;
-
+
/// Use 'json_name' protobuf option for field name, mutually exclusive
/// with FieldNameMode.
bool UseJsonName = false;
@@ -126,7 +126,7 @@ namespace NProtobufJson {
/// Throw exception if there is no required fields in json object.
bool CheckRequiredFields = true;
-
+
/// Replace repeated fields content during merging
bool ReplaceRepeatedFields = false;
@@ -145,7 +145,7 @@ namespace NProtobufJson {
/// Allow js-style comments (both // and /**/)
bool AllowComments = false;
};
-
+
/// @throw yexception
void MergeJson2Proto(const NJson::TJsonValue& json, google::protobuf::Message& proto,
const TJson2ProtoConfig& config = TJson2ProtoConfig());
@@ -173,7 +173,7 @@ namespace NProtobufJson {
const TJson2ProtoConfig& config = TJson2ProtoConfig()) {
Json2Proto(TStringBuf(json), proto, config);
}
-
+
/// @throw yexception
inline void Json2Proto(IInputStream& in, google::protobuf::Message& proto,
const TJson2ProtoConfig& config = TJson2ProtoConfig()) {
@@ -190,7 +190,7 @@ namespace NProtobufJson {
Json2Proto(jsonValue, protoValue, config);
return protoValue;
}
-
+
/// @throw yexception
template <typename T>
T Json2Proto(IInputStream& in, const TJson2ProtoConfig& config = TJson2ProtoConfig()) {
@@ -219,4 +219,4 @@ namespace NProtobufJson {
return Json2Proto<T>(TStringBuf(ptr), config);
}
-}
+}