2017-07-24 07:06:23 +00:00
|
|
|
syntax = "proto3";
|
2019-05-21 06:10:32 +00:00
|
|
|
import "google/protobuf/struct.proto";
|
2017-07-24 07:06:23 +00:00
|
|
|
|
|
|
|
package proto;
|
|
|
|
|
2021-11-03 14:14:46 +00:00
|
|
|
// option go_package = "./;proto";
|
|
|
|
|
2018-01-03 09:08:28 +00:00
|
|
|
message Alert {
|
|
|
|
string title = 1;
|
|
|
|
string body = 2;
|
|
|
|
string subtitle = 3;
|
2018-01-06 07:03:21 +00:00
|
|
|
string action = 4;
|
|
|
|
string actionLocKey = 5;
|
|
|
|
string launchImage = 6;
|
|
|
|
string locKey = 7;
|
|
|
|
string titleLocKey = 8;
|
|
|
|
repeated string locArgs = 9;
|
|
|
|
repeated string titleLocArgs = 10;
|
2018-01-03 09:08:28 +00:00
|
|
|
}
|
|
|
|
|
2017-07-24 07:06:23 +00:00
|
|
|
message NotificationRequest {
|
|
|
|
repeated string tokens = 1;
|
|
|
|
int32 platform = 2;
|
|
|
|
string message = 3;
|
|
|
|
string title = 4;
|
|
|
|
string topic = 5;
|
|
|
|
string key = 6;
|
2018-01-02 07:53:15 +00:00
|
|
|
int32 badge = 7;
|
|
|
|
string category = 8;
|
|
|
|
Alert alert = 9;
|
2018-01-04 03:31:03 +00:00
|
|
|
string sound = 10;
|
2018-01-10 01:36:27 +00:00
|
|
|
bool contentAvailable = 11;
|
|
|
|
string threadID = 12;
|
2018-01-16 03:26:45 +00:00
|
|
|
bool mutableContent = 13;
|
2019-05-21 06:10:32 +00:00
|
|
|
google.protobuf.Struct data = 14;
|
2020-03-13 16:00:03 +00:00
|
|
|
string image = 15;
|
2020-07-31 09:26:58 +00:00
|
|
|
enum Priority {
|
2021-10-25 01:34:46 +00:00
|
|
|
NORMAL = 0;
|
|
|
|
HIGH = 1;
|
2020-07-31 09:26:58 +00:00
|
|
|
}
|
2021-10-25 01:34:46 +00:00
|
|
|
Priority priority = 16;
|
2021-11-03 14:14:46 +00:00
|
|
|
string ID = 17;
|
2017-07-24 07:06:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message NotificationReply {
|
|
|
|
bool success = 1;
|
|
|
|
int32 counts = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
service Gorush {
|
|
|
|
rpc Send (NotificationRequest) returns (NotificationReply) {}
|
|
|
|
}
|
|
|
|
|
2017-11-12 14:44:33 +00:00
|
|
|
message HealthCheckRequest {
|
|
|
|
string service = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message HealthCheckResponse {
|
|
|
|
enum ServingStatus {
|
|
|
|
UNKNOWN = 0;
|
|
|
|
SERVING = 1;
|
|
|
|
NOT_SERVING = 2;
|
|
|
|
}
|
|
|
|
ServingStatus status = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
service Health {
|
|
|
|
rpc Check(HealthCheckRequest) returns (HealthCheckResponse);
|
|
|
|
}
|