View Source GoogleApi.Forms.V1.Model.Question (google_api_forms v0.2.1)

Any question. The specific type of question is known by its kind.

Attributes

  • choiceQuestion (type: GoogleApi.Forms.V1.Model.ChoiceQuestion.t, default: nil) - A respondent can choose from a pre-defined set of options.
  • dateQuestion (type: GoogleApi.Forms.V1.Model.DateQuestion.t, default: nil) - A respondent can enter a date.
  • fileUploadQuestion (type: GoogleApi.Forms.V1.Model.FileUploadQuestion.t, default: nil) - A respondent can upload one or more files.
  • grading (type: GoogleApi.Forms.V1.Model.Grading.t, default: nil) - Grading setup for the question.
  • questionId (type: String.t, default: nil) - Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
  • required (type: boolean(), default: nil) - Whether the question must be answered in order for a respondent to submit their response.
  • rowQuestion (type: GoogleApi.Forms.V1.Model.RowQuestion.t, default: nil) - A row of a QuestionGroupItem.
  • scaleQuestion (type: GoogleApi.Forms.V1.Model.ScaleQuestion.t, default: nil) - A respondent can choose a number from a range.
  • textQuestion (type: GoogleApi.Forms.V1.Model.TextQuestion.t, default: nil) - A respondent can enter a free text response.
  • timeQuestion (type: GoogleApi.Forms.V1.Model.TimeQuestion.t, default: nil) - A respondent can enter a time.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Forms.V1.Model.Question{
  choiceQuestion: GoogleApi.Forms.V1.Model.ChoiceQuestion.t() | nil,
  dateQuestion: GoogleApi.Forms.V1.Model.DateQuestion.t() | nil,
  fileUploadQuestion: GoogleApi.Forms.V1.Model.FileUploadQuestion.t() | nil,
  grading: GoogleApi.Forms.V1.Model.Grading.t() | nil,
  questionId: String.t() | nil,
  required: boolean() | nil,
  rowQuestion: GoogleApi.Forms.V1.Model.RowQuestion.t() | nil,
  scaleQuestion: GoogleApi.Forms.V1.Model.ScaleQuestion.t() | nil,
  textQuestion: GoogleApi.Forms.V1.Model.TextQuestion.t() | nil,
  timeQuestion: GoogleApi.Forms.V1.Model.TimeQuestion.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.