# 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
            yield self._response

    def __iter__(self) -> Iterator[transfer.TransferMessage]:
        for page in self.pages:
            yield from page.transfer_messages

    def __repr__(self) -> str:
        return "{0}<{1!r}>".format(self.__class__.__name__, self._response)


class ListTransferLogsAsyncPager:
    """A pager for iterating through ``list_transfer_logs`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsResponse` object, and
    provides an ``__aiter__`` method to iterate through its
    ``transfer_messages`` field.

    If there are more pages, the ``__aiter__`` method will make additional
    ``ListTransferLogs`` requests and continue to iterate
    through the ``transfer_messages`` field on the
    corresponding responses.

    All the usual :class:`google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsResponse`
    attributes are available on the pager. If multiple requests are made, only
    the most recent response is retained, and thus used for attribute lookup.
    """

    def __init__(
        self,

# 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

            yield self._response

    def __iter__(self) -> Iterator[transfer.TransferMessage]:
        for page in self.pages:
            yield from page.transfer_messages

    def __repr__(self) -> str:
        return "{0}<{1!r}>".format(self.__class__.__name__, self._response)


class ListTransferLogsAsyncPager:
    """A pager for iterating through ``list_transfer_logs`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsResponse` object, and
    provides an ``__aiter__`` method to iterate through its
    ``transfer_messages`` field.

    If there are more pages, the ``__aiter__`` method will make additional
    ``ListTransferLogs`` requests and continue to iterate
    through the ``transfer_messages`` field on the
    corresponding responses.

    All the usual :class:`google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsResponse`
    attributes are available on the pager. If multiple requests are made, only
    the most recent response is retained, and thus used for attribute lookup.
    """

    def __init__(
        self,

        method: Callable[..., Awaitable[datatransfer.ListTransferLogsResponse]],