pb: upgrade protobuf

This commit is contained in:
criyle 2025-01-25 22:23:14 -05:00
parent 3836841bbd
commit 1d44e623fc
2 changed files with 169 additions and 166 deletions

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.35.2
// protoc v3.21.12
// protoc-gen-go v1.36.4
// protoc v5.29.3
// source: judge.proto
package pb
@ -12,6 +12,7 @@ import (
emptypb "google.golang.org/protobuf/types/known/emptypb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
@ -174,11 +175,10 @@ func (Response_Result_StatusType) EnumDescriptor() ([]byte, []int) {
}
type FileID struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
FileID string `protobuf:"bytes,1,opt,name=fileID,proto3" json:"fileID,omitempty"`
unknownFields protoimpl.UnknownFields
FileID string `protobuf:"bytes,1,opt,name=fileID,proto3" json:"fileID,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *FileID) Reset() {
@ -219,12 +219,11 @@ func (x *FileID) GetFileID() string {
}
type FileContent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *FileContent) Reset() {
@ -272,11 +271,10 @@ func (x *FileContent) GetContent() []byte {
}
type FileListType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
FileIDs map[string]string `protobuf:"bytes,1,rep,name=fileIDs,proto3" json:"fileIDs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
FileIDs map[string]string `protobuf:"bytes,1,rep,name=fileIDs,proto3" json:"fileIDs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
sizeCache protoimpl.SizeCache
}
func (x *FileListType) Reset() {
@ -317,13 +315,12 @@ func (x *FileListType) GetFileIDs() map[string]string {
}
type Request struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
Cmd []*Request_CmdType `protobuf:"bytes,2,rep,name=cmd,proto3" json:"cmd,omitempty"`
PipeMapping []*Request_PipeMap `protobuf:"bytes,3,rep,name=pipeMapping,proto3" json:"pipeMapping,omitempty"`
unknownFields protoimpl.UnknownFields
RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
Cmd []*Request_CmdType `protobuf:"bytes,2,rep,name=cmd,proto3" json:"cmd,omitempty"`
PipeMapping []*Request_PipeMap `protobuf:"bytes,3,rep,name=pipeMapping,proto3" json:"pipeMapping,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Request) Reset() {
@ -378,13 +375,12 @@ func (x *Request) GetPipeMapping() []*Request_PipeMap {
}
type Response struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
Results []*Response_Result `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
unknownFields protoimpl.UnknownFields
RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
Results []*Response_Result `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Response) Reset() {
@ -439,17 +435,16 @@ func (x *Response) GetError() string {
}
type StreamRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Request:
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Request:
//
// *StreamRequest_ExecRequest
// *StreamRequest_ExecInput
// *StreamRequest_ExecResize
// *StreamRequest_ExecCancel
Request isStreamRequest_Request `protobuf_oneof:"request"`
Request isStreamRequest_Request `protobuf_oneof:"request"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StreamRequest) Reset() {
@ -482,37 +477,45 @@ func (*StreamRequest) Descriptor() ([]byte, []int) {
return file_judge_proto_rawDescGZIP(), []int{5}
}
func (m *StreamRequest) GetRequest() isStreamRequest_Request {
if m != nil {
return m.Request
func (x *StreamRequest) GetRequest() isStreamRequest_Request {
if x != nil {
return x.Request
}
return nil
}
func (x *StreamRequest) GetExecRequest() *Request {
if x, ok := x.GetRequest().(*StreamRequest_ExecRequest); ok {
return x.ExecRequest
if x != nil {
if x, ok := x.Request.(*StreamRequest_ExecRequest); ok {
return x.ExecRequest
}
}
return nil
}
func (x *StreamRequest) GetExecInput() *StreamRequest_Input {
if x, ok := x.GetRequest().(*StreamRequest_ExecInput); ok {
return x.ExecInput
if x != nil {
if x, ok := x.Request.(*StreamRequest_ExecInput); ok {
return x.ExecInput
}
}
return nil
}
func (x *StreamRequest) GetExecResize() *StreamRequest_Resize {
if x, ok := x.GetRequest().(*StreamRequest_ExecResize); ok {
return x.ExecResize
if x != nil {
if x, ok := x.Request.(*StreamRequest_ExecResize); ok {
return x.ExecResize
}
}
return nil
}
func (x *StreamRequest) GetExecCancel() *emptypb.Empty {
if x, ok := x.GetRequest().(*StreamRequest_ExecCancel); ok {
return x.ExecCancel
if x != nil {
if x, ok := x.Request.(*StreamRequest_ExecCancel); ok {
return x.ExecCancel
}
}
return nil
}
@ -546,15 +549,14 @@ func (*StreamRequest_ExecResize) isStreamRequest_Request() {}
func (*StreamRequest_ExecCancel) isStreamRequest_Request() {}
type StreamResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Response:
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Response:
//
// *StreamResponse_ExecResponse
// *StreamResponse_ExecOutput
Response isStreamResponse_Response `protobuf_oneof:"response"`
Response isStreamResponse_Response `protobuf_oneof:"response"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StreamResponse) Reset() {
@ -587,23 +589,27 @@ func (*StreamResponse) Descriptor() ([]byte, []int) {
return file_judge_proto_rawDescGZIP(), []int{6}
}
func (m *StreamResponse) GetResponse() isStreamResponse_Response {
if m != nil {
return m.Response
func (x *StreamResponse) GetResponse() isStreamResponse_Response {
if x != nil {
return x.Response
}
return nil
}
func (x *StreamResponse) GetExecResponse() *Response {
if x, ok := x.GetResponse().(*StreamResponse_ExecResponse); ok {
return x.ExecResponse
if x != nil {
if x, ok := x.Response.(*StreamResponse_ExecResponse); ok {
return x.ExecResponse
}
}
return nil
}
func (x *StreamResponse) GetExecOutput() *StreamResponse_Output {
if x, ok := x.GetResponse().(*StreamResponse_ExecOutput); ok {
return x.ExecOutput
if x != nil {
if x, ok := x.Response.(*StreamResponse_ExecOutput); ok {
return x.ExecOutput
}
}
return nil
}
@ -625,11 +631,10 @@ func (*StreamResponse_ExecResponse) isStreamResponse_Response() {}
func (*StreamResponse_ExecOutput) isStreamResponse_Response() {}
type Request_LocalFile struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
unknownFields protoimpl.UnknownFields
Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Request_LocalFile) Reset() {
@ -670,11 +675,10 @@ func (x *Request_LocalFile) GetSrc() string {
}
type Request_MemoryFile struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
unknownFields protoimpl.UnknownFields
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Request_MemoryFile) Reset() {
@ -715,11 +719,10 @@ func (x *Request_MemoryFile) GetContent() []byte {
}
type Request_CachedFile struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
FileID string `protobuf:"bytes,1,opt,name=fileID,proto3" json:"fileID,omitempty"`
unknownFields protoimpl.UnknownFields
FileID string `protobuf:"bytes,1,opt,name=fileID,proto3" json:"fileID,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Request_CachedFile) Reset() {
@ -760,13 +763,12 @@ func (x *Request_CachedFile) GetFileID() string {
}
type Request_PipeCollector struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
Pipe bool `protobuf:"varint,3,opt,name=pipe,proto3" json:"pipe,omitempty"`
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
Pipe bool `protobuf:"varint,3,opt,name=pipe,proto3" json:"pipe,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Request_PipeCollector) Reset() {
@ -821,11 +823,8 @@ func (x *Request_PipeCollector) GetPipe() bool {
}
type Request_File struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to File:
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to File:
//
// *Request_File_Local
// *Request_File_Memory
@ -833,7 +832,9 @@ type Request_File struct {
// *Request_File_Pipe
// *Request_File_StreamIn
// *Request_File_StreamOut
File isRequest_File_File `protobuf_oneof:"file"`
File isRequest_File_File `protobuf_oneof:"file"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Request_File) Reset() {
@ -866,51 +867,63 @@ func (*Request_File) Descriptor() ([]byte, []int) {
return file_judge_proto_rawDescGZIP(), []int{3, 4}
}
func (m *Request_File) GetFile() isRequest_File_File {
if m != nil {
return m.File
func (x *Request_File) GetFile() isRequest_File_File {
if x != nil {
return x.File
}
return nil
}
func (x *Request_File) GetLocal() *Request_LocalFile {
if x, ok := x.GetFile().(*Request_File_Local); ok {
return x.Local
if x != nil {
if x, ok := x.File.(*Request_File_Local); ok {
return x.Local
}
}
return nil
}
func (x *Request_File) GetMemory() *Request_MemoryFile {
if x, ok := x.GetFile().(*Request_File_Memory); ok {
return x.Memory
if x != nil {
if x, ok := x.File.(*Request_File_Memory); ok {
return x.Memory
}
}
return nil
}
func (x *Request_File) GetCached() *Request_CachedFile {
if x, ok := x.GetFile().(*Request_File_Cached); ok {
return x.Cached
if x != nil {
if x, ok := x.File.(*Request_File_Cached); ok {
return x.Cached
}
}
return nil
}
func (x *Request_File) GetPipe() *Request_PipeCollector {
if x, ok := x.GetFile().(*Request_File_Pipe); ok {
return x.Pipe
if x != nil {
if x, ok := x.File.(*Request_File_Pipe); ok {
return x.Pipe
}
}
return nil
}
func (x *Request_File) GetStreamIn() *emptypb.Empty {
if x, ok := x.GetFile().(*Request_File_StreamIn); ok {
return x.StreamIn
if x != nil {
if x, ok := x.File.(*Request_File_StreamIn); ok {
return x.StreamIn
}
}
return nil
}
func (x *Request_File) GetStreamOut() *emptypb.Empty {
if x, ok := x.GetFile().(*Request_File_StreamOut); ok {
return x.StreamOut
if x != nil {
if x, ok := x.File.(*Request_File_StreamOut); ok {
return x.StreamOut
}
}
return nil
}
@ -958,10 +971,7 @@ func (*Request_File_StreamIn) isRequest_File_File() {}
func (*Request_File_StreamOut) isRequest_File_File() {}
type Request_CmdType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
Files []*Request_File `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"`
@ -975,12 +985,14 @@ type Request_CmdType struct {
CpuSetLimit string `protobuf:"bytes,17,opt,name=cpuSetLimit,proto3" json:"cpuSetLimit,omitempty"`
DataSegmentLimit bool `protobuf:"varint,16,opt,name=dataSegmentLimit,proto3" json:"dataSegmentLimit,omitempty"`
AddressSpaceLimit bool `protobuf:"varint,19,opt,name=addressSpaceLimit,proto3" json:"addressSpaceLimit,omitempty"`
CopyIn map[string]*Request_File `protobuf:"bytes,8,rep,name=copyIn,proto3" json:"copyIn,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Symlinks map[string]string `protobuf:"bytes,18,rep,name=symlinks,proto3" json:"symlinks,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
CopyIn map[string]*Request_File `protobuf:"bytes,8,rep,name=copyIn,proto3" json:"copyIn,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Symlinks map[string]string `protobuf:"bytes,18,rep,name=symlinks,proto3" json:"symlinks,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
CopyOut []*Request_CmdCopyOutFile `protobuf:"bytes,9,rep,name=copyOut,proto3" json:"copyOut,omitempty"`
CopyOutCached []*Request_CmdCopyOutFile `protobuf:"bytes,10,rep,name=copyOutCached,proto3" json:"copyOutCached,omitempty"`
CopyOutDir string `protobuf:"bytes,11,opt,name=copyOutDir,proto3" json:"copyOutDir,omitempty"`
CopyOutMax uint64 `protobuf:"varint,14,opt,name=copyOutMax,proto3" json:"copyOutMax,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Request_CmdType) Reset() {
@ -1147,12 +1159,11 @@ func (x *Request_CmdType) GetCopyOutMax() uint64 {
}
type Request_CmdCopyOutFile struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Optional bool `protobuf:"varint,2,opt,name=optional,proto3" json:"optional,omitempty"`
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Optional bool `protobuf:"varint,2,opt,name=optional,proto3" json:"optional,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Request_CmdCopyOutFile) Reset() {
@ -1200,15 +1211,14 @@ func (x *Request_CmdCopyOutFile) GetOptional() bool {
}
type Request_PipeMap struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
In *Request_PipeMap_PipeIndex `protobuf:"bytes,1,opt,name=in,proto3" json:"in,omitempty"`
Out *Request_PipeMap_PipeIndex `protobuf:"bytes,2,opt,name=out,proto3" json:"out,omitempty"`
Proxy bool `protobuf:"varint,3,opt,name=proxy,proto3" json:"proxy,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Max uint64 `protobuf:"varint,5,opt,name=max,proto3" json:"max,omitempty"`
unknownFields protoimpl.UnknownFields
In *Request_PipeMap_PipeIndex `protobuf:"bytes,1,opt,name=in,proto3" json:"in,omitempty"`
Out *Request_PipeMap_PipeIndex `protobuf:"bytes,2,opt,name=out,proto3" json:"out,omitempty"`
Proxy bool `protobuf:"varint,3,opt,name=proxy,proto3" json:"proxy,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Max uint64 `protobuf:"varint,5,opt,name=max,proto3" json:"max,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Request_PipeMap) Reset() {
@ -1277,12 +1287,11 @@ func (x *Request_PipeMap) GetMax() uint64 {
}
type Request_PipeMap_PipeIndex struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
Fd int32 `protobuf:"varint,2,opt,name=fd,proto3" json:"fd,omitempty"`
unknownFields protoimpl.UnknownFields
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
Fd int32 `protobuf:"varint,2,opt,name=fd,proto3" json:"fd,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Request_PipeMap_PipeIndex) Reset() {
@ -1330,13 +1339,12 @@ func (x *Request_PipeMap_PipeIndex) GetFd() int32 {
}
type Response_FileError struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type Response_FileError_ErrorType `protobuf:"varint,2,opt,name=type,proto3,enum=pb.Response_FileError_ErrorType" json:"type,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type Response_FileError_ErrorType `protobuf:"varint,2,opt,name=type,proto3,enum=pb.Response_FileError_ErrorType" json:"type,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Response_FileError) Reset() {
@ -1391,19 +1399,18 @@ func (x *Response_FileError) GetMessage() string {
}
type Response_Result struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Status Response_Result_StatusType `protobuf:"varint,1,opt,name=status,proto3,enum=pb.Response_Result_StatusType" json:"status,omitempty"`
ExitStatus int32 `protobuf:"varint,2,opt,name=exitStatus,proto3" json:"exitStatus,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
Time uint64 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"`
RunTime uint64 `protobuf:"varint,8,opt,name=runTime,proto3" json:"runTime,omitempty"`
Memory uint64 `protobuf:"varint,5,opt,name=memory,proto3" json:"memory,omitempty"`
Files map[string][]byte `protobuf:"bytes,6,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
FileIDs map[string]string `protobuf:"bytes,7,rep,name=fileIDs,proto3" json:"fileIDs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
FileError []*Response_FileError `protobuf:"bytes,9,rep,name=fileError,proto3" json:"fileError,omitempty"`
unknownFields protoimpl.UnknownFields
Status Response_Result_StatusType `protobuf:"varint,1,opt,name=status,proto3,enum=pb.Response_Result_StatusType" json:"status,omitempty"`
ExitStatus int32 `protobuf:"varint,2,opt,name=exitStatus,proto3" json:"exitStatus,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
Time uint64 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"`
RunTime uint64 `protobuf:"varint,8,opt,name=runTime,proto3" json:"runTime,omitempty"`
Memory uint64 `protobuf:"varint,5,opt,name=memory,proto3" json:"memory,omitempty"`
Files map[string][]byte `protobuf:"bytes,6,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
FileIDs map[string]string `protobuf:"bytes,7,rep,name=fileIDs,proto3" json:"fileIDs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
FileError []*Response_FileError `protobuf:"bytes,9,rep,name=fileError,proto3" json:"fileError,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Response_Result) Reset() {
@ -1500,13 +1507,12 @@ func (x *Response_Result) GetFileError() []*Response_FileError {
}
type StreamRequest_Input struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
Fd uint32 `protobuf:"varint,3,opt,name=fd,proto3" json:"fd,omitempty"`
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
unknownFields protoimpl.UnknownFields
Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
Fd uint32 `protobuf:"varint,3,opt,name=fd,proto3" json:"fd,omitempty"`
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *StreamRequest_Input) Reset() {
@ -1561,16 +1567,15 @@ func (x *StreamRequest_Input) GetContent() []byte {
}
type StreamRequest_Resize struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
Fd uint32 `protobuf:"varint,6,opt,name=fd,proto3" json:"fd,omitempty"`
Rows uint32 `protobuf:"varint,2,opt,name=rows,proto3" json:"rows,omitempty"`
Cols uint32 `protobuf:"varint,3,opt,name=cols,proto3" json:"cols,omitempty"`
X uint32 `protobuf:"varint,4,opt,name=x,proto3" json:"x,omitempty"`
Y uint32 `protobuf:"varint,5,opt,name=y,proto3" json:"y,omitempty"`
unknownFields protoimpl.UnknownFields
Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
Fd uint32 `protobuf:"varint,6,opt,name=fd,proto3" json:"fd,omitempty"`
Rows uint32 `protobuf:"varint,2,opt,name=rows,proto3" json:"rows,omitempty"`
Cols uint32 `protobuf:"varint,3,opt,name=cols,proto3" json:"cols,omitempty"`
X uint32 `protobuf:"varint,4,opt,name=x,proto3" json:"x,omitempty"`
Y uint32 `protobuf:"varint,5,opt,name=y,proto3" json:"y,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *StreamRequest_Resize) Reset() {
@ -1646,13 +1651,12 @@ func (x *StreamRequest_Resize) GetY() uint32 {
}
type StreamResponse_Output struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
Fd uint32 `protobuf:"varint,3,opt,name=fd,proto3" json:"fd,omitempty"`
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
unknownFields protoimpl.UnknownFields
Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
Fd uint32 `protobuf:"varint,3,opt,name=fd,proto3" json:"fd,omitempty"`
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *StreamResponse_Output) Reset() {
@ -1708,7 +1712,7 @@ func (x *StreamResponse_Output) GetContent() []byte {
var File_judge_proto protoreflect.FileDescriptor
var file_judge_proto_rawDesc = []byte{
var file_judge_proto_rawDesc = string([]byte{
0x0a, 0x0b, 0x6a, 0x75, 0x64, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70,
0x62, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x20,
@ -1978,16 +1982,16 @@ var file_judge_proto_rawDesc = []byte{
0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x1f, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x72, 0x69, 0x79, 0x6c, 0x65, 0x2f, 0x67, 0x6f, 0x2d,
0x6a, 0x75, 0x64, 0x67, 0x65, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
})
var (
file_judge_proto_rawDescOnce sync.Once
file_judge_proto_rawDescData = file_judge_proto_rawDesc
file_judge_proto_rawDescData []byte
)
func file_judge_proto_rawDescGZIP() []byte {
file_judge_proto_rawDescOnce.Do(func() {
file_judge_proto_rawDescData = protoimpl.X.CompressGZIP(file_judge_proto_rawDescData)
file_judge_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_judge_proto_rawDesc), len(file_judge_proto_rawDesc)))
})
return file_judge_proto_rawDescData
}
@ -2101,7 +2105,7 @@ func file_judge_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_judge_proto_rawDesc,
RawDescriptor: unsafe.Slice(unsafe.StringData(file_judge_proto_rawDesc), len(file_judge_proto_rawDesc)),
NumEnums: 2,
NumMessages: 26,
NumExtensions: 0,
@ -2113,7 +2117,6 @@ func file_judge_proto_init() {
MessageInfos: file_judge_proto_msgTypes,
}.Build()
File_judge_proto = out.File
file_judge_proto_rawDesc = nil
file_judge_proto_goTypes = nil
file_judge_proto_depIdxs = nil
}

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc v3.21.12
// - protoc v5.29.3
// source: judge.proto
package pb