aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/json2proto.h
diff options
context:
space:
mode:
authorzhvv117 <zhvv117@yandex-team.ru>2022-02-10 16:50:35 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:35 +0300
commit3889d4c01a589a555fbc33d66279be23e267ab3b (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/protobuf/json/json2proto.h
parent6672234a0566803bfeb1d572c14de9222b9a5a49 (diff)
downloadydb-3889d4c01a589a555fbc33d66279be23e267ab3b.tar.gz
Restoring authorship annotation for <zhvv117@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/protobuf/json/json2proto.h')
-rw-r--r--library/cpp/protobuf/json/json2proto.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/library/cpp/protobuf/json/json2proto.h b/library/cpp/protobuf/json/json2proto.h
index 091b53730f..4c33498dfa 100644
--- a/library/cpp/protobuf/json/json2proto.h
+++ b/library/cpp/protobuf/json/json2proto.h
@@ -73,11 +73,11 @@ namespace NProtobufJson {
return *this;
}
- TSelf& SetReplaceRepeatedFields(bool replaceRepeatedFields) {
- ReplaceRepeatedFields = replaceRepeatedFields;
- return *this;
- }
-
+ TSelf& SetReplaceRepeatedFields(bool replaceRepeatedFields) {
+ ReplaceRepeatedFields = replaceRepeatedFields;
+ return *this;
+ }
+
TSelf& SetNameGenerator(TNameGenerator callback) {
NameGenerator = callback;
return *this;
@@ -127,9 +127,9 @@ 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;
-
+ /// Replace repeated fields content during merging
+ bool ReplaceRepeatedFields = false;
+
/// Custom field names generator.
TNameGenerator NameGenerator = {};
@@ -147,20 +147,20 @@ namespace NProtobufJson {
};
/// @throw yexception
- void MergeJson2Proto(const NJson::TJsonValue& json, google::protobuf::Message& proto,
- const TJson2ProtoConfig& config = TJson2ProtoConfig());
-
- /// @throw yexception
- void MergeJson2Proto(const TStringBuf& json, google::protobuf::Message& proto,
- const TJson2ProtoConfig& config = TJson2ProtoConfig());
-
- /// @throw yexception
- inline void MergeJson2Proto(const TString& json, google::protobuf::Message& proto,
- const TJson2ProtoConfig& config = TJson2ProtoConfig()) {
- MergeJson2Proto(TStringBuf(json), proto, config);
- }
-
- /// @throw yexception
+ void MergeJson2Proto(const NJson::TJsonValue& json, google::protobuf::Message& proto,
+ const TJson2ProtoConfig& config = TJson2ProtoConfig());
+
+ /// @throw yexception
+ void MergeJson2Proto(const TStringBuf& json, google::protobuf::Message& proto,
+ const TJson2ProtoConfig& config = TJson2ProtoConfig());
+
+ /// @throw yexception
+ inline void MergeJson2Proto(const TString& json, google::protobuf::Message& proto,
+ const TJson2ProtoConfig& config = TJson2ProtoConfig()) {
+ MergeJson2Proto(TStringBuf(json), proto, config);
+ }
+
+ /// @throw yexception
void Json2Proto(const NJson::TJsonValue& json, google::protobuf::Message& proto,
const TJson2ProtoConfig& config = TJson2ProtoConfig());