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:35 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:35 +0300
commitdc5517df41fe6319ff249956fe5650e4bbc3e660 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/protobuf/json/json2proto.h
parent1700010e2088971894d12a7a16d6004866f986fd (diff)
downloadydb-dc5517df41fe6319ff249956fe5650e4bbc3e660.tar.gz
Restoring authorship annotation for <art-snake@yandex-team.ru>. Commit 2 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 458e0c0909..4c33498dfa 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;