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

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class GoogleFormsItemOutputItemType(str, enum.Enum):
    """
    Type of form item
    """

    QUESTION = "question"
    SECTION_HEADER = "section_header"

    def visit(self, question: typing.Callable[[], T_Result], section_header: typing.Callable[[], T_Result]) -> T_Result:
        if self is GoogleFormsItemOutputItemType.QUESTION:
            return question()
        if self is GoogleFormsItemOutputItemType.SECTION_HEADER:
            return section_header()
