// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.10 // protoc v6.33.2 // source: api/proto/task.proto package task import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type TaskType int32 const ( TaskType_TASK_TYPE_UNSPECIFIED TaskType = 0 TaskType_TASK_TYPE_INPUT TaskType = 1 TaskType_TASK_TYPE_CHECKER TaskType = 2 TaskType_TASK_TYPE_REVIEW TaskType = 3 ) // Enum value maps for TaskType. var ( TaskType_name = map[int32]string{ 0: "TASK_TYPE_UNSPECIFIED", 1: "TASK_TYPE_INPUT", 2: "TASK_TYPE_CHECKER", 3: "TASK_TYPE_REVIEW", } TaskType_value = map[string]int32{ "TASK_TYPE_UNSPECIFIED": 0, "TASK_TYPE_INPUT": 1, "TASK_TYPE_CHECKER": 2, "TASK_TYPE_REVIEW": 3, } ) func (x TaskType) Enum() *TaskType { p := new(TaskType) *p = x return p } func (x TaskType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (TaskType) Descriptor() protoreflect.EnumDescriptor { return file_api_proto_task_proto_enumTypes[0].Descriptor() } func (TaskType) Type() protoreflect.EnumType { return &file_api_proto_task_proto_enumTypes[0] } func (x TaskType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use TaskType.Descriptor instead. func (TaskType) EnumDescriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{0} } type TaskStatusEnum int32 const ( TaskStatusEnum_TASK_STATUS_UNSPECIFIED TaskStatusEnum = 0 TaskStatusEnum_TASK_STATUS_NOT_SUBMITTED TaskStatusEnum = 1 TaskStatusEnum_TASK_STATUS_SENT TaskStatusEnum = 2 TaskStatusEnum_TASK_STATUS_CHECKING TaskStatusEnum = 3 TaskStatusEnum_TASK_STATUS_CHECKED TaskStatusEnum = 4 ) // Enum value maps for TaskStatusEnum. var ( TaskStatusEnum_name = map[int32]string{ 0: "TASK_STATUS_UNSPECIFIED", 1: "TASK_STATUS_NOT_SUBMITTED", 2: "TASK_STATUS_SENT", 3: "TASK_STATUS_CHECKING", 4: "TASK_STATUS_CHECKED", } TaskStatusEnum_value = map[string]int32{ "TASK_STATUS_UNSPECIFIED": 0, "TASK_STATUS_NOT_SUBMITTED": 1, "TASK_STATUS_SENT": 2, "TASK_STATUS_CHECKING": 3, "TASK_STATUS_CHECKED": 4, } ) func (x TaskStatusEnum) Enum() *TaskStatusEnum { p := new(TaskStatusEnum) *p = x return p } func (x TaskStatusEnum) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (TaskStatusEnum) Descriptor() protoreflect.EnumDescriptor { return file_api_proto_task_proto_enumTypes[1].Descriptor() } func (TaskStatusEnum) Type() protoreflect.EnumType { return &file_api_proto_task_proto_enumTypes[1] } func (x TaskStatusEnum) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use TaskStatusEnum.Descriptor instead. func (TaskStatusEnum) EnumDescriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{1} } type StartCompetitionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` CompetitionId string `protobuf:"bytes,1,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *StartCompetitionRequest) Reset() { *x = StartCompetitionRequest{} mi := &file_api_proto_task_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *StartCompetitionRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*StartCompetitionRequest) ProtoMessage() {} func (x *StartCompetitionRequest) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use StartCompetitionRequest.ProtoReflect.Descriptor instead. func (*StartCompetitionRequest) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{0} } func (x *StartCompetitionRequest) GetCompetitionId() string { if x != nil { return x.CompetitionId } return "" } type StartCompetitionResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *StartCompetitionResponse) Reset() { *x = StartCompetitionResponse{} mi := &file_api_proto_task_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *StartCompetitionResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*StartCompetitionResponse) ProtoMessage() {} func (x *StartCompetitionResponse) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use StartCompetitionResponse.ProtoReflect.Descriptor instead. func (*StartCompetitionResponse) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{1} } func (x *StartCompetitionResponse) GetStatus() string { if x != nil { return x.Status } return "" } type GetCompetitionTasksRequest struct { state protoimpl.MessageState `protogen:"open.v1"` CompetitionId string `protobuf:"bytes,1,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetCompetitionTasksRequest) Reset() { *x = GetCompetitionTasksRequest{} mi := &file_api_proto_task_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetCompetitionTasksRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetCompetitionTasksRequest) ProtoMessage() {} func (x *GetCompetitionTasksRequest) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetCompetitionTasksRequest.ProtoReflect.Descriptor instead. func (*GetCompetitionTasksRequest) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{2} } func (x *GetCompetitionTasksRequest) GetCompetitionId() string { if x != nil { return x.CompetitionId } return "" } type GetCompetitionTasksResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetCompetitionTasksResponse) Reset() { *x = GetCompetitionTasksResponse{} mi := &file_api_proto_task_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetCompetitionTasksResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetCompetitionTasksResponse) ProtoMessage() {} func (x *GetCompetitionTasksResponse) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetCompetitionTasksResponse.ProtoReflect.Descriptor instead. func (*GetCompetitionTasksResponse) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{3} } func (x *GetCompetitionTasksResponse) GetTasks() []*Task { if x != nil { return x.Tasks } return nil } type GetTaskRequest struct { state protoimpl.MessageState `protogen:"open.v1"` CompetitionId string `protobuf:"bytes,1,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"` TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetTaskRequest) Reset() { *x = GetTaskRequest{} mi := &file_api_proto_task_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetTaskRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetTaskRequest) ProtoMessage() {} func (x *GetTaskRequest) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetTaskRequest.ProtoReflect.Descriptor instead. func (*GetTaskRequest) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{4} } func (x *GetTaskRequest) GetCompetitionId() string { if x != nil { return x.CompetitionId } return "" } func (x *GetTaskRequest) GetTaskId() string { if x != nil { return x.TaskId } return "" } type GetTaskResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetTaskResponse) Reset() { *x = GetTaskResponse{} mi := &file_api_proto_task_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetTaskResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetTaskResponse) ProtoMessage() {} func (x *GetTaskResponse) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetTaskResponse.ProtoReflect.Descriptor instead. func (*GetTaskResponse) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{5} } func (x *GetTaskResponse) GetTask() *Task { if x != nil { return x.Task } return nil } type SubmitTaskRequest struct { state protoimpl.MessageState `protogen:"open.v1"` CompetitionId string `protobuf:"bytes,1,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"` TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SubmitTaskRequest) Reset() { *x = SubmitTaskRequest{} mi := &file_api_proto_task_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SubmitTaskRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SubmitTaskRequest) ProtoMessage() {} func (x *SubmitTaskRequest) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SubmitTaskRequest.ProtoReflect.Descriptor instead. func (*SubmitTaskRequest) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{6} } func (x *SubmitTaskRequest) GetCompetitionId() string { if x != nil { return x.CompetitionId } return "" } func (x *SubmitTaskRequest) GetTaskId() string { if x != nil { return x.TaskId } return "" } func (x *SubmitTaskRequest) GetContent() []byte { if x != nil { return x.Content } return nil } type SubmitTaskResponse struct { state protoimpl.MessageState `protogen:"open.v1"` SubmissionId string `protobuf:"bytes,1,opt,name=submission_id,json=submissionId,proto3" json:"submission_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SubmitTaskResponse) Reset() { *x = SubmitTaskResponse{} mi := &file_api_proto_task_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SubmitTaskResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SubmitTaskResponse) ProtoMessage() {} func (x *SubmitTaskResponse) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SubmitTaskResponse.ProtoReflect.Descriptor instead. func (*SubmitTaskResponse) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{7} } func (x *SubmitTaskResponse) GetSubmissionId() string { if x != nil { return x.SubmissionId } return "" } type GetSubmissionsHistoryRequest struct { state protoimpl.MessageState `protogen:"open.v1"` CompetitionId string `protobuf:"bytes,1,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"` TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetSubmissionsHistoryRequest) Reset() { *x = GetSubmissionsHistoryRequest{} mi := &file_api_proto_task_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetSubmissionsHistoryRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetSubmissionsHistoryRequest) ProtoMessage() {} func (x *GetSubmissionsHistoryRequest) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetSubmissionsHistoryRequest.ProtoReflect.Descriptor instead. func (*GetSubmissionsHistoryRequest) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{8} } func (x *GetSubmissionsHistoryRequest) GetCompetitionId() string { if x != nil { return x.CompetitionId } return "" } func (x *GetSubmissionsHistoryRequest) GetTaskId() string { if x != nil { return x.TaskId } return "" } type GetSubmissionsHistoryResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Submissions []*HistorySubmission `protobuf:"bytes,1,rep,name=submissions,proto3" json:"submissions,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetSubmissionsHistoryResponse) Reset() { *x = GetSubmissionsHistoryResponse{} mi := &file_api_proto_task_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetSubmissionsHistoryResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetSubmissionsHistoryResponse) ProtoMessage() {} func (x *GetSubmissionsHistoryResponse) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetSubmissionsHistoryResponse.ProtoReflect.Descriptor instead. func (*GetSubmissionsHistoryResponse) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{9} } func (x *GetSubmissionsHistoryResponse) GetSubmissions() []*HistorySubmission { if x != nil { return x.Submissions } return nil } type GetTaskAttachmentsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` CompetitionId string `protobuf:"bytes,1,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"` TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetTaskAttachmentsRequest) Reset() { *x = GetTaskAttachmentsRequest{} mi := &file_api_proto_task_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetTaskAttachmentsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetTaskAttachmentsRequest) ProtoMessage() {} func (x *GetTaskAttachmentsRequest) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetTaskAttachmentsRequest.ProtoReflect.Descriptor instead. func (*GetTaskAttachmentsRequest) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{10} } func (x *GetTaskAttachmentsRequest) GetCompetitionId() string { if x != nil { return x.CompetitionId } return "" } func (x *GetTaskAttachmentsRequest) GetTaskId() string { if x != nil { return x.TaskId } return "" } type GetTaskAttachmentsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Attachments []*TaskAttachment `protobuf:"bytes,1,rep,name=attachments,proto3" json:"attachments,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetTaskAttachmentsResponse) Reset() { *x = GetTaskAttachmentsResponse{} mi := &file_api_proto_task_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetTaskAttachmentsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetTaskAttachmentsResponse) ProtoMessage() {} func (x *GetTaskAttachmentsResponse) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetTaskAttachmentsResponse.ProtoReflect.Descriptor instead. func (*GetTaskAttachmentsResponse) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{11} } func (x *GetTaskAttachmentsResponse) GetAttachments() []*TaskAttachment { if x != nil { return x.Attachments } return nil } type GetCompetitionResultsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` CompetitionId string `protobuf:"bytes,1,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetCompetitionResultsRequest) Reset() { *x = GetCompetitionResultsRequest{} mi := &file_api_proto_task_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetCompetitionResultsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetCompetitionResultsRequest) ProtoMessage() {} func (x *GetCompetitionResultsRequest) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetCompetitionResultsRequest.ProtoReflect.Descriptor instead. func (*GetCompetitionResultsRequest) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{12} } func (x *GetCompetitionResultsRequest) GetCompetitionId() string { if x != nil { return x.CompetitionId } return "" } type GetCompetitionResultsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Results []*TaskStatus `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetCompetitionResultsResponse) Reset() { *x = GetCompetitionResultsResponse{} mi := &file_api_proto_task_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetCompetitionResultsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetCompetitionResultsResponse) ProtoMessage() {} func (x *GetCompetitionResultsResponse) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetCompetitionResultsResponse.ProtoReflect.Descriptor instead. func (*GetCompetitionResultsResponse) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{13} } func (x *GetCompetitionResultsResponse) GetResults() []*TaskStatus { if x != nil { return x.Results } return nil } type Task struct { state protoimpl.MessageState `protogen:"open.v1"` Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` Competition string `protobuf:"bytes,2,opt,name=competition,proto3" json:"competition,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` InCompetitionPosition int32 `protobuf:"varint,5,opt,name=in_competition_position,json=inCompetitionPosition,proto3" json:"in_competition_position,omitempty"` Points *int32 `protobuf:"varint,6,opt,name=points,proto3,oneof" json:"points,omitempty"` MaxAttempts *int32 `protobuf:"varint,7,opt,name=max_attempts,json=maxAttempts,proto3,oneof" json:"max_attempts,omitempty"` Type TaskType `protobuf:"varint,8,opt,name=type,proto3,enum=task.TaskType" json:"type,omitempty"` Status TaskStatusEnum `protobuf:"varint,9,opt,name=status,proto3,enum=task.TaskStatusEnum" json:"status,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Task) Reset() { *x = Task{} mi := &file_api_proto_task_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Task) String() string { return protoimpl.X.MessageStringOf(x) } func (*Task) ProtoMessage() {} func (x *Task) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Task.ProtoReflect.Descriptor instead. func (*Task) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{14} } func (x *Task) GetId() string { if x != nil && x.Id != nil { return *x.Id } return "" } func (x *Task) GetCompetition() string { if x != nil { return x.Competition } return "" } func (x *Task) GetTitle() string { if x != nil { return x.Title } return "" } func (x *Task) GetDescription() string { if x != nil { return x.Description } return "" } func (x *Task) GetInCompetitionPosition() int32 { if x != nil { return x.InCompetitionPosition } return 0 } func (x *Task) GetPoints() int32 { if x != nil && x.Points != nil { return *x.Points } return 0 } func (x *Task) GetMaxAttempts() int32 { if x != nil && x.MaxAttempts != nil { return *x.MaxAttempts } return 0 } func (x *Task) GetType() TaskType { if x != nil { return x.Type } return TaskType_TASK_TYPE_UNSPECIFIED } func (x *Task) GetStatus() TaskStatusEnum { if x != nil { return x.Status } return TaskStatusEnum_TASK_STATUS_UNSPECIFIED } type HistorySubmission struct { state protoimpl.MessageState `protogen:"open.v1"` Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` Status TaskStatusEnum `protobuf:"varint,2,opt,name=status,proto3,enum=task.TaskStatusEnum" json:"status,omitempty"` EarnedPoints *int32 `protobuf:"varint,3,opt,name=earned_points,json=earnedPoints,proto3,oneof" json:"earned_points,omitempty"` Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *HistorySubmission) Reset() { *x = HistorySubmission{} mi := &file_api_proto_task_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *HistorySubmission) String() string { return protoimpl.X.MessageStringOf(x) } func (*HistorySubmission) ProtoMessage() {} func (x *HistorySubmission) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use HistorySubmission.ProtoReflect.Descriptor instead. func (*HistorySubmission) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{15} } func (x *HistorySubmission) GetId() string { if x != nil && x.Id != nil { return *x.Id } return "" } func (x *HistorySubmission) GetStatus() TaskStatusEnum { if x != nil { return x.Status } return TaskStatusEnum_TASK_STATUS_UNSPECIFIED } func (x *HistorySubmission) GetEarnedPoints() int32 { if x != nil && x.EarnedPoints != nil { return *x.EarnedPoints } return 0 } func (x *HistorySubmission) GetTimestamp() string { if x != nil { return x.Timestamp } return "" } func (x *HistorySubmission) GetContent() string { if x != nil { return x.Content } return "" } type TaskAttachment struct { state protoimpl.MessageState `protogen:"open.v1"` Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` Public bool `protobuf:"varint,3,opt,name=public,proto3" json:"public,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *TaskAttachment) Reset() { *x = TaskAttachment{} mi := &file_api_proto_task_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *TaskAttachment) String() string { return protoimpl.X.MessageStringOf(x) } func (*TaskAttachment) ProtoMessage() {} func (x *TaskAttachment) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TaskAttachment.ProtoReflect.Descriptor instead. func (*TaskAttachment) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{16} } func (x *TaskAttachment) GetId() string { if x != nil && x.Id != nil { return *x.Id } return "" } func (x *TaskAttachment) GetFile() string { if x != nil { return x.File } return "" } func (x *TaskAttachment) GetPublic() bool { if x != nil { return x.Public } return false } type TaskStatus struct { state protoimpl.MessageState `protogen:"open.v1"` TaskName string `protobuf:"bytes,1,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"` Result int32 `protobuf:"varint,2,opt,name=result,proto3" json:"result,omitempty"` MaxPoints int32 `protobuf:"varint,3,opt,name=max_points,json=maxPoints,proto3" json:"max_points,omitempty"` Position int32 `protobuf:"varint,4,opt,name=position,proto3" json:"position,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *TaskStatus) Reset() { *x = TaskStatus{} mi := &file_api_proto_task_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *TaskStatus) String() string { return protoimpl.X.MessageStringOf(x) } func (*TaskStatus) ProtoMessage() {} func (x *TaskStatus) ProtoReflect() protoreflect.Message { mi := &file_api_proto_task_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TaskStatus.ProtoReflect.Descriptor instead. func (*TaskStatus) Descriptor() ([]byte, []int) { return file_api_proto_task_proto_rawDescGZIP(), []int{17} } func (x *TaskStatus) GetTaskName() string { if x != nil { return x.TaskName } return "" } func (x *TaskStatus) GetResult() int32 { if x != nil { return x.Result } return 0 } func (x *TaskStatus) GetMaxPoints() int32 { if x != nil { return x.MaxPoints } return 0 } func (x *TaskStatus) GetPosition() int32 { if x != nil { return x.Position } return 0 } var File_api_proto_task_proto protoreflect.FileDescriptor const file_api_proto_task_proto_rawDesc = "" + "\n" + "\x14api/proto/task.proto\x12\x04task\"@\n" + "\x17StartCompetitionRequest\x12%\n" + "\x0ecompetition_id\x18\x01 \x01(\tR\rcompetitionId\"2\n" + "\x18StartCompetitionResponse\x12\x16\n" + "\x06status\x18\x01 \x01(\tR\x06status\"C\n" + "\x1aGetCompetitionTasksRequest\x12%\n" + "\x0ecompetition_id\x18\x01 \x01(\tR\rcompetitionId\"?\n" + "\x1bGetCompetitionTasksResponse\x12 \n" + "\x05tasks\x18\x01 \x03(\v2\n" + ".task.TaskR\x05tasks\"P\n" + "\x0eGetTaskRequest\x12%\n" + "\x0ecompetition_id\x18\x01 \x01(\tR\rcompetitionId\x12\x17\n" + "\atask_id\x18\x02 \x01(\tR\x06taskId\"1\n" + "\x0fGetTaskResponse\x12\x1e\n" + "\x04task\x18\x01 \x01(\v2\n" + ".task.TaskR\x04task\"m\n" + "\x11SubmitTaskRequest\x12%\n" + "\x0ecompetition_id\x18\x01 \x01(\tR\rcompetitionId\x12\x17\n" + "\atask_id\x18\x02 \x01(\tR\x06taskId\x12\x18\n" + "\acontent\x18\x03 \x01(\fR\acontent\"9\n" + "\x12SubmitTaskResponse\x12#\n" + "\rsubmission_id\x18\x01 \x01(\tR\fsubmissionId\"^\n" + "\x1cGetSubmissionsHistoryRequest\x12%\n" + "\x0ecompetition_id\x18\x01 \x01(\tR\rcompetitionId\x12\x17\n" + "\atask_id\x18\x02 \x01(\tR\x06taskId\"Z\n" + "\x1dGetSubmissionsHistoryResponse\x129\n" + "\vsubmissions\x18\x01 \x03(\v2\x17.task.HistorySubmissionR\vsubmissions\"[\n" + "\x19GetTaskAttachmentsRequest\x12%\n" + "\x0ecompetition_id\x18\x01 \x01(\tR\rcompetitionId\x12\x17\n" + "\atask_id\x18\x02 \x01(\tR\x06taskId\"T\n" + "\x1aGetTaskAttachmentsResponse\x126\n" + "\vattachments\x18\x01 \x03(\v2\x14.task.TaskAttachmentR\vattachments\"E\n" + "\x1cGetCompetitionResultsRequest\x12%\n" + "\x0ecompetition_id\x18\x01 \x01(\tR\rcompetitionId\"K\n" + "\x1dGetCompetitionResultsResponse\x12*\n" + "\aresults\x18\x01 \x03(\v2\x10.task.TaskStatusR\aresults\"\xe7\x02\n" + "\x04Task\x12\x13\n" + "\x02id\x18\x01 \x01(\tH\x00R\x02id\x88\x01\x01\x12 \n" + "\vcompetition\x18\x02 \x01(\tR\vcompetition\x12\x14\n" + "\x05title\x18\x03 \x01(\tR\x05title\x12 \n" + "\vdescription\x18\x04 \x01(\tR\vdescription\x126\n" + "\x17in_competition_position\x18\x05 \x01(\x05R\x15inCompetitionPosition\x12\x1b\n" + "\x06points\x18\x06 \x01(\x05H\x01R\x06points\x88\x01\x01\x12&\n" + "\fmax_attempts\x18\a \x01(\x05H\x02R\vmaxAttempts\x88\x01\x01\x12\"\n" + "\x04type\x18\b \x01(\x0e2\x0e.task.TaskTypeR\x04type\x12,\n" + "\x06status\x18\t \x01(\x0e2\x14.task.TaskStatusEnumR\x06statusB\x05\n" + "\x03_idB\t\n" + "\a_pointsB\x0f\n" + "\r_max_attempts\"\xd1\x01\n" + "\x11HistorySubmission\x12\x13\n" + "\x02id\x18\x01 \x01(\tH\x00R\x02id\x88\x01\x01\x12,\n" + "\x06status\x18\x02 \x01(\x0e2\x14.task.TaskStatusEnumR\x06status\x12(\n" + "\rearned_points\x18\x03 \x01(\x05H\x01R\fearnedPoints\x88\x01\x01\x12\x1c\n" + "\ttimestamp\x18\x04 \x01(\tR\ttimestamp\x12\x18\n" + "\acontent\x18\x05 \x01(\tR\acontentB\x05\n" + "\x03_idB\x10\n" + "\x0e_earned_points\"X\n" + "\x0eTaskAttachment\x12\x13\n" + "\x02id\x18\x01 \x01(\tH\x00R\x02id\x88\x01\x01\x12\x12\n" + "\x04file\x18\x02 \x01(\tR\x04file\x12\x16\n" + "\x06public\x18\x03 \x01(\bR\x06publicB\x05\n" + "\x03_id\"|\n" + "\n" + "TaskStatus\x12\x1b\n" + "\ttask_name\x18\x01 \x01(\tR\btaskName\x12\x16\n" + "\x06result\x18\x02 \x01(\x05R\x06result\x12\x1d\n" + "\n" + "max_points\x18\x03 \x01(\x05R\tmaxPoints\x12\x1a\n" + "\bposition\x18\x04 \x01(\x05R\bposition*g\n" + "\bTaskType\x12\x19\n" + "\x15TASK_TYPE_UNSPECIFIED\x10\x00\x12\x13\n" + "\x0fTASK_TYPE_INPUT\x10\x01\x12\x15\n" + "\x11TASK_TYPE_CHECKER\x10\x02\x12\x14\n" + "\x10TASK_TYPE_REVIEW\x10\x03*\x95\x01\n" + "\x0eTaskStatusEnum\x12\x1b\n" + "\x17TASK_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n" + "\x19TASK_STATUS_NOT_SUBMITTED\x10\x01\x12\x14\n" + "\x10TASK_STATUS_SENT\x10\x02\x12\x18\n" + "\x14TASK_STATUS_CHECKING\x10\x03\x12\x17\n" + "\x13TASK_STATUS_CHECKED\x10\x042\xd2\x04\n" + "\vTaskService\x12Q\n" + "\x10StartCompetition\x12\x1d.task.StartCompetitionRequest\x1a\x1e.task.StartCompetitionResponse\x12Z\n" + "\x13GetCompetitionTasks\x12 .task.GetCompetitionTasksRequest\x1a!.task.GetCompetitionTasksResponse\x126\n" + "\aGetTask\x12\x14.task.GetTaskRequest\x1a\x15.task.GetTaskResponse\x12?\n" + "\n" + "SubmitTask\x12\x17.task.SubmitTaskRequest\x1a\x18.task.SubmitTaskResponse\x12`\n" + "\x15GetSubmissionsHistory\x12\".task.GetSubmissionsHistoryRequest\x1a#.task.GetSubmissionsHistoryResponse\x12W\n" + "\x12GetTaskAttachments\x12\x1f.task.GetTaskAttachmentsRequest\x1a .task.GetTaskAttachmentsResponse\x12`\n" + "\x15GetCompetitionResults\x12\".task.GetCompetitionResultsRequest\x1a#.task.GetCompetitionResultsResponseB\x0eZ\fpkg/api/taskb\x06proto3" var ( file_api_proto_task_proto_rawDescOnce sync.Once file_api_proto_task_proto_rawDescData []byte ) func file_api_proto_task_proto_rawDescGZIP() []byte { file_api_proto_task_proto_rawDescOnce.Do(func() { file_api_proto_task_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_proto_task_proto_rawDesc), len(file_api_proto_task_proto_rawDesc))) }) return file_api_proto_task_proto_rawDescData } var file_api_proto_task_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_api_proto_task_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_api_proto_task_proto_goTypes = []any{ (TaskType)(0), // 0: task.TaskType (TaskStatusEnum)(0), // 1: task.TaskStatusEnum (*StartCompetitionRequest)(nil), // 2: task.StartCompetitionRequest (*StartCompetitionResponse)(nil), // 3: task.StartCompetitionResponse (*GetCompetitionTasksRequest)(nil), // 4: task.GetCompetitionTasksRequest (*GetCompetitionTasksResponse)(nil), // 5: task.GetCompetitionTasksResponse (*GetTaskRequest)(nil), // 6: task.GetTaskRequest (*GetTaskResponse)(nil), // 7: task.GetTaskResponse (*SubmitTaskRequest)(nil), // 8: task.SubmitTaskRequest (*SubmitTaskResponse)(nil), // 9: task.SubmitTaskResponse (*GetSubmissionsHistoryRequest)(nil), // 10: task.GetSubmissionsHistoryRequest (*GetSubmissionsHistoryResponse)(nil), // 11: task.GetSubmissionsHistoryResponse (*GetTaskAttachmentsRequest)(nil), // 12: task.GetTaskAttachmentsRequest (*GetTaskAttachmentsResponse)(nil), // 13: task.GetTaskAttachmentsResponse (*GetCompetitionResultsRequest)(nil), // 14: task.GetCompetitionResultsRequest (*GetCompetitionResultsResponse)(nil), // 15: task.GetCompetitionResultsResponse (*Task)(nil), // 16: task.Task (*HistorySubmission)(nil), // 17: task.HistorySubmission (*TaskAttachment)(nil), // 18: task.TaskAttachment (*TaskStatus)(nil), // 19: task.TaskStatus } var file_api_proto_task_proto_depIdxs = []int32{ 16, // 0: task.GetCompetitionTasksResponse.tasks:type_name -> task.Task 16, // 1: task.GetTaskResponse.task:type_name -> task.Task 17, // 2: task.GetSubmissionsHistoryResponse.submissions:type_name -> task.HistorySubmission 18, // 3: task.GetTaskAttachmentsResponse.attachments:type_name -> task.TaskAttachment 19, // 4: task.GetCompetitionResultsResponse.results:type_name -> task.TaskStatus 0, // 5: task.Task.type:type_name -> task.TaskType 1, // 6: task.Task.status:type_name -> task.TaskStatusEnum 1, // 7: task.HistorySubmission.status:type_name -> task.TaskStatusEnum 2, // 8: task.TaskService.StartCompetition:input_type -> task.StartCompetitionRequest 4, // 9: task.TaskService.GetCompetitionTasks:input_type -> task.GetCompetitionTasksRequest 6, // 10: task.TaskService.GetTask:input_type -> task.GetTaskRequest 8, // 11: task.TaskService.SubmitTask:input_type -> task.SubmitTaskRequest 10, // 12: task.TaskService.GetSubmissionsHistory:input_type -> task.GetSubmissionsHistoryRequest 12, // 13: task.TaskService.GetTaskAttachments:input_type -> task.GetTaskAttachmentsRequest 14, // 14: task.TaskService.GetCompetitionResults:input_type -> task.GetCompetitionResultsRequest 3, // 15: task.TaskService.StartCompetition:output_type -> task.StartCompetitionResponse 5, // 16: task.TaskService.GetCompetitionTasks:output_type -> task.GetCompetitionTasksResponse 7, // 17: task.TaskService.GetTask:output_type -> task.GetTaskResponse 9, // 18: task.TaskService.SubmitTask:output_type -> task.SubmitTaskResponse 11, // 19: task.TaskService.GetSubmissionsHistory:output_type -> task.GetSubmissionsHistoryResponse 13, // 20: task.TaskService.GetTaskAttachments:output_type -> task.GetTaskAttachmentsResponse 15, // 21: task.TaskService.GetCompetitionResults:output_type -> task.GetCompetitionResultsResponse 15, // [15:22] is the sub-list for method output_type 8, // [8:15] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name 8, // [8:8] is the sub-list for extension extendee 0, // [0:8] is the sub-list for field type_name } func init() { file_api_proto_task_proto_init() } func file_api_proto_task_proto_init() { if File_api_proto_task_proto != nil { return } file_api_proto_task_proto_msgTypes[14].OneofWrappers = []any{} file_api_proto_task_proto_msgTypes[15].OneofWrappers = []any{} file_api_proto_task_proto_msgTypes[16].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_proto_task_proto_rawDesc), len(file_api_proto_task_proto_rawDesc)), NumEnums: 2, NumMessages: 18, NumExtensions: 0, NumServices: 1, }, GoTypes: file_api_proto_task_proto_goTypes, DependencyIndexes: file_api_proto_task_proto_depIdxs, EnumInfos: file_api_proto_task_proto_enumTypes, MessageInfos: file_api_proto_task_proto_msgTypes, }.Build() File_api_proto_task_proto = out.File file_api_proto_task_proto_goTypes = nil file_api_proto_task_proto_depIdxs = nil }