brain/protos/brain.proto

25 lines
470 B
Protocol Buffer
Raw Permalink Normal View History

2023-07-02 16:00:04 +00:00
syntax = "proto3";
package pb;
option go_package = "./;pb";
// Message defines the request/response structure.
message Request {
int32 Case = 1;
string Data = 2;
}
// Message defines the request/response structure.
message Response {
int32 Code = 1;
string Data = 2;
}
// Service defines the available RPCs.
service BrainService {
// SayHello returns a greeting for the given name.
rpc Add (Request) returns (Response);
}
option optimize_for = SPEED;