# Path: google/cloud/memcache_v1beta2/types/cloud_memcache.py
# class MemcacheVersion(proto.Enum):
# class Instance(proto.Message):
#     class State(proto.Enum):
#     class NodeConfig(proto.Message):
#     class Node(proto.Message):
#         class State(proto.Enum):
#     class InstanceMessage(proto.Message):
#         class Code(proto.Enum):
# class ListInstancesRequest(proto.Message):
# class ListInstancesResponse(proto.Message):
# class GetInstanceRequest(proto.Message):
# class CreateInstanceRequest(proto.Message):
# class UpdateInstanceRequest(proto.Message):
# class DeleteInstanceRequest(proto.Message):
# class ApplyParametersRequest(proto.Message):
# class UpdateParametersRequest(proto.Message):
# class ApplySoftwareUpdateRequest(proto.Message):
# class MemcacheParameters(proto.Message):
# class OperationMetadata(proto.Message):
# class LocationMetadata(proto.Message):
# class ZoneMetadata(proto.Message):
#     MEMCACHE_VERSION_UNSPECIFIED = 0
#     MEMCACHE_1_5 = 1
#         STATE_UNSPECIFIED = 0
#         CREATING = 1
#         READY = 2
#         DELETING = 4
#         PERFORMING_MAINTENANCE = 5
#             STATE_UNSPECIFIED = 0
#             CREATING = 1
#             READY = 2
#             DELETING = 3
#             UPDATING = 4
#             CODE_UNSPECIFIED = 0
#             ZONE_DISTRIBUTION_UNBALANCED = 1
#     def raw_page(self):


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.memcache_v1beta2.types import cloud_memcache

    def __init__(
        self,
        method: Callable[..., cloud_memcache.ListInstancesResponse],
        request: cloud_memcache.ListInstancesRequest,
        response: cloud_memcache.ListInstancesResponse,
        *,
        metadata: Sequence[Tuple[str, str]] = ()
    ):
        """Instantiate the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.memcache_v1beta2.types.ListInstancesRequest):
                The initial request object.
            response (google.cloud.memcache_v1beta2.types.ListInstancesResponse):
                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_memcache.ListInstancesRequest(request)
        self._response = response
        self._metadata = metadata

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

    @property

# Path: google/cloud/memcache_v1beta2/types/cloud_memcache.py
# class MemcacheVersion(proto.Enum):
# class Instance(proto.Message):
#     class State(proto.Enum):
#     class NodeConfig(proto.Message):
#     class Node(proto.Message):
#         class State(proto.Enum):
#     class InstanceMessage(proto.Message):
#         class Code(proto.Enum):
# class ListInstancesRequest(proto.Message):
# class ListInstancesResponse(proto.Message):
# class GetInstanceRequest(proto.Message):
# class CreateInstanceRequest(proto.Message):
# class UpdateInstanceRequest(proto.Message):
# class DeleteInstanceRequest(proto.Message):
# class ApplyParametersRequest(proto.Message):
# class UpdateParametersRequest(proto.Message):
# class ApplySoftwareUpdateRequest(proto.Message):
# class MemcacheParameters(proto.Message):
# class OperationMetadata(proto.Message):
# class LocationMetadata(proto.Message):
# class ZoneMetadata(proto.Message):
#     MEMCACHE_VERSION_UNSPECIFIED = 0
#     MEMCACHE_1_5 = 1
#         STATE_UNSPECIFIED = 0
#         CREATING = 1
#         READY = 2
#         DELETING = 4
#         PERFORMING_MAINTENANCE = 5
#             STATE_UNSPECIFIED = 0
#             CREATING = 1
#             READY = 2
#             DELETING = 3
#             UPDATING = 4
#             CODE_UNSPECIFIED = 0
#             ZONE_DISTRIBUTION_UNBALANCED = 1
#     def raw_page(self):


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


    def __init__(
        self,
        method: Callable[..., cloud_memcache.ListInstancesResponse],
        request: cloud_memcache.ListInstancesRequest,
        response: cloud_memcache.ListInstancesResponse,
        *,
        metadata: Sequence[Tuple[str, str]] = ()
    ):
        """Instantiate the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.memcache_v1beta2.types.ListInstancesRequest):
                The initial request object.
            response (google.cloud.memcache_v1beta2.types.ListInstancesResponse):
                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_memcache.ListInstancesRequest(request)
        self._response = response
        self._metadata = metadata

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

    @property

    def pages(self) -> Iterator[cloud_memcache.ListInstancesResponse]: