# Path: google/cloud/video/transcoder_v1/types/resources.py
# class Job(proto.Message):
#     class ProcessingState(proto.Enum):
# class JobTemplate(proto.Message):
# class JobConfig(proto.Message):
# class Input(proto.Message):
# class Output(proto.Message):
# class EditAtom(proto.Message):
# class AdBreak(proto.Message):
# class ElementaryStream(proto.Message):
# class MuxStream(proto.Message):
# class Manifest(proto.Message):
#     class ManifestType(proto.Enum):
# class PubsubDestination(proto.Message):
# class SpriteSheet(proto.Message):
# class Overlay(proto.Message):
#     class FadeType(proto.Enum):
#     class NormalizedCoordinate(proto.Message):
#     class Image(proto.Message):
#     class AnimationStatic(proto.Message):
#     class AnimationFade(proto.Message):
#     class AnimationEnd(proto.Message):
#     class Animation(proto.Message):
# class PreprocessingConfig(proto.Message):
#     class Color(proto.Message):
#     class Denoise(proto.Message):
#     class Deblock(proto.Message):
#     class Audio(proto.Message):
#     class Crop(proto.Message):
#     class Pad(proto.Message):
# class VideoStream(proto.Message):
#     class H264CodecSettings(proto.Message):
#     class H265CodecSettings(proto.Message):
#     class Vp9CodecSettings(proto.Message):
# class AudioStream(proto.Message):
#     class AudioMapping(proto.Message):
# class TextStream(proto.Message):
#     class TextMapping(proto.Message):
# class SegmentSettings(proto.Message):
#         PROCESSING_STATE_UNSPECIFIED = 0
#         PENDING = 1
#         RUNNING = 2
#         SUCCEEDED = 3
#         FAILED = 4
#         MANIFEST_TYPE_UNSPECIFIED = 0
#         HLS = 1
#         DASH = 2
#         FADE_TYPE_UNSPECIFIED = 0
#         FADE_IN = 1
#         FADE_OUT = 2
# 
# Path: google/cloud/video/transcoder_v1/types/services.py
# class CreateJobRequest(proto.Message):
# class ListJobsRequest(proto.Message):
# class GetJobRequest(proto.Message):
# class DeleteJobRequest(proto.Message):
# class ListJobsResponse(proto.Message):
# class CreateJobTemplateRequest(proto.Message):
# class ListJobTemplatesRequest(proto.Message):
# class GetJobTemplateRequest(proto.Message):
# class DeleteJobTemplateRequest(proto.Message):
# class ListJobTemplatesResponse(proto.Message):
#     def raw_page(self):
#     def raw_page(self):


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.video.transcoder_v1.types import resources
from google.cloud.video.transcoder_v1.types import services
    def __iter__(self) -> Iterator[resources.JobTemplate]:
        for page in self.pages:
            yield from page.job_templates

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


class ListJobTemplatesAsyncPager:
    """A pager for iterating through ``list_job_templates`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.video.transcoder_v1.types.ListJobTemplatesResponse` object, and
    provides an ``__aiter__`` method to iterate through its
    ``job_templates`` field.

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

    All the usual :class:`google.cloud.video.transcoder_v1.types.ListJobTemplatesResponse`
    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[services.ListJobTemplatesResponse]],
        request: services.ListJobTemplatesRequest,

# Path: google/cloud/video/transcoder_v1/types/resources.py
# class Job(proto.Message):
#     class ProcessingState(proto.Enum):
# class JobTemplate(proto.Message):
# class JobConfig(proto.Message):
# class Input(proto.Message):
# class Output(proto.Message):
# class EditAtom(proto.Message):
# class AdBreak(proto.Message):
# class ElementaryStream(proto.Message):
# class MuxStream(proto.Message):
# class Manifest(proto.Message):
#     class ManifestType(proto.Enum):
# class PubsubDestination(proto.Message):
# class SpriteSheet(proto.Message):
# class Overlay(proto.Message):
#     class FadeType(proto.Enum):
#     class NormalizedCoordinate(proto.Message):
#     class Image(proto.Message):
#     class AnimationStatic(proto.Message):
#     class AnimationFade(proto.Message):
#     class AnimationEnd(proto.Message):
#     class Animation(proto.Message):
# class PreprocessingConfig(proto.Message):
#     class Color(proto.Message):
#     class Denoise(proto.Message):
#     class Deblock(proto.Message):
#     class Audio(proto.Message):
#     class Crop(proto.Message):
#     class Pad(proto.Message):
# class VideoStream(proto.Message):
#     class H264CodecSettings(proto.Message):
#     class H265CodecSettings(proto.Message):
#     class Vp9CodecSettings(proto.Message):
# class AudioStream(proto.Message):
#     class AudioMapping(proto.Message):
# class TextStream(proto.Message):
#     class TextMapping(proto.Message):
# class SegmentSettings(proto.Message):
#         PROCESSING_STATE_UNSPECIFIED = 0
#         PENDING = 1
#         RUNNING = 2
#         SUCCEEDED = 3
#         FAILED = 4
#         MANIFEST_TYPE_UNSPECIFIED = 0
#         HLS = 1
#         DASH = 2
#         FADE_TYPE_UNSPECIFIED = 0
#         FADE_IN = 1
#         FADE_OUT = 2
# 
# Path: google/cloud/video/transcoder_v1/types/services.py
# class CreateJobRequest(proto.Message):
# class ListJobsRequest(proto.Message):
# class GetJobRequest(proto.Message):
# class DeleteJobRequest(proto.Message):
# class ListJobsResponse(proto.Message):
# class CreateJobTemplateRequest(proto.Message):
# class ListJobTemplatesRequest(proto.Message):
# class GetJobTemplateRequest(proto.Message):
# class DeleteJobTemplateRequest(proto.Message):
# class ListJobTemplatesResponse(proto.Message):
#     def raw_page(self):
#     def raw_page(self):


# Path: google/cloud/video/transcoder_v1/services/transcoder_service/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.video.transcoder_v1.types import resources
from google.cloud.video.transcoder_v1.types import services

    def __iter__(self) -> Iterator[resources.JobTemplate]:
        for page in self.pages:
            yield from page.job_templates

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


class ListJobTemplatesAsyncPager:
    """A pager for iterating through ``list_job_templates`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.video.transcoder_v1.types.ListJobTemplatesResponse` object, and
    provides an ``__aiter__`` method to iterate through its
    ``job_templates`` field.

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

    All the usual :class:`google.cloud.video.transcoder_v1.types.ListJobTemplatesResponse`
    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[services.ListJobTemplatesResponse]],
        request: services.ListJobTemplatesRequest,

        response: services.ListJobTemplatesResponse,