36 lines
994 B
Protocol Buffer
36 lines
994 B
Protocol Buffer
syntax="proto3";
|
|
package bts.api.test;
|
|
option csharp_namespace="bts.api.test";
|
|
import "lib/api/Apioptions.proto";
|
|
|
|
message HelloRequest {
|
|
string name = 1;
|
|
}
|
|
message HelloResponse {
|
|
string message = 1;
|
|
}
|
|
message HelloLog {
|
|
string myid = 1 [(bts.api.key)=true];
|
|
string message = 10;
|
|
}
|
|
message HelloSubArgs {
|
|
string name = 1;
|
|
}
|
|
service HelloService {
|
|
option (bts.api.service_description)="This is a service for saying hello!";
|
|
rpc say_hello(HelloRequest) returns (HelloResponse) { option (bts.api.method_description)="send a friendly greeting."; }
|
|
rpc greetings(HelloSubArgs) returns (stream HelloLog);
|
|
rpc yell_hello(HelloRequest) returns (HelloResponse);
|
|
}
|
|
|
|
message ShoutRequest {
|
|
string msg = 1;
|
|
}
|
|
message ShoutResponse {
|
|
string MSG = 1;
|
|
}
|
|
service ShoutService {
|
|
option (bts.api.service_description) = "Makes input message louder";
|
|
rpc upper(ShoutRequest) returns (ShoutResponse) {option (bts.api.method_description)="Caps lock is cruise control for cool.";}
|
|
}
|