# 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
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#



class ListIndexesPager:
    """A pager for iterating through ``list_indexes`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.datastore_admin_v1.types.ListIndexesResponse` object, and
    provides an ``__iter__`` method to iterate through its
    ``indexes`` field.

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

    All the usual :class:`google.cloud.datastore_admin_v1.types.ListIndexesResponse`
    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/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

#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#



class ListIndexesPager:
    """A pager for iterating through ``list_indexes`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.datastore_admin_v1.types.ListIndexesResponse` object, and
    provides an ``__iter__`` method to iterate through its
    ``indexes`` field.

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

    All the usual :class:`google.cloud.datastore_admin_v1.types.ListIndexesResponse`
    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[..., datastore_admin.ListIndexesResponse],