aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/eventlog/proto/events_extension.proto
blob: 37a7d7e5614452913cedb10dd2a41a21be13f463 (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 = "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];
}