# Path: google/cloud/bigquery_datatransfer_v1/types/datatransfer.py
# class DataSourceParameter(proto.Message):
#     class Type(proto.Enum):
# class DataSource(proto.Message):
#     class AuthorizationType(proto.Enum):
#     class DataRefreshType(proto.Enum):
# class GetDataSourceRequest(proto.Message):
# class ListDataSourcesRequest(proto.Message):
# class ListDataSourcesResponse(proto.Message):
# class CreateTransferConfigRequest(proto.Message):
# class UpdateTransferConfigRequest(proto.Message):
# class GetTransferConfigRequest(proto.Message):
# class DeleteTransferConfigRequest(proto.Message):
# class GetTransferRunRequest(proto.Message):
# class DeleteTransferRunRequest(proto.Message):
# class ListTransferConfigsRequest(proto.Message):
# class ListTransferConfigsResponse(proto.Message):
# class ListTransferRunsRequest(proto.Message):
#     class RunAttempt(proto.Enum):
# class ListTransferRunsResponse(proto.Message):
# class ListTransferLogsRequest(proto.Message):
# class ListTransferLogsResponse(proto.Message):
# class CheckValidCredsRequest(proto.Message):
# class CheckValidCredsResponse(proto.Message):
# class ScheduleTransferRunsRequest(proto.Message):
# class ScheduleTransferRunsResponse(proto.Message):
# class StartManualTransferRunsRequest(proto.Message):
#     class TimeRange(proto.Message):
# class StartManualTransferRunsResponse(proto.Message):
# class EnrollDataSourcesRequest(proto.Message):
#         TYPE_UNSPECIFIED = 0
#         STRING = 1
#         INTEGER = 2
#         DOUBLE = 3
#         BOOLEAN = 4
#         RECORD = 5
#         PLUS_PAGE = 6
#         AUTHORIZATION_TYPE_UNSPECIFIED = 0
#         AUTHORIZATION_CODE = 1
#         GOOGLE_PLUS_AUTHORIZATION_CODE = 2
#         FIRST_PARTY_OAUTH = 3
#         DATA_REFRESH_TYPE_UNSPECIFIED = 0
#         SLIDING_WINDOW = 1
#         CUSTOM_SLIDING_WINDOW = 2
#         RUN_ATTEMPT_UNSPECIFIED = 0
#         LATEST = 1
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):
# 
# Path: google/cloud/bigquery_datatransfer_v1/types/transfer.py
# class TransferType(proto.Enum):
# class TransferState(proto.Enum):
# class EmailPreferences(proto.Message):
# class ScheduleOptions(proto.Message):
# class UserInfo(proto.Message):
# class TransferConfig(proto.Message):
# class TransferRun(proto.Message):
# class TransferMessage(proto.Message):
#     class MessageSeverity(proto.Enum):
#     TRANSFER_TYPE_UNSPECIFIED = 0
#     BATCH = 1
#     STREAMING = 2
#     TRANSFER_STATE_UNSPECIFIED = 0
#     PENDING = 2
#     RUNNING = 3
#     SUCCEEDED = 4
#     FAILED = 5
#     CANCELLED = 6
#         MESSAGE_SEVERITY_UNSPECIFIED = 0
#         INFO = 1
#         WARNING = 2
#         ERROR = 3


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.bigquery_datatransfer_v1.types import datatransfer
from google.cloud.bigquery_datatransfer_v1.types import transfer
        metadata: Sequence[Tuple[str, str]] = ()
    ):
        """Instantiates the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsRequest):
                The initial request object.
            response (google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsResponse):
                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 = datatransfer.ListTransferRunsRequest(request)
        self._response = response
        self._metadata = metadata

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

    @property
    async def pages(self) -> AsyncIterator[datatransfer.ListTransferRunsResponse]:
        yield self._response
        while self._response.next_page_token:
            self._request.page_token = self._response.next_page_token
            self._response = await self._method(self._request, metadata=self._metadata)
            yield self._response


# Path: google/cloud/bigquery_datatransfer_v1/types/datatransfer.py
# class DataSourceParameter(proto.Message):
#     class Type(proto.Enum):
# class DataSource(proto.Message):
#     class AuthorizationType(proto.Enum):
#     class DataRefreshType(proto.Enum):
# class GetDataSourceRequest(proto.Message):
# class ListDataSourcesRequest(proto.Message):
# class ListDataSourcesResponse(proto.Message):
# class CreateTransferConfigRequest(proto.Message):
# class UpdateTransferConfigRequest(proto.Message):
# class GetTransferConfigRequest(proto.Message):
# class DeleteTransferConfigRequest(proto.Message):
# class GetTransferRunRequest(proto.Message):
# class DeleteTransferRunRequest(proto.Message):
# class ListTransferConfigsRequest(proto.Message):
# class ListTransferConfigsResponse(proto.Message):
# class ListTransferRunsRequest(proto.Message):
#     class RunAttempt(proto.Enum):
# class ListTransferRunsResponse(proto.Message):
# class ListTransferLogsRequest(proto.Message):
# class ListTransferLogsResponse(proto.Message):
# class CheckValidCredsRequest(proto.Message):
# class CheckValidCredsResponse(proto.Message):
# class ScheduleTransferRunsRequest(proto.Message):
# class ScheduleTransferRunsResponse(proto.Message):
# class StartManualTransferRunsRequest(proto.Message):
#     class TimeRange(proto.Message):
# class StartManualTransferRunsResponse(proto.Message):
# class EnrollDataSourcesRequest(proto.Message):
#         TYPE_UNSPECIFIED = 0
#         STRING = 1
#         INTEGER = 2
#         DOUBLE = 3
#         BOOLEAN = 4
#         RECORD = 5
#         PLUS_PAGE = 6
#         AUTHORIZATION_TYPE_UNSPECIFIED = 0
#         AUTHORIZATION_CODE = 1
#         GOOGLE_PLUS_AUTHORIZATION_CODE = 2
#         FIRST_PARTY_OAUTH = 3
#         DATA_REFRESH_TYPE_UNSPECIFIED = 0
#         SLIDING_WINDOW = 1
#         CUSTOM_SLIDING_WINDOW = 2
#         RUN_ATTEMPT_UNSPECIFIED = 0
#         LATEST = 1
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):
# 
# Path: google/cloud/bigquery_datatransfer_v1/types/transfer.py
# class TransferType(proto.Enum):
# class TransferState(proto.Enum):
# class EmailPreferences(proto.Message):
# class ScheduleOptions(proto.Message):
# class UserInfo(proto.Message):
# class TransferConfig(proto.Message):
# class TransferRun(proto.Message):
# class TransferMessage(proto.Message):
#     class MessageSeverity(proto.Enum):
#     TRANSFER_TYPE_UNSPECIFIED = 0
#     BATCH = 1
#     STREAMING = 2
#     TRANSFER_STATE_UNSPECIFIED = 0
#     PENDING = 2
#     RUNNING = 3
#     SUCCEEDED = 4
#     FAILED = 5
#     CANCELLED = 6
#         MESSAGE_SEVERITY_UNSPECIFIED = 0
#         INFO = 1
#         WARNING = 2
#         ERROR = 3


# Path: google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.bigquery_datatransfer_v1.types import datatransfer
from google.cloud.bigquery_datatransfer_v1.types import transfer

        metadata: Sequence[Tuple[str, str]] = ()
    ):
        """Instantiates the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsRequest):
                The initial request object.
            response (google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsResponse):
                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 = datatransfer.ListTransferRunsRequest(request)
        self._response = response
        self._metadata = metadata

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

    @property
    async def pages(self) -> AsyncIterator[datatransfer.ListTransferRunsResponse]:
        yield self._response
        while self._response.next_page_token:
            self._request.page_token = self._response.next_page_token
            self._response = await self._method(self._request, metadata=self._metadata)
            yield self._response


    def __aiter__(self) -> AsyncIterator[transfer.TransferRun]: