chore(api)!: updated grpc stubs
This commit is contained in:
+11
-14
@@ -81,8 +81,8 @@ type Task struct {
|
||||
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
|
||||
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
|
||||
InCompetitionPosition int32 `protobuf:"varint,5,opt,name=in_competition_position,json=inCompetitionPosition,proto3" json:"in_competition_position,omitempty"`
|
||||
MaxPoints *int32 `protobuf:"varint,6,opt,name=max_points,json=maxPoints,proto3,oneof" json:"max_points,omitempty"`
|
||||
MaxAttempts *int32 `protobuf:"varint,7,opt,name=max_attempts,json=maxAttempts,proto3,oneof" json:"max_attempts,omitempty"`
|
||||
MaxPoints int32 `protobuf:"varint,6,opt,name=max_points,json=maxPoints,proto3" json:"max_points,omitempty"`
|
||||
MaxAttempts int32 `protobuf:"varint,7,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"`
|
||||
Type TaskType `protobuf:"varint,8,opt,name=type,proto3,enum=task.TaskType" json:"type,omitempty"`
|
||||
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
||||
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
||||
@@ -156,15 +156,15 @@ func (x *Task) GetInCompetitionPosition() int32 {
|
||||
}
|
||||
|
||||
func (x *Task) GetMaxPoints() int32 {
|
||||
if x != nil && x.MaxPoints != nil {
|
||||
return *x.MaxPoints
|
||||
if x != nil {
|
||||
return x.MaxPoints
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Task) GetMaxAttempts() int32 {
|
||||
if x != nil && x.MaxAttempts != nil {
|
||||
return *x.MaxAttempts
|
||||
if x != nil {
|
||||
return x.MaxAttempts
|
||||
}
|
||||
return 0
|
||||
}
|
||||
@@ -474,24 +474,22 @@ var File_api_proto_task_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_api_proto_task_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x14api/proto/task.proto\x12\x04task\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb3\x03\n" +
|
||||
"\x14api/proto/task.proto\x12\x04task\x1a\x1fgoogle/protobuf/timestamp.proto\"\x89\x03\n" +
|
||||
"\x04Task\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\x12%\n" +
|
||||
"\x0ecompetition_id\x18\x02 \x01(\tR\rcompetitionId\x12\x14\n" +
|
||||
"\x05title\x18\x03 \x01(\tR\x05title\x12 \n" +
|
||||
"\vdescription\x18\x04 \x01(\tR\vdescription\x126\n" +
|
||||
"\x17in_competition_position\x18\x05 \x01(\x05R\x15inCompetitionPosition\x12\"\n" +
|
||||
"\x17in_competition_position\x18\x05 \x01(\x05R\x15inCompetitionPosition\x12\x1d\n" +
|
||||
"\n" +
|
||||
"max_points\x18\x06 \x01(\x05H\x00R\tmaxPoints\x88\x01\x01\x12&\n" +
|
||||
"\fmax_attempts\x18\a \x01(\x05H\x01R\vmaxAttempts\x88\x01\x01\x12\"\n" +
|
||||
"max_points\x18\x06 \x01(\x05R\tmaxPoints\x12!\n" +
|
||||
"\fmax_attempts\x18\a \x01(\x05R\vmaxAttempts\x12\"\n" +
|
||||
"\x04type\x18\b \x01(\x0e2\x0e.task.TaskTypeR\x04type\x129\n" +
|
||||
"\n" +
|
||||
"created_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\n" +
|
||||
" \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB\r\n" +
|
||||
"\v_max_pointsB\x0f\n" +
|
||||
"\r_max_attempts\"X\n" +
|
||||
" \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"X\n" +
|
||||
"\x0eTaskAttachment\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n" +
|
||||
"\bfile_url\x18\x02 \x01(\tR\afileUrl\x12\x1b\n" +
|
||||
@@ -567,7 +565,6 @@ func file_api_proto_task_proto_init() {
|
||||
if File_api_proto_task_proto != nil {
|
||||
return
|
||||
}
|
||||
file_api_proto_task_proto_msgTypes[0].OneofWrappers = []any{}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
|
||||
Reference in New Issue
Block a user