mirror of
https://github.com/criyle/go-judge.git
synced 2025-09-26 22:39:12 +08:00
36 lines
685 B
Protocol Buffer
36 lines
685 B
Protocol Buffer
edition = "2023";
|
|
|
|
package pb;
|
|
|
|
option features.field_presence = IMPLICIT;
|
|
option go_package = "github.com/criyle/go-judge/pb";
|
|
option features.(pb.go).api_level = API_HYBRID;
|
|
|
|
import "google/protobuf/empty.proto";
|
|
import "request.proto";
|
|
import "google/protobuf/go_features.proto";
|
|
|
|
message StreamRequest {
|
|
message Input {
|
|
uint32 index = 1;
|
|
uint32 fd = 3;
|
|
bytes content = 2;
|
|
}
|
|
|
|
message Resize {
|
|
uint32 index = 1;
|
|
uint32 fd = 6;
|
|
uint32 rows = 2;
|
|
uint32 cols = 3;
|
|
uint32 x = 4;
|
|
uint32 y = 5;
|
|
}
|
|
|
|
oneof request {
|
|
Request execRequest = 1;
|
|
Input execInput = 2;
|
|
Resize execResize = 3;
|
|
google.protobuf.Empty execCancel = 4;
|
|
}
|
|
}
|