# Path: google/cloud/dataflow_v1beta3/types/messages.py
# class JobMessageImportance(proto.Enum):
# class JobMessage(proto.Message):
# class StructuredMessage(proto.Message):
#     class Parameter(proto.Message):
# class AutoscalingEvent(proto.Message):
#     class AutoscalingEventType(proto.Enum):
# class ListJobMessagesRequest(proto.Message):
# class ListJobMessagesResponse(proto.Message):
#     JOB_MESSAGE_IMPORTANCE_UNKNOWN = 0
#     JOB_MESSAGE_DEBUG = 1
#     JOB_MESSAGE_DETAILED = 2
#     JOB_MESSAGE_BASIC = 5
#     JOB_MESSAGE_WARNING = 3
#     JOB_MESSAGE_ERROR = 4
#         TYPE_UNKNOWN = 0
#         TARGET_NUM_WORKERS_CHANGED = 1
#         CURRENT_NUM_WORKERS_CHANGED = 2
#         ACTUATION_FAILURE = 3
#         NO_CHANGE = 4
#     def raw_page(self):


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.dataflow_v1beta3.types import messages

    def __init__(
        self,
        method: Callable[..., messages.ListJobMessagesResponse],
        request: messages.ListJobMessagesRequest,
        response: messages.ListJobMessagesResponse,
        *,
        metadata: Sequence[Tuple[str, str]] = ()
    ):
        """Instantiate the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.dataflow_v1beta3.types.ListJobMessagesRequest):
                The initial request object.
            response (google.cloud.dataflow_v1beta3.types.ListJobMessagesResponse):
                The initial response object.
            metadata (Sequence[Tuple[str, str]]): Strings which should be
                sent along with the request as metadata.
        """
        self._method = method
        self._request = messages.ListJobMessagesRequest(request)
        self._response = response
        self._metadata = metadata

    def __getattr__(self, name: str) -> Any:
        return getattr(self._response, name)

    @property

# Path: google/cloud/dataflow_v1beta3/types/messages.py
# class JobMessageImportance(proto.Enum):
# class JobMessage(proto.Message):
# class StructuredMessage(proto.Message):
#     class Parameter(proto.Message):
# class AutoscalingEvent(proto.Message):
#     class AutoscalingEventType(proto.Enum):
# class ListJobMessagesRequest(proto.Message):
# class ListJobMessagesResponse(proto.Message):
#     JOB_MESSAGE_IMPORTANCE_UNKNOWN = 0
#     JOB_MESSAGE_DEBUG = 1
#     JOB_MESSAGE_DETAILED = 2
#     JOB_MESSAGE_BASIC = 5
#     JOB_MESSAGE_WARNING = 3
#     JOB_MESSAGE_ERROR = 4
#         TYPE_UNKNOWN = 0
#         TARGET_NUM_WORKERS_CHANGED = 1
#         CURRENT_NUM_WORKERS_CHANGED = 2
#         ACTUATION_FAILURE = 3
#         NO_CHANGE = 4
#     def raw_page(self):


# Path: google/cloud/dataflow_v1beta3/services/messages_v1_beta3/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.dataflow_v1beta3.types import messages


    def __init__(
        self,
        method: Callable[..., messages.ListJobMessagesResponse],
        request: messages.ListJobMessagesRequest,
        response: messages.ListJobMessagesResponse,
        *,
        metadata: Sequence[Tuple[str, str]] = ()
    ):
        """Instantiate the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.dataflow_v1beta3.types.ListJobMessagesRequest):
                The initial request object.
            response (google.cloud.dataflow_v1beta3.types.ListJobMessagesResponse):
                The initial response object.
            metadata (Sequence[Tuple[str, str]]): Strings which should be
                sent along with the request as metadata.
        """
        self._method = method
        self._request = messages.ListJobMessagesRequest(request)
        self._response = response
        self._metadata = metadata

    def __getattr__(self, name: str) -> Any:
        return getattr(self._response, name)

    @property

    def pages(self) -> Iterator[messages.ListJobMessagesResponse]: