# 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
        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.video.transcoder_v1.types.ListJobTemplatesRequest):
                The initial request object.
            response (google.cloud.video.transcoder_v1.types.ListJobTemplatesResponse):
                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 = services.ListJobTemplatesRequest(request)
        self._response = response
        self._metadata = metadata

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

    @property
    async def pages(self) -> AsyncIterator[services.ListJobTemplatesResponse]:
        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/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

        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.video.transcoder_v1.types.ListJobTemplatesRequest):
                The initial request object.
            response (google.cloud.video.transcoder_v1.types.ListJobTemplatesResponse):
                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 = services.ListJobTemplatesRequest(request)
        self._response = response
        self._metadata = metadata

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

    @property
    async def pages(self) -> AsyncIterator[services.ListJobTemplatesResponse]:
        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[resources.JobTemplate]: