bilibili-API-collect/grpc_api/bilibili/main/common/arch/doll/v1/doll.proto
2022-02-02 20:25:16 +08:00

62 lines
767 B
Protocol Buffer

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);
}
//
message ErrorRequest {
//
int32 error = 2;
//
int64 time = 1;
//
int64 delay = 3;
}
//
message ErrorResponse {
//
string host = 1;
//
int64 time = 3;
}
//
message PingRequest {
//
int64 time = 1;
}
//
message PingResponse {
//
string host = 1;
//
int64 time = 3;
}
//
message SayRequest {
//
string content = 1;
}
//
message SayResponse {
//
string host = 1;
//
string content = 2;
//
int64 time = 3;
}