diff options
author | stakanviski <stakanviski@yandex-team.ru> | 2022-02-10 16:50:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:01 +0300 |
commit | 95ab23a39b5482a434361566cabdd5b0a433cb43 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/protobuf/json/json2proto.h | |
parent | da8356a5535e6177965cba3bbae73c5fb28f6ccc (diff) | |
download | ydb-95ab23a39b5482a434361566cabdd5b0a433cb43.tar.gz |
Restoring authorship annotation for <stakanviski@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/protobuf/json/json2proto.h')
-rw-r--r-- | library/cpp/protobuf/json/json2proto.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/protobuf/json/json2proto.h b/library/cpp/protobuf/json/json2proto.h index 00e7a9accb..4c33498dfa 100644 --- a/library/cpp/protobuf/json/json2proto.h +++ b/library/cpp/protobuf/json/json2proto.h @@ -52,7 +52,7 @@ namespace NProtobufJson { StringTransforms.push_back(transform); return *this; } - + TSelf& SetCastFromString(bool cast) { CastFromString = cast; return *this; @@ -67,7 +67,7 @@ namespace NProtobufJson { CastRobust = cast; return *this; } - + TSelf& SetMapAsObject(bool mapAsObject) { MapAsObject = mapAsObject; return *this; @@ -112,7 +112,7 @@ namespace NProtobufJson { /// Transforms will be applied only to string values (== protobuf fields of string / bytes type). TVector<TStringTransformPtr> StringTransforms; - + /// Cast string json values to protobuf field type bool CastFromString = false; /// Skip empty strings, instead casting from string into scalar types. @@ -120,7 +120,7 @@ namespace NProtobufJson { bool DoNotCastEmptyStrings = false; /// Cast all json values to protobuf field types bool CastRobust = false; - + /// Consider map to be an object, otherwise consider it to be an array of key/value objects bool MapAsObject = false; |