gas

package
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssignmentService_CreateCourse_FullMethodName              = "/gas.AssignmentService/CreateCourse"
	AssignmentService_JoinAssignment_FullMethodName            = "/gas.AssignmentService/JoinAssignment"
	AssignmentService_CreateAssignment_FullMethodName          = "/gas.AssignmentService/CreateAssignment"
	AssignmentService_ListCourses_FullMethodName               = "/gas.AssignmentService/ListCourses"
	AssignmentService_UpdateAssignment_FullMethodName          = "/gas.AssignmentService/UpdateAssignment"
	AssignmentService_GetAssignment_FullMethodName             = "/gas.AssignmentService/GetAssignment"
	AssignmentService_GetUserAssignments_FullMethodName        = "/gas.AssignmentService/GetUserAssignments"
	AssignmentService_GetAssignmentByInviteCode_FullMethodName = "/gas.AssignmentService/GetAssignmentByInviteCode"
	AssignmentService_ListAssignments_FullMethodName           = "/gas.AssignmentService/ListAssignments"
	AssignmentService_DeleteAssignment_FullMethodName          = "/gas.AssignmentService/DeleteAssignment"
	AssignmentService_SubmitAssignment_FullMethodName          = "/gas.AssignmentService/SubmitAssignment"
	AssignmentService_ListSubmissions_FullMethodName           = "/gas.AssignmentService/ListSubmissions"
	AssignmentService_GetSubmission_FullMethodName             = "/gas.AssignmentService/GetSubmission"
)

Variables

View Source
var (
	AssignmentStatus_name = map[int32]string{
		0: "UNDEFINED",
		1: "OPEN",
		2: "CLOSED",
		3: "DRAFT",
	}
	AssignmentStatus_value = map[string]int32{
		"UNDEFINED": 0,
		"OPEN":      1,
		"CLOSED":    2,
		"DRAFT":     3,
	}
)

Enum value maps for AssignmentStatus.

View Source
var (
	AssignmentType_name = map[int32]string{
		0: "INDIVIDUAL",
		1: "GROUP",
	}
	AssignmentType_value = map[string]int32{
		"INDIVIDUAL": 0,
		"GROUP":      1,
	}
)

Enum value maps for AssignmentType.

View Source
var (
	SubmissionStatus_name = map[int32]string{
		0: "NOT_GRADED",
		1: "GRADED",
	}
	SubmissionStatus_value = map[string]int32{
		"NOT_GRADED": 0,
		"GRADED":     1,
	}
)

Enum value maps for SubmissionStatus.

View Source
var AssignmentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gas.AssignmentService",
	HandlerType: (*AssignmentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateCourse",
			Handler:    _AssignmentService_CreateCourse_Handler,
		},
		{
			MethodName: "JoinAssignment",
			Handler:    _AssignmentService_JoinAssignment_Handler,
		},
		{
			MethodName: "CreateAssignment",
			Handler:    _AssignmentService_CreateAssignment_Handler,
		},
		{
			MethodName: "ListCourses",
			Handler:    _AssignmentService_ListCourses_Handler,
		},
		{
			MethodName: "UpdateAssignment",
			Handler:    _AssignmentService_UpdateAssignment_Handler,
		},
		{
			MethodName: "GetAssignment",
			Handler:    _AssignmentService_GetAssignment_Handler,
		},
		{
			MethodName: "GetUserAssignments",
			Handler:    _AssignmentService_GetUserAssignments_Handler,
		},
		{
			MethodName: "GetAssignmentByInviteCode",
			Handler:    _AssignmentService_GetAssignmentByInviteCode_Handler,
		},
		{
			MethodName: "ListAssignments",
			Handler:    _AssignmentService_ListAssignments_Handler,
		},
		{
			MethodName: "DeleteAssignment",
			Handler:    _AssignmentService_DeleteAssignment_Handler,
		},
		{
			MethodName: "SubmitAssignment",
			Handler:    _AssignmentService_SubmitAssignment_Handler,
		},
		{
			MethodName: "ListSubmissions",
			Handler:    _AssignmentService_ListSubmissions_Handler,
		},
		{
			MethodName: "GetSubmission",
			Handler:    _AssignmentService_GetSubmission_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service_assignment_service.proto",
}

AssignmentService_ServiceDesc is the grpc.ServiceDesc for AssignmentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_assignment_proto protoreflect.FileDescriptor
View Source
var File_course_proto protoreflect.FileDescriptor
View Source
var File_service_assignment_service_proto protoreflect.FileDescriptor
View Source
var File_submission_proto protoreflect.FileDescriptor
View Source
var File_user_assignments_proto protoreflect.FileDescriptor

Functions

func RegisterAssignmentServiceServer

func RegisterAssignmentServiceServer(s grpc.ServiceRegistrar, srv AssignmentServiceServer)

Types

type Assignment

type Assignment struct {
	Id              string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title           string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description     string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	CourseId        string                 `protobuf:"bytes,4,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"`
	UserId          string                 `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CreationDate    *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
	DueDate         *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=due_date,json=dueDate,proto3" json:"due_date,omitempty"`
	EndDate         *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	Status          AssignmentStatus       `protobuf:"varint,9,opt,name=status,proto3,enum=gas.AssignmentStatus" json:"status,omitempty"`
	AssignmentType  AssignmentType         `` /* 129-byte string literal not displayed */
	PlagiarismCheck bool                   `protobuf:"varint,11,opt,name=plagiarism_check,json=plagiarismCheck,proto3" json:"plagiarism_check,omitempty"`
	AutoGrade       bool                   `protobuf:"varint,12,opt,name=auto_grade,json=autoGrade,proto3" json:"auto_grade,omitempty"`
	InviteCode      string                 `protobuf:"bytes,13,opt,name=invite_code,json=inviteCode,proto3" json:"invite_code,omitempty"`
	RepoId          string                 `protobuf:"bytes,14,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// contains filtered or unexported fields
}

Message for Assignments

func (*Assignment) Descriptor deprecated

func (*Assignment) Descriptor() ([]byte, []int)

Deprecated: Use Assignment.ProtoReflect.Descriptor instead.

func (*Assignment) GetAssignmentType

func (x *Assignment) GetAssignmentType() AssignmentType

func (*Assignment) GetAutoGrade

func (x *Assignment) GetAutoGrade() bool

func (*Assignment) GetCourseId

func (x *Assignment) GetCourseId() string

func (*Assignment) GetCreationDate

func (x *Assignment) GetCreationDate() *timestamppb.Timestamp

func (*Assignment) GetDescription

func (x *Assignment) GetDescription() string

func (*Assignment) GetDueDate

func (x *Assignment) GetDueDate() *timestamppb.Timestamp

func (*Assignment) GetEndDate

func (x *Assignment) GetEndDate() *timestamppb.Timestamp

func (*Assignment) GetId

func (x *Assignment) GetId() string

func (*Assignment) GetInviteCode

func (x *Assignment) GetInviteCode() string

func (*Assignment) GetPlagiarismCheck

func (x *Assignment) GetPlagiarismCheck() bool

func (*Assignment) GetRepoId

func (x *Assignment) GetRepoId() string

func (*Assignment) GetStatus

func (x *Assignment) GetStatus() AssignmentStatus

func (*Assignment) GetTitle

func (x *Assignment) GetTitle() string

func (*Assignment) GetUserId

func (x *Assignment) GetUserId() string

func (*Assignment) ProtoMessage

func (*Assignment) ProtoMessage()

func (*Assignment) ProtoReflect

func (x *Assignment) ProtoReflect() protoreflect.Message

func (*Assignment) Reset

func (x *Assignment) Reset()

func (*Assignment) String

func (x *Assignment) String() string

type AssignmentServiceClient

type AssignmentServiceClient interface {
	// Create an new course
	CreateCourse(ctx context.Context, in *CreateCourseRequest, opts ...grpc.CallOption) (*Course, error)
	JoinAssignment(ctx context.Context, in *JoinAssignmentRequest, opts ...grpc.CallOption) (*JoinAssignmentResponse, error)
	// Create a new assignment
	CreateAssignment(ctx context.Context, in *CreateAssignmentRequest, opts ...grpc.CallOption) (*Assignment, error)
	// Get courses
	ListCourses(ctx context.Context, in *ListCoursesRequest, opts ...grpc.CallOption) (*ListCoursesResponse, error)
	// Update Assignment
	UpdateAssignment(ctx context.Context, in *UpdateAssignmentRequest, opts ...grpc.CallOption) (*UpdateAssignmentResponse, error)
	// Get a specific assignment by ID
	GetAssignment(ctx context.Context, in *GetAssignmentRequest, opts ...grpc.CallOption) (*Assignment, error)
	GetUserAssignments(ctx context.Context, in *GetAssignmentRequest, opts ...grpc.CallOption) (*UserAssignments, error)
	// Get a specific assignment by inviteCode
	GetAssignmentByInviteCode(ctx context.Context, in *GetAssignmentByInviteCodeRequest, opts ...grpc.CallOption) (*Assignment, error)
	// List all assignments
	ListAssignments(ctx context.Context, in *ListAssignmentsRequest, opts ...grpc.CallOption) (*ListAssignmentsResponse, error)
	// Delete an assignment
	DeleteAssignment(ctx context.Context, in *DeleteAssignmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Submit an assignment
	SubmitAssignment(ctx context.Context, in *SubmitAssignmentRequest, opts ...grpc.CallOption) (*Submission, error)
	// List submissions for an assignment
	ListSubmissions(ctx context.Context, in *ListSubmissionsRequest, opts ...grpc.CallOption) (*ListSubmissionsResponse, error)
	// Get a specific submission
	GetSubmission(ctx context.Context, in *GetSubmissionRequest, opts ...grpc.CallOption) (*SubmissionDetail, error)
}

AssignmentServiceClient is the client API for AssignmentService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AssignmentServiceServer

type AssignmentServiceServer interface {
	// Create an new course
	CreateCourse(context.Context, *CreateCourseRequest) (*Course, error)
	JoinAssignment(context.Context, *JoinAssignmentRequest) (*JoinAssignmentResponse, error)
	// Create a new assignment
	CreateAssignment(context.Context, *CreateAssignmentRequest) (*Assignment, error)
	// Get courses
	ListCourses(context.Context, *ListCoursesRequest) (*ListCoursesResponse, error)
	// Update Assignment
	UpdateAssignment(context.Context, *UpdateAssignmentRequest) (*UpdateAssignmentResponse, error)
	// Get a specific assignment by ID
	GetAssignment(context.Context, *GetAssignmentRequest) (*Assignment, error)
	GetUserAssignments(context.Context, *GetAssignmentRequest) (*UserAssignments, error)
	// Get a specific assignment by inviteCode
	GetAssignmentByInviteCode(context.Context, *GetAssignmentByInviteCodeRequest) (*Assignment, error)
	// List all assignments
	ListAssignments(context.Context, *ListAssignmentsRequest) (*ListAssignmentsResponse, error)
	// Delete an assignment
	DeleteAssignment(context.Context, *DeleteAssignmentRequest) (*emptypb.Empty, error)
	// Submit an assignment
	SubmitAssignment(context.Context, *SubmitAssignmentRequest) (*Submission, error)
	// List submissions for an assignment
	ListSubmissions(context.Context, *ListSubmissionsRequest) (*ListSubmissionsResponse, error)
	// Get a specific submission
	GetSubmission(context.Context, *GetSubmissionRequest) (*SubmissionDetail, error)
}

AssignmentServiceServer is the server API for AssignmentService service. All implementations should embed UnimplementedAssignmentServiceServer for forward compatibility

type AssignmentStatus

type AssignmentStatus int32

Enum for Assignment Status

const (
	AssignmentStatus_UNDEFINED AssignmentStatus = 0
	AssignmentStatus_OPEN      AssignmentStatus = 1
	AssignmentStatus_CLOSED    AssignmentStatus = 2
	AssignmentStatus_DRAFT     AssignmentStatus = 3
)

func (AssignmentStatus) Descriptor

func (AssignmentStatus) Enum

func (AssignmentStatus) EnumDescriptor deprecated

func (AssignmentStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use AssignmentStatus.Descriptor instead.

func (AssignmentStatus) Number

func (AssignmentStatus) String

func (x AssignmentStatus) String() string

func (AssignmentStatus) Type

type AssignmentType

type AssignmentType int32

Enum for Assignment Type

const (
	AssignmentType_INDIVIDUAL AssignmentType = 0
	AssignmentType_GROUP      AssignmentType = 1
)

func (AssignmentType) Descriptor

func (AssignmentType) Enum

func (x AssignmentType) Enum() *AssignmentType

func (AssignmentType) EnumDescriptor deprecated

func (AssignmentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AssignmentType.Descriptor instead.

func (AssignmentType) Number

func (AssignmentType) String

func (x AssignmentType) String() string

func (AssignmentType) Type

type Course

type Course struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CourseCode string `protobuf:"bytes,2,opt,name=course_code,json=courseCode,proto3" json:"course_code,omitempty"`
	Title      string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	UserId     string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

Message for Courses

func (*Course) Descriptor deprecated

func (*Course) Descriptor() ([]byte, []int)

Deprecated: Use Course.ProtoReflect.Descriptor instead.

func (*Course) GetCourseCode

func (x *Course) GetCourseCode() string

func (*Course) GetId

func (x *Course) GetId() string

func (*Course) GetTitle

func (x *Course) GetTitle() string

func (*Course) GetUserId

func (x *Course) GetUserId() string

func (*Course) ProtoMessage

func (*Course) ProtoMessage()

func (*Course) ProtoReflect

func (x *Course) ProtoReflect() protoreflect.Message

func (*Course) Reset

func (x *Course) Reset()

func (*Course) String

func (x *Course) String() string

type CreateAssignmentRequest

type CreateAssignmentRequest struct {
	Title            string                 `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description      string                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	CourseId         string                 `protobuf:"bytes,3,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"`
	DueDate          *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=due_date,json=dueDate,proto3" json:"due_date,omitempty"`
	StartDate        *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	EndDate          *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	AssignmentType   AssignmentType         `` /* 128-byte string literal not displayed */
	PlagiarismCheck  bool                   `protobuf:"varint,8,opt,name=plagiarism_check,json=plagiarismCheck,proto3" json:"plagiarism_check,omitempty"`
	AutoGrade        bool                   `protobuf:"varint,9,opt,name=auto_grade,json=autoGrade,proto3" json:"auto_grade,omitempty"`
	FeedbackTemplate string                 `protobuf:"bytes,10,opt,name=feedback_template,json=feedbackTemplate,proto3" json:"feedback_template,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAssignmentRequest) Descriptor deprecated

func (*CreateAssignmentRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAssignmentRequest.ProtoReflect.Descriptor instead.

func (*CreateAssignmentRequest) GetAssignmentType

func (x *CreateAssignmentRequest) GetAssignmentType() AssignmentType

func (*CreateAssignmentRequest) GetAutoGrade

func (x *CreateAssignmentRequest) GetAutoGrade() bool

func (*CreateAssignmentRequest) GetCourseId

func (x *CreateAssignmentRequest) GetCourseId() string

func (*CreateAssignmentRequest) GetDescription

func (x *CreateAssignmentRequest) GetDescription() string

func (*CreateAssignmentRequest) GetDueDate

func (*CreateAssignmentRequest) GetEndDate

func (*CreateAssignmentRequest) GetFeedbackTemplate

func (x *CreateAssignmentRequest) GetFeedbackTemplate() string

func (*CreateAssignmentRequest) GetPlagiarismCheck

func (x *CreateAssignmentRequest) GetPlagiarismCheck() bool

func (*CreateAssignmentRequest) GetStartDate

func (x *CreateAssignmentRequest) GetStartDate() *timestamppb.Timestamp

func (*CreateAssignmentRequest) GetTitle

func (x *CreateAssignmentRequest) GetTitle() string

func (*CreateAssignmentRequest) ProtoMessage

func (*CreateAssignmentRequest) ProtoMessage()

func (*CreateAssignmentRequest) ProtoReflect

func (x *CreateAssignmentRequest) ProtoReflect() protoreflect.Message

func (*CreateAssignmentRequest) Reset

func (x *CreateAssignmentRequest) Reset()

func (*CreateAssignmentRequest) String

func (x *CreateAssignmentRequest) String() string

type CreateCourseRequest

type CreateCourseRequest struct {
	CourseCode  string `protobuf:"bytes,1,opt,name=course_code,json=courseCode,proto3" json:"course_code,omitempty"`
	CourseTitle string `protobuf:"bytes,2,opt,name=course_title,json=courseTitle,proto3" json:"course_title,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCourseRequest) Descriptor deprecated

func (*CreateCourseRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateCourseRequest.ProtoReflect.Descriptor instead.

func (*CreateCourseRequest) GetCourseCode

func (x *CreateCourseRequest) GetCourseCode() string

func (*CreateCourseRequest) GetCourseTitle

func (x *CreateCourseRequest) GetCourseTitle() string

func (*CreateCourseRequest) ProtoMessage

func (*CreateCourseRequest) ProtoMessage()

func (*CreateCourseRequest) ProtoReflect

func (x *CreateCourseRequest) ProtoReflect() protoreflect.Message

func (*CreateCourseRequest) Reset

func (x *CreateCourseRequest) Reset()

func (*CreateCourseRequest) String

func (x *CreateCourseRequest) String() string

type DeleteAssignmentRequest

type DeleteAssignmentRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAssignmentRequest) Descriptor deprecated

func (*DeleteAssignmentRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAssignmentRequest.ProtoReflect.Descriptor instead.

func (*DeleteAssignmentRequest) GetId

func (x *DeleteAssignmentRequest) GetId() string

func (*DeleteAssignmentRequest) ProtoMessage

func (*DeleteAssignmentRequest) ProtoMessage()

func (*DeleteAssignmentRequest) ProtoReflect

func (x *DeleteAssignmentRequest) ProtoReflect() protoreflect.Message

func (*DeleteAssignmentRequest) Reset

func (x *DeleteAssignmentRequest) Reset()

func (*DeleteAssignmentRequest) String

func (x *DeleteAssignmentRequest) String() string

type GetAssignmentByInviteCodeRequest

type GetAssignmentByInviteCodeRequest struct {
	InviteCode string `protobuf:"bytes,1,opt,name=invite_code,json=inviteCode,proto3" json:"invite_code,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAssignmentByInviteCodeRequest) Descriptor deprecated

func (*GetAssignmentByInviteCodeRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAssignmentByInviteCodeRequest.ProtoReflect.Descriptor instead.

func (*GetAssignmentByInviteCodeRequest) GetInviteCode

func (x *GetAssignmentByInviteCodeRequest) GetInviteCode() string

func (*GetAssignmentByInviteCodeRequest) ProtoMessage

func (*GetAssignmentByInviteCodeRequest) ProtoMessage()

func (*GetAssignmentByInviteCodeRequest) ProtoReflect

func (*GetAssignmentByInviteCodeRequest) Reset

func (*GetAssignmentByInviteCodeRequest) String

type GetAssignmentRequest

type GetAssignmentRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAssignmentRequest) Descriptor deprecated

func (*GetAssignmentRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAssignmentRequest.ProtoReflect.Descriptor instead.

func (*GetAssignmentRequest) GetId

func (x *GetAssignmentRequest) GetId() string

func (*GetAssignmentRequest) ProtoMessage

func (*GetAssignmentRequest) ProtoMessage()

func (*GetAssignmentRequest) ProtoReflect

func (x *GetAssignmentRequest) ProtoReflect() protoreflect.Message

func (*GetAssignmentRequest) Reset

func (x *GetAssignmentRequest) Reset()

func (*GetAssignmentRequest) String

func (x *GetAssignmentRequest) String() string

type GetSubmissionRequest

type GetSubmissionRequest struct {
	SubmissionId string `protobuf:"bytes,1,opt,name=submission_id,json=submissionId,proto3" json:"submission_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubmissionRequest) Descriptor deprecated

func (*GetSubmissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSubmissionRequest.ProtoReflect.Descriptor instead.

func (*GetSubmissionRequest) GetSubmissionId

func (x *GetSubmissionRequest) GetSubmissionId() string

func (*GetSubmissionRequest) ProtoMessage

func (*GetSubmissionRequest) ProtoMessage()

func (*GetSubmissionRequest) ProtoReflect

func (x *GetSubmissionRequest) ProtoReflect() protoreflect.Message

func (*GetSubmissionRequest) Reset

func (x *GetSubmissionRequest) Reset()

func (*GetSubmissionRequest) String

func (x *GetSubmissionRequest) String() string

type JoinAssignmentRequest

type JoinAssignmentRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinAssignmentRequest) Descriptor deprecated

func (*JoinAssignmentRequest) Descriptor() ([]byte, []int)

Deprecated: Use JoinAssignmentRequest.ProtoReflect.Descriptor instead.

func (*JoinAssignmentRequest) GetId

func (x *JoinAssignmentRequest) GetId() string

func (*JoinAssignmentRequest) ProtoMessage

func (*JoinAssignmentRequest) ProtoMessage()

func (*JoinAssignmentRequest) ProtoReflect

func (x *JoinAssignmentRequest) ProtoReflect() protoreflect.Message

func (*JoinAssignmentRequest) Reset

func (x *JoinAssignmentRequest) Reset()

func (*JoinAssignmentRequest) String

func (x *JoinAssignmentRequest) String() string

type JoinAssignmentResponse

type JoinAssignmentResponse struct {
	AssignmentId string                 `protobuf:"bytes,1,opt,name=assignment_id,json=assignmentId,proto3" json:"assignment_id,omitempty"`
	UserId       string                 `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	JoinDate     *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=join_date,json=joinDate,proto3" json:"join_date,omitempty"`
	RepoId       string                 `protobuf:"bytes,4,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinAssignmentResponse) Descriptor deprecated

func (*JoinAssignmentResponse) Descriptor() ([]byte, []int)

Deprecated: Use JoinAssignmentResponse.ProtoReflect.Descriptor instead.

func (*JoinAssignmentResponse) GetAssignmentId

func (x *JoinAssignmentResponse) GetAssignmentId() string

func (*JoinAssignmentResponse) GetJoinDate

func (x *JoinAssignmentResponse) GetJoinDate() *timestamppb.Timestamp

func (*JoinAssignmentResponse) GetRepoId

func (x *JoinAssignmentResponse) GetRepoId() string

func (*JoinAssignmentResponse) GetUserId

func (x *JoinAssignmentResponse) GetUserId() string

func (*JoinAssignmentResponse) ProtoMessage

func (*JoinAssignmentResponse) ProtoMessage()

func (*JoinAssignmentResponse) ProtoReflect

func (x *JoinAssignmentResponse) ProtoReflect() protoreflect.Message

func (*JoinAssignmentResponse) Reset

func (x *JoinAssignmentResponse) Reset()

func (*JoinAssignmentResponse) String

func (x *JoinAssignmentResponse) String() string

type ListAssignmentsRequest

type ListAssignmentsRequest struct {
	// contains filtered or unexported fields
}

func (*ListAssignmentsRequest) Descriptor deprecated

func (*ListAssignmentsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAssignmentsRequest.ProtoReflect.Descriptor instead.

func (*ListAssignmentsRequest) ProtoMessage

func (*ListAssignmentsRequest) ProtoMessage()

func (*ListAssignmentsRequest) ProtoReflect

func (x *ListAssignmentsRequest) ProtoReflect() protoreflect.Message

func (*ListAssignmentsRequest) Reset

func (x *ListAssignmentsRequest) Reset()

func (*ListAssignmentsRequest) String

func (x *ListAssignmentsRequest) String() string

type ListAssignmentsResponse

type ListAssignmentsResponse struct {
	Assignments []*Assignment `protobuf:"bytes,1,rep,name=assignments,proto3" json:"assignments,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAssignmentsResponse) Descriptor deprecated

func (*ListAssignmentsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAssignmentsResponse.ProtoReflect.Descriptor instead.

func (*ListAssignmentsResponse) GetAssignments

func (x *ListAssignmentsResponse) GetAssignments() []*Assignment

func (*ListAssignmentsResponse) ProtoMessage

func (*ListAssignmentsResponse) ProtoMessage()

func (*ListAssignmentsResponse) ProtoReflect

func (x *ListAssignmentsResponse) ProtoReflect() protoreflect.Message

func (*ListAssignmentsResponse) Reset

func (x *ListAssignmentsResponse) Reset()

func (*ListAssignmentsResponse) String

func (x *ListAssignmentsResponse) String() string

type ListCoursesRequest

type ListCoursesRequest struct {
	// contains filtered or unexported fields
}

func (*ListCoursesRequest) Descriptor deprecated

func (*ListCoursesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCoursesRequest.ProtoReflect.Descriptor instead.

func (*ListCoursesRequest) ProtoMessage

func (*ListCoursesRequest) ProtoMessage()

func (*ListCoursesRequest) ProtoReflect

func (x *ListCoursesRequest) ProtoReflect() protoreflect.Message

func (*ListCoursesRequest) Reset

func (x *ListCoursesRequest) Reset()

func (*ListCoursesRequest) String

func (x *ListCoursesRequest) String() string

type ListCoursesResponse

type ListCoursesResponse struct {
	Courses []*Course `protobuf:"bytes,1,rep,name=courses,proto3" json:"courses,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCoursesResponse) Descriptor deprecated

func (*ListCoursesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListCoursesResponse.ProtoReflect.Descriptor instead.

func (*ListCoursesResponse) GetCourses

func (x *ListCoursesResponse) GetCourses() []*Course

func (*ListCoursesResponse) ProtoMessage

func (*ListCoursesResponse) ProtoMessage()

func (*ListCoursesResponse) ProtoReflect

func (x *ListCoursesResponse) ProtoReflect() protoreflect.Message

func (*ListCoursesResponse) Reset

func (x *ListCoursesResponse) Reset()

func (*ListCoursesResponse) String

func (x *ListCoursesResponse) String() string

type ListSubmissionsRequest

type ListSubmissionsRequest struct {
	AssignmentId string `protobuf:"bytes,1,opt,name=assignment_id,json=assignmentId,proto3" json:"assignment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSubmissionsRequest) Descriptor deprecated

func (*ListSubmissionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSubmissionsRequest.ProtoReflect.Descriptor instead.

func (*ListSubmissionsRequest) GetAssignmentId

func (x *ListSubmissionsRequest) GetAssignmentId() string

func (*ListSubmissionsRequest) ProtoMessage

func (*ListSubmissionsRequest) ProtoMessage()

func (*ListSubmissionsRequest) ProtoReflect

func (x *ListSubmissionsRequest) ProtoReflect() protoreflect.Message

func (*ListSubmissionsRequest) Reset

func (x *ListSubmissionsRequest) Reset()

func (*ListSubmissionsRequest) String

func (x *ListSubmissionsRequest) String() string

type ListSubmissionsResponse

type ListSubmissionsResponse struct {
	Submissions []*SubmissionDetail `protobuf:"bytes,1,rep,name=submissions,proto3" json:"submissions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSubmissionsResponse) Descriptor deprecated

func (*ListSubmissionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSubmissionsResponse.ProtoReflect.Descriptor instead.

func (*ListSubmissionsResponse) GetSubmissions

func (x *ListSubmissionsResponse) GetSubmissions() []*SubmissionDetail

func (*ListSubmissionsResponse) ProtoMessage

func (*ListSubmissionsResponse) ProtoMessage()

func (*ListSubmissionsResponse) ProtoReflect

func (x *ListSubmissionsResponse) ProtoReflect() protoreflect.Message

func (*ListSubmissionsResponse) Reset

func (x *ListSubmissionsResponse) Reset()

func (*ListSubmissionsResponse) String

func (x *ListSubmissionsResponse) String() string

type Submission

type Submission struct {
	Id             string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	AssignmentId   string                 `protobuf:"bytes,2,opt,name=assignment_id,json=assignmentId,proto3" json:"assignment_id,omitempty"`
	UserId         string                 `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	SubmissionDate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=submission_date,json=submissionDate,proto3" json:"submission_date,omitempty"`
	Status         SubmissionStatus       `protobuf:"varint,5,opt,name=status,proto3,enum=gas.SubmissionStatus" json:"status,omitempty"`
	Grade          int32                  `protobuf:"varint,6,opt,name=grade,proto3" json:"grade,omitempty"`
	Feedback       string                 `protobuf:"bytes,7,opt,name=feedback,proto3" json:"feedback,omitempty"`
	RepoId         string                 `protobuf:"bytes,8,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// contains filtered or unexported fields
}

Message for Submissions

func (*Submission) Descriptor deprecated

func (*Submission) Descriptor() ([]byte, []int)

Deprecated: Use Submission.ProtoReflect.Descriptor instead.

func (*Submission) GetAssignmentId

func (x *Submission) GetAssignmentId() string

func (*Submission) GetFeedback

func (x *Submission) GetFeedback() string

func (*Submission) GetGrade

func (x *Submission) GetGrade() int32

func (*Submission) GetId

func (x *Submission) GetId() string

func (*Submission) GetRepoId

func (x *Submission) GetRepoId() string

func (*Submission) GetStatus

func (x *Submission) GetStatus() SubmissionStatus

func (*Submission) GetSubmissionDate

func (x *Submission) GetSubmissionDate() *timestamppb.Timestamp

func (*Submission) GetUserId

func (x *Submission) GetUserId() string

func (*Submission) ProtoMessage

func (*Submission) ProtoMessage()

func (*Submission) ProtoReflect

func (x *Submission) ProtoReflect() protoreflect.Message

func (*Submission) Reset

func (x *Submission) Reset()

func (*Submission) String

func (x *Submission) String() string

type SubmissionDetail

type SubmissionDetail struct {
	UserId       string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	AssignmentId string `protobuf:"bytes,2,opt,name=assignment_id,json=assignmentId,proto3" json:"assignment_id,omitempty"` // Other details such as submission timestamp, repo URL, etc.
	// contains filtered or unexported fields
}

func (*SubmissionDetail) Descriptor deprecated

func (*SubmissionDetail) Descriptor() ([]byte, []int)

Deprecated: Use SubmissionDetail.ProtoReflect.Descriptor instead.

func (*SubmissionDetail) GetAssignmentId

func (x *SubmissionDetail) GetAssignmentId() string

func (*SubmissionDetail) GetUserId

func (x *SubmissionDetail) GetUserId() string

func (*SubmissionDetail) ProtoMessage

func (*SubmissionDetail) ProtoMessage()

func (*SubmissionDetail) ProtoReflect

func (x *SubmissionDetail) ProtoReflect() protoreflect.Message

func (*SubmissionDetail) Reset

func (x *SubmissionDetail) Reset()

func (*SubmissionDetail) String

func (x *SubmissionDetail) String() string

type SubmissionStatus

type SubmissionStatus int32

Enum for Submission Status

const (
	SubmissionStatus_NOT_GRADED SubmissionStatus = 0
	SubmissionStatus_GRADED     SubmissionStatus = 1
)

func (SubmissionStatus) Descriptor

func (SubmissionStatus) Enum

func (SubmissionStatus) EnumDescriptor deprecated

func (SubmissionStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use SubmissionStatus.Descriptor instead.

func (SubmissionStatus) Number

func (SubmissionStatus) String

func (x SubmissionStatus) String() string

func (SubmissionStatus) Type

type SubmitAssignmentRequest

type SubmitAssignmentRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmitAssignmentRequest) Descriptor deprecated

func (*SubmitAssignmentRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubmitAssignmentRequest.ProtoReflect.Descriptor instead.

func (*SubmitAssignmentRequest) GetId

func (x *SubmitAssignmentRequest) GetId() string

func (*SubmitAssignmentRequest) ProtoMessage

func (*SubmitAssignmentRequest) ProtoMessage()

func (*SubmitAssignmentRequest) ProtoReflect

func (x *SubmitAssignmentRequest) ProtoReflect() protoreflect.Message

func (*SubmitAssignmentRequest) Reset

func (x *SubmitAssignmentRequest) Reset()

func (*SubmitAssignmentRequest) String

func (x *SubmitAssignmentRequest) String() string

type UnimplementedAssignmentServiceServer

type UnimplementedAssignmentServiceServer struct {
}

UnimplementedAssignmentServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAssignmentServiceServer) CreateAssignment

func (UnimplementedAssignmentServiceServer) CreateCourse

func (UnimplementedAssignmentServiceServer) DeleteAssignment

func (UnimplementedAssignmentServiceServer) GetAssignment

func (UnimplementedAssignmentServiceServer) GetAssignmentByInviteCode

func (UnimplementedAssignmentServiceServer) GetSubmission

func (UnimplementedAssignmentServiceServer) GetUserAssignments

func (UnimplementedAssignmentServiceServer) JoinAssignment

func (UnimplementedAssignmentServiceServer) ListAssignments

func (UnimplementedAssignmentServiceServer) ListCourses

func (UnimplementedAssignmentServiceServer) ListSubmissions

func (UnimplementedAssignmentServiceServer) SubmitAssignment

func (UnimplementedAssignmentServiceServer) UpdateAssignment

type UnsafeAssignmentServiceServer

type UnsafeAssignmentServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAssignmentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssignmentServiceServer will result in compilation errors.

type UpdateAssignmentRequest

type UpdateAssignmentRequest struct {
	Title           string                 `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description     string                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	DueDate         *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=due_date,json=dueDate,proto3" json:"due_date,omitempty"`
	EndDate         *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	PlagiarismCheck bool                   `protobuf:"varint,5,opt,name=plagiarism_check,json=plagiarismCheck,proto3" json:"plagiarism_check,omitempty"`
	AutoGrade       bool                   `protobuf:"varint,6,opt,name=auto_grade,json=autoGrade,proto3" json:"auto_grade,omitempty"`
	Status          AssignmentStatus       `protobuf:"varint,7,opt,name=status,proto3,enum=gas.AssignmentStatus" json:"status,omitempty"`
	Id              string                 `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAssignmentRequest) Descriptor deprecated

func (*UpdateAssignmentRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAssignmentRequest.ProtoReflect.Descriptor instead.

func (*UpdateAssignmentRequest) GetAutoGrade

func (x *UpdateAssignmentRequest) GetAutoGrade() bool

func (*UpdateAssignmentRequest) GetDescription

func (x *UpdateAssignmentRequest) GetDescription() string

func (*UpdateAssignmentRequest) GetDueDate

func (*UpdateAssignmentRequest) GetEndDate

func (*UpdateAssignmentRequest) GetId

func (x *UpdateAssignmentRequest) GetId() string

func (*UpdateAssignmentRequest) GetPlagiarismCheck

func (x *UpdateAssignmentRequest) GetPlagiarismCheck() bool

func (*UpdateAssignmentRequest) GetStatus

func (*UpdateAssignmentRequest) GetTitle

func (x *UpdateAssignmentRequest) GetTitle() string

func (*UpdateAssignmentRequest) ProtoMessage

func (*UpdateAssignmentRequest) ProtoMessage()

func (*UpdateAssignmentRequest) ProtoReflect

func (x *UpdateAssignmentRequest) ProtoReflect() protoreflect.Message

func (*UpdateAssignmentRequest) Reset

func (x *UpdateAssignmentRequest) Reset()

func (*UpdateAssignmentRequest) String

func (x *UpdateAssignmentRequest) String() string

type UpdateAssignmentResponse

type UpdateAssignmentResponse struct {
	Assignment *Assignment `protobuf:"bytes,1,opt,name=assignment,proto3" json:"assignment,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAssignmentResponse) Descriptor deprecated

func (*UpdateAssignmentResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAssignmentResponse.ProtoReflect.Descriptor instead.

func (*UpdateAssignmentResponse) GetAssignment

func (x *UpdateAssignmentResponse) GetAssignment() *Assignment

func (*UpdateAssignmentResponse) ProtoMessage

func (*UpdateAssignmentResponse) ProtoMessage()

func (*UpdateAssignmentResponse) ProtoReflect

func (x *UpdateAssignmentResponse) ProtoReflect() protoreflect.Message

func (*UpdateAssignmentResponse) Reset

func (x *UpdateAssignmentResponse) Reset()

func (*UpdateAssignmentResponse) String

func (x *UpdateAssignmentResponse) String() string

type UserAssignments

type UserAssignments struct {
	UserId       string                 `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	AssignmentId string                 `protobuf:"bytes,2,opt,name=assignment_id,json=assignmentId,proto3" json:"assignment_id,omitempty"`
	JoinDate     *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=join_date,json=joinDate,proto3" json:"join_date,omitempty"`
	RepoId       string                 `protobuf:"bytes,4,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UserAssignments) Descriptor deprecated

func (*UserAssignments) Descriptor() ([]byte, []int)

Deprecated: Use UserAssignments.ProtoReflect.Descriptor instead.

func (*UserAssignments) GetAssignmentId

func (x *UserAssignments) GetAssignmentId() string

func (*UserAssignments) GetJoinDate

func (x *UserAssignments) GetJoinDate() *timestamppb.Timestamp

func (*UserAssignments) GetRepoId

func (x *UserAssignments) GetRepoId() string

func (*UserAssignments) GetUserId

func (x *UserAssignments) GetUserId() string

func (*UserAssignments) ProtoMessage

func (*UserAssignments) ProtoMessage()

func (*UserAssignments) ProtoReflect

func (x *UserAssignments) ProtoReflect() protoreflect.Message

func (*UserAssignments) Reset

func (x *UserAssignments) Reset()

func (*UserAssignments) String

func (x *UserAssignments) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL