public final class StudentSubmission extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Classroom API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
StudentSubmission() |
| Modifier and Type | Method and Description |
|---|---|
StudentSubmission |
clone() |
String |
getAlternateLink()
Absolute link to the submission in the Classroom web UI.
|
Double |
getAssignedGrade()
Optional grade.
|
AssignmentSubmission |
getAssignmentSubmission()
Submission content when course_work_type is ASSIGNMENT.
|
Boolean |
getAssociatedWithDeveloper()
Whether this student submission is associated with the Developer Console project making the
request.
|
String |
getCourseId()
Identifier of the course.
|
String |
getCourseWorkId()
Identifier for the course work this corresponds to.
|
String |
getCourseWorkType()
Type of course work this submission is for.
|
String |
getCreationTime()
Creation time of this submission.
|
Double |
getDraftGrade()
Optional pending grade.
|
String |
getId()
Classroom-assigned Identifier for the student submission.
|
Boolean |
getLate()
Whether this submission is late.
|
MultipleChoiceSubmission |
getMultipleChoiceSubmission()
Submission content when course_work_type is MULTIPLE_CHOICE_QUESTION.
|
ShortAnswerSubmission |
getShortAnswerSubmission()
Submission content when course_work_type is SHORT_ANSWER_QUESTION.
|
String |
getState()
State of this submission.
|
List<SubmissionHistory> |
getSubmissionHistory()
The history of the submission (includes state and grade histories).
|
String |
getUpdateTime()
Last update time of this submission.
|
String |
getUserId()
Identifier for the student that owns this submission.
|
StudentSubmission |
set(String fieldName,
Object value) |
StudentSubmission |
setAlternateLink(String alternateLink)
Absolute link to the submission in the Classroom web UI.
|
StudentSubmission |
setAssignedGrade(Double assignedGrade)
Optional grade.
|
StudentSubmission |
setAssignmentSubmission(AssignmentSubmission assignmentSubmission)
Submission content when course_work_type is ASSIGNMENT.
|
StudentSubmission |
setAssociatedWithDeveloper(Boolean associatedWithDeveloper)
Whether this student submission is associated with the Developer Console project making the
request.
|
StudentSubmission |
setCourseId(String courseId)
Identifier of the course.
|
StudentSubmission |
setCourseWorkId(String courseWorkId)
Identifier for the course work this corresponds to.
|
StudentSubmission |
setCourseWorkType(String courseWorkType)
Type of course work this submission is for.
|
StudentSubmission |
setCreationTime(String creationTime)
Creation time of this submission.
|
StudentSubmission |
setDraftGrade(Double draftGrade)
Optional pending grade.
|
StudentSubmission |
setId(String id)
Classroom-assigned Identifier for the student submission.
|
StudentSubmission |
setLate(Boolean late)
Whether this submission is late.
|
StudentSubmission |
setMultipleChoiceSubmission(MultipleChoiceSubmission multipleChoiceSubmission)
Submission content when course_work_type is MULTIPLE_CHOICE_QUESTION.
|
StudentSubmission |
setShortAnswerSubmission(ShortAnswerSubmission shortAnswerSubmission)
Submission content when course_work_type is SHORT_ANSWER_QUESTION.
|
StudentSubmission |
setState(String state)
State of this submission.
|
StudentSubmission |
setSubmissionHistory(List<SubmissionHistory> submissionHistory)
The history of the submission (includes state and grade histories).
|
StudentSubmission |
setUpdateTime(String updateTime)
Last update time of this submission.
|
StudentSubmission |
setUserId(String userId)
Identifier for the student that owns this submission.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAlternateLink()
null for nonepublic StudentSubmission setAlternateLink(String alternateLink)
alternateLink - alternateLink or null for nonepublic Double getAssignedGrade()
null for nonepublic StudentSubmission setAssignedGrade(Double assignedGrade)
assignedGrade - assignedGrade or null for nonepublic AssignmentSubmission getAssignmentSubmission()
null for nonepublic StudentSubmission setAssignmentSubmission(AssignmentSubmission assignmentSubmission)
assignmentSubmission - assignmentSubmission or null for nonepublic Boolean getAssociatedWithDeveloper()
null for nonepublic StudentSubmission setAssociatedWithDeveloper(Boolean associatedWithDeveloper)
associatedWithDeveloper - associatedWithDeveloper or null for nonepublic String getCourseId()
null for nonepublic StudentSubmission setCourseId(String courseId)
courseId - courseId or null for nonepublic String getCourseWorkId()
null for nonepublic StudentSubmission setCourseWorkId(String courseWorkId)
courseWorkId - courseWorkId or null for nonepublic String getCourseWorkType()
null for nonepublic StudentSubmission setCourseWorkType(String courseWorkType)
courseWorkType - courseWorkType or null for nonepublic String getCreationTime()
null for nonepublic StudentSubmission setCreationTime(String creationTime)
creationTime - creationTime or null for nonepublic Double getDraftGrade()
null for nonepublic StudentSubmission setDraftGrade(Double draftGrade)
draftGrade - draftGrade or null for nonepublic String getId()
null for nonepublic StudentSubmission setId(String id)
id - id or null for nonepublic Boolean getLate()
null for nonepublic StudentSubmission setLate(Boolean late)
late - late or null for nonepublic MultipleChoiceSubmission getMultipleChoiceSubmission()
null for nonepublic StudentSubmission setMultipleChoiceSubmission(MultipleChoiceSubmission multipleChoiceSubmission)
multipleChoiceSubmission - multipleChoiceSubmission or null for nonepublic ShortAnswerSubmission getShortAnswerSubmission()
null for nonepublic StudentSubmission setShortAnswerSubmission(ShortAnswerSubmission shortAnswerSubmission)
shortAnswerSubmission - shortAnswerSubmission or null for nonepublic String getState()
null for nonepublic StudentSubmission setState(String state)
state - state or null for nonepublic List<SubmissionHistory> getSubmissionHistory()
null for nonepublic StudentSubmission setSubmissionHistory(List<SubmissionHistory> submissionHistory)
submissionHistory - submissionHistory or null for nonepublic String getUpdateTime()
null for nonepublic StudentSubmission setUpdateTime(String updateTime)
updateTime - updateTime or null for nonepublic String getUserId()
null for nonepublic StudentSubmission setUserId(String userId)
userId - userId or null for nonepublic StudentSubmission set(String fieldName, Object value)
set in class GenericJsonpublic StudentSubmission clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.