# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class GoogleFormsQuestionQuestionType(str, enum.Enum):
    """
    The type of question
    """

    SHORT_TEXT = "short_text"
    PARAGRAPH = "paragraph"
    MULTIPLE_CHOICE = "multiple_choice"
    CHECKBOX = "checkbox"
    DROPDOWN = "dropdown"
    SCALE = "scale"
    DATE = "date"
    TIME = "time"

    def visit(
        self,
        short_text: typing.Callable[[], T_Result],
        paragraph: typing.Callable[[], T_Result],
        multiple_choice: typing.Callable[[], T_Result],
        checkbox: typing.Callable[[], T_Result],
        dropdown: typing.Callable[[], T_Result],
        scale: typing.Callable[[], T_Result],
        date: typing.Callable[[], T_Result],
        time: typing.Callable[[], T_Result],
    ) -> T_Result:
        if self is GoogleFormsQuestionQuestionType.SHORT_TEXT:
            return short_text()
        if self is GoogleFormsQuestionQuestionType.PARAGRAPH:
            return paragraph()
        if self is GoogleFormsQuestionQuestionType.MULTIPLE_CHOICE:
            return multiple_choice()
        if self is GoogleFormsQuestionQuestionType.CHECKBOX:
            return checkbox()
        if self is GoogleFormsQuestionQuestionType.DROPDOWN:
            return dropdown()
        if self is GoogleFormsQuestionQuestionType.SCALE:
            return scale()
        if self is GoogleFormsQuestionQuestionType.DATE:
            return date()
        if self is GoogleFormsQuestionQuestionType.TIME:
            return time()
