public final class Question
extends com.google.api.client.json.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 Forms API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Question() |
| Modifier and Type | Method and Description |
|---|---|
Question |
clone() |
ChoiceQuestion |
getChoiceQuestion()
A respondent can choose from a pre-defined set of options.
|
DateQuestion |
getDateQuestion()
A respondent can enter a date.
|
FileUploadQuestion |
getFileUploadQuestion()
A respondent can upload one or more files.
|
Grading |
getGrading()
Grading setup for the question.
|
String |
getQuestionId()
Read only.
|
RatingQuestion |
getRatingQuestion()
A respondent can choose a rating from a pre-defined set of icons.
|
Boolean |
getRequired()
Whether the question must be answered in order for a respondent to submit their response.
|
RowQuestion |
getRowQuestion()
A row of a QuestionGroupItem.
|
ScaleQuestion |
getScaleQuestion()
A respondent can choose a number from a range.
|
TextQuestion |
getTextQuestion()
A respondent can enter a free text response.
|
TimeQuestion |
getTimeQuestion()
A respondent can enter a time.
|
Question |
set(String fieldName,
Object value) |
Question |
setChoiceQuestion(ChoiceQuestion choiceQuestion)
A respondent can choose from a pre-defined set of options.
|
Question |
setDateQuestion(DateQuestion dateQuestion)
A respondent can enter a date.
|
Question |
setFileUploadQuestion(FileUploadQuestion fileUploadQuestion)
A respondent can upload one or more files.
|
Question |
setGrading(Grading grading)
Grading setup for the question.
|
Question |
setQuestionId(String questionId)
Read only.
|
Question |
setRatingQuestion(RatingQuestion ratingQuestion)
A respondent can choose a rating from a pre-defined set of icons.
|
Question |
setRequired(Boolean required)
Whether the question must be answered in order for a respondent to submit their response.
|
Question |
setRowQuestion(RowQuestion rowQuestion)
A row of a QuestionGroupItem.
|
Question |
setScaleQuestion(ScaleQuestion scaleQuestion)
A respondent can choose a number from a range.
|
Question |
setTextQuestion(TextQuestion textQuestion)
A respondent can enter a free text response.
|
Question |
setTimeQuestion(TimeQuestion timeQuestion)
A respondent can enter a time.
|
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 ChoiceQuestion getChoiceQuestion()
null for nonepublic Question setChoiceQuestion(ChoiceQuestion choiceQuestion)
choiceQuestion - choiceQuestion or null for nonepublic DateQuestion getDateQuestion()
null for nonepublic Question setDateQuestion(DateQuestion dateQuestion)
dateQuestion - dateQuestion or null for nonepublic FileUploadQuestion getFileUploadQuestion()
null for nonepublic Question setFileUploadQuestion(FileUploadQuestion fileUploadQuestion)
fileUploadQuestion - fileUploadQuestion or null for nonepublic Grading getGrading()
null for nonepublic Question setGrading(Grading grading)
grading - grading or null for nonepublic String getQuestionId()
null for nonepublic Question setQuestionId(String questionId)
questionId - questionId or null for nonepublic RatingQuestion getRatingQuestion()
null for nonepublic Question setRatingQuestion(RatingQuestion ratingQuestion)
ratingQuestion - ratingQuestion or null for nonepublic Boolean getRequired()
null for nonepublic Question setRequired(Boolean required)
required - required or null for nonepublic RowQuestion getRowQuestion()
null for nonepublic Question setRowQuestion(RowQuestion rowQuestion)
rowQuestion - rowQuestion or null for nonepublic ScaleQuestion getScaleQuestion()
null for nonepublic Question setScaleQuestion(ScaleQuestion scaleQuestion)
scaleQuestion - scaleQuestion or null for nonepublic TextQuestion getTextQuestion()
null for nonepublic Question setTextQuestion(TextQuestion textQuestion)
textQuestion - textQuestion or null for nonepublic TimeQuestion getTimeQuestion()
null for nonepublic Question setTimeQuestion(TimeQuestion timeQuestion)
timeQuestion - timeQuestion or null for nonepublic Question set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Question clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.