chore(api)!: updated grpc files
This commit is contained in:
@@ -346,6 +346,94 @@ func (x *GetCompetitionRequest) GetCompetitionId() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type DeleteCompetitionRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
CompetitionId string `protobuf:"bytes,1,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DeleteCompetitionRequest) Reset() {
|
||||
*x = DeleteCompetitionRequest{}
|
||||
mi := &file_api_proto_competition_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *DeleteCompetitionRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DeleteCompetitionRequest) ProtoMessage() {}
|
||||
|
||||
func (x *DeleteCompetitionRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_proto_competition_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DeleteCompetitionRequest.ProtoReflect.Descriptor instead.
|
||||
func (*DeleteCompetitionRequest) Descriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *DeleteCompetitionRequest) GetCompetitionId() string {
|
||||
if x != nil {
|
||||
return x.CompetitionId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type DeleteCompetitionResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DeleteCompetitionResponse) Reset() {
|
||||
*x = DeleteCompetitionResponse{}
|
||||
mi := &file_api_proto_competition_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *DeleteCompetitionResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DeleteCompetitionResponse) ProtoMessage() {}
|
||||
|
||||
func (x *DeleteCompetitionResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_proto_competition_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DeleteCompetitionResponse.ProtoReflect.Descriptor instead.
|
||||
func (*DeleteCompetitionResponse) Descriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *DeleteCompetitionResponse) GetSuccess() bool {
|
||||
if x != nil {
|
||||
return x.Success
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type ListCompetitionsRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||||
@@ -359,7 +447,7 @@ type ListCompetitionsRequest struct {
|
||||
|
||||
func (x *ListCompetitionsRequest) Reset() {
|
||||
*x = ListCompetitionsRequest{}
|
||||
mi := &file_api_proto_competition_proto_msgTypes[2]
|
||||
mi := &file_api_proto_competition_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -371,7 +459,7 @@ func (x *ListCompetitionsRequest) String() string {
|
||||
func (*ListCompetitionsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ListCompetitionsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_proto_competition_proto_msgTypes[2]
|
||||
mi := &file_api_proto_competition_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -384,7 +472,7 @@ func (x *ListCompetitionsRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ListCompetitionsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ListCompetitionsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{2}
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *ListCompetitionsRequest) GetPageSize() int32 {
|
||||
@@ -424,16 +512,16 @@ func (x *ListCompetitionsRequest) GetSearchQuery() string {
|
||||
|
||||
type ListCompetitionsResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
|
||||
NextPageToken int32 `protobuf:"varint,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
||||
Competitions []*Competition `protobuf:"bytes,1,rep,name=competitions,proto3" json:"competitions,omitempty"`
|
||||
TotalCount int32 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
|
||||
NextPageToken int32 `protobuf:"varint,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
||||
Competitions []*Competition `protobuf:"bytes,3,rep,name=competitions,proto3" json:"competitions,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListCompetitionsResponse) Reset() {
|
||||
*x = ListCompetitionsResponse{}
|
||||
mi := &file_api_proto_competition_proto_msgTypes[3]
|
||||
mi := &file_api_proto_competition_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -445,7 +533,7 @@ func (x *ListCompetitionsResponse) String() string {
|
||||
func (*ListCompetitionsResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListCompetitionsResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_proto_competition_proto_msgTypes[3]
|
||||
mi := &file_api_proto_competition_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -458,7 +546,7 @@ func (x *ListCompetitionsResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ListCompetitionsResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListCompetitionsResponse) Descriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{3}
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *ListCompetitionsResponse) GetTotalCount() int32 {
|
||||
@@ -492,7 +580,7 @@ type ChangeCompetitionStateRequest struct {
|
||||
|
||||
func (x *ChangeCompetitionStateRequest) Reset() {
|
||||
*x = ChangeCompetitionStateRequest{}
|
||||
mi := &file_api_proto_competition_proto_msgTypes[4]
|
||||
mi := &file_api_proto_competition_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -504,7 +592,7 @@ func (x *ChangeCompetitionStateRequest) String() string {
|
||||
func (*ChangeCompetitionStateRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ChangeCompetitionStateRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_proto_competition_proto_msgTypes[4]
|
||||
mi := &file_api_proto_competition_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -517,7 +605,7 @@ func (x *ChangeCompetitionStateRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ChangeCompetitionStateRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ChangeCompetitionStateRequest) Descriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{4}
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *ChangeCompetitionStateRequest) GetCompetitionId() string {
|
||||
@@ -558,7 +646,11 @@ const file_api_proto_competition_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"_image_url\">\n" +
|
||||
"\x15GetCompetitionRequest\x12%\n" +
|
||||
"\x0ecompetition_id\x18\x01 \x01(\tR\rcompetitionId\"\x97\x02\n" +
|
||||
"\x0ecompetition_id\x18\x01 \x01(\tR\rcompetitionId\"A\n" +
|
||||
"\x18DeleteCompetitionRequest\x12%\n" +
|
||||
"\x0ecompetition_id\x18\x01 \x01(\tR\rcompetitionId\"5\n" +
|
||||
"\x19DeleteCompetitionResponse\x12\x18\n" +
|
||||
"\asuccess\x18\x01 \x01(\bR\asuccess\"\x97\x02\n" +
|
||||
"\x17ListCompetitionsRequest\x12\x1b\n" +
|
||||
"\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" +
|
||||
"\n" +
|
||||
@@ -570,10 +662,10 @@ const file_api_proto_competition_proto_rawDesc = "" +
|
||||
"\x11_is_participatingB\x0f\n" +
|
||||
"\r_search_query\"\xa1\x01\n" +
|
||||
"\x18ListCompetitionsResponse\x12\x1f\n" +
|
||||
"\vtotal_count\x18\x02 \x01(\x05R\n" +
|
||||
"\vtotal_count\x18\x01 \x01(\x05R\n" +
|
||||
"totalCount\x12&\n" +
|
||||
"\x0fnext_page_token\x18\x03 \x01(\x05R\rnextPageToken\x12<\n" +
|
||||
"\fcompetitions\x18\x01 \x03(\v2\x18.competition.CompetitionR\fcompetitions\"{\n" +
|
||||
"\x0fnext_page_token\x18\x02 \x01(\x05R\rnextPageToken\x12<\n" +
|
||||
"\fcompetitions\x18\x03 \x03(\v2\x18.competition.CompetitionR\fcompetitions\"{\n" +
|
||||
"\x1dChangeCompetitionStateRequest\x12%\n" +
|
||||
"\x0ecompetition_id\x18\x01 \x01(\tR\rcompetitionId\x123\n" +
|
||||
"\x05state\x18\x02 \x01(\x0e2\x1d.competition.CompetitionStateR\x05state*\xd4\x01\n" +
|
||||
@@ -591,9 +683,12 @@ const file_api_proto_competition_proto_rawDesc = "" +
|
||||
"\x0fCompetitionType\x12 \n" +
|
||||
"\x1cCOMPETITION_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n" +
|
||||
"\x1aCOMPETITION_TYPE_EDUCATIVE\x10\x01\x12 \n" +
|
||||
"\x1cCOMPETITION_TYPE_COMPETETIVE\x10\x022\xa5\x02\n" +
|
||||
"\x12CompetitionService\x12N\n" +
|
||||
"\x0eGetCompetition\x12\".competition.GetCompetitionRequest\x1a\x18.competition.Competition\x12_\n" +
|
||||
"\x1cCOMPETITION_TYPE_COMPETETIVE\x10\x022\x99\x04\n" +
|
||||
"\x12CompetitionService\x12G\n" +
|
||||
"\x11CreateCompetition\x12\x18.competition.Competition\x1a\x18.competition.Competition\x12N\n" +
|
||||
"\x0eGetCompetition\x12\".competition.GetCompetitionRequest\x1a\x18.competition.Competition\x12E\n" +
|
||||
"\x0fEditCompetition\x12\x18.competition.Competition\x1a\x18.competition.Competition\x12b\n" +
|
||||
"\x11DeleteCompetition\x12%.competition.DeleteCompetitionRequest\x1a&.competition.DeleteCompetitionResponse\x12_\n" +
|
||||
"\x10ListCompetitions\x12$.competition.ListCompetitionsRequest\x1a%.competition.ListCompetitionsResponse\x12^\n" +
|
||||
"\x16ChangeCompetitionState\x12*.competition.ChangeCompetitionStateRequest\x1a\x18.competition.CompetitionB\x15Z\x13pkg/api/competitionb\x06proto3"
|
||||
|
||||
@@ -610,37 +705,45 @@ func file_api_proto_competition_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_api_proto_competition_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
||||
var file_api_proto_competition_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||
var file_api_proto_competition_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_api_proto_competition_proto_goTypes = []any{
|
||||
(CompetitionState)(0), // 0: competition.CompetitionState
|
||||
(ParticipationType)(0), // 1: competition.ParticipationType
|
||||
(CompetitionType)(0), // 2: competition.CompetitionType
|
||||
(*Competition)(nil), // 3: competition.Competition
|
||||
(*GetCompetitionRequest)(nil), // 4: competition.GetCompetitionRequest
|
||||
(*ListCompetitionsRequest)(nil), // 5: competition.ListCompetitionsRequest
|
||||
(*ListCompetitionsResponse)(nil), // 6: competition.ListCompetitionsResponse
|
||||
(*ChangeCompetitionStateRequest)(nil), // 7: competition.ChangeCompetitionStateRequest
|
||||
(*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp
|
||||
(*DeleteCompetitionRequest)(nil), // 5: competition.DeleteCompetitionRequest
|
||||
(*DeleteCompetitionResponse)(nil), // 6: competition.DeleteCompetitionResponse
|
||||
(*ListCompetitionsRequest)(nil), // 7: competition.ListCompetitionsRequest
|
||||
(*ListCompetitionsResponse)(nil), // 8: competition.ListCompetitionsResponse
|
||||
(*ChangeCompetitionStateRequest)(nil), // 9: competition.ChangeCompetitionStateRequest
|
||||
(*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp
|
||||
}
|
||||
var file_api_proto_competition_proto_depIdxs = []int32{
|
||||
0, // 0: competition.Competition.state:type_name -> competition.CompetitionState
|
||||
8, // 1: competition.Competition.start_time:type_name -> google.protobuf.Timestamp
|
||||
8, // 2: competition.Competition.end_time:type_name -> google.protobuf.Timestamp
|
||||
10, // 1: competition.Competition.start_time:type_name -> google.protobuf.Timestamp
|
||||
10, // 2: competition.Competition.end_time:type_name -> google.protobuf.Timestamp
|
||||
2, // 3: competition.Competition.type:type_name -> competition.CompetitionType
|
||||
1, // 4: competition.Competition.participation_type:type_name -> competition.ParticipationType
|
||||
8, // 5: competition.Competition.created_at:type_name -> google.protobuf.Timestamp
|
||||
8, // 6: competition.Competition.updated_at:type_name -> google.protobuf.Timestamp
|
||||
10, // 5: competition.Competition.created_at:type_name -> google.protobuf.Timestamp
|
||||
10, // 6: competition.Competition.updated_at:type_name -> google.protobuf.Timestamp
|
||||
0, // 7: competition.ListCompetitionsRequest.state:type_name -> competition.CompetitionState
|
||||
3, // 8: competition.ListCompetitionsResponse.competitions:type_name -> competition.Competition
|
||||
0, // 9: competition.ChangeCompetitionStateRequest.state:type_name -> competition.CompetitionState
|
||||
4, // 10: competition.CompetitionService.GetCompetition:input_type -> competition.GetCompetitionRequest
|
||||
5, // 11: competition.CompetitionService.ListCompetitions:input_type -> competition.ListCompetitionsRequest
|
||||
7, // 12: competition.CompetitionService.ChangeCompetitionState:input_type -> competition.ChangeCompetitionStateRequest
|
||||
3, // 13: competition.CompetitionService.GetCompetition:output_type -> competition.Competition
|
||||
6, // 14: competition.CompetitionService.ListCompetitions:output_type -> competition.ListCompetitionsResponse
|
||||
3, // 15: competition.CompetitionService.ChangeCompetitionState:output_type -> competition.Competition
|
||||
13, // [13:16] is the sub-list for method output_type
|
||||
10, // [10:13] is the sub-list for method input_type
|
||||
3, // 10: competition.CompetitionService.CreateCompetition:input_type -> competition.Competition
|
||||
4, // 11: competition.CompetitionService.GetCompetition:input_type -> competition.GetCompetitionRequest
|
||||
3, // 12: competition.CompetitionService.EditCompetition:input_type -> competition.Competition
|
||||
5, // 13: competition.CompetitionService.DeleteCompetition:input_type -> competition.DeleteCompetitionRequest
|
||||
7, // 14: competition.CompetitionService.ListCompetitions:input_type -> competition.ListCompetitionsRequest
|
||||
9, // 15: competition.CompetitionService.ChangeCompetitionState:input_type -> competition.ChangeCompetitionStateRequest
|
||||
3, // 16: competition.CompetitionService.CreateCompetition:output_type -> competition.Competition
|
||||
3, // 17: competition.CompetitionService.GetCompetition:output_type -> competition.Competition
|
||||
3, // 18: competition.CompetitionService.EditCompetition:output_type -> competition.Competition
|
||||
6, // 19: competition.CompetitionService.DeleteCompetition:output_type -> competition.DeleteCompetitionResponse
|
||||
8, // 20: competition.CompetitionService.ListCompetitions:output_type -> competition.ListCompetitionsResponse
|
||||
3, // 21: competition.CompetitionService.ChangeCompetitionState:output_type -> competition.Competition
|
||||
16, // [16:22] is the sub-list for method output_type
|
||||
10, // [10:16] is the sub-list for method input_type
|
||||
10, // [10:10] is the sub-list for extension type_name
|
||||
10, // [10:10] is the sub-list for extension extendee
|
||||
0, // [0:10] is the sub-list for field type_name
|
||||
@@ -652,14 +755,14 @@ func file_api_proto_competition_proto_init() {
|
||||
return
|
||||
}
|
||||
file_api_proto_competition_proto_msgTypes[0].OneofWrappers = []any{}
|
||||
file_api_proto_competition_proto_msgTypes[2].OneofWrappers = []any{}
|
||||
file_api_proto_competition_proto_msgTypes[4].OneofWrappers = []any{}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_proto_competition_proto_rawDesc), len(file_api_proto_competition_proto_rawDesc)),
|
||||
NumEnums: 3,
|
||||
NumMessages: 5,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user