diff options
author | bbiff <bbiff@yandex-team.com> | 2022-09-11 00:15:54 +0300 |
---|---|---|
committer | bbiff <bbiff@yandex-team.com> | 2022-09-11 00:15:54 +0300 |
commit | 67576a8962c2506b8ee10da48dffba311acb0042 (patch) | |
tree | 51a695bbddbb9be4e5a0cc5c7ec558ca233c2be5 /library/cpp/protobuf/json/ut/test.proto | |
parent | a8945929eb162f6910b228697c3d2db3b7cb2ca9 (diff) | |
download | ydb-67576a8962c2506b8ee10da48dffba311acb0042.tar.gz |
support duration and timestamp as string in json2proto
Diffstat (limited to 'library/cpp/protobuf/json/ut/test.proto')
-rw-r--r-- | library/cpp/protobuf/json/ut/test.proto | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/library/cpp/protobuf/json/ut/test.proto b/library/cpp/protobuf/json/ut/test.proto index 0fa996fd41..6bc1984373 100644 --- a/library/cpp/protobuf/json/ut/test.proto +++ b/library/cpp/protobuf/json/ut/test.proto @@ -1,5 +1,8 @@ package NProtobufJsonTest; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + enum EEnum { E_0 = 0; E_1 = 1; @@ -194,6 +197,14 @@ message TSingleRepeatedInt { repeated int32 RepeatedInt = 1; } +message TSingleDuration { + required google.protobuf.Duration Duration = 1; +} + +message TSingleTimestamp { + required google.protobuf.Timestamp Timestamp = 1; +} + message TExtensionField { extensions 100 to 199; } |