添加新的grpc_api proto(from 7.18.0) (#625)
* 添加新的proto(from 7.18.0) * 修正包路径: playershared * 修正import
This commit is contained in:
93
grpc_api/pgc/gateway/vega/v1/vega.proto
Normal file
93
grpc_api/pgc/gateway/vega/v1/vega.proto
Normal file
@@ -0,0 +1,93 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package pgc.gateway.vega.v1;
|
||||
|
||||
import "bilibili/rpc/status.proto";
|
||||
import "google/protobuf/any.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
//
|
||||
service Vega {
|
||||
//
|
||||
rpc CreateTunnel (VegaFrame) returns (VegaFrame);
|
||||
}
|
||||
|
||||
//
|
||||
service VegaFrameDoc {
|
||||
//
|
||||
rpc Auth (AuthReq) returns (AuthResp);
|
||||
//
|
||||
rpc Heartbeat (HeartbeatReq) returns (HeartbeatResp);
|
||||
//
|
||||
rpc MessageAck (MessageAckReq) returns (google.protobuf.Empty);
|
||||
//
|
||||
rpc Subscribe (SubscribeReq) returns (google.protobuf.Empty);
|
||||
}
|
||||
|
||||
//
|
||||
message AuthReq {}
|
||||
|
||||
//
|
||||
message AuthResp {}
|
||||
|
||||
//
|
||||
message FrameOption {
|
||||
//
|
||||
int64 vega_id = 1;
|
||||
//
|
||||
string req_id = 2;
|
||||
//
|
||||
int64 sequence = 3;
|
||||
//
|
||||
bool is_ack = 4;
|
||||
//
|
||||
bilibili.rpc.Status status = 5;
|
||||
//
|
||||
string ack_origin = 6;
|
||||
//
|
||||
int64 mid = 7;
|
||||
}
|
||||
|
||||
//
|
||||
message HeartbeatReq {}
|
||||
|
||||
//
|
||||
message HeartbeatResp {}
|
||||
|
||||
//
|
||||
message MessageAckReq {
|
||||
//
|
||||
string vega_id = 1;
|
||||
//
|
||||
string req_id = 2;
|
||||
//
|
||||
string origin = 3;
|
||||
//
|
||||
string target_path = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message SubscribeReq {
|
||||
//
|
||||
repeated TargetPath target_paths = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message TargetPath {
|
||||
//
|
||||
string key = 1;
|
||||
//
|
||||
google.protobuf.Any subs = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message VegaFrame {
|
||||
//
|
||||
FrameOption options = 1;
|
||||
//
|
||||
string route_path = 2;
|
||||
//
|
||||
google.protobuf.Any body = 3;
|
||||
//
|
||||
google.protobuf.Any sub_biz = 4;
|
||||
}
|
||||
Reference in New Issue
Block a user