bilibili-API-collect/grpc_api/bilibili/api/probe/v1/probe.proto

139 lines
1.9 KiB
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package bilibili.api.probe.v1;
//
service Probe {
//
2021-06-11 01:03:04 +08:00
rpc TestCode (CodeReq) returns (CodeReply);
//
2021-06-11 01:03:04 +08:00
rpc TestReq (ProbeReq) returns (ProbeReply);
//
2021-06-11 01:03:04 +08:00
rpc TestStream (ProbeStreamReq) returns (ProbeStreamReply);
//
2021-06-11 01:03:04 +08:00
rpc TestSub (ProbeSubReq) returns (ProbeSubReply);
}
2022-09-15 18:00:56 +08:00
//
enum Category {
CATEGORY_UNSPECIFIED = 0; //
CATEGORY_ONE = 1; //
CATEGORY_TWO = 2; //
CATEGORY_THREE = 3; //
}
//
message CodeReply {}
2021-06-11 01:03:04 +08:00
//
message CodeReq {
//
int64 code = 1;
}
2021-06-11 01:03:04 +08:00
//
2022-09-15 18:00:56 +08:00
message DynamicMessageUpdate {
//
SimpleMessage body = 1;
}
2021-06-11 01:03:04 +08:00
//
2022-09-15 18:00:56 +08:00
message Embedded {
//
2022-09-15 18:00:56 +08:00
bool bool_val = 1;
//
2022-09-15 18:00:56 +08:00
int32 int32_val = 2;
//
int64 int64_val = 3;
//
float float_val = 4;
//
double double_val = 5;
//
string string_val = 6;
//
repeated int32 repeated_int32_val = 8;
//
repeated string repeated_string_val = 12;
//
map<string, string> map_string_val = 13;
//
map<string, ErrorMessage> map_error_val = 14;
}
//
message ErrorMessage {
//
int64 code = 1;
//
string reason = 2;
//
string message = 3;
}
//
enum ErrorReason {
PROBE_UNSPECIFIED = 0; //
PROBE_CATEGORY_NOTFOUND = 1; //
}
2021-06-11 01:03:04 +08:00
//
message ProbeReply {
//
string content = 1;
//
int64 timestamp = 2;
}
2021-06-11 01:03:04 +08:00
//
2022-09-15 18:00:56 +08:00
message ProbeReq {
//
int64 mid = 1;
//
2022-09-15 18:00:56 +08:00
string buvid = 2;
}
2021-06-11 01:03:04 +08:00
//
message ProbeStreamReply {
//
int64 sequence = 1;
//
int64 timestamp = 2;
//
string content = 3;
}
2021-06-11 01:03:04 +08:00
//
2022-09-15 18:00:56 +08:00
message ProbeStreamReq {
//
2022-09-15 18:00:56 +08:00
int64 mid = 1;
//
int64 sequence = 2;
}
2021-06-11 01:03:04 +08:00
//
message ProbeSubReply {
//
2021-07-12 16:37:03 +08:00
int64 message_id = 1;
2022-09-15 18:00:56 +08:00
}
//
message ProbeSubReq {
//
int64 buvid = 1;
}
//
message SimpleMessage {
//
int32 id = 1;
//
int64 num = 2;
//
string lang = 3;
//
int32 cate = 4;
//
Embedded embedded = 5;
}