Initial commit
This commit is contained in:
@@ -0,0 +1,566 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc v6.33.2
|
||||
// source: api/proto/competition.proto
|
||||
|
||||
package competition
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type CompetitionState int32
|
||||
|
||||
const (
|
||||
CompetitionState_COMPETITION_STATE_UNSPECIFIED CompetitionState = 0
|
||||
CompetitionState_COMPETITION_STATE_NOT_STARTED CompetitionState = 1
|
||||
CompetitionState_COMPETITION_STATE_STARTED CompetitionState = 2
|
||||
CompetitionState_COMPETITION_STATE_FINISHED CompetitionState = 3
|
||||
)
|
||||
|
||||
// Enum value maps for CompetitionState.
|
||||
var (
|
||||
CompetitionState_name = map[int32]string{
|
||||
0: "COMPETITION_STATE_UNSPECIFIED",
|
||||
1: "COMPETITION_STATE_NOT_STARTED",
|
||||
2: "COMPETITION_STATE_STARTED",
|
||||
3: "COMPETITION_STATE_FINISHED",
|
||||
}
|
||||
CompetitionState_value = map[string]int32{
|
||||
"COMPETITION_STATE_UNSPECIFIED": 0,
|
||||
"COMPETITION_STATE_NOT_STARTED": 1,
|
||||
"COMPETITION_STATE_STARTED": 2,
|
||||
"COMPETITION_STATE_FINISHED": 3,
|
||||
}
|
||||
)
|
||||
|
||||
func (x CompetitionState) Enum() *CompetitionState {
|
||||
p := new(CompetitionState)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x CompetitionState) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (CompetitionState) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_api_proto_competition_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (CompetitionState) Type() protoreflect.EnumType {
|
||||
return &file_api_proto_competition_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x CompetitionState) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CompetitionState.Descriptor instead.
|
||||
func (CompetitionState) EnumDescriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type GetCompetitionRequest 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 *GetCompetitionRequest) Reset() {
|
||||
*x = GetCompetitionRequest{}
|
||||
mi := &file_api_proto_competition_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetCompetitionRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetCompetitionRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetCompetitionRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_proto_competition_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetCompetitionRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetCompetitionRequest) Descriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *GetCompetitionRequest) GetCompetitionId() string {
|
||||
if x != nil {
|
||||
return x.CompetitionId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GetCompetitionResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Competition *Competition `protobuf:"bytes,1,opt,name=competition,proto3" json:"competition,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GetCompetitionResponse) Reset() {
|
||||
*x = GetCompetitionResponse{}
|
||||
mi := &file_api_proto_competition_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetCompetitionResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetCompetitionResponse) ProtoMessage() {}
|
||||
|
||||
func (x *GetCompetitionResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_proto_competition_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetCompetitionResponse.ProtoReflect.Descriptor instead.
|
||||
func (*GetCompetitionResponse) Descriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *GetCompetitionResponse) GetCompetition() *Competition {
|
||||
if x != nil {
|
||||
return x.Competition
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListCompetitionsRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
IsParticipating bool `protobuf:"varint,1,opt,name=is_participating,json=isParticipating,proto3" json:"is_participating,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListCompetitionsRequest) Reset() {
|
||||
*x = ListCompetitionsRequest{}
|
||||
mi := &file_api_proto_competition_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListCompetitionsRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListCompetitionsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ListCompetitionsRequest) 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 ListCompetitionsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ListCompetitionsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *ListCompetitionsRequest) GetIsParticipating() bool {
|
||||
if x != nil {
|
||||
return x.IsParticipating
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type ListCompetitionsResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Competitions []*Competition `protobuf:"bytes,1,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]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListCompetitionsResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListCompetitionsResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListCompetitionsResponse) 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 ListCompetitionsResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListCompetitionsResponse) Descriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *ListCompetitionsResponse) GetCompetitions() []*Competition {
|
||||
if x != nil {
|
||||
return x.Competitions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ChangeCompetitionStateRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
CompetitionId string `protobuf:"bytes,1,opt,name=competition_id,json=competitionId,proto3" json:"competition_id,omitempty"`
|
||||
State CompetitionState `protobuf:"varint,2,opt,name=state,proto3,enum=competition.CompetitionState" json:"state,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ChangeCompetitionStateRequest) Reset() {
|
||||
*x = ChangeCompetitionStateRequest{}
|
||||
mi := &file_api_proto_competition_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ChangeCompetitionStateRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ChangeCompetitionStateRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ChangeCompetitionStateRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_proto_competition_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ChangeCompetitionStateRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ChangeCompetitionStateRequest) Descriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *ChangeCompetitionStateRequest) GetCompetitionId() string {
|
||||
if x != nil {
|
||||
return x.CompetitionId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ChangeCompetitionStateRequest) GetState() CompetitionState {
|
||||
if x != nil {
|
||||
return x.State
|
||||
}
|
||||
return CompetitionState_COMPETITION_STATE_UNSPECIFIED
|
||||
}
|
||||
|
||||
type ChangeCompetitionStateResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
State CompetitionState `protobuf:"varint,1,opt,name=state,proto3,enum=competition.CompetitionState" json:"state,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ChangeCompetitionStateResponse) Reset() {
|
||||
*x = ChangeCompetitionStateResponse{}
|
||||
mi := &file_api_proto_competition_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ChangeCompetitionStateResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ChangeCompetitionStateResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ChangeCompetitionStateResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_proto_competition_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ChangeCompetitionStateResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ChangeCompetitionStateResponse) Descriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *ChangeCompetitionStateResponse) GetState() CompetitionState {
|
||||
if x != nil {
|
||||
return x.State
|
||||
}
|
||||
return CompetitionState_COMPETITION_STATE_UNSPECIFIED
|
||||
}
|
||||
|
||||
type Competition struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
State CompetitionState `protobuf:"varint,2,opt,name=state,proto3,enum=competition.CompetitionState" json:"state,omitempty"`
|
||||
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
|
||||
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
|
||||
ImageUrl *string `protobuf:"bytes,5,opt,name=image_url,json=imageUrl,proto3,oneof" json:"image_url,omitempty"`
|
||||
EndDate *string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3,oneof" json:"end_date,omitempty"`
|
||||
StartDate *string `protobuf:"bytes,7,opt,name=start_date,json=startDate,proto3,oneof" json:"start_date,omitempty"`
|
||||
Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"`
|
||||
ParticipationType string `protobuf:"bytes,9,opt,name=participation_type,json=participationType,proto3" json:"participation_type,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Competition) Reset() {
|
||||
*x = Competition{}
|
||||
mi := &file_api_proto_competition_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Competition) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Competition) ProtoMessage() {}
|
||||
|
||||
func (x *Competition) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_api_proto_competition_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Competition.ProtoReflect.Descriptor instead.
|
||||
func (*Competition) Descriptor() ([]byte, []int) {
|
||||
return file_api_proto_competition_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *Competition) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Competition) GetState() CompetitionState {
|
||||
if x != nil {
|
||||
return x.State
|
||||
}
|
||||
return CompetitionState_COMPETITION_STATE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (x *Competition) GetTitle() string {
|
||||
if x != nil {
|
||||
return x.Title
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Competition) GetDescription() string {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Competition) GetImageUrl() string {
|
||||
if x != nil && x.ImageUrl != nil {
|
||||
return *x.ImageUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Competition) GetEndDate() string {
|
||||
if x != nil && x.EndDate != nil {
|
||||
return *x.EndDate
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Competition) GetStartDate() string {
|
||||
if x != nil && x.StartDate != nil {
|
||||
return *x.StartDate
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Competition) GetType() string {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Competition) GetParticipationType() string {
|
||||
if x != nil {
|
||||
return x.ParticipationType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_api_proto_competition_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_api_proto_competition_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x1bapi/proto/competition.proto\x12\vcompetition\">\n" +
|
||||
"\x15GetCompetitionRequest\x12%\n" +
|
||||
"\x0ecompetition_id\x18\x01 \x01(\tR\rcompetitionId\"T\n" +
|
||||
"\x16GetCompetitionResponse\x12:\n" +
|
||||
"\vcompetition\x18\x01 \x01(\v2\x18.competition.CompetitionR\vcompetition\"D\n" +
|
||||
"\x17ListCompetitionsRequest\x12)\n" +
|
||||
"\x10is_participating\x18\x01 \x01(\bR\x0fisParticipating\"X\n" +
|
||||
"\x18ListCompetitionsResponse\x12<\n" +
|
||||
"\fcompetitions\x18\x01 \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\"U\n" +
|
||||
"\x1eChangeCompetitionStateResponse\x123\n" +
|
||||
"\x05state\x18\x01 \x01(\x0e2\x1d.competition.CompetitionStateR\x05state\"\xdd\x02\n" +
|
||||
"\vCompetition\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\x123\n" +
|
||||
"\x05state\x18\x02 \x01(\x0e2\x1d.competition.CompetitionStateR\x05state\x12\x14\n" +
|
||||
"\x05title\x18\x03 \x01(\tR\x05title\x12 \n" +
|
||||
"\vdescription\x18\x04 \x01(\tR\vdescription\x12 \n" +
|
||||
"\timage_url\x18\x05 \x01(\tH\x00R\bimageUrl\x88\x01\x01\x12\x1e\n" +
|
||||
"\bend_date\x18\x06 \x01(\tH\x01R\aendDate\x88\x01\x01\x12\"\n" +
|
||||
"\n" +
|
||||
"start_date\x18\a \x01(\tH\x02R\tstartDate\x88\x01\x01\x12\x12\n" +
|
||||
"\x04type\x18\b \x01(\tR\x04type\x12-\n" +
|
||||
"\x12participation_type\x18\t \x01(\tR\x11participationTypeB\f\n" +
|
||||
"\n" +
|
||||
"_image_urlB\v\n" +
|
||||
"\t_end_dateB\r\n" +
|
||||
"\v_start_date*\x97\x01\n" +
|
||||
"\x10CompetitionState\x12!\n" +
|
||||
"\x1dCOMPETITION_STATE_UNSPECIFIED\x10\x00\x12!\n" +
|
||||
"\x1dCOMPETITION_STATE_NOT_STARTED\x10\x01\x12\x1d\n" +
|
||||
"\x19COMPETITION_STATE_STARTED\x10\x02\x12\x1e\n" +
|
||||
"\x1aCOMPETITION_STATE_FINISHED\x10\x032\xc3\x02\n" +
|
||||
"\x12CompetitionService\x12Y\n" +
|
||||
"\x0eGetCompetition\x12\".competition.GetCompetitionRequest\x1a#.competition.GetCompetitionResponse\x12_\n" +
|
||||
"\x10ListCompetitions\x12$.competition.ListCompetitionsRequest\x1a%.competition.ListCompetitionsResponse\x12q\n" +
|
||||
"\x16ChangeCompetitionState\x12*.competition.ChangeCompetitionStateRequest\x1a+.competition.ChangeCompetitionStateResponseB\x15Z\x13pkg/api/competitionb\x06proto3"
|
||||
|
||||
var (
|
||||
file_api_proto_competition_proto_rawDescOnce sync.Once
|
||||
file_api_proto_competition_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_api_proto_competition_proto_rawDescGZIP() []byte {
|
||||
file_api_proto_competition_proto_rawDescOnce.Do(func() {
|
||||
file_api_proto_competition_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_proto_competition_proto_rawDesc), len(file_api_proto_competition_proto_rawDesc)))
|
||||
})
|
||||
return file_api_proto_competition_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_api_proto_competition_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_api_proto_competition_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_api_proto_competition_proto_goTypes = []any{
|
||||
(CompetitionState)(0), // 0: competition.CompetitionState
|
||||
(*GetCompetitionRequest)(nil), // 1: competition.GetCompetitionRequest
|
||||
(*GetCompetitionResponse)(nil), // 2: competition.GetCompetitionResponse
|
||||
(*ListCompetitionsRequest)(nil), // 3: competition.ListCompetitionsRequest
|
||||
(*ListCompetitionsResponse)(nil), // 4: competition.ListCompetitionsResponse
|
||||
(*ChangeCompetitionStateRequest)(nil), // 5: competition.ChangeCompetitionStateRequest
|
||||
(*ChangeCompetitionStateResponse)(nil), // 6: competition.ChangeCompetitionStateResponse
|
||||
(*Competition)(nil), // 7: competition.Competition
|
||||
}
|
||||
var file_api_proto_competition_proto_depIdxs = []int32{
|
||||
7, // 0: competition.GetCompetitionResponse.competition:type_name -> competition.Competition
|
||||
7, // 1: competition.ListCompetitionsResponse.competitions:type_name -> competition.Competition
|
||||
0, // 2: competition.ChangeCompetitionStateRequest.state:type_name -> competition.CompetitionState
|
||||
0, // 3: competition.ChangeCompetitionStateResponse.state:type_name -> competition.CompetitionState
|
||||
0, // 4: competition.Competition.state:type_name -> competition.CompetitionState
|
||||
1, // 5: competition.CompetitionService.GetCompetition:input_type -> competition.GetCompetitionRequest
|
||||
3, // 6: competition.CompetitionService.ListCompetitions:input_type -> competition.ListCompetitionsRequest
|
||||
5, // 7: competition.CompetitionService.ChangeCompetitionState:input_type -> competition.ChangeCompetitionStateRequest
|
||||
2, // 8: competition.CompetitionService.GetCompetition:output_type -> competition.GetCompetitionResponse
|
||||
4, // 9: competition.CompetitionService.ListCompetitions:output_type -> competition.ListCompetitionsResponse
|
||||
6, // 10: competition.CompetitionService.ChangeCompetitionState:output_type -> competition.ChangeCompetitionStateResponse
|
||||
8, // [8:11] is the sub-list for method output_type
|
||||
5, // [5:8] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
5, // [5:5] is the sub-list for extension extendee
|
||||
0, // [0:5] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_api_proto_competition_proto_init() }
|
||||
func file_api_proto_competition_proto_init() {
|
||||
if File_api_proto_competition_proto != nil {
|
||||
return
|
||||
}
|
||||
file_api_proto_competition_proto_msgTypes[6].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: 1,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_api_proto_competition_proto_goTypes,
|
||||
DependencyIndexes: file_api_proto_competition_proto_depIdxs,
|
||||
EnumInfos: file_api_proto_competition_proto_enumTypes,
|
||||
MessageInfos: file_api_proto_competition_proto_msgTypes,
|
||||
}.Build()
|
||||
File_api_proto_competition_proto = out.File
|
||||
file_api_proto_competition_proto_goTypes = nil
|
||||
file_api_proto_competition_proto_depIdxs = nil
|
||||
}
|
||||
Reference in New Issue
Block a user