bilibili-API-collect/grpc_api/bilibili/main/common/arch/doll/v1/doll.proto
Mix 5e3c4e5816
修复两处导致Protobuf代码生成失败的Bug (#252)
* 移除未使用的Protobuf引用

* 修复Protobuf定义符号错误
2021-09-27 13:56:32 +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 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;
}
//
message ErrorRequest {
//
int32 error = 2;
//
int64 time = 1;
//
int64 delay = 3;
}
//
message ErrorResponse {
//
string host = 1;
//
int64 time = 3;
}