更新大量【proto定义】并勘误
This commit is contained in:
72
grpc_api/bilibili/broadcast/v1/room.proto
Normal file
72
grpc_api/bilibili/broadcast/v1/room.proto
Normal file
@@ -0,0 +1,72 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.broadcast.v1;
|
||||
|
||||
import "bilibili/rpc/status.proto";
|
||||
import "google/protobuf/any.proto";
|
||||
|
||||
//
|
||||
service BroadcastRoom {
|
||||
//
|
||||
rpc Enter(stream RoomReq) returns (stream RoomResp);
|
||||
}
|
||||
|
||||
//
|
||||
message RoomJoinEvent {}
|
||||
|
||||
//
|
||||
message RoomLeaveEvent {}
|
||||
|
||||
//
|
||||
message RoomOnlineEvent {
|
||||
//
|
||||
int32 online = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message RoomMessageEvent {
|
||||
//
|
||||
string target_path = 1;
|
||||
//
|
||||
google.protobuf.Any body = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message RoomErrorEvent {
|
||||
//
|
||||
bilibili.rpc.Status status = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message RoomReq {
|
||||
// {type}://{room_id}
|
||||
string id = 1;
|
||||
oneof event {
|
||||
//
|
||||
RoomJoinEvent join = 2;
|
||||
//
|
||||
RoomLeaveEvent leave = 3;
|
||||
//
|
||||
RoomOnlineEvent online = 4;
|
||||
//
|
||||
RoomMessageEvent msg = 5;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
message RoomResp {
|
||||
// {type}://{room_id}
|
||||
string id = 1;
|
||||
oneof event {
|
||||
//
|
||||
RoomJoinEvent join = 2;
|
||||
//
|
||||
RoomLeaveEvent leave = 3;
|
||||
//
|
||||
RoomOnlineEvent online = 4;
|
||||
//
|
||||
RoomMessageEvent msg = 5;
|
||||
//
|
||||
RoomErrorEvent err = 6;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user