overpush/proto/message.proto

36 lines
710 B
Protocol Buffer
Raw Permalink Normal View History

2023-05-25 06:57:56 +00:00
syntax = 'proto3';
package overpush;
option go_package = '.;pb';
2023-06-08 20:43:48 +00:00
import 'url.proto';
2023-05-25 06:57:56 +00:00
2023-06-08 20:43:48 +00:00
enum MessageType {
MessageTypeInvalid = 0;
MessageTypeMessage = 1;
MessageTypeMessageWithTitle = 2;
MessageTypeMessageWithAttachment = 3;
2023-05-25 06:57:56 +00:00
}
enum Priority {
PriorityInvalid = 0;
PriorityLowest = 1;
PriorityLow = 2;
PriorityNormal = 3;
PriorityHigh = 4;
PriorityEmergency = 5;
}
message Message {
2023-06-08 20:43:48 +00:00
int64 timestamp = 1;
MessageType type = 2;
2023-05-25 06:57:56 +00:00
Priority priority = 3;
repeated string recipients = 4;
string stream_name = 5;
// string transmitter = 6;
string title = 8;
string text = 9;
bytes attachment = 10;
2023-06-08 20:43:48 +00:00
URL url = 11;
2023-05-25 06:57:56 +00:00
}