aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/eventlog/proto/events_extension.proto
diff options
context:
space:
mode:
authorqrort <qrort@yandex-team.com>2022-11-30 23:47:12 +0300
committerqrort <qrort@yandex-team.com>2022-11-30 23:47:12 +0300
commit22f8ae0e3f5d68b92aecccdf96c1d841a0334311 (patch)
treebffa27765faf54126ad44bcafa89fadecb7a73d7 /library/cpp/eventlog/proto/events_extension.proto
parent332b99e2173f0425444abb759eebcb2fafaa9209 (diff)
downloadydb-22f8ae0e3f5d68b92aecccdf96c1d841a0334311.tar.gz
validate canons without yatest_common
Diffstat (limited to 'library/cpp/eventlog/proto/events_extension.proto')
-rw-r--r--library/cpp/eventlog/proto/events_extension.proto22
1 files changed, 22 insertions, 0 deletions
diff --git a/library/cpp/eventlog/proto/events_extension.proto b/library/cpp/eventlog/proto/events_extension.proto
new file mode 100644
index 0000000000..37a7d7e561
--- /dev/null
+++ b/library/cpp/eventlog/proto/events_extension.proto
@@ -0,0 +1,22 @@
+import "google/protobuf/descriptor.proto";
+
+option go_package = "a.yandex-team.ru/library/cpp/eventlog/proto;extensions";
+option java_package = "NEventLogEventsExtension";
+
+extend google.protobuf.MessageOptions {
+ optional uint32 message_id = 50001;
+ optional string realm_name = 50002;
+}
+
+message Repr {
+ enum ReprType {
+ none = 0;
+ as_bytes = 1; // Only for primitive types
+ as_hex = 2; // Only for primitive types
+ as_base64 = 3; // Only for 'string' and 'bytes' fields
+ };
+}
+
+extend google.protobuf.FieldOptions {
+ optional Repr.ReprType repr = 55003 [default = none];
+}