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
commit6672234a0566803bfeb1d572c14de9222b9a5a49 (patch)
tree3f9e966b059f7614bcd6ac7a374bd48204127e03 /library/cpp/protobuf/json/json2proto.h
parente286bb0ae13ace8f8efe6aa628c5e1e67708e32e (diff)
downloadydb-6672234a0566803bfeb1d572c14de9222b9a5a49.tar.gz
Restoring authorship annotation for <zhvv117@yandex-team.ru>. Commit 1 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 4c33498dfa3..091b53730fa 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());