# Path: google/cloud/tpu_v2alpha1/types/cloud_tpu.py
# class GuestAttributes(proto.Message):
# class GuestAttributesValue(proto.Message):
# class GuestAttributesEntry(proto.Message):
# class AttachedDisk(proto.Message):
#     class DiskMode(proto.Enum):
# class SchedulingConfig(proto.Message):
# class NetworkEndpoint(proto.Message):
# class AccessConfig(proto.Message):
# class NetworkConfig(proto.Message):
# class ServiceAccount(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 StopNodeRequest(proto.Message):
# class StartNodeRequest(proto.Message):
# class UpdateNodeRequest(proto.Message):
# class ServiceIdentity(proto.Message):
# class GenerateServiceIdentityRequest(proto.Message):
# class GenerateServiceIdentityResponse(proto.Message):
# class AcceleratorType(proto.Message):
# class GetAcceleratorTypeRequest(proto.Message):
# class ListAcceleratorTypesRequest(proto.Message):
# class ListAcceleratorTypesResponse(proto.Message):
# class OperationMetadata(proto.Message):
# class RuntimeVersion(proto.Message):
# class GetRuntimeVersionRequest(proto.Message):
# class ListRuntimeVersionsRequest(proto.Message):
# class ListRuntimeVersionsResponse(proto.Message):
# class Symptom(proto.Message):
#     class SymptomType(proto.Enum):
# class GetGuestAttributesRequest(proto.Message):
# class GetGuestAttributesResponse(proto.Message):
#         DISK_MODE_UNSPECIFIED = 0
#         READ_WRITE = 1
#         READ_ONLY = 2
#         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
#         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_v2alpha1.types import cloud_tpu
            async for page in self.pages:
                for response in page.nodes:
                    yield response

        return async_generator()

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


class ListAcceleratorTypesPager:
    """A pager for iterating through ``list_accelerator_types`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.tpu_v2alpha1.types.ListAcceleratorTypesResponse` object, and
    provides an ``__iter__`` method to iterate through its
    ``accelerator_types`` field.

    If there are more pages, the ``__iter__`` method will make additional
    ``ListAcceleratorTypes`` requests and continue to iterate
    through the ``accelerator_types`` field on the
    corresponding responses.

    All the usual :class:`google.cloud.tpu_v2alpha1.types.ListAcceleratorTypesResponse`
    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,

# Path: google/cloud/tpu_v2alpha1/types/cloud_tpu.py
# class GuestAttributes(proto.Message):
# class GuestAttributesValue(proto.Message):
# class GuestAttributesEntry(proto.Message):
# class AttachedDisk(proto.Message):
#     class DiskMode(proto.Enum):
# class SchedulingConfig(proto.Message):
# class NetworkEndpoint(proto.Message):
# class AccessConfig(proto.Message):
# class NetworkConfig(proto.Message):
# class ServiceAccount(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 StopNodeRequest(proto.Message):
# class StartNodeRequest(proto.Message):
# class UpdateNodeRequest(proto.Message):
# class ServiceIdentity(proto.Message):
# class GenerateServiceIdentityRequest(proto.Message):
# class GenerateServiceIdentityResponse(proto.Message):
# class AcceleratorType(proto.Message):
# class GetAcceleratorTypeRequest(proto.Message):
# class ListAcceleratorTypesRequest(proto.Message):
# class ListAcceleratorTypesResponse(proto.Message):
# class OperationMetadata(proto.Message):
# class RuntimeVersion(proto.Message):
# class GetRuntimeVersionRequest(proto.Message):
# class ListRuntimeVersionsRequest(proto.Message):
# class ListRuntimeVersionsResponse(proto.Message):
# class Symptom(proto.Message):
#     class SymptomType(proto.Enum):
# class GetGuestAttributesRequest(proto.Message):
# class GetGuestAttributesResponse(proto.Message):
#         DISK_MODE_UNSPECIFIED = 0
#         READ_WRITE = 1
#         READ_ONLY = 2
#         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
#         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_v2alpha1/services/tpu/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.tpu_v2alpha1.types import cloud_tpu

            async for page in self.pages:
                for response in page.nodes:
                    yield response

        return async_generator()

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


class ListAcceleratorTypesPager:
    """A pager for iterating through ``list_accelerator_types`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.tpu_v2alpha1.types.ListAcceleratorTypesResponse` object, and
    provides an ``__iter__`` method to iterate through its
    ``accelerator_types`` field.

    If there are more pages, the ``__iter__`` method will make additional
    ``ListAcceleratorTypes`` requests and continue to iterate
    through the ``accelerator_types`` field on the
    corresponding responses.

    All the usual :class:`google.cloud.tpu_v2alpha1.types.ListAcceleratorTypesResponse`
    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[..., cloud_tpu.ListAcceleratorTypesResponse],