aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/eventlog/proto/events_extension.proto
blob: 7db1af3a59f9c8a2de540d1f136183e7ebb04253 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import "google/protobuf/descriptor.proto";

option go_package = "github.com/ydb-platform/ydb/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];
}