overpush/proto/message.proto

34 lines
658 B
Protocol Buffer
Raw Normal View History

2023-05-25 06:57:56 +00:00
syntax = 'proto3';
package overpush;
option go_package = '.;pb';
enum AlertType {
AlertTypeInvalid = 0;
AlertTypeMessage = 1;
AlertTypeMessageWithTitle = 2;
AlertTypeMessageWithAttachment = 3;
}
enum Priority {
PriorityInvalid = 0;
PriorityLowest = 1;
PriorityLow = 2;
PriorityNormal = 3;
PriorityHigh = 4;
PriorityEmergency = 5;
}
message Message {
uint64 timestamp = 1;
AlertType type = 2;
Priority priority = 3;
repeated string recipients = 4;
string stream_name = 5;
// string transmitter = 6;
string title = 8;
string text = 9;
bytes attachment = 10;
}