aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/json2proto.h
diff options
context:
space:
mode:
authorart-snake <art-snake@yandex-team.ru>2022-02-10 16:50:34 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:34 +0300
commit1700010e2088971894d12a7a16d6004866f986fd (patch)
treeac3b38289119375037d595858db9751013220a3f /library/cpp/protobuf/json/json2proto.h
parent785bc0acdf3b0c63f971ee17e845945d7381dcb7 (diff)
downloadydb-1700010e2088971894d12a7a16d6004866f986fd.tar.gz
Restoring authorship annotation for <art-snake@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/protobuf/json/json2proto.h')
-rw-r--r--library/cpp/protobuf/json/json2proto.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/protobuf/json/json2proto.h b/library/cpp/protobuf/json/json2proto.h
index 4c33498dfa..458e0c0909 100644
--- a/library/cpp/protobuf/json/json2proto.h
+++ b/library/cpp/protobuf/json/json2proto.h
@@ -19,7 +19,7 @@ namespace google {
namespace NProtobufJson {
struct TJson2ProtoConfig {
using TSelf = TJson2ProtoConfig;
- using TValueVectorizer = std::function<NJson::TJsonValue::TArray(const NJson::TJsonValue& jsonValue)>;
+ using TValueVectorizer = std::function<NJson::TJsonValue::TArray(const NJson::TJsonValue& jsonValue)>;
enum FldNameMode {
FieldNameOriginalCase = 0, // default
@@ -58,11 +58,11 @@ namespace NProtobufJson {
return *this;
}
- TSelf& SetDoNotCastEmptyStrings(bool cast) {
- DoNotCastEmptyStrings = cast;
- return *this;
- }
-
+ TSelf& SetDoNotCastEmptyStrings(bool cast) {
+ DoNotCastEmptyStrings = cast;
+ return *this;
+ }
+
TSelf& SetCastRobust(bool cast) {
CastRobust = cast;
return *this;
@@ -115,9 +115,9 @@ namespace NProtobufJson {
/// Cast string json values to protobuf field type
bool CastFromString = false;
- /// Skip empty strings, instead casting from string into scalar types.
- /// I.e. empty string like default value for scalar types.
- bool DoNotCastEmptyStrings = false;
+ /// Skip empty strings, instead casting from string into scalar types.
+ /// I.e. empty string like default value for scalar types.
+ bool DoNotCastEmptyStrings = false;
/// Cast all json values to protobuf field types
bool CastRobust = false;
@@ -138,9 +138,9 @@ namespace NProtobufJson {
/// Append scalars to repeated fields
bool VectorizeScalars = false;
-
- /// Custom spliter non array value to repeated fields.
- TValueVectorizer ValueVectorizer;
+
+ /// Custom spliter non array value to repeated fields.
+ TValueVectorizer ValueVectorizer;
/// Allow js-style comments (both // and /**/)
bool AllowComments = false;