From 8b4930240f1abc49369479705b143faaf4eedab8 Mon Sep 17 00:00:00 2001 From: "ictsc-actions[bot]" <154957684+ictsc-actions[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 08:59:54 +0000 Subject: [PATCH] generate & oapi files --- backend/internal/proto/admin/v1/admin.pb.go | 75 +++--- .../internal/proto/admin/v1/admin_env.pb.go | 24 +- .../proto/admin/v1/announcement.pb.go | 80 +++--- backend/internal/proto/admin/v1/answer.pb.go | 112 ++++----- backend/internal/proto/admin/v1/auth.pb.go | 24 +- .../internal/proto/admin/v1/contestant.pb.go | 49 ++-- backend/internal/proto/admin/v1/problem.pb.go | 230 +++++++++--------- backend/internal/proto/admin/v1/ranking.pb.go | 27 +- .../internal/proto/admin/v1/recreation.pb.go | 45 ++-- backend/internal/proto/admin/v1/rule.pb.go | 46 ++-- .../internal/proto/admin/v1/schedule.pb.go | 81 +++--- backend/internal/proto/admin/v1/team.pb.go | 179 ++++++-------- backend/internal/proto/anita/v1/team.pb.go | 179 ++++++-------- backend/internal/proto/anita/v1/user.pb.go | 85 +++---- .../proto/contestant/v1/announcement.pb.go | 31 ++- .../internal/proto/contestant/v1/answer.pb.go | 132 +++++----- .../internal/proto/contestant/v1/auth.pb.go | 24 +- .../proto/contestant/v1/contestant.pb.go | 70 +++--- .../proto/contestant/v1/problem.pb.go | 109 ++++----- .../proto/contestant/v1/ranking.pb.go | 24 +- .../proto/contestant/v1/recreation.pb.go | 43 ++-- .../internal/proto/contestant/v1/rule.pb.go | 26 +- .../proto/contestant/v1/schedule.pb.go | 24 +- .../internal/proto/contestant/v1/team.pb.go | 78 +++--- 24 files changed, 832 insertions(+), 965 deletions(-) diff --git a/backend/internal/proto/admin/v1/admin.pb.go b/backend/internal/proto/admin/v1/admin.pb.go index b5dfbc23..8c3f35b5 100644 --- a/backend/internal/proto/admin/v1/admin.pb.go +++ b/backend/internal/proto/admin/v1/admin.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: admin/v1/admin.proto @@ -22,12 +22,11 @@ const ( ) type Admin struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Admin) Reset() { @@ -75,9 +74,9 @@ func (x *Admin) GetName() string { } type GetMeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetMeRequest) Reset() { @@ -111,11 +110,10 @@ func (*GetMeRequest) Descriptor() ([]byte, []int) { } type GetMeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` unknownFields protoimpl.UnknownFields - - Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMeResponse) Reset() { @@ -156,11 +154,10 @@ func (x *GetMeResponse) GetAdmin() *Admin { } type GetAdminRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAdminRequest) Reset() { @@ -201,11 +198,10 @@ func (x *GetAdminRequest) GetId() string { } type GetAdminResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` unknownFields protoimpl.UnknownFields - - Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAdminResponse) Reset() { @@ -246,9 +242,9 @@ func (x *GetAdminResponse) GetAdmin() *Admin { } type GetAdminsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetAdminsRequest) Reset() { @@ -282,11 +278,10 @@ func (*GetAdminsRequest) Descriptor() ([]byte, []int) { } type GetAdminsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Admins []*Admin `protobuf:"bytes,1,rep,name=admins,proto3" json:"admins,omitempty"` unknownFields protoimpl.UnknownFields - - Admins []*Admin `protobuf:"bytes,1,rep,name=admins,proto3" json:"admins,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAdminsResponse) Reset() { @@ -327,11 +322,10 @@ func (x *GetAdminsResponse) GetAdmins() []*Admin { } type PostAdminRequest 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"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostAdminRequest) Reset() { @@ -372,11 +366,10 @@ func (x *PostAdminRequest) GetName() string { } type PostAdminResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` unknownFields protoimpl.UnknownFields - - Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostAdminResponse) Reset() { @@ -417,11 +410,10 @@ func (x *PostAdminResponse) GetAdmin() *Admin { } type PatchMeRequest 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"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchMeRequest) Reset() { @@ -462,11 +454,10 @@ func (x *PatchMeRequest) GetName() string { } type PatchMeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` unknownFields protoimpl.UnknownFields - - Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchMeResponse) Reset() { diff --git a/backend/internal/proto/admin/v1/admin_env.pb.go b/backend/internal/proto/admin/v1/admin_env.pb.go index d3cc905b..ac8886be 100644 --- a/backend/internal/proto/admin/v1/admin_env.pb.go +++ b/backend/internal/proto/admin/v1/admin_env.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: admin/v1/admin_env.proto @@ -22,9 +22,9 @@ const ( ) type GetAdminConnectionInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetAdminConnectionInfoRequest) Reset() { @@ -58,11 +58,10 @@ func (*GetAdminConnectionInfoRequest) Descriptor() ([]byte, []int) { } type GetAdminConnectionInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Bastion *Bastion `protobuf:"bytes,1,opt,name=bastion,proto3" json:"bastion,omitempty"` unknownFields protoimpl.UnknownFields - - Bastion *Bastion `protobuf:"bytes,1,opt,name=bastion,proto3" json:"bastion,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAdminConnectionInfoResponse) Reset() { @@ -103,11 +102,10 @@ func (x *GetAdminConnectionInfoResponse) GetBastion() *Bastion { } type PutAdminConnectionInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Bastion *Bastion `protobuf:"bytes,1,opt,name=bastion,proto3" json:"bastion,omitempty"` unknownFields protoimpl.UnknownFields - - Bastion *Bastion `protobuf:"bytes,1,opt,name=bastion,proto3" json:"bastion,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PutAdminConnectionInfoRequest) Reset() { @@ -148,9 +146,9 @@ func (x *PutAdminConnectionInfoRequest) GetBastion() *Bastion { } type PutAdminConnectionInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PutAdminConnectionInfoResponse) Reset() { diff --git a/backend/internal/proto/admin/v1/announcement.pb.go b/backend/internal/proto/admin/v1/announcement.pb.go index fe9a7646..501b4420 100644 --- a/backend/internal/proto/admin/v1/announcement.pb.go +++ b/backend/internal/proto/admin/v1/announcement.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: admin/v1/announcement.proto @@ -23,15 +23,14 @@ const ( ) type Announcement struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ProblemId *string `protobuf:"bytes,2,opt,name=problem_id,json=problemId,proto3,oneof" json:"problem_id,omitempty"` + Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` + Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProblemId *string `protobuf:"bytes,2,opt,name=problem_id,json=problemId,proto3,oneof" json:"problem_id,omitempty"` - Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` - Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Announcement) Reset() { @@ -100,11 +99,10 @@ func (x *Announcement) GetCreatedAt() *timestamppb.Timestamp { } type GetAnnouncementsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ProblemId *string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3,oneof" json:"problem_id,omitempty"` unknownFields protoimpl.UnknownFields - - ProblemId *string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3,oneof" json:"problem_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAnnouncementsRequest) Reset() { @@ -145,11 +143,10 @@ func (x *GetAnnouncementsRequest) GetProblemId() string { } type GetAnnouncementsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Announcements []*Announcement `protobuf:"bytes,1,rep,name=announcements,proto3" json:"announcements,omitempty"` unknownFields protoimpl.UnknownFields - - Announcements []*Announcement `protobuf:"bytes,1,rep,name=announcements,proto3" json:"announcements,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAnnouncementsResponse) Reset() { @@ -190,14 +187,13 @@ func (x *GetAnnouncementsResponse) GetAnnouncements() []*Announcement { } type PatchAnnouncementRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ProblemId *string `protobuf:"bytes,2,opt,name=problem_id,json=problemId,proto3,oneof" json:"problem_id,omitempty"` + Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"` + Body *string `protobuf:"bytes,4,opt,name=body,proto3,oneof" json:"body,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProblemId *string `protobuf:"bytes,2,opt,name=problem_id,json=problemId,proto3,oneof" json:"problem_id,omitempty"` - Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"` - Body *string `protobuf:"bytes,4,opt,name=body,proto3,oneof" json:"body,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchAnnouncementRequest) Reset() { @@ -259,11 +255,10 @@ func (x *PatchAnnouncementRequest) GetBody() string { } type PatchAnnouncementResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Announcement *Announcement `protobuf:"bytes,1,opt,name=announcement,proto3" json:"announcement,omitempty"` unknownFields protoimpl.UnknownFields - - Announcement *Announcement `protobuf:"bytes,1,opt,name=announcement,proto3" json:"announcement,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchAnnouncementResponse) Reset() { @@ -304,13 +299,12 @@ func (x *PatchAnnouncementResponse) GetAnnouncement() *Announcement { } type PostAnnouncementRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` unknownFields protoimpl.UnknownFields - - ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostAnnouncementRequest) Reset() { @@ -365,11 +359,10 @@ func (x *PostAnnouncementRequest) GetBody() string { } type PostAnnouncementResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Announcement *Announcement `protobuf:"bytes,1,opt,name=announcement,proto3" json:"announcement,omitempty"` unknownFields protoimpl.UnknownFields - - Announcement *Announcement `protobuf:"bytes,1,opt,name=announcement,proto3" json:"announcement,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostAnnouncementResponse) Reset() { @@ -410,11 +403,10 @@ func (x *PostAnnouncementResponse) GetAnnouncement() *Announcement { } type DeleteAnnouncementRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteAnnouncementRequest) Reset() { @@ -455,9 +447,9 @@ func (x *DeleteAnnouncementRequest) GetId() string { } type DeleteAnnouncementResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteAnnouncementResponse) Reset() { diff --git a/backend/internal/proto/admin/v1/answer.pb.go b/backend/internal/proto/admin/v1/answer.pb.go index 27cc24c6..3e620ed1 100644 --- a/backend/internal/proto/admin/v1/answer.pb.go +++ b/backend/internal/proto/admin/v1/answer.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: admin/v1/answer.proto @@ -23,11 +23,10 @@ const ( ) type QuestionAnswer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Answer []int64 `protobuf:"varint,6,rep,packed,name=answer,proto3" json:"answer,omitempty"` unknownFields protoimpl.UnknownFields - - Answer []int64 `protobuf:"varint,6,rep,packed,name=answer,proto3" json:"answer,omitempty"` + sizeCache protoimpl.SizeCache } func (x *QuestionAnswer) Reset() { @@ -68,11 +67,10 @@ func (x *QuestionAnswer) GetAnswer() []int64 { } type MultipleChoiceAnswer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QuestionAnswer []*QuestionAnswer `protobuf:"bytes,1,rep,name=question_answer,json=questionAnswer,proto3" json:"question_answer,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QuestionAnswer []*QuestionAnswer `protobuf:"bytes,1,rep,name=question_answer,json=questionAnswer,proto3" json:"question_answer,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MultipleChoiceAnswer) Reset() { @@ -113,11 +111,10 @@ func (x *MultipleChoiceAnswer) GetQuestionAnswer() []*QuestionAnswer { } type DescriptiveAnswer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` unknownFields protoimpl.UnknownFields - - Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DescriptiveAnswer) Reset() { @@ -158,15 +155,12 @@ func (x *DescriptiveAnswer) GetBody() string { } type Answer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProblemId string `protobuf:"bytes,2,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` - TeamId string `protobuf:"bytes,3,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` - ProblemType ProblemType `protobuf:"varint,4,opt,name=problem_type,json=problemType,proto3,enum=admin.v1.ProblemType" json:"problem_type,omitempty"` - // Types that are assignable to Body: + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ProblemId string `protobuf:"bytes,2,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` + TeamId string `protobuf:"bytes,3,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` + ProblemType ProblemType `protobuf:"varint,4,opt,name=problem_type,json=problemType,proto3,enum=admin.v1.ProblemType" json:"problem_type,omitempty"` + // Types that are valid to be assigned to Body: // // *Answer_MultipleChoice // *Answer_Descriptive @@ -174,6 +168,8 @@ type Answer struct { Point *int64 `protobuf:"varint,7,opt,name=point,proto3,oneof" json:"point,omitempty"` MarkPublished bool `protobuf:"varint,8,opt,name=mark_published,json=markPublished,proto3" json:"mark_published,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Answer) Reset() { @@ -234,23 +230,27 @@ func (x *Answer) GetProblemType() ProblemType { return ProblemType_PROBLEM_TYPE_UNSPECIFIED } -func (m *Answer) GetBody() isAnswer_Body { - if m != nil { - return m.Body +func (x *Answer) GetBody() isAnswer_Body { + if x != nil { + return x.Body } return nil } func (x *Answer) GetMultipleChoice() *MultipleChoiceAnswer { - if x, ok := x.GetBody().(*Answer_MultipleChoice); ok { - return x.MultipleChoice + if x != nil { + if x, ok := x.Body.(*Answer_MultipleChoice); ok { + return x.MultipleChoice + } } return nil } func (x *Answer) GetDescriptive() *DescriptiveAnswer { - if x, ok := x.GetBody().(*Answer_Descriptive); ok { - return x.Descriptive + if x != nil { + if x, ok := x.Body.(*Answer_Descriptive); ok { + return x.Descriptive + } } return nil } @@ -293,11 +293,10 @@ func (*Answer_MultipleChoice) isAnswer_Body() {} func (*Answer_Descriptive) isAnswer_Body() {} type GetAnswerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAnswerRequest) Reset() { @@ -338,11 +337,10 @@ func (x *GetAnswerRequest) GetId() string { } type GetAnswerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Answer *Answer `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"` unknownFields protoimpl.UnknownFields - - Answer *Answer `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAnswerResponse) Reset() { @@ -383,12 +381,11 @@ func (x *GetAnswerResponse) GetAnswer() *Answer { } type Pagination struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` LastItemCreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_item_created_at,json=lastItemCreatedAt,proto3" json:"last_item_created_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Pagination) Reset() { @@ -436,13 +433,12 @@ func (x *Pagination) GetLastItemCreatedAt() *timestamppb.Timestamp { } type GetAnswersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` + TeamId *string `protobuf:"bytes,2,opt,name=team_id,json=teamId,proto3,oneof" json:"team_id,omitempty"` + Pagination *Pagination `protobuf:"bytes,3,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"` unknownFields protoimpl.UnknownFields - - ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` - TeamId *string `protobuf:"bytes,2,opt,name=team_id,json=teamId,proto3,oneof" json:"team_id,omitempty"` - Pagination *Pagination `protobuf:"bytes,3,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAnswersRequest) Reset() { @@ -497,11 +493,10 @@ func (x *GetAnswersRequest) GetPagination() *Pagination { } type GetAnswersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Answers []*Answer `protobuf:"bytes,1,rep,name=answers,proto3" json:"answers,omitempty"` unknownFields protoimpl.UnknownFields - - Answers []*Answer `protobuf:"bytes,1,rep,name=answers,proto3" json:"answers,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAnswersResponse) Reset() { @@ -542,12 +537,11 @@ func (x *GetAnswersResponse) GetAnswers() []*Answer { } type PutPointRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Point int64 `protobuf:"varint,2,opt,name=point,proto3" json:"point,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Point int64 `protobuf:"varint,2,opt,name=point,proto3" json:"point,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PutPointRequest) Reset() { @@ -595,9 +589,9 @@ func (x *PutPointRequest) GetPoint() int64 { } type PutPointResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PutPointResponse) Reset() { diff --git a/backend/internal/proto/admin/v1/auth.pb.go b/backend/internal/proto/admin/v1/auth.pb.go index 3387d6f1..0020b5f0 100644 --- a/backend/internal/proto/admin/v1/auth.pb.go +++ b/backend/internal/proto/admin/v1/auth.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: admin/v1/auth.proto @@ -22,9 +22,9 @@ const ( ) type GetCallbackRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetCallbackRequest) Reset() { @@ -58,11 +58,10 @@ func (*GetCallbackRequest) Descriptor() ([]byte, []int) { } type GetCallbackResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RedirectUri string `protobuf:"bytes,1,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` unknownFields protoimpl.UnknownFields - - RedirectUri string `protobuf:"bytes,1,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCallbackResponse) Reset() { @@ -103,11 +102,10 @@ func (x *GetCallbackResponse) GetRedirectUri() string { } type PostCodeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` unknownFields protoimpl.UnknownFields - - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostCodeRequest) Reset() { @@ -148,9 +146,9 @@ func (x *PostCodeRequest) GetCode() string { } type PostCodeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PostCodeResponse) Reset() { diff --git a/backend/internal/proto/admin/v1/contestant.pb.go b/backend/internal/proto/admin/v1/contestant.pb.go index 751fb0be..d2c85972 100644 --- a/backend/internal/proto/admin/v1/contestant.pb.go +++ b/backend/internal/proto/admin/v1/contestant.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: admin/v1/contestant.proto @@ -22,13 +22,12 @@ const ( ) type Contestant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + TeamId string `protobuf:"bytes,3,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - TeamId string `protobuf:"bytes,3,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Contestant) Reset() { @@ -83,11 +82,10 @@ func (x *Contestant) GetTeamId() string { } type GetContestantRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetContestantRequest) Reset() { @@ -128,11 +126,10 @@ func (x *GetContestantRequest) GetId() string { } type GetContestantResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User *Contestant `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields - - User *Contestant `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetContestantResponse) Reset() { @@ -173,9 +170,9 @@ func (x *GetContestantResponse) GetUser() *Contestant { } type GetContestantsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetContestantsRequest) Reset() { @@ -209,11 +206,10 @@ func (*GetContestantsRequest) Descriptor() ([]byte, []int) { } type GetContestantsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Users []*Contestant `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` unknownFields protoimpl.UnknownFields - - Users []*Contestant `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetContestantsResponse) Reset() { @@ -254,11 +250,10 @@ func (x *GetContestantsResponse) GetUsers() []*Contestant { } type DeleteContestantRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteContestantRequest) Reset() { @@ -299,9 +294,9 @@ func (x *DeleteContestantRequest) GetId() string { } type DeleteContestantResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteContestantResponse) Reset() { diff --git a/backend/internal/proto/admin/v1/problem.pb.go b/backend/internal/proto/admin/v1/problem.pb.go index f84c79a7..55d999bb 100644 --- a/backend/internal/proto/admin/v1/problem.pb.go +++ b/backend/internal/proto/admin/v1/problem.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: admin/v1/problem.proto @@ -120,12 +120,11 @@ func (ProblemType) EnumDescriptor() ([]byte, []int) { } type Choice struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` unknownFields protoimpl.UnknownFields - - Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Choice) Reset() { @@ -173,16 +172,15 @@ func (x *Choice) GetBody() string { } type Question struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + Type QuestionType `protobuf:"varint,3,opt,name=type,proto3,enum=admin.v1.QuestionType" json:"type,omitempty"` + Choices []*Choice `protobuf:"bytes,4,rep,name=choices,proto3" json:"choices,omitempty"` + Point int64 `protobuf:"varint,5,opt,name=point,proto3" json:"point,omitempty"` + Answer []int64 `protobuf:"varint,6,rep,packed,name=answer,proto3" json:"answer,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` - Type QuestionType `protobuf:"varint,3,opt,name=type,proto3,enum=admin.v1.QuestionType" json:"type,omitempty"` - Choices []*Choice `protobuf:"bytes,4,rep,name=choices,proto3" json:"choices,omitempty"` - Point int64 `protobuf:"varint,5,opt,name=point,proto3" json:"point,omitempty"` - Answer []int64 `protobuf:"varint,6,rep,packed,name=answer,proto3" json:"answer,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Question) Reset() { @@ -258,12 +256,11 @@ func (x *Question) GetAnswer() []int64 { } type MultipleChoiceProblem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Body *string `protobuf:"bytes,1,opt,name=body,proto3,oneof" json:"body,omitempty"` + Questions []*Question `protobuf:"bytes,2,rep,name=questions,proto3" json:"questions,omitempty"` unknownFields protoimpl.UnknownFields - - Body *string `protobuf:"bytes,1,opt,name=body,proto3,oneof" json:"body,omitempty"` - Questions []*Question `protobuf:"bytes,2,rep,name=questions,proto3" json:"questions,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MultipleChoiceProblem) Reset() { @@ -311,14 +308,13 @@ func (x *MultipleChoiceProblem) GetQuestions() []*Question { } type ConnectionInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` + Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` + Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` unknownFields protoimpl.UnknownFields - - Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` - Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` - Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ConnectionInfo) Reset() { @@ -380,13 +376,12 @@ func (x *ConnectionInfo) GetType() string { } type DescriptiveProblem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` - ConnectionInfos []*ConnectionInfo `protobuf:"bytes,2,rep,name=connection_infos,json=connectionInfos,proto3" json:"connection_infos,omitempty"` - Answer string `protobuf:"bytes,3,opt,name=answer,proto3" json:"answer,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` + ConnectionInfos []*ConnectionInfo `protobuf:"bytes,2,rep,name=connection_infos,json=connectionInfos,proto3" json:"connection_infos,omitempty"` + Answer string `protobuf:"bytes,3,opt,name=answer,proto3" json:"answer,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DescriptiveProblem) Reset() { @@ -441,21 +436,20 @@ func (x *DescriptiveProblem) GetAnswer() string { } type Problem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` - Point int64 `protobuf:"varint,4,opt,name=point,proto3" json:"point,omitempty"` - Type ProblemType `protobuf:"varint,5,opt,name=type,proto3,enum=admin.v1.ProblemType" json:"type,omitempty"` - // Types that are assignable to Body: + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` + Point int64 `protobuf:"varint,4,opt,name=point,proto3" json:"point,omitempty"` + Type ProblemType `protobuf:"varint,5,opt,name=type,proto3,enum=admin.v1.ProblemType" json:"type,omitempty"` + // Types that are valid to be assigned to Body: // // *Problem_Descriptive // *Problem_MultipleChoice - Body isProblem_Body `protobuf_oneof:"body"` - AssigneeIds []string `protobuf:"bytes,8,rep,name=assignee_ids,json=assigneeIds,proto3" json:"assignee_ids,omitempty"` + Body isProblem_Body `protobuf_oneof:"body"` + AssigneeIds []string `protobuf:"bytes,8,rep,name=assignee_ids,json=assigneeIds,proto3" json:"assignee_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Problem) Reset() { @@ -523,23 +517,27 @@ func (x *Problem) GetType() ProblemType { return ProblemType_PROBLEM_TYPE_UNSPECIFIED } -func (m *Problem) GetBody() isProblem_Body { - if m != nil { - return m.Body +func (x *Problem) GetBody() isProblem_Body { + if x != nil { + return x.Body } return nil } func (x *Problem) GetDescriptive() *DescriptiveProblem { - if x, ok := x.GetBody().(*Problem_Descriptive); ok { - return x.Descriptive + if x != nil { + if x, ok := x.Body.(*Problem_Descriptive); ok { + return x.Descriptive + } } return nil } func (x *Problem) GetMultipleChoice() *MultipleChoiceProblem { - if x, ok := x.GetBody().(*Problem_MultipleChoice); ok { - return x.MultipleChoice + if x != nil { + if x, ok := x.Body.(*Problem_MultipleChoice); ok { + return x.MultipleChoice + } } return nil } @@ -568,11 +566,10 @@ func (*Problem_Descriptive) isProblem_Body() {} func (*Problem_MultipleChoice) isProblem_Body() {} type GetProblemRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetProblemRequest) Reset() { @@ -613,11 +610,10 @@ func (x *GetProblemRequest) GetId() string { } type GetProblemResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Problem *Problem `protobuf:"bytes,1,opt,name=problem,proto3" json:"problem,omitempty"` unknownFields protoimpl.UnknownFields - - Problem *Problem `protobuf:"bytes,1,opt,name=problem,proto3" json:"problem,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetProblemResponse) Reset() { @@ -658,9 +654,9 @@ func (x *GetProblemResponse) GetProblem() *Problem { } type GetProblemsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetProblemsRequest) Reset() { @@ -694,11 +690,10 @@ func (*GetProblemsRequest) Descriptor() ([]byte, []int) { } type GetProblemsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Problems []*Problem `protobuf:"bytes,1,rep,name=problems,proto3" json:"problems,omitempty"` unknownFields protoimpl.UnknownFields - - Problems []*Problem `protobuf:"bytes,1,rep,name=problems,proto3" json:"problems,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetProblemsResponse) Reset() { @@ -739,20 +734,19 @@ func (x *GetProblemsResponse) GetProblems() []*Problem { } type PatchProblemRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"` - Code *string `protobuf:"bytes,3,opt,name=code,proto3,oneof" json:"code,omitempty"` - Point *int64 `protobuf:"varint,4,opt,name=point,proto3,oneof" json:"point,omitempty"` - Type *ProblemType `protobuf:"varint,5,opt,name=type,proto3,enum=admin.v1.ProblemType,oneof" json:"type,omitempty"` - // Types that are assignable to Body: + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"` + Code *string `protobuf:"bytes,3,opt,name=code,proto3,oneof" json:"code,omitempty"` + Point *int64 `protobuf:"varint,4,opt,name=point,proto3,oneof" json:"point,omitempty"` + Type *ProblemType `protobuf:"varint,5,opt,name=type,proto3,enum=admin.v1.ProblemType,oneof" json:"type,omitempty"` + // Types that are valid to be assigned to Body: // // *PatchProblemRequest_Descriptive // *PatchProblemRequest_MultipleChoice - Body isPatchProblemRequest_Body `protobuf_oneof:"body"` + Body isPatchProblemRequest_Body `protobuf_oneof:"body"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PatchProblemRequest) Reset() { @@ -820,23 +814,27 @@ func (x *PatchProblemRequest) GetType() ProblemType { return ProblemType_PROBLEM_TYPE_UNSPECIFIED } -func (m *PatchProblemRequest) GetBody() isPatchProblemRequest_Body { - if m != nil { - return m.Body +func (x *PatchProblemRequest) GetBody() isPatchProblemRequest_Body { + if x != nil { + return x.Body } return nil } func (x *PatchProblemRequest) GetDescriptive() *DescriptiveProblem { - if x, ok := x.GetBody().(*PatchProblemRequest_Descriptive); ok { - return x.Descriptive + if x != nil { + if x, ok := x.Body.(*PatchProblemRequest_Descriptive); ok { + return x.Descriptive + } } return nil } func (x *PatchProblemRequest) GetMultipleChoice() *MultipleChoiceProblem { - if x, ok := x.GetBody().(*PatchProblemRequest_MultipleChoice); ok { - return x.MultipleChoice + if x != nil { + if x, ok := x.Body.(*PatchProblemRequest_MultipleChoice); ok { + return x.MultipleChoice + } } return nil } @@ -858,11 +856,10 @@ func (*PatchProblemRequest_Descriptive) isPatchProblemRequest_Body() {} func (*PatchProblemRequest_MultipleChoice) isPatchProblemRequest_Body() {} type PatchProblemResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Problem *Problem `protobuf:"bytes,1,opt,name=problem,proto3" json:"problem,omitempty"` unknownFields protoimpl.UnknownFields - - Problem *Problem `protobuf:"bytes,1,opt,name=problem,proto3" json:"problem,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchProblemResponse) Reset() { @@ -903,19 +900,18 @@ func (x *PatchProblemResponse) GetProblem() *Problem { } type PostProblemRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` - Point int64 `protobuf:"varint,3,opt,name=point,proto3" json:"point,omitempty"` - Type ProblemType `protobuf:"varint,4,opt,name=type,proto3,enum=admin.v1.ProblemType" json:"type,omitempty"` - // Types that are assignable to Body: + state protoimpl.MessageState `protogen:"open.v1"` + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` + Point int64 `protobuf:"varint,3,opt,name=point,proto3" json:"point,omitempty"` + Type ProblemType `protobuf:"varint,4,opt,name=type,proto3,enum=admin.v1.ProblemType" json:"type,omitempty"` + // Types that are valid to be assigned to Body: // // *PostProblemRequest_Descriptive // *PostProblemRequest_MultipleChoice - Body isPostProblemRequest_Body `protobuf_oneof:"body"` + Body isPostProblemRequest_Body `protobuf_oneof:"body"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PostProblemRequest) Reset() { @@ -976,23 +972,27 @@ func (x *PostProblemRequest) GetType() ProblemType { return ProblemType_PROBLEM_TYPE_UNSPECIFIED } -func (m *PostProblemRequest) GetBody() isPostProblemRequest_Body { - if m != nil { - return m.Body +func (x *PostProblemRequest) GetBody() isPostProblemRequest_Body { + if x != nil { + return x.Body } return nil } func (x *PostProblemRequest) GetDescriptive() *DescriptiveProblem { - if x, ok := x.GetBody().(*PostProblemRequest_Descriptive); ok { - return x.Descriptive + if x != nil { + if x, ok := x.Body.(*PostProblemRequest_Descriptive); ok { + return x.Descriptive + } } return nil } func (x *PostProblemRequest) GetMultipleChoice() *MultipleChoiceProblem { - if x, ok := x.GetBody().(*PostProblemRequest_MultipleChoice); ok { - return x.MultipleChoice + if x != nil { + if x, ok := x.Body.(*PostProblemRequest_MultipleChoice); ok { + return x.MultipleChoice + } } return nil } @@ -1014,11 +1014,10 @@ func (*PostProblemRequest_Descriptive) isPostProblemRequest_Body() {} func (*PostProblemRequest_MultipleChoice) isPostProblemRequest_Body() {} type PostProblemResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Problem *Problem `protobuf:"bytes,1,opt,name=problem,proto3" json:"problem,omitempty"` unknownFields protoimpl.UnknownFields - - Problem *Problem `protobuf:"bytes,1,opt,name=problem,proto3" json:"problem,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostProblemResponse) Reset() { @@ -1059,11 +1058,10 @@ func (x *PostProblemResponse) GetProblem() *Problem { } type DeleteProblemRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteProblemRequest) Reset() { @@ -1104,9 +1102,9 @@ func (x *DeleteProblemRequest) GetId() string { } type DeleteProblemResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteProblemResponse) Reset() { diff --git a/backend/internal/proto/admin/v1/ranking.pb.go b/backend/internal/proto/admin/v1/ranking.pb.go index 320506fe..b5f7f404 100644 --- a/backend/internal/proto/admin/v1/ranking.pb.go +++ b/backend/internal/proto/admin/v1/ranking.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: admin/v1/ranking.proto @@ -22,13 +22,12 @@ const ( ) type Rank struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Rank int64 `protobuf:"varint,1,opt,name=rank,proto3" json:"rank,omitempty"` + Team *Team `protobuf:"bytes,2,opt,name=team,proto3" json:"team,omitempty"` + Point int64 `protobuf:"varint,3,opt,name=point,proto3" json:"point,omitempty"` unknownFields protoimpl.UnknownFields - - Rank int64 `protobuf:"varint,1,opt,name=rank,proto3" json:"rank,omitempty"` - Team *Team `protobuf:"bytes,2,opt,name=team,proto3" json:"team,omitempty"` - Point int64 `protobuf:"varint,3,opt,name=point,proto3" json:"point,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Rank) Reset() { @@ -83,11 +82,10 @@ func (x *Rank) GetPoint() int64 { } type GetRankingRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Unpublished bool `protobuf:"varint,1,opt,name=unpublished,proto3" json:"unpublished,omitempty"` unknownFields protoimpl.UnknownFields - - Unpublished bool `protobuf:"varint,1,opt,name=unpublished,proto3" json:"unpublished,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRankingRequest) Reset() { @@ -128,11 +126,10 @@ func (x *GetRankingRequest) GetUnpublished() bool { } type GetRankingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ranking []*Rank `protobuf:"bytes,1,rep,name=ranking,proto3" json:"ranking,omitempty"` unknownFields protoimpl.UnknownFields - - Ranking []*Rank `protobuf:"bytes,1,rep,name=ranking,proto3" json:"ranking,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRankingResponse) Reset() { diff --git a/backend/internal/proto/admin/v1/recreation.pb.go b/backend/internal/proto/admin/v1/recreation.pb.go index 8663687d..38cf10ca 100644 --- a/backend/internal/proto/admin/v1/recreation.pb.go +++ b/backend/internal/proto/admin/v1/recreation.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: admin/v1/recreation.proto @@ -72,15 +72,14 @@ func (Status) EnumDescriptor() ([]byte, []int) { } type Recreation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + TeamId string `protobuf:"bytes,2,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` + ProblemId string `protobuf:"bytes,3,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` + Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=admin.v1.Status" json:"status,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - TeamId string `protobuf:"bytes,2,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` - ProblemId string `protobuf:"bytes,3,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` - Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=admin.v1.Status" json:"status,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Recreation) Reset() { @@ -149,11 +148,10 @@ func (x *Recreation) GetCreatedAt() *timestamppb.Timestamp { } type GetRecreationsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TeamId string `protobuf:"bytes,1,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` unknownFields protoimpl.UnknownFields - - TeamId string `protobuf:"bytes,1,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRecreationsRequest) Reset() { @@ -194,11 +192,10 @@ func (x *GetRecreationsRequest) GetTeamId() string { } type GetRecreationsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Recreations []*Recreation `protobuf:"bytes,1,rep,name=recreations,proto3" json:"recreations,omitempty"` unknownFields protoimpl.UnknownFields - - Recreations []*Recreation `protobuf:"bytes,1,rep,name=recreations,proto3" json:"recreations,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRecreationsResponse) Reset() { @@ -239,11 +236,10 @@ func (x *GetRecreationsResponse) GetRecreations() []*Recreation { } type PostAdminRecreationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` unknownFields protoimpl.UnknownFields - - ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostAdminRecreationRequest) Reset() { @@ -284,11 +280,10 @@ func (x *PostAdminRecreationRequest) GetProblemId() string { } type PostAdminRecreationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Recreation *Recreation `protobuf:"bytes,1,opt,name=recreation,proto3" json:"recreation,omitempty"` unknownFields protoimpl.UnknownFields - - Recreation *Recreation `protobuf:"bytes,1,opt,name=recreation,proto3" json:"recreation,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostAdminRecreationResponse) Reset() { diff --git a/backend/internal/proto/admin/v1/rule.pb.go b/backend/internal/proto/admin/v1/rule.pb.go index 35dff2e3..384d36f1 100644 --- a/backend/internal/proto/admin/v1/rule.pb.go +++ b/backend/internal/proto/admin/v1/rule.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: admin/v1/rule.proto @@ -22,13 +22,12 @@ const ( ) type Rule struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` - ShortRule string `protobuf:"bytes,2,opt,name=short_rule,json=shortRule,proto3" json:"short_rule,omitempty"` - RecreationRule string `protobuf:"bytes,3,opt,name=recreation_rule,json=recreationRule,proto3" json:"recreation_rule,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` + ShortRule string `protobuf:"bytes,2,opt,name=short_rule,json=shortRule,proto3" json:"short_rule,omitempty"` + RecreationRule string `protobuf:"bytes,3,opt,name=recreation_rule,json=recreationRule,proto3" json:"recreation_rule,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Rule) Reset() { @@ -83,9 +82,9 @@ func (x *Rule) GetRecreationRule() string { } type GetRuleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetRuleRequest) Reset() { @@ -119,11 +118,10 @@ func (*GetRuleRequest) Descriptor() ([]byte, []int) { } type GetRuleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` unknownFields protoimpl.UnknownFields - - Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRuleResponse) Reset() { @@ -164,13 +162,12 @@ func (x *GetRuleResponse) GetRule() *Rule { } type PatchRuleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Rule *string `protobuf:"bytes,1,opt,name=rule,proto3,oneof" json:"rule,omitempty"` - ShortRule *string `protobuf:"bytes,2,opt,name=short_rule,json=shortRule,proto3,oneof" json:"short_rule,omitempty"` - RecreationRule *string `protobuf:"bytes,3,opt,name=recreation_rule,json=recreationRule,proto3,oneof" json:"recreation_rule,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Rule *string `protobuf:"bytes,1,opt,name=rule,proto3,oneof" json:"rule,omitempty"` + ShortRule *string `protobuf:"bytes,2,opt,name=short_rule,json=shortRule,proto3,oneof" json:"short_rule,omitempty"` + RecreationRule *string `protobuf:"bytes,3,opt,name=recreation_rule,json=recreationRule,proto3,oneof" json:"recreation_rule,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PatchRuleRequest) Reset() { @@ -225,11 +222,10 @@ func (x *PatchRuleRequest) GetRecreationRule() string { } type PatchRuleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` unknownFields protoimpl.UnknownFields - - Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchRuleResponse) Reset() { diff --git a/backend/internal/proto/admin/v1/schedule.pb.go b/backend/internal/proto/admin/v1/schedule.pb.go index 004f1e96..90f48399 100644 --- a/backend/internal/proto/admin/v1/schedule.pb.go +++ b/backend/internal/proto/admin/v1/schedule.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: admin/v1/schedule.proto @@ -72,15 +72,14 @@ func (Phases) EnumDescriptor() ([]byte, []int) { } type Schedule struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Phase Phases `protobuf:"varint,3,opt,name=phase,proto3,enum=admin.v1.Phases" json:"phase,omitempty"` + StartAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` + EndAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Phase Phases `protobuf:"varint,3,opt,name=phase,proto3,enum=admin.v1.Phases" json:"phase,omitempty"` - StartAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` - EndAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Schedule) Reset() { @@ -149,9 +148,9 @@ func (x *Schedule) GetEndAt() *timestamppb.Timestamp { } type GetSchedulesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetSchedulesRequest) Reset() { @@ -185,11 +184,10 @@ func (*GetSchedulesRequest) Descriptor() ([]byte, []int) { } type GetSchedulesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Schedules []*Schedule `protobuf:"bytes,1,rep,name=schedules,proto3" json:"schedules,omitempty"` unknownFields protoimpl.UnknownFields - - Schedules []*Schedule `protobuf:"bytes,1,rep,name=schedules,proto3" json:"schedules,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSchedulesResponse) Reset() { @@ -230,15 +228,14 @@ func (x *GetSchedulesResponse) GetSchedules() []*Schedule { } type PatchScheduleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` + Phase *Phases `protobuf:"varint,3,opt,name=phase,proto3,enum=admin.v1.Phases,oneof" json:"phase,omitempty"` + StartAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_at,json=startAt,proto3,oneof" json:"start_at,omitempty"` + EndAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_at,json=endAt,proto3,oneof" json:"end_at,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` - Phase *Phases `protobuf:"varint,3,opt,name=phase,proto3,enum=admin.v1.Phases,oneof" json:"phase,omitempty"` - StartAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_at,json=startAt,proto3,oneof" json:"start_at,omitempty"` - EndAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_at,json=endAt,proto3,oneof" json:"end_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchScheduleRequest) Reset() { @@ -307,11 +304,10 @@ func (x *PatchScheduleRequest) GetEndAt() *timestamppb.Timestamp { } type PatchScheduleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` unknownFields protoimpl.UnknownFields - - Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchScheduleResponse) Reset() { @@ -352,14 +348,13 @@ func (x *PatchScheduleResponse) GetSchedule() *Schedule { } type PostScheduleRequest 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"` + Phase Phases `protobuf:"varint,2,opt,name=phase,proto3,enum=admin.v1.Phases" json:"phase,omitempty"` + StartAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` + EndAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Phase Phases `protobuf:"varint,2,opt,name=phase,proto3,enum=admin.v1.Phases" json:"phase,omitempty"` - StartAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` - EndAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostScheduleRequest) Reset() { @@ -421,11 +416,10 @@ func (x *PostScheduleRequest) GetEndAt() *timestamppb.Timestamp { } type PostScheduleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` unknownFields protoimpl.UnknownFields - - Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostScheduleResponse) Reset() { @@ -466,11 +460,10 @@ func (x *PostScheduleResponse) GetSchedule() *Schedule { } type DeleteScheduleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteScheduleRequest) Reset() { @@ -511,9 +504,9 @@ func (x *DeleteScheduleRequest) GetId() string { } type DeleteScheduleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteScheduleResponse) Reset() { diff --git a/backend/internal/proto/admin/v1/team.pb.go b/backend/internal/proto/admin/v1/team.pb.go index b313736f..71d13f6b 100644 --- a/backend/internal/proto/admin/v1/team.pb.go +++ b/backend/internal/proto/admin/v1/team.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: admin/v1/team.proto @@ -22,16 +22,15 @@ const ( ) type Team struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Code int64 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Organization string `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"` - InvitationCode string `protobuf:"bytes,5,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"` - CodeRemaining int64 `protobuf:"varint,6,opt,name=code_remaining,json=codeRemaining,proto3" json:"code_remaining,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Code int64 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Organization string `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"` + InvitationCode string `protobuf:"bytes,5,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"` + CodeRemaining int64 `protobuf:"varint,6,opt,name=code_remaining,json=codeRemaining,proto3" json:"code_remaining,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Team) Reset() { @@ -107,9 +106,9 @@ func (x *Team) GetCodeRemaining() int64 { } type GetTeamsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetTeamsRequest) Reset() { @@ -143,11 +142,10 @@ func (*GetTeamsRequest) Descriptor() ([]byte, []int) { } type GetTeamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Teams []*Team `protobuf:"bytes,1,rep,name=teams,proto3" json:"teams,omitempty"` unknownFields protoimpl.UnknownFields - - Teams []*Team `protobuf:"bytes,1,rep,name=teams,proto3" json:"teams,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTeamsResponse) Reset() { @@ -188,11 +186,10 @@ func (x *GetTeamsResponse) GetTeams() []*Team { } type GetTeamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTeamRequest) Reset() { @@ -233,11 +230,10 @@ func (x *GetTeamRequest) GetId() string { } type GetTeamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` unknownFields protoimpl.UnknownFields - - Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTeamResponse) Reset() { @@ -278,14 +274,13 @@ func (x *GetTeamResponse) GetTeam() *Team { } type Bastion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` + Port int64 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` unknownFields protoimpl.UnknownFields - - User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` - Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` - Port int64 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Bastion) Reset() { @@ -347,11 +342,10 @@ func (x *Bastion) GetPort() int64 { } type GetConnectionInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetConnectionInfoRequest) Reset() { @@ -392,11 +386,10 @@ func (x *GetConnectionInfoRequest) GetId() string { } type GetConnectionInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Bastion *Bastion `protobuf:"bytes,1,opt,name=bastion,proto3" json:"bastion,omitempty"` unknownFields protoimpl.UnknownFields - - Bastion *Bastion `protobuf:"bytes,1,opt,name=bastion,proto3" json:"bastion,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetConnectionInfoResponse) Reset() { @@ -437,11 +430,10 @@ func (x *GetConnectionInfoResponse) GetBastion() *Bastion { } type GetMembersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMembersRequest) Reset() { @@ -482,11 +474,10 @@ func (x *GetMembersRequest) GetId() string { } type GetMembersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Members []*Contestant `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` unknownFields protoimpl.UnknownFields - - Members []*Contestant `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMembersResponse) Reset() { @@ -527,15 +518,14 @@ func (x *GetMembersResponse) GetMembers() []*Contestant { } type PatchTeamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Code *int64 `protobuf:"varint,2,opt,name=code,proto3,oneof" json:"code,omitempty"` + Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` + Organization *string `protobuf:"bytes,4,opt,name=organization,proto3,oneof" json:"organization,omitempty"` + CodeRemaining *int64 `protobuf:"varint,5,opt,name=code_remaining,json=codeRemaining,proto3,oneof" json:"code_remaining,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Code *int64 `protobuf:"varint,2,opt,name=code,proto3,oneof" json:"code,omitempty"` - Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` - Organization *string `protobuf:"bytes,4,opt,name=organization,proto3,oneof" json:"organization,omitempty"` - CodeRemaining *int64 `protobuf:"varint,5,opt,name=code_remaining,json=codeRemaining,proto3,oneof" json:"code_remaining,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchTeamRequest) Reset() { @@ -604,11 +594,10 @@ func (x *PatchTeamRequest) GetCodeRemaining() int64 { } type PatchTeamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` unknownFields protoimpl.UnknownFields - - Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchTeamResponse) Reset() { @@ -649,12 +638,11 @@ func (x *PatchTeamResponse) GetTeam() *Team { } type PutConnectionInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Bastion *Bastion `protobuf:"bytes,2,opt,name=bastion,proto3" json:"bastion,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Bastion *Bastion `protobuf:"bytes,2,opt,name=bastion,proto3" json:"bastion,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PutConnectionInfoRequest) Reset() { @@ -702,9 +690,9 @@ func (x *PutConnectionInfoRequest) GetBastion() *Bastion { } type PutConnectionInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PutConnectionInfoResponse) Reset() { @@ -738,14 +726,13 @@ func (*PutConnectionInfoResponse) Descriptor() ([]byte, []int) { } type PostTeamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Organization string `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"` + CodeRemaining int64 `protobuf:"varint,4,opt,name=code_remaining,json=codeRemaining,proto3" json:"code_remaining,omitempty"` unknownFields protoimpl.UnknownFields - - Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Organization string `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"` - CodeRemaining int64 `protobuf:"varint,4,opt,name=code_remaining,json=codeRemaining,proto3" json:"code_remaining,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostTeamRequest) Reset() { @@ -807,11 +794,10 @@ func (x *PostTeamRequest) GetCodeRemaining() int64 { } type PostTeamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` unknownFields protoimpl.UnknownFields - - Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostTeamResponse) Reset() { @@ -852,12 +838,11 @@ func (x *PostTeamResponse) GetTeam() *Team { } type AddMemberRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + 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"` unknownFields protoimpl.UnknownFields - - 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"` + sizeCache protoimpl.SizeCache } func (x *AddMemberRequest) Reset() { @@ -905,9 +890,9 @@ func (x *AddMemberRequest) GetUserId() string { } type AddMemberResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddMemberResponse) Reset() { @@ -941,11 +926,10 @@ func (*AddMemberResponse) Descriptor() ([]byte, []int) { } type DeleteTeamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteTeamRequest) Reset() { @@ -986,9 +970,9 @@ func (x *DeleteTeamRequest) GetId() string { } type DeleteTeamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteTeamResponse) Reset() { @@ -1022,12 +1006,11 @@ func (*DeleteTeamResponse) Descriptor() ([]byte, []int) { } type MoveMemberRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ToTeamId string `protobuf:"bytes,1,opt,name=to_team_id,json=toTeamId,proto3" json:"to_team_id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` unknownFields protoimpl.UnknownFields - - ToTeamId string `protobuf:"bytes,1,opt,name=to_team_id,json=toTeamId,proto3" json:"to_team_id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MoveMemberRequest) Reset() { @@ -1075,9 +1058,9 @@ func (x *MoveMemberRequest) GetUserId() string { } type MoveMemberResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MoveMemberResponse) Reset() { diff --git a/backend/internal/proto/anita/v1/team.pb.go b/backend/internal/proto/anita/v1/team.pb.go index 7b85a315..c551ea97 100644 --- a/backend/internal/proto/anita/v1/team.pb.go +++ b/backend/internal/proto/anita/v1/team.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: anita/v1/team.proto @@ -22,16 +22,15 @@ const ( ) type Team struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Code int64 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Organization string `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"` - InvitationCode string `protobuf:"bytes,5,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"` - CodeRemaining int64 `protobuf:"varint,6,opt,name=code_remaining,json=codeRemaining,proto3" json:"code_remaining,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Code int64 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Organization string `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"` + InvitationCode string `protobuf:"bytes,5,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"` + CodeRemaining int64 `protobuf:"varint,6,opt,name=code_remaining,json=codeRemaining,proto3" json:"code_remaining,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Team) Reset() { @@ -107,11 +106,10 @@ func (x *Team) GetCodeRemaining() int64 { } type GetTeamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTeamRequest) Reset() { @@ -152,11 +150,10 @@ func (x *GetTeamRequest) GetId() string { } type GetTeamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` unknownFields protoimpl.UnknownFields - - Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTeamResponse) Reset() { @@ -197,9 +194,9 @@ func (x *GetTeamResponse) GetTeam() *Team { } type GetTeamsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetTeamsRequest) Reset() { @@ -233,11 +230,10 @@ func (*GetTeamsRequest) Descriptor() ([]byte, []int) { } type GetTeamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Teams []*Team `protobuf:"bytes,1,rep,name=teams,proto3" json:"teams,omitempty"` unknownFields protoimpl.UnknownFields - - Teams []*Team `protobuf:"bytes,1,rep,name=teams,proto3" json:"teams,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTeamsResponse) Reset() { @@ -278,14 +274,13 @@ func (x *GetTeamsResponse) GetTeams() []*Team { } type Bastion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` + Port int64 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` unknownFields protoimpl.UnknownFields - - User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` - Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` - Port int64 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Bastion) Reset() { @@ -347,11 +342,10 @@ func (x *Bastion) GetPort() int64 { } type GetConnectionInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetConnectionInfoRequest) Reset() { @@ -392,11 +386,10 @@ func (x *GetConnectionInfoRequest) GetId() string { } type GetConnectionInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Bastion *Bastion `protobuf:"bytes,1,opt,name=bastion,proto3" json:"bastion,omitempty"` unknownFields protoimpl.UnknownFields - - Bastion *Bastion `protobuf:"bytes,1,opt,name=bastion,proto3" json:"bastion,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetConnectionInfoResponse) Reset() { @@ -437,11 +430,10 @@ func (x *GetConnectionInfoResponse) GetBastion() *Bastion { } type GetMembersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMembersRequest) Reset() { @@ -482,11 +474,10 @@ func (x *GetMembersRequest) GetId() string { } type GetMembersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Members []*User `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` unknownFields protoimpl.UnknownFields - - Members []*User `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMembersResponse) Reset() { @@ -527,15 +518,14 @@ func (x *GetMembersResponse) GetMembers() []*User { } type PatchTeamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Code *int64 `protobuf:"varint,2,opt,name=code,proto3,oneof" json:"code,omitempty"` + Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` + Organization *string `protobuf:"bytes,4,opt,name=organization,proto3,oneof" json:"organization,omitempty"` + CodeRemaining *int64 `protobuf:"varint,5,opt,name=code_remaining,json=codeRemaining,proto3,oneof" json:"code_remaining,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Code *int64 `protobuf:"varint,2,opt,name=code,proto3,oneof" json:"code,omitempty"` - Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` - Organization *string `protobuf:"bytes,4,opt,name=organization,proto3,oneof" json:"organization,omitempty"` - CodeRemaining *int64 `protobuf:"varint,5,opt,name=code_remaining,json=codeRemaining,proto3,oneof" json:"code_remaining,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchTeamRequest) Reset() { @@ -604,11 +594,10 @@ func (x *PatchTeamRequest) GetCodeRemaining() int64 { } type PatchTeamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` unknownFields protoimpl.UnknownFields - - Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchTeamResponse) Reset() { @@ -649,12 +638,11 @@ func (x *PatchTeamResponse) GetTeam() *Team { } type PutConnectionInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Bastion *Bastion `protobuf:"bytes,2,opt,name=bastion,proto3" json:"bastion,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Bastion *Bastion `protobuf:"bytes,2,opt,name=bastion,proto3" json:"bastion,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PutConnectionInfoRequest) Reset() { @@ -702,9 +690,9 @@ func (x *PutConnectionInfoRequest) GetBastion() *Bastion { } type PutConnectionInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PutConnectionInfoResponse) Reset() { @@ -738,14 +726,13 @@ func (*PutConnectionInfoResponse) Descriptor() ([]byte, []int) { } type PostTeamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Organization string `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"` + CodeRemaining int64 `protobuf:"varint,4,opt,name=code_remaining,json=codeRemaining,proto3" json:"code_remaining,omitempty"` unknownFields protoimpl.UnknownFields - - Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Organization string `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"` - CodeRemaining int64 `protobuf:"varint,4,opt,name=code_remaining,json=codeRemaining,proto3" json:"code_remaining,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostTeamRequest) Reset() { @@ -807,11 +794,10 @@ func (x *PostTeamRequest) GetCodeRemaining() int64 { } type PostTeamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` unknownFields protoimpl.UnknownFields - - Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostTeamResponse) Reset() { @@ -852,12 +838,11 @@ func (x *PostTeamResponse) GetTeam() *Team { } type AddMemberRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + 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"` unknownFields protoimpl.UnknownFields - - 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"` + sizeCache protoimpl.SizeCache } func (x *AddMemberRequest) Reset() { @@ -905,9 +890,9 @@ func (x *AddMemberRequest) GetUserId() string { } type AddMemberResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddMemberResponse) Reset() { @@ -941,11 +926,10 @@ func (*AddMemberResponse) Descriptor() ([]byte, []int) { } type DeleteTeamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteTeamRequest) Reset() { @@ -986,9 +970,9 @@ func (x *DeleteTeamRequest) GetId() string { } type DeleteTeamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteTeamResponse) Reset() { @@ -1022,12 +1006,11 @@ func (*DeleteTeamResponse) Descriptor() ([]byte, []int) { } type MoveMemberRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ToTeamId string `protobuf:"bytes,1,opt,name=to_team_id,json=toTeamId,proto3" json:"to_team_id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` unknownFields protoimpl.UnknownFields - - ToTeamId string `protobuf:"bytes,1,opt,name=to_team_id,json=toTeamId,proto3" json:"to_team_id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MoveMemberRequest) Reset() { @@ -1075,9 +1058,9 @@ func (x *MoveMemberRequest) GetUserId() string { } type MoveMemberResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MoveMemberResponse) Reset() { diff --git a/backend/internal/proto/anita/v1/user.pb.go b/backend/internal/proto/anita/v1/user.pb.go index 1f47f1b2..240c5c29 100644 --- a/backend/internal/proto/anita/v1/user.pb.go +++ b/backend/internal/proto/anita/v1/user.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: anita/v1/user.proto @@ -22,13 +22,12 @@ const ( ) type User struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + TeamId string `protobuf:"bytes,3,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - TeamId string `protobuf:"bytes,3,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *User) Reset() { @@ -83,11 +82,10 @@ func (x *User) GetTeamId() string { } type GetUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUserRequest) Reset() { @@ -128,11 +126,10 @@ func (x *GetUserRequest) GetId() string { } type GetUserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields - - User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUserResponse) Reset() { @@ -173,9 +170,9 @@ func (x *GetUserResponse) GetUser() *User { } type GetUsersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetUsersRequest) Reset() { @@ -209,11 +206,10 @@ func (*GetUsersRequest) Descriptor() ([]byte, []int) { } type GetUsersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` unknownFields protoimpl.UnknownFields - - Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetUsersResponse) Reset() { @@ -254,13 +250,12 @@ func (x *GetUsersResponse) GetUsers() []*User { } type PostUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - InvitationCode string `protobuf:"bytes,3,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + InvitationCode string `protobuf:"bytes,3,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PostUserRequest) Reset() { @@ -315,11 +310,10 @@ func (x *PostUserRequest) GetInvitationCode() string { } type PostUserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields - - User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostUserResponse) Reset() { @@ -360,12 +354,11 @@ func (x *PostUserResponse) GetUser() *User { } type PatchUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchUserRequest) Reset() { @@ -413,11 +406,10 @@ func (x *PatchUserRequest) GetName() string { } type PatchUserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields - - User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchUserResponse) Reset() { @@ -458,11 +450,10 @@ func (x *PatchUserResponse) GetUser() *User { } type DeleteUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteUserRequest) Reset() { @@ -503,9 +494,9 @@ func (x *DeleteUserRequest) GetId() string { } type DeleteUserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteUserResponse) Reset() { diff --git a/backend/internal/proto/contestant/v1/announcement.pb.go b/backend/internal/proto/contestant/v1/announcement.pb.go index b66789e1..a27b87f1 100644 --- a/backend/internal/proto/contestant/v1/announcement.pb.go +++ b/backend/internal/proto/contestant/v1/announcement.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: contestant/v1/announcement.proto @@ -23,15 +23,14 @@ const ( ) type Announcement struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ProblemId *string `protobuf:"bytes,2,opt,name=problem_id,json=problemId,proto3,oneof" json:"problem_id,omitempty"` + Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` + Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProblemId *string `protobuf:"bytes,2,opt,name=problem_id,json=problemId,proto3,oneof" json:"problem_id,omitempty"` - Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` - Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Announcement) Reset() { @@ -100,11 +99,10 @@ func (x *Announcement) GetCreatedAt() *timestamppb.Timestamp { } type GetAnnouncementsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ProblemId *string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3,oneof" json:"problem_id,omitempty"` unknownFields protoimpl.UnknownFields - - ProblemId *string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3,oneof" json:"problem_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAnnouncementsRequest) Reset() { @@ -145,11 +143,10 @@ func (x *GetAnnouncementsRequest) GetProblemId() string { } type GetAnnouncementsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Announcements []*Announcement `protobuf:"bytes,1,rep,name=announcements,proto3" json:"announcements,omitempty"` unknownFields protoimpl.UnknownFields - - Announcements []*Announcement `protobuf:"bytes,1,rep,name=announcements,proto3" json:"announcements,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAnnouncementsResponse) Reset() { diff --git a/backend/internal/proto/contestant/v1/answer.pb.go b/backend/internal/proto/contestant/v1/answer.pb.go index 3ecdec0e..97bf044b 100644 --- a/backend/internal/proto/contestant/v1/answer.pb.go +++ b/backend/internal/proto/contestant/v1/answer.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: contestant/v1/answer.proto @@ -23,11 +23,10 @@ const ( ) type QuestionAnswer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Answer []int64 `protobuf:"varint,6,rep,packed,name=answer,proto3" json:"answer,omitempty"` unknownFields protoimpl.UnknownFields - - Answer []int64 `protobuf:"varint,6,rep,packed,name=answer,proto3" json:"answer,omitempty"` + sizeCache protoimpl.SizeCache } func (x *QuestionAnswer) Reset() { @@ -68,11 +67,10 @@ func (x *QuestionAnswer) GetAnswer() []int64 { } type MultipleChoiceAnswer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QuestionAnswer []*QuestionAnswer `protobuf:"bytes,1,rep,name=question_answer,json=questionAnswer,proto3" json:"question_answer,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QuestionAnswer []*QuestionAnswer `protobuf:"bytes,1,rep,name=question_answer,json=questionAnswer,proto3" json:"question_answer,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MultipleChoiceAnswer) Reset() { @@ -113,11 +111,10 @@ func (x *MultipleChoiceAnswer) GetQuestionAnswer() []*QuestionAnswer { } type DescriptiveAnswer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` unknownFields protoimpl.UnknownFields - - Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DescriptiveAnswer) Reset() { @@ -158,20 +155,19 @@ func (x *DescriptiveAnswer) GetBody() string { } type Answer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProblemId string `protobuf:"bytes,2,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` - ProblemType ProblemType `protobuf:"varint,3,opt,name=problem_type,json=problemType,proto3,enum=contestant.v1.ProblemType" json:"problem_type,omitempty"` - // Types that are assignable to Body: + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ProblemId string `protobuf:"bytes,2,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` + ProblemType ProblemType `protobuf:"varint,3,opt,name=problem_type,json=problemType,proto3,enum=contestant.v1.ProblemType" json:"problem_type,omitempty"` + // Types that are valid to be assigned to Body: // // *Answer_MultipleChoice // *Answer_Descriptive - Body isAnswer_Body `protobuf_oneof:"body"` - Point *int64 `protobuf:"varint,6,opt,name=point,proto3,oneof" json:"point,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + Body isAnswer_Body `protobuf_oneof:"body"` + Point *int64 `protobuf:"varint,6,opt,name=point,proto3,oneof" json:"point,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Answer) Reset() { @@ -225,23 +221,27 @@ func (x *Answer) GetProblemType() ProblemType { return ProblemType_PROBLEM_TYPE_UNSPECIFIED } -func (m *Answer) GetBody() isAnswer_Body { - if m != nil { - return m.Body +func (x *Answer) GetBody() isAnswer_Body { + if x != nil { + return x.Body } return nil } func (x *Answer) GetMultipleChoice() *MultipleChoiceAnswer { - if x, ok := x.GetBody().(*Answer_MultipleChoice); ok { - return x.MultipleChoice + if x != nil { + if x, ok := x.Body.(*Answer_MultipleChoice); ok { + return x.MultipleChoice + } } return nil } func (x *Answer) GetDescriptive() *DescriptiveAnswer { - if x, ok := x.GetBody().(*Answer_Descriptive); ok { - return x.Descriptive + if x != nil { + if x, ok := x.Body.(*Answer_Descriptive); ok { + return x.Descriptive + } } return nil } @@ -277,11 +277,10 @@ func (*Answer_MultipleChoice) isAnswer_Body() {} func (*Answer_Descriptive) isAnswer_Body() {} type GetAnswerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAnswerRequest) Reset() { @@ -322,11 +321,10 @@ func (x *GetAnswerRequest) GetId() string { } type GetAnswerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Answer *Answer `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"` unknownFields protoimpl.UnknownFields - - Answer *Answer `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAnswerResponse) Reset() { @@ -367,11 +365,10 @@ func (x *GetAnswerResponse) GetAnswer() *Answer { } type GetAnswersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` unknownFields protoimpl.UnknownFields - - ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAnswersRequest) Reset() { @@ -412,11 +409,10 @@ func (x *GetAnswersRequest) GetProblemId() string { } type GetAnswersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Answers []*Answer `protobuf:"bytes,1,rep,name=answers,proto3" json:"answers,omitempty"` unknownFields protoimpl.UnknownFields - - Answers []*Answer `protobuf:"bytes,1,rep,name=answers,proto3" json:"answers,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAnswersResponse) Reset() { @@ -457,17 +453,16 @@ func (x *GetAnswersResponse) GetAnswers() []*Answer { } type PostAnswerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` - ProblemType ProblemType `protobuf:"varint,2,opt,name=problem_type,json=problemType,proto3,enum=contestant.v1.ProblemType" json:"problem_type,omitempty"` - // Types that are assignable to Body: + state protoimpl.MessageState `protogen:"open.v1"` + ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` + ProblemType ProblemType `protobuf:"varint,2,opt,name=problem_type,json=problemType,proto3,enum=contestant.v1.ProblemType" json:"problem_type,omitempty"` + // Types that are valid to be assigned to Body: // // *PostAnswerRequest_MultipleChoice // *PostAnswerRequest_Descriptive - Body isPostAnswerRequest_Body `protobuf_oneof:"body"` + Body isPostAnswerRequest_Body `protobuf_oneof:"body"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PostAnswerRequest) Reset() { @@ -514,23 +509,27 @@ func (x *PostAnswerRequest) GetProblemType() ProblemType { return ProblemType_PROBLEM_TYPE_UNSPECIFIED } -func (m *PostAnswerRequest) GetBody() isPostAnswerRequest_Body { - if m != nil { - return m.Body +func (x *PostAnswerRequest) GetBody() isPostAnswerRequest_Body { + if x != nil { + return x.Body } return nil } func (x *PostAnswerRequest) GetMultipleChoice() *MultipleChoiceAnswer { - if x, ok := x.GetBody().(*PostAnswerRequest_MultipleChoice); ok { - return x.MultipleChoice + if x != nil { + if x, ok := x.Body.(*PostAnswerRequest_MultipleChoice); ok { + return x.MultipleChoice + } } return nil } func (x *PostAnswerRequest) GetDescriptive() *DescriptiveAnswer { - if x, ok := x.GetBody().(*PostAnswerRequest_Descriptive); ok { - return x.Descriptive + if x != nil { + if x, ok := x.Body.(*PostAnswerRequest_Descriptive); ok { + return x.Descriptive + } } return nil } @@ -552,11 +551,10 @@ func (*PostAnswerRequest_MultipleChoice) isPostAnswerRequest_Body() {} func (*PostAnswerRequest_Descriptive) isPostAnswerRequest_Body() {} type PostAnswerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Answer *Answer `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"` unknownFields protoimpl.UnknownFields - - Answer *Answer `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostAnswerResponse) Reset() { diff --git a/backend/internal/proto/contestant/v1/auth.pb.go b/backend/internal/proto/contestant/v1/auth.pb.go index 62294d06..a52dc849 100644 --- a/backend/internal/proto/contestant/v1/auth.pb.go +++ b/backend/internal/proto/contestant/v1/auth.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: contestant/v1/auth.proto @@ -22,9 +22,9 @@ const ( ) type GetCallbackRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetCallbackRequest) Reset() { @@ -58,11 +58,10 @@ func (*GetCallbackRequest) Descriptor() ([]byte, []int) { } type GetCallbackResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RedirectUri string `protobuf:"bytes,1,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` unknownFields protoimpl.UnknownFields - - RedirectUri string `protobuf:"bytes,1,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCallbackResponse) Reset() { @@ -103,11 +102,10 @@ func (x *GetCallbackResponse) GetRedirectUri() string { } type PostCodeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` unknownFields protoimpl.UnknownFields - - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostCodeRequest) Reset() { @@ -148,9 +146,9 @@ func (x *PostCodeRequest) GetCode() string { } type PostCodeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PostCodeResponse) Reset() { diff --git a/backend/internal/proto/contestant/v1/contestant.pb.go b/backend/internal/proto/contestant/v1/contestant.pb.go index 3d3ce84c..81cee7d3 100644 --- a/backend/internal/proto/contestant/v1/contestant.pb.go +++ b/backend/internal/proto/contestant/v1/contestant.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: contestant/v1/contestant.proto @@ -22,13 +22,12 @@ const ( ) type Contestant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + TeamId string `protobuf:"bytes,3,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - TeamId string `protobuf:"bytes,3,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Contestant) Reset() { @@ -83,9 +82,9 @@ func (x *Contestant) GetTeamId() string { } type GetMeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetMeRequest) Reset() { @@ -119,11 +118,10 @@ func (*GetMeRequest) Descriptor() ([]byte, []int) { } type GetMeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User *Contestant `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields - - User *Contestant `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMeResponse) Reset() { @@ -164,11 +162,10 @@ func (x *GetMeResponse) GetUser() *Contestant { } type GetContestantRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetContestantRequest) Reset() { @@ -209,11 +206,10 @@ func (x *GetContestantRequest) GetId() string { } type GetContestantResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User *Contestant `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields - - User *Contestant `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetContestantResponse) Reset() { @@ -254,12 +250,11 @@ func (x *GetContestantResponse) GetUser() *Contestant { } type PostContestantRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - InvitationCode string `protobuf:"bytes,2,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + InvitationCode string `protobuf:"bytes,2,opt,name=invitation_code,json=invitationCode,proto3" json:"invitation_code,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PostContestantRequest) Reset() { @@ -307,11 +302,10 @@ func (x *PostContestantRequest) GetInvitationCode() string { } type PostContestantResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User *Contestant `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields - - User *Contestant `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostContestantResponse) Reset() { @@ -352,11 +346,10 @@ func (x *PostContestantResponse) GetUser() *Contestant { } type PatchMeRequest 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"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchMeRequest) Reset() { @@ -397,11 +390,10 @@ func (x *PatchMeRequest) GetName() string { } type PatchMeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User *Contestant `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields - - User *Contestant `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PatchMeResponse) Reset() { diff --git a/backend/internal/proto/contestant/v1/problem.pb.go b/backend/internal/proto/contestant/v1/problem.pb.go index 0e81ae5a..09f56665 100644 --- a/backend/internal/proto/contestant/v1/problem.pb.go +++ b/backend/internal/proto/contestant/v1/problem.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: contestant/v1/problem.proto @@ -120,12 +120,11 @@ func (ProblemType) EnumDescriptor() ([]byte, []int) { } type Choice struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` unknownFields protoimpl.UnknownFields - - Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Choice) Reset() { @@ -173,15 +172,14 @@ func (x *Choice) GetBody() string { } type Question struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + Type QuestionType `protobuf:"varint,3,opt,name=type,proto3,enum=contestant.v1.QuestionType" json:"type,omitempty"` + Choices []*Choice `protobuf:"bytes,4,rep,name=choices,proto3" json:"choices,omitempty"` + Point int64 `protobuf:"varint,5,opt,name=point,proto3" json:"point,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` - Type QuestionType `protobuf:"varint,3,opt,name=type,proto3,enum=contestant.v1.QuestionType" json:"type,omitempty"` - Choices []*Choice `protobuf:"bytes,4,rep,name=choices,proto3" json:"choices,omitempty"` - Point int64 `protobuf:"varint,5,opt,name=point,proto3" json:"point,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Question) Reset() { @@ -250,12 +248,11 @@ func (x *Question) GetPoint() int64 { } type MultipleChoiceProblem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Body *string `protobuf:"bytes,1,opt,name=body,proto3,oneof" json:"body,omitempty"` + Questions []*Question `protobuf:"bytes,2,rep,name=questions,proto3" json:"questions,omitempty"` unknownFields protoimpl.UnknownFields - - Body *string `protobuf:"bytes,1,opt,name=body,proto3,oneof" json:"body,omitempty"` - Questions []*Question `protobuf:"bytes,2,rep,name=questions,proto3" json:"questions,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MultipleChoiceProblem) Reset() { @@ -303,14 +300,13 @@ func (x *MultipleChoiceProblem) GetQuestions() []*Question { } type ConnectionInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` + Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` + Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` unknownFields protoimpl.UnknownFields - - Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` - Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` - Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ConnectionInfo) Reset() { @@ -372,12 +368,11 @@ func (x *ConnectionInfo) GetType() string { } type DescriptiveProblem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` - ConnectionInfos []*ConnectionInfo `protobuf:"bytes,2,rep,name=connection_infos,json=connectionInfos,proto3" json:"connection_infos,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` + ConnectionInfos []*ConnectionInfo `protobuf:"bytes,2,rep,name=connection_infos,json=connectionInfos,proto3" json:"connection_infos,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DescriptiveProblem) Reset() { @@ -425,20 +420,19 @@ func (x *DescriptiveProblem) GetConnectionInfos() []*ConnectionInfo { } type Problem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` - Point int64 `protobuf:"varint,4,opt,name=point,proto3" json:"point,omitempty"` - Type ProblemType `protobuf:"varint,5,opt,name=type,proto3,enum=contestant.v1.ProblemType" json:"type,omitempty"` - // Types that are assignable to Body: + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` + Point int64 `protobuf:"varint,4,opt,name=point,proto3" json:"point,omitempty"` + Type ProblemType `protobuf:"varint,5,opt,name=type,proto3,enum=contestant.v1.ProblemType" json:"type,omitempty"` + // Types that are valid to be assigned to Body: // // *Problem_Descriptive // *Problem_MultipleChoice - Body isProblem_Body `protobuf_oneof:"body"` + Body isProblem_Body `protobuf_oneof:"body"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Problem) Reset() { @@ -506,23 +500,27 @@ func (x *Problem) GetType() ProblemType { return ProblemType_PROBLEM_TYPE_UNSPECIFIED } -func (m *Problem) GetBody() isProblem_Body { - if m != nil { - return m.Body +func (x *Problem) GetBody() isProblem_Body { + if x != nil { + return x.Body } return nil } func (x *Problem) GetDescriptive() *DescriptiveProblem { - if x, ok := x.GetBody().(*Problem_Descriptive); ok { - return x.Descriptive + if x != nil { + if x, ok := x.Body.(*Problem_Descriptive); ok { + return x.Descriptive + } } return nil } func (x *Problem) GetMultipleChoice() *MultipleChoiceProblem { - if x, ok := x.GetBody().(*Problem_MultipleChoice); ok { - return x.MultipleChoice + if x != nil { + if x, ok := x.Body.(*Problem_MultipleChoice); ok { + return x.MultipleChoice + } } return nil } @@ -544,9 +542,9 @@ func (*Problem_Descriptive) isProblem_Body() {} func (*Problem_MultipleChoice) isProblem_Body() {} type GetProblemsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetProblemsRequest) Reset() { @@ -580,11 +578,10 @@ func (*GetProblemsRequest) Descriptor() ([]byte, []int) { } type GetProblemsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Problems []*Problem `protobuf:"bytes,1,rep,name=problems,proto3" json:"problems,omitempty"` unknownFields protoimpl.UnknownFields - - Problems []*Problem `protobuf:"bytes,1,rep,name=problems,proto3" json:"problems,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetProblemsResponse) Reset() { diff --git a/backend/internal/proto/contestant/v1/ranking.pb.go b/backend/internal/proto/contestant/v1/ranking.pb.go index 7b6276c7..76d8633a 100644 --- a/backend/internal/proto/contestant/v1/ranking.pb.go +++ b/backend/internal/proto/contestant/v1/ranking.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: contestant/v1/ranking.proto @@ -22,13 +22,12 @@ const ( ) type Rank struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Rank int64 `protobuf:"varint,1,opt,name=rank,proto3" json:"rank,omitempty"` + Team *Team `protobuf:"bytes,2,opt,name=team,proto3" json:"team,omitempty"` + Point int64 `protobuf:"varint,3,opt,name=point,proto3" json:"point,omitempty"` unknownFields protoimpl.UnknownFields - - Rank int64 `protobuf:"varint,1,opt,name=rank,proto3" json:"rank,omitempty"` - Team *Team `protobuf:"bytes,2,opt,name=team,proto3" json:"team,omitempty"` - Point int64 `protobuf:"varint,3,opt,name=point,proto3" json:"point,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Rank) Reset() { @@ -83,9 +82,9 @@ func (x *Rank) GetPoint() int64 { } type GetRankingRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetRankingRequest) Reset() { @@ -119,11 +118,10 @@ func (*GetRankingRequest) Descriptor() ([]byte, []int) { } type GetRankingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ranking []*Rank `protobuf:"bytes,1,rep,name=ranking,proto3" json:"ranking,omitempty"` unknownFields protoimpl.UnknownFields - - Ranking []*Rank `protobuf:"bytes,1,rep,name=ranking,proto3" json:"ranking,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRankingResponse) Reset() { diff --git a/backend/internal/proto/contestant/v1/recreation.pb.go b/backend/internal/proto/contestant/v1/recreation.pb.go index 8e2e6950..bfeb2591 100644 --- a/backend/internal/proto/contestant/v1/recreation.pb.go +++ b/backend/internal/proto/contestant/v1/recreation.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: contestant/v1/recreation.proto @@ -72,14 +72,13 @@ func (Status) EnumDescriptor() ([]byte, []int) { } type Recreation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ProblemId string `protobuf:"bytes,2,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` + Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=contestant.v1.Status" json:"status,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProblemId string `protobuf:"bytes,2,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` - Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=contestant.v1.Status" json:"status,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Recreation) Reset() { @@ -141,11 +140,10 @@ func (x *Recreation) GetCreatedAt() *timestamppb.Timestamp { } type GetRecreationsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` unknownFields protoimpl.UnknownFields - - ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRecreationsRequest) Reset() { @@ -186,11 +184,10 @@ func (x *GetRecreationsRequest) GetProblemId() string { } type GetRecreationsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Recreations []*Recreation `protobuf:"bytes,1,rep,name=recreations,proto3" json:"recreations,omitempty"` unknownFields protoimpl.UnknownFields - - Recreations []*Recreation `protobuf:"bytes,1,rep,name=recreations,proto3" json:"recreations,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRecreationsResponse) Reset() { @@ -231,11 +228,10 @@ func (x *GetRecreationsResponse) GetRecreations() []*Recreation { } type PostRecreationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` unknownFields protoimpl.UnknownFields - - ProblemId string `protobuf:"bytes,1,opt,name=problem_id,json=problemId,proto3" json:"problem_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostRecreationRequest) Reset() { @@ -276,11 +272,10 @@ func (x *PostRecreationRequest) GetProblemId() string { } type PostRecreationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Recreation *Recreation `protobuf:"bytes,1,opt,name=recreation,proto3" json:"recreation,omitempty"` unknownFields protoimpl.UnknownFields - - Recreation *Recreation `protobuf:"bytes,1,opt,name=recreation,proto3" json:"recreation,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PostRecreationResponse) Reset() { diff --git a/backend/internal/proto/contestant/v1/rule.pb.go b/backend/internal/proto/contestant/v1/rule.pb.go index 75dc9f6d..122037f8 100644 --- a/backend/internal/proto/contestant/v1/rule.pb.go +++ b/backend/internal/proto/contestant/v1/rule.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: contestant/v1/rule.proto @@ -22,13 +22,12 @@ const ( ) type Rule struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` - ShortRule string `protobuf:"bytes,2,opt,name=short_rule,json=shortRule,proto3" json:"short_rule,omitempty"` - RecreationRule string `protobuf:"bytes,3,opt,name=recreation_rule,json=recreationRule,proto3" json:"recreation_rule,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` + ShortRule string `protobuf:"bytes,2,opt,name=short_rule,json=shortRule,proto3" json:"short_rule,omitempty"` + RecreationRule string `protobuf:"bytes,3,opt,name=recreation_rule,json=recreationRule,proto3" json:"recreation_rule,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Rule) Reset() { @@ -83,9 +82,9 @@ func (x *Rule) GetRecreationRule() string { } type GetRuleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetRuleRequest) Reset() { @@ -119,11 +118,10 @@ func (*GetRuleRequest) Descriptor() ([]byte, []int) { } type GetRuleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` unknownFields protoimpl.UnknownFields - - Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRuleResponse) Reset() { diff --git a/backend/internal/proto/contestant/v1/schedule.pb.go b/backend/internal/proto/contestant/v1/schedule.pb.go index 5d7111bc..9f388596 100644 --- a/backend/internal/proto/contestant/v1/schedule.pb.go +++ b/backend/internal/proto/contestant/v1/schedule.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: contestant/v1/schedule.proto @@ -72,13 +72,12 @@ func (Phases) EnumDescriptor() ([]byte, []int) { } type Schedule struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CurrentPhase Phases `protobuf:"varint,1,opt,name=current_phase,json=currentPhase,proto3,enum=contestant.v1.Phases" json:"current_phase,omitempty"` + EndAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"` + NextPhase Phases `protobuf:"varint,3,opt,name=next_phase,json=nextPhase,proto3,enum=contestant.v1.Phases" json:"next_phase,omitempty"` unknownFields protoimpl.UnknownFields - - CurrentPhase Phases `protobuf:"varint,1,opt,name=current_phase,json=currentPhase,proto3,enum=contestant.v1.Phases" json:"current_phase,omitempty"` - EndAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"` - NextPhase Phases `protobuf:"varint,3,opt,name=next_phase,json=nextPhase,proto3,enum=contestant.v1.Phases" json:"next_phase,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Schedule) Reset() { @@ -133,9 +132,9 @@ func (x *Schedule) GetNextPhase() Phases { } type GetScheduleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetScheduleRequest) Reset() { @@ -169,11 +168,10 @@ func (*GetScheduleRequest) Descriptor() ([]byte, []int) { } type GetScheduleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Schedules []*Schedule `protobuf:"bytes,1,rep,name=schedules,proto3" json:"schedules,omitempty"` unknownFields protoimpl.UnknownFields - - Schedules []*Schedule `protobuf:"bytes,1,rep,name=schedules,proto3" json:"schedules,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetScheduleResponse) Reset() { diff --git a/backend/internal/proto/contestant/v1/team.pb.go b/backend/internal/proto/contestant/v1/team.pb.go index a3049bdb..67632a4e 100644 --- a/backend/internal/proto/contestant/v1/team.pb.go +++ b/backend/internal/proto/contestant/v1/team.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc (unknown) // source: contestant/v1/team.proto @@ -22,14 +22,13 @@ const ( ) type Team struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Code int64 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Organization string `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Code int64 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Organization string `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Team) Reset() { @@ -91,9 +90,9 @@ func (x *Team) GetOrganization() string { } type GetTeamsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetTeamsRequest) Reset() { @@ -127,11 +126,10 @@ func (*GetTeamsRequest) Descriptor() ([]byte, []int) { } type GetTeamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Teams []*Team `protobuf:"bytes,1,rep,name=teams,proto3" json:"teams,omitempty"` unknownFields protoimpl.UnknownFields - - Teams []*Team `protobuf:"bytes,1,rep,name=teams,proto3" json:"teams,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTeamsResponse) Reset() { @@ -172,11 +170,10 @@ func (x *GetTeamsResponse) GetTeams() []*Team { } type GetTeamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTeamRequest) Reset() { @@ -217,11 +214,10 @@ func (x *GetTeamRequest) GetId() string { } type GetTeamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` unknownFields protoimpl.UnknownFields - - Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTeamResponse) Reset() { @@ -262,11 +258,10 @@ func (x *GetTeamResponse) GetTeam() *Team { } type GetMembersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMembersRequest) Reset() { @@ -307,11 +302,10 @@ func (x *GetMembersRequest) GetId() string { } type GetMembersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Members []*Contestant `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` unknownFields protoimpl.UnknownFields - - Members []*Contestant `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMembersResponse) Reset() { @@ -352,14 +346,13 @@ func (x *GetMembersResponse) GetMembers() []*Contestant { } type Bastion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` + Port int64 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` unknownFields protoimpl.UnknownFields - - User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` - Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` - Port int64 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Bastion) Reset() { @@ -421,9 +414,9 @@ func (x *Bastion) GetPort() int64 { } type GetConnectionInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetConnectionInfoRequest) Reset() { @@ -457,11 +450,10 @@ func (*GetConnectionInfoRequest) Descriptor() ([]byte, []int) { } type GetConnectionInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Bastion *Bastion `protobuf:"bytes,1,opt,name=bastion,proto3" json:"bastion,omitempty"` unknownFields protoimpl.UnknownFields - - Bastion *Bastion `protobuf:"bytes,1,opt,name=bastion,proto3" json:"bastion,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetConnectionInfoResponse) Reset() {