# Path: google/cloud/tpu_v1/types/cloud_tpu.py
# class SchedulingConfig(proto.Message):
# class NetworkEndpoint(proto.Message):
# class Node(proto.Message):
#     class State(proto.Enum):
#     class Health(proto.Enum):
#     class ApiVersion(proto.Enum):
# class ListNodesRequest(proto.Message):
# class ListNodesResponse(proto.Message):
# class GetNodeRequest(proto.Message):
# class CreateNodeRequest(proto.Message):
# class DeleteNodeRequest(proto.Message):
# class ReimageNodeRequest(proto.Message):
# class StopNodeRequest(proto.Message):
# class StartNodeRequest(proto.Message):
# class TensorFlowVersion(proto.Message):
# class GetTensorFlowVersionRequest(proto.Message):
# class ListTensorFlowVersionsRequest(proto.Message):
# class ListTensorFlowVersionsResponse(proto.Message):
# class AcceleratorType(proto.Message):
# class GetAcceleratorTypeRequest(proto.Message):
# class ListAcceleratorTypesRequest(proto.Message):
# class ListAcceleratorTypesResponse(proto.Message):
# class OperationMetadata(proto.Message):
# class Symptom(proto.Message):
#     class SymptomType(proto.Enum):
#         STATE_UNSPECIFIED = 0
#         CREATING = 1
#         READY = 2
#         RESTARTING = 3
#         REIMAGING = 4
#         DELETING = 5
#         REPAIRING = 6
#         STOPPED = 8
#         STOPPING = 9
#         STARTING = 10
#         PREEMPTED = 11
#         TERMINATED = 12
#         HIDING = 13
#         HIDDEN = 14
#         UNHIDING = 15
#         HEALTH_UNSPECIFIED = 0
#         HEALTHY = 1
#         DEPRECATED_UNHEALTHY = 2
#         TIMEOUT = 3
#         UNHEALTHY_TENSORFLOW = 4
#         UNHEALTHY_MAINTENANCE = 5
#         API_VERSION_UNSPECIFIED = 0
#         V1_ALPHA1 = 1
#         V1 = 2
#         V2_ALPHA1 = 3
#         SYMPTOM_TYPE_UNSPECIFIED = 0
#         LOW_MEMORY = 1
#         OUT_OF_MEMORY = 2
#         EXECUTE_TIMED_OUT = 3
#         MESH_BUILD_FAIL = 4
#         HBM_OUT_OF_MEMORY = 5
#         PROJECT_ABUSE = 6
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.tpu_v1.types import cloud_tpu
        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.tpu_v1.types.ListTensorFlowVersionsRequest):
                The initial request object.
            response (google.cloud.tpu_v1.types.ListTensorFlowVersionsResponse):
                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 = cloud_tpu.ListTensorFlowVersionsRequest(request)
        self._response = response
        self._metadata = metadata

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

    @property
    async def pages(self) -> AsyncIterator[cloud_tpu.ListTensorFlowVersionsResponse]:
        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/tpu_v1/types/cloud_tpu.py
# class SchedulingConfig(proto.Message):
# class NetworkEndpoint(proto.Message):
# class Node(proto.Message):
#     class State(proto.Enum):
#     class Health(proto.Enum):
#     class ApiVersion(proto.Enum):
# class ListNodesRequest(proto.Message):
# class ListNodesResponse(proto.Message):
# class GetNodeRequest(proto.Message):
# class CreateNodeRequest(proto.Message):
# class DeleteNodeRequest(proto.Message):
# class ReimageNodeRequest(proto.Message):
# class StopNodeRequest(proto.Message):
# class StartNodeRequest(proto.Message):
# class TensorFlowVersion(proto.Message):
# class GetTensorFlowVersionRequest(proto.Message):
# class ListTensorFlowVersionsRequest(proto.Message):
# class ListTensorFlowVersionsResponse(proto.Message):
# class AcceleratorType(proto.Message):
# class GetAcceleratorTypeRequest(proto.Message):
# class ListAcceleratorTypesRequest(proto.Message):
# class ListAcceleratorTypesResponse(proto.Message):
# class OperationMetadata(proto.Message):
# class Symptom(proto.Message):
#     class SymptomType(proto.Enum):
#         STATE_UNSPECIFIED = 0
#         CREATING = 1
#         READY = 2
#         RESTARTING = 3
#         REIMAGING = 4
#         DELETING = 5
#         REPAIRING = 6
#         STOPPED = 8
#         STOPPING = 9
#         STARTING = 10
#         PREEMPTED = 11
#         TERMINATED = 12
#         HIDING = 13
#         HIDDEN = 14
#         UNHIDING = 15
#         HEALTH_UNSPECIFIED = 0
#         HEALTHY = 1
#         DEPRECATED_UNHEALTHY = 2
#         TIMEOUT = 3
#         UNHEALTHY_TENSORFLOW = 4
#         UNHEALTHY_MAINTENANCE = 5
#         API_VERSION_UNSPECIFIED = 0
#         V1_ALPHA1 = 1
#         V1 = 2
#         V2_ALPHA1 = 3
#         SYMPTOM_TYPE_UNSPECIFIED = 0
#         LOW_MEMORY = 1
#         OUT_OF_MEMORY = 2
#         EXECUTE_TIMED_OUT = 3
#         MESH_BUILD_FAIL = 4
#         HBM_OUT_OF_MEMORY = 5
#         PROJECT_ABUSE = 6
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):


# Path: google/cloud/tpu_v1/services/tpu/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.tpu_v1.types import cloud_tpu

        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.tpu_v1.types.ListTensorFlowVersionsRequest):
                The initial request object.
            response (google.cloud.tpu_v1.types.ListTensorFlowVersionsResponse):
                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 = cloud_tpu.ListTensorFlowVersionsRequest(request)
        self._response = response
        self._metadata = metadata

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

    @property
    async def pages(self) -> AsyncIterator[cloud_tpu.ListTensorFlowVersionsResponse]:
        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[cloud_tpu.TensorFlowVersion]: