# Path: google/cloud/scheduler_v1beta1/types/target.py
# class HttpMethod(proto.Enum):
# class HttpTarget(proto.Message):
# class AppEngineHttpTarget(proto.Message):
# class PubsubTarget(proto.Message):
# class AppEngineRouting(proto.Message):
# class OAuthToken(proto.Message):
# class OidcToken(proto.Message):
#     HTTP_METHOD_UNSPECIFIED = 0
#     POST = 1
#     GET = 2
#     HEAD = 3
#     PUT = 4
#     DELETE = 5
#     PATCH = 6
#     OPTIONS = 7


import proto  # type: ignore
from google.cloud.scheduler_v1beta1.types import target
from google.protobuf import duration_pb2  # type: ignore
from google.protobuf import timestamp_pb2  # type: ignore
from google.rpc import status_pb2  # type: ignore
            not respond by this deadline then the request is cancelled
            and the attempt is marked as a ``DEADLINE_EXCEEDED``
            failure. The failed attempt can be viewed in execution logs.
            Cloud Scheduler will retry the job according to the
            [RetryConfig][google.cloud.scheduler.v1beta1.RetryConfig].

            The allowed duration for this deadline is:

            -  For [HTTP
               targets][google.cloud.scheduler.v1beta1.Job.http_target],
               between 15 seconds and 30 minutes.
            -  For [App Engine HTTP
               targets][google.cloud.scheduler.v1beta1.Job.app_engine_http_target],
               between 15 seconds and 24 hours.
            -  For [PubSub
               targets][google.cloud.scheduler.v1beta1.Job.pubsub_target],
               this field is ignored.
    """

    class State(proto.Enum):
        r"""State of the job."""
        STATE_UNSPECIFIED = 0
        ENABLED = 1
        PAUSED = 2
        DISABLED = 3
        UPDATE_FAILED = 4

    name = proto.Field(proto.STRING, number=1,)
    description = proto.Field(proto.STRING, number=2,)
    pubsub_target = proto.Field(

# Path: google/cloud/scheduler_v1beta1/types/target.py
# class HttpMethod(proto.Enum):
# class HttpTarget(proto.Message):
# class AppEngineHttpTarget(proto.Message):
# class PubsubTarget(proto.Message):
# class AppEngineRouting(proto.Message):
# class OAuthToken(proto.Message):
# class OidcToken(proto.Message):
#     HTTP_METHOD_UNSPECIFIED = 0
#     POST = 1
#     GET = 2
#     HEAD = 3
#     PUT = 4
#     DELETE = 5
#     PATCH = 6
#     OPTIONS = 7


# Path: google/cloud/scheduler_v1beta1/types/job.py
import proto  # type: ignore
from google.cloud.scheduler_v1beta1.types import target
from google.protobuf import duration_pb2  # type: ignore
from google.protobuf import timestamp_pb2  # type: ignore
from google.rpc import status_pb2  # type: ignore

            not respond by this deadline then the request is cancelled
            and the attempt is marked as a ``DEADLINE_EXCEEDED``
            failure. The failed attempt can be viewed in execution logs.
            Cloud Scheduler will retry the job according to the
            [RetryConfig][google.cloud.scheduler.v1beta1.RetryConfig].

            The allowed duration for this deadline is:

            -  For [HTTP
               targets][google.cloud.scheduler.v1beta1.Job.http_target],
               between 15 seconds and 30 minutes.
            -  For [App Engine HTTP
               targets][google.cloud.scheduler.v1beta1.Job.app_engine_http_target],
               between 15 seconds and 24 hours.
            -  For [PubSub
               targets][google.cloud.scheduler.v1beta1.Job.pubsub_target],
               this field is ignored.
    """

    class State(proto.Enum):
        r"""State of the job."""
        STATE_UNSPECIFIED = 0
        ENABLED = 1
        PAUSED = 2
        DISABLED = 3
        UPDATE_FAILED = 4

    name = proto.Field(proto.STRING, number=1,)
    description = proto.Field(proto.STRING, number=2,)
    pubsub_target = proto.Field(

        proto.MESSAGE, number=4, oneof="target", message=target.PubsubTarget,