overpush/proto/message.proto

36 lines
710 B
Protocol Buffer

syntax = 'proto3';
package overpush;
option go_package = '.;pb';
import 'url.proto';
enum MessageType {
MessageTypeInvalid = 0;
MessageTypeMessage = 1;
MessageTypeMessageWithTitle = 2;
MessageTypeMessageWithAttachment = 3;
}
enum Priority {
PriorityInvalid = 0;
PriorityLowest = 1;
PriorityLow = 2;
PriorityNormal = 3;
PriorityHigh = 4;
PriorityEmergency = 5;
}
message Message {
int64 timestamp = 1;
MessageType 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;
URL url = 11;
}