aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/ut/test.proto
diff options
context:
space:
mode:
authorbbiff <bbiff@yandex-team.com>2022-09-11 00:15:54 +0300
committerbbiff <bbiff@yandex-team.com>2022-09-11 00:15:54 +0300
commit67576a8962c2506b8ee10da48dffba311acb0042 (patch)
tree51a695bbddbb9be4e5a0cc5c7ec558ca233c2be5 /library/cpp/protobuf/json/ut/test.proto
parenta8945929eb162f6910b228697c3d2db3b7cb2ca9 (diff)
downloadydb-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.proto11
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;
}