bilibili-API-collect/grpc_api/bilibili/main/common/arch/doll/v1/doll.proto

62 lines
767 B
Protocol Buffer
Raw Normal View History

2021-07-12 16:37:03 +08:00
syntax = "proto3";
package bilibili.main.common.arch.doll.v1;
//
service Echo {
//
rpc Ping(PingRequest) returns(PingResponse);
//
rpc Say(SayRequest) returns(SayResponse);
//
rpc Error(ErrorRequest) returns(ErrorResponse);
}
//
2022-02-02 20:25:16 +08:00
message ErrorRequest {
//
int32 error = 2;
//
2021-07-12 16:37:03 +08:00
int64 time = 1;
2022-02-02 20:25:16 +08:00
//
int64 delay = 3;
2021-07-12 16:37:03 +08:00
}
//
2022-02-02 20:25:16 +08:00
message ErrorResponse {
2021-07-12 16:37:03 +08:00
//
string host = 1;
//
int64 time = 3;
}
//
2022-02-02 20:25:16 +08:00
message PingRequest {
2021-07-12 16:37:03 +08:00
//
2022-02-02 20:25:16 +08:00
int64 time = 1;
2021-07-12 16:37:03 +08:00
}
//
2022-02-02 20:25:16 +08:00
message PingResponse {
2021-07-12 16:37:03 +08:00
//
string host = 1;
//
int64 time = 3;
}
//
2022-02-02 20:25:16 +08:00
message SayRequest {
2021-07-12 16:37:03 +08:00
//
2022-02-02 20:25:16 +08:00
string content = 1;
2021-07-12 16:37:03 +08:00
}
//
2022-02-02 20:25:16 +08:00
message SayResponse {
2021-07-12 16:37:03 +08:00
//
string host = 1;
//
2022-02-02 20:25:16 +08:00
string content = 2;
//
2021-07-12 16:37:03 +08:00
int64 time = 3;
}