# 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


import proto  # type: ignore
from google.cloud.bigquery_datatransfer_v1.types import transfer
from google.protobuf import duration_pb2  # type: ignore
from google.protobuf import field_mask_pb2  # type: ignore
from google.protobuf import timestamp_pb2  # type: ignore
from google.protobuf import wrappers_pb2  # type: ignore
        default_data_refresh_window_days (int):
            Default data refresh window on days. Only meaningful when
            ``data_refresh_type`` = ``SLIDING_WINDOW``.
        manual_runs_disabled (bool):
            Disables backfilling and manual run
            scheduling for the data source.
        minimum_schedule_interval (google.protobuf.duration_pb2.Duration):
            The minimum interval for scheduler to
            schedule runs.
    """

    class AuthorizationType(proto.Enum):
        r"""The type of authorization needed for this data source."""
        AUTHORIZATION_TYPE_UNSPECIFIED = 0
        AUTHORIZATION_CODE = 1
        GOOGLE_PLUS_AUTHORIZATION_CODE = 2
        FIRST_PARTY_OAUTH = 3

    class DataRefreshType(proto.Enum):
        r"""Represents how the data source supports data auto refresh."""
        DATA_REFRESH_TYPE_UNSPECIFIED = 0
        SLIDING_WINDOW = 1
        CUSTOM_SLIDING_WINDOW = 2

    name = proto.Field(proto.STRING, number=1,)
    data_source_id = proto.Field(proto.STRING, number=2,)
    display_name = proto.Field(proto.STRING, number=3,)
    description = proto.Field(proto.STRING, number=4,)
    client_id = proto.Field(proto.STRING, number=5,)
    scopes = proto.RepeatedField(proto.STRING, number=6,)

# 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/types/datatransfer.py
import proto  # type: ignore
from google.cloud.bigquery_datatransfer_v1.types import transfer
from google.protobuf import duration_pb2  # type: ignore
from google.protobuf import field_mask_pb2  # type: ignore
from google.protobuf import timestamp_pb2  # type: ignore
from google.protobuf import wrappers_pb2  # type: ignore

        default_data_refresh_window_days (int):
            Default data refresh window on days. Only meaningful when
            ``data_refresh_type`` = ``SLIDING_WINDOW``.
        manual_runs_disabled (bool):
            Disables backfilling and manual run
            scheduling for the data source.
        minimum_schedule_interval (google.protobuf.duration_pb2.Duration):
            The minimum interval for scheduler to
            schedule runs.
    """

    class AuthorizationType(proto.Enum):
        r"""The type of authorization needed for this data source."""
        AUTHORIZATION_TYPE_UNSPECIFIED = 0
        AUTHORIZATION_CODE = 1
        GOOGLE_PLUS_AUTHORIZATION_CODE = 2
        FIRST_PARTY_OAUTH = 3

    class DataRefreshType(proto.Enum):
        r"""Represents how the data source supports data auto refresh."""
        DATA_REFRESH_TYPE_UNSPECIFIED = 0
        SLIDING_WINDOW = 1
        CUSTOM_SLIDING_WINDOW = 2

    name = proto.Field(proto.STRING, number=1,)
    data_source_id = proto.Field(proto.STRING, number=2,)
    display_name = proto.Field(proto.STRING, number=3,)
    description = proto.Field(proto.STRING, number=4,)
    client_id = proto.Field(proto.STRING, number=5,)
    scopes = proto.RepeatedField(proto.STRING, number=6,)

    transfer_type = proto.Field(proto.ENUM, number=7, enum=transfer.TransferType,)