Files
bilibili-API-collect/grpc_api/bilibili/broadcast/v1/test.proto
T
2022-01-31 00:33:38 +08:00

47 lines
821 B
Protocol Buffer

syntax = "proto3";
package bilibili.broadcast.v1;
import "google/protobuf/any.proto";
import "google/protobuf/empty.proto";
// 服务端下发的测试专用消息,客户端debug/release包都会通过弹窗响应该消息
// 后端平台 必须 限制该消息只能针对单个用户发送
// Test
service Test {
// 监听上报事件
rpc WatchTestEvent(google.protobuf.Empty) returns (stream TestResp);
}
//
service Test2 {
//
rpc Test(AddParams) returns (google.protobuf.Empty);
}
//
message AddParams {
//
int32 a = 1;
//
int32 b = 2;
}
//
message AddResult {
//
int32 r = 1;
}
message TestResp {
// 任务id
int64 taskid = 1;
// 时间戳
int64 timestamp = 2;
// 消息
string message = 3;
// 扩展
google.protobuf.Any extra = 4;
}