680 lines
23 KiB
Go
680 lines
23 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v6.33.2
|
|
// source: api/proto/submission.proto
|
|
|
|
package submission
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
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 SubmissionStatus int32
|
|
|
|
const (
|
|
SubmissionStatus_SUBMISSION_STATUS_UNSPECIFIED SubmissionStatus = 0
|
|
SubmissionStatus_SUBMISSION_STATUS_PENDING SubmissionStatus = 1
|
|
SubmissionStatus_SUBMISSION_STATUS_SENT_FOR_CHECK SubmissionStatus = 2
|
|
SubmissionStatus_SUBMISSION_STATUS_CHECKING SubmissionStatus = 3
|
|
SubmissionStatus_SUBMISSION_STATUS_CHECKED SubmissionStatus = 4
|
|
SubmissionStatus_SUBMISSION_STATUS_FAILED SubmissionStatus = 5
|
|
)
|
|
|
|
// Enum value maps for SubmissionStatus.
|
|
var (
|
|
SubmissionStatus_name = map[int32]string{
|
|
0: "SUBMISSION_STATUS_UNSPECIFIED",
|
|
1: "SUBMISSION_STATUS_PENDING",
|
|
2: "SUBMISSION_STATUS_SENT_FOR_CHECK",
|
|
3: "SUBMISSION_STATUS_CHECKING",
|
|
4: "SUBMISSION_STATUS_CHECKED",
|
|
5: "SUBMISSION_STATUS_FAILED",
|
|
}
|
|
SubmissionStatus_value = map[string]int32{
|
|
"SUBMISSION_STATUS_UNSPECIFIED": 0,
|
|
"SUBMISSION_STATUS_PENDING": 1,
|
|
"SUBMISSION_STATUS_SENT_FOR_CHECK": 2,
|
|
"SUBMISSION_STATUS_CHECKING": 3,
|
|
"SUBMISSION_STATUS_CHECKED": 4,
|
|
"SUBMISSION_STATUS_FAILED": 5,
|
|
}
|
|
)
|
|
|
|
func (x SubmissionStatus) Enum() *SubmissionStatus {
|
|
p := new(SubmissionStatus)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x SubmissionStatus) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (SubmissionStatus) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_api_proto_submission_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (SubmissionStatus) Type() protoreflect.EnumType {
|
|
return &file_api_proto_submission_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x SubmissionStatus) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use SubmissionStatus.Descriptor instead.
|
|
func (SubmissionStatus) EnumDescriptor() ([]byte, []int) {
|
|
return file_api_proto_submission_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type Submission struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
CompetitionId string `protobuf:"bytes,3,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"`
|
|
TaskId string `protobuf:"bytes,4,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
|
|
Status SubmissionStatus `protobuf:"varint,5,opt,name=status,proto3,enum=submission.SubmissionStatus" json:"status,omitempty"`
|
|
EarnedPoints int32 `protobuf:"varint,6,opt,name=earned_points,json=earnedPoints,proto3" json:"earned_points,omitempty"`
|
|
SubmittedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=submitted_at,json=submittedAt,proto3" json:"submitted_at,omitempty"`
|
|
CheckedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=checked_at,json=checkedAt,proto3" json:"checked_at,omitempty"`
|
|
FileUrl string `protobuf:"bytes,9,opt,name=file_url,json=fileUrl,proto3" json:"file_url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Submission) Reset() {
|
|
*x = Submission{}
|
|
mi := &file_api_proto_submission_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Submission) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Submission) ProtoMessage() {}
|
|
|
|
func (x *Submission) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_submission_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 Submission.ProtoReflect.Descriptor instead.
|
|
func (*Submission) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_submission_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Submission) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Submission) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Submission) GetCompetitionId() string {
|
|
if x != nil {
|
|
return x.CompetitionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Submission) GetTaskId() string {
|
|
if x != nil {
|
|
return x.TaskId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Submission) GetStatus() SubmissionStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return SubmissionStatus_SUBMISSION_STATUS_UNSPECIFIED
|
|
}
|
|
|
|
func (x *Submission) GetEarnedPoints() int32 {
|
|
if x != nil {
|
|
return x.EarnedPoints
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Submission) GetSubmittedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.SubmittedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Submission) GetCheckedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CheckedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Submission) GetFileUrl() string {
|
|
if x != nil {
|
|
return x.FileUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SubmitTaskRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
CompetitionId string `protobuf:"bytes,2,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"`
|
|
TaskId string `protobuf:"bytes,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
|
|
FileUrl string `protobuf:"bytes,4,opt,name=file_url,json=fileUrl,proto3" json:"file_url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SubmitTaskRequest) Reset() {
|
|
*x = SubmitTaskRequest{}
|
|
mi := &file_api_proto_submission_proto_msgTypes[1]
|
|
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_submission_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 SubmitTaskRequest.ProtoReflect.Descriptor instead.
|
|
func (*SubmitTaskRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_submission_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *SubmitTaskRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
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) GetFileUrl() string {
|
|
if x != nil {
|
|
return x.FileUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetSubmissionsHistoryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
CompetitionId string `protobuf:"bytes,2,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"`
|
|
TaskId string `protobuf:"bytes,3,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_submission_proto_msgTypes[2]
|
|
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_submission_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 GetSubmissionsHistoryRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetSubmissionsHistoryRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_submission_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetSubmissionsHistoryRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
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 []*Submission `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_submission_proto_msgTypes[3]
|
|
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_submission_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 GetSubmissionsHistoryResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetSubmissionsHistoryResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_submission_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetSubmissionsHistoryResponse) GetSubmissions() []*Submission {
|
|
if x != nil {
|
|
return x.Submissions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetSubmissionRequest 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 *GetSubmissionRequest) Reset() {
|
|
*x = GetSubmissionRequest{}
|
|
mi := &file_api_proto_submission_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSubmissionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSubmissionRequest) ProtoMessage() {}
|
|
|
|
func (x *GetSubmissionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_submission_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 GetSubmissionRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetSubmissionRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_submission_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *GetSubmissionRequest) GetSubmissionId() string {
|
|
if x != nil {
|
|
return x.SubmissionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListSubmissionsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
PageToken int32 `protobuf:"varint,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
|
CompetitionId string `protobuf:"bytes,3,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"`
|
|
TaskId string `protobuf:"bytes,4,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
|
|
UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Status SubmissionStatus `protobuf:"varint,6,opt,name=status,proto3,enum=submission.SubmissionStatus" json:"status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSubmissionsRequest) Reset() {
|
|
*x = ListSubmissionsRequest{}
|
|
mi := &file_api_proto_submission_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSubmissionsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSubmissionsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListSubmissionsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_submission_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 ListSubmissionsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListSubmissionsRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_submission_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ListSubmissionsRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListSubmissionsRequest) GetPageToken() int32 {
|
|
if x != nil {
|
|
return x.PageToken
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListSubmissionsRequest) GetCompetitionId() string {
|
|
if x != nil {
|
|
return x.CompetitionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListSubmissionsRequest) GetTaskId() string {
|
|
if x != nil {
|
|
return x.TaskId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListSubmissionsRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListSubmissionsRequest) GetStatus() SubmissionStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return SubmissionStatus_SUBMISSION_STATUS_UNSPECIFIED
|
|
}
|
|
|
|
type ListSubmissionsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TotalCount int32 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
|
|
NextPageToken int32 `protobuf:"varint,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
|
Submissions []*Submission `protobuf:"bytes,3,rep,name=submissions,proto3" json:"submissions,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSubmissionsResponse) Reset() {
|
|
*x = ListSubmissionsResponse{}
|
|
mi := &file_api_proto_submission_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSubmissionsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSubmissionsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListSubmissionsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_submission_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 ListSubmissionsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListSubmissionsResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_submission_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ListSubmissionsResponse) GetTotalCount() int32 {
|
|
if x != nil {
|
|
return x.TotalCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListSubmissionsResponse) GetNextPageToken() int32 {
|
|
if x != nil {
|
|
return x.NextPageToken
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListSubmissionsResponse) GetSubmissions() []*Submission {
|
|
if x != nil {
|
|
return x.Submissions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_api_proto_submission_proto protoreflect.FileDescriptor
|
|
|
|
const file_api_proto_submission_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1aapi/proto/submission.proto\x12\n" +
|
|
"submission\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe5\x02\n" +
|
|
"\n" +
|
|
"Submission\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\tR\x06userId\x12%\n" +
|
|
"\x0ecompetition_id\x18\x03 \x01(\tR\rcompetitionId\x12\x17\n" +
|
|
"\atask_id\x18\x04 \x01(\tR\x06taskId\x124\n" +
|
|
"\x06status\x18\x05 \x01(\x0e2\x1c.submission.SubmissionStatusR\x06status\x12#\n" +
|
|
"\rearned_points\x18\x06 \x01(\x05R\fearnedPoints\x12=\n" +
|
|
"\fsubmitted_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\vsubmittedAt\x129\n" +
|
|
"\n" +
|
|
"checked_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tcheckedAt\x12\x19\n" +
|
|
"\bfile_url\x18\t \x01(\tR\afileUrl\"\x87\x01\n" +
|
|
"\x11SubmitTaskRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12%\n" +
|
|
"\x0ecompetition_id\x18\x02 \x01(\tR\rcompetitionId\x12\x17\n" +
|
|
"\atask_id\x18\x03 \x01(\tR\x06taskId\x12\x19\n" +
|
|
"\bfile_url\x18\x04 \x01(\tR\afileUrl\"w\n" +
|
|
"\x1cGetSubmissionsHistoryRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12%\n" +
|
|
"\x0ecompetition_id\x18\x02 \x01(\tR\rcompetitionId\x12\x17\n" +
|
|
"\atask_id\x18\x03 \x01(\tR\x06taskId\"Y\n" +
|
|
"\x1dGetSubmissionsHistoryResponse\x128\n" +
|
|
"\vsubmissions\x18\x01 \x03(\v2\x16.submission.SubmissionR\vsubmissions\";\n" +
|
|
"\x14GetSubmissionRequest\x12#\n" +
|
|
"\rsubmission_id\x18\x01 \x01(\tR\fsubmissionId\"\xe3\x01\n" +
|
|
"\x16ListSubmissionsRequest\x12\x1b\n" +
|
|
"\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" +
|
|
"\n" +
|
|
"page_token\x18\x02 \x01(\x05R\tpageToken\x12%\n" +
|
|
"\x0ecompetition_id\x18\x03 \x01(\tR\rcompetitionId\x12\x17\n" +
|
|
"\atask_id\x18\x04 \x01(\tR\x06taskId\x12\x17\n" +
|
|
"\auser_id\x18\x05 \x01(\tR\x06userId\x124\n" +
|
|
"\x06status\x18\x06 \x01(\x0e2\x1c.submission.SubmissionStatusR\x06status\"\x9c\x01\n" +
|
|
"\x17ListSubmissionsResponse\x12\x1f\n" +
|
|
"\vtotal_count\x18\x01 \x01(\x05R\n" +
|
|
"totalCount\x12&\n" +
|
|
"\x0fnext_page_token\x18\x02 \x01(\x05R\rnextPageToken\x128\n" +
|
|
"\vsubmissions\x18\x03 \x03(\v2\x16.submission.SubmissionR\vsubmissions*\xd7\x01\n" +
|
|
"\x10SubmissionStatus\x12!\n" +
|
|
"\x1dSUBMISSION_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n" +
|
|
"\x19SUBMISSION_STATUS_PENDING\x10\x01\x12$\n" +
|
|
" SUBMISSION_STATUS_SENT_FOR_CHECK\x10\x02\x12\x1e\n" +
|
|
"\x1aSUBMISSION_STATUS_CHECKING\x10\x03\x12\x1d\n" +
|
|
"\x19SUBMISSION_STATUS_CHECKED\x10\x04\x12\x1c\n" +
|
|
"\x18SUBMISSION_STATUS_FAILED\x10\x052\xed\x02\n" +
|
|
"\x11SubmissionService\x12C\n" +
|
|
"\n" +
|
|
"SubmitTask\x12\x1d.submission.SubmitTaskRequest\x1a\x16.submission.Submission\x12l\n" +
|
|
"\x15GetSubmissionsHistory\x12(.submission.GetSubmissionsHistoryRequest\x1a).submission.GetSubmissionsHistoryResponse\x12I\n" +
|
|
"\rGetSubmission\x12 .submission.GetSubmissionRequest\x1a\x16.submission.Submission\x12Z\n" +
|
|
"\x0fListSubmissions\x12\".submission.ListSubmissionsRequest\x1a#.submission.ListSubmissionsResponseB\x14Z\x12pkg/api/submissionb\x06proto3"
|
|
|
|
var (
|
|
file_api_proto_submission_proto_rawDescOnce sync.Once
|
|
file_api_proto_submission_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_api_proto_submission_proto_rawDescGZIP() []byte {
|
|
file_api_proto_submission_proto_rawDescOnce.Do(func() {
|
|
file_api_proto_submission_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_proto_submission_proto_rawDesc), len(file_api_proto_submission_proto_rawDesc)))
|
|
})
|
|
return file_api_proto_submission_proto_rawDescData
|
|
}
|
|
|
|
var file_api_proto_submission_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_api_proto_submission_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
var file_api_proto_submission_proto_goTypes = []any{
|
|
(SubmissionStatus)(0), // 0: submission.SubmissionStatus
|
|
(*Submission)(nil), // 1: submission.Submission
|
|
(*SubmitTaskRequest)(nil), // 2: submission.SubmitTaskRequest
|
|
(*GetSubmissionsHistoryRequest)(nil), // 3: submission.GetSubmissionsHistoryRequest
|
|
(*GetSubmissionsHistoryResponse)(nil), // 4: submission.GetSubmissionsHistoryResponse
|
|
(*GetSubmissionRequest)(nil), // 5: submission.GetSubmissionRequest
|
|
(*ListSubmissionsRequest)(nil), // 6: submission.ListSubmissionsRequest
|
|
(*ListSubmissionsResponse)(nil), // 7: submission.ListSubmissionsResponse
|
|
(*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp
|
|
}
|
|
var file_api_proto_submission_proto_depIdxs = []int32{
|
|
0, // 0: submission.Submission.status:type_name -> submission.SubmissionStatus
|
|
8, // 1: submission.Submission.submitted_at:type_name -> google.protobuf.Timestamp
|
|
8, // 2: submission.Submission.checked_at:type_name -> google.protobuf.Timestamp
|
|
1, // 3: submission.GetSubmissionsHistoryResponse.submissions:type_name -> submission.Submission
|
|
0, // 4: submission.ListSubmissionsRequest.status:type_name -> submission.SubmissionStatus
|
|
1, // 5: submission.ListSubmissionsResponse.submissions:type_name -> submission.Submission
|
|
2, // 6: submission.SubmissionService.SubmitTask:input_type -> submission.SubmitTaskRequest
|
|
3, // 7: submission.SubmissionService.GetSubmissionsHistory:input_type -> submission.GetSubmissionsHistoryRequest
|
|
5, // 8: submission.SubmissionService.GetSubmission:input_type -> submission.GetSubmissionRequest
|
|
6, // 9: submission.SubmissionService.ListSubmissions:input_type -> submission.ListSubmissionsRequest
|
|
1, // 10: submission.SubmissionService.SubmitTask:output_type -> submission.Submission
|
|
4, // 11: submission.SubmissionService.GetSubmissionsHistory:output_type -> submission.GetSubmissionsHistoryResponse
|
|
1, // 12: submission.SubmissionService.GetSubmission:output_type -> submission.Submission
|
|
7, // 13: submission.SubmissionService.ListSubmissions:output_type -> submission.ListSubmissionsResponse
|
|
10, // [10:14] is the sub-list for method output_type
|
|
6, // [6:10] is the sub-list for method input_type
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
0, // [0:6] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_api_proto_submission_proto_init() }
|
|
func file_api_proto_submission_proto_init() {
|
|
if File_api_proto_submission_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_proto_submission_proto_rawDesc), len(file_api_proto_submission_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 7,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_api_proto_submission_proto_goTypes,
|
|
DependencyIndexes: file_api_proto_submission_proto_depIdxs,
|
|
EnumInfos: file_api_proto_submission_proto_enumTypes,
|
|
MessageInfos: file_api_proto_submission_proto_msgTypes,
|
|
}.Build()
|
|
File_api_proto_submission_proto = out.File
|
|
file_api_proto_submission_proto_goTypes = nil
|
|
file_api_proto_submission_proto_depIdxs = nil
|
|
}
|