# Path: google/cloud/datastore_admin_v1/types/datastore_admin.py
# class OperationType(proto.Enum):
# class CommonMetadata(proto.Message):
#     class State(proto.Enum):
# class Progress(proto.Message):
# class ExportEntitiesRequest(proto.Message):
# class ImportEntitiesRequest(proto.Message):
# class ExportEntitiesResponse(proto.Message):
# class ExportEntitiesMetadata(proto.Message):
# class ImportEntitiesMetadata(proto.Message):
# class EntityFilter(proto.Message):
# class CreateIndexRequest(proto.Message):
# class DeleteIndexRequest(proto.Message):
# class GetIndexRequest(proto.Message):
# class ListIndexesRequest(proto.Message):
# class ListIndexesResponse(proto.Message):
# class IndexOperationMetadata(proto.Message):
# class DatastoreFirestoreMigrationMetadata(proto.Message):
#     OPERATION_TYPE_UNSPECIFIED = 0
#     EXPORT_ENTITIES = 1
#     IMPORT_ENTITIES = 2
#     CREATE_INDEX = 3
#     DELETE_INDEX = 4
#         STATE_UNSPECIFIED = 0
#         INITIALIZING = 1
#         PROCESSING = 2
#         CANCELLING = 3
#         FINALIZING = 4
#         SUCCESSFUL = 5
#         FAILED = 6
#         CANCELLED = 7
#     def raw_page(self):
# 
# Path: google/cloud/datastore_admin_v1/types/index.py
# class Index(proto.Message):
#     class AncestorMode(proto.Enum):
#     class Direction(proto.Enum):
#     class State(proto.Enum):
#     class IndexedProperty(proto.Message):
#         ANCESTOR_MODE_UNSPECIFIED = 0
#         NONE = 1
#         ALL_ANCESTORS = 2
#         DIRECTION_UNSPECIFIED = 0
#         ASCENDING = 1
#         DESCENDING = 2
#         STATE_UNSPECIFIED = 0
#         CREATING = 1
#         READY = 2
#         DELETING = 3
#         ERROR = 4


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

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

    @property
    def pages(self) -> Iterator[datastore_admin.ListIndexesResponse]:
        yield self._response
        while self._response.next_page_token:
            self._request.page_token = self._response.next_page_token
            self._response = self._method(self._request, metadata=self._metadata)
            yield self._response


# Path: google/cloud/datastore_admin_v1/types/datastore_admin.py
# class OperationType(proto.Enum):
# class CommonMetadata(proto.Message):
#     class State(proto.Enum):
# class Progress(proto.Message):
# class ExportEntitiesRequest(proto.Message):
# class ImportEntitiesRequest(proto.Message):
# class ExportEntitiesResponse(proto.Message):
# class ExportEntitiesMetadata(proto.Message):
# class ImportEntitiesMetadata(proto.Message):
# class EntityFilter(proto.Message):
# class CreateIndexRequest(proto.Message):
# class DeleteIndexRequest(proto.Message):
# class GetIndexRequest(proto.Message):
# class ListIndexesRequest(proto.Message):
# class ListIndexesResponse(proto.Message):
# class IndexOperationMetadata(proto.Message):
# class DatastoreFirestoreMigrationMetadata(proto.Message):
#     OPERATION_TYPE_UNSPECIFIED = 0
#     EXPORT_ENTITIES = 1
#     IMPORT_ENTITIES = 2
#     CREATE_INDEX = 3
#     DELETE_INDEX = 4
#         STATE_UNSPECIFIED = 0
#         INITIALIZING = 1
#         PROCESSING = 2
#         CANCELLING = 3
#         FINALIZING = 4
#         SUCCESSFUL = 5
#         FAILED = 6
#         CANCELLED = 7
#     def raw_page(self):
# 
# Path: google/cloud/datastore_admin_v1/types/index.py
# class Index(proto.Message):
#     class AncestorMode(proto.Enum):
#     class Direction(proto.Enum):
#     class State(proto.Enum):
#     class IndexedProperty(proto.Message):
#         ANCESTOR_MODE_UNSPECIFIED = 0
#         NONE = 1
#         ALL_ANCESTORS = 2
#         DIRECTION_UNSPECIFIED = 0
#         ASCENDING = 1
#         DESCENDING = 2
#         STATE_UNSPECIFIED = 0
#         CREATING = 1
#         READY = 2
#         DELETING = 3
#         ERROR = 4


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

        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.datastore_admin_v1.types.ListIndexesRequest):
                The initial request object.
            response (google.cloud.datastore_admin_v1.types.ListIndexesResponse):
                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 = datastore_admin.ListIndexesRequest(request)
        self._response = response
        self._metadata = metadata

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

    @property
    def pages(self) -> Iterator[datastore_admin.ListIndexesResponse]:
        yield self._response
        while self._response.next_page_token:
            self._request.page_token = self._response.next_page_token
            self._response = self._method(self._request, metadata=self._metadata)
            yield self._response


    def __iter__(self) -> Iterator[index.Index]: