# Path: google/cloud/firestore_admin_v1/types/field.py
# class Field(proto.Message):
#     class IndexConfig(proto.Message):
# 
# Path: google/cloud/firestore_admin_v1/types/firestore_admin.py
# class ListDatabasesRequest(proto.Message):
# class ListDatabasesResponse(proto.Message):
# class GetDatabaseRequest(proto.Message):
# class UpdateDatabaseRequest(proto.Message):
# class UpdateDatabaseMetadata(proto.Message):
# class CreateIndexRequest(proto.Message):
# class ListIndexesRequest(proto.Message):
# class ListIndexesResponse(proto.Message):
# class GetIndexRequest(proto.Message):
# class DeleteIndexRequest(proto.Message):
# class UpdateFieldRequest(proto.Message):
# class GetFieldRequest(proto.Message):
# class ListFieldsRequest(proto.Message):
# class ListFieldsResponse(proto.Message):
# class ExportDocumentsRequest(proto.Message):
# class ImportDocumentsRequest(proto.Message):
#     def raw_page(self):
#     def raw_page(self):
# 
# Path: google/cloud/firestore_admin_v1/types/index.py
# class Index(proto.Message):
#     class QueryScope(proto.Enum):
#     class State(proto.Enum):
#     class IndexField(proto.Message):
#         class Order(proto.Enum):
#         class ArrayConfig(proto.Enum):
#         QUERY_SCOPE_UNSPECIFIED = 0
#         COLLECTION = 1
#         COLLECTION_GROUP = 2
#         STATE_UNSPECIFIED = 0
#         CREATING = 1
#         READY = 2
#         NEEDS_REPAIR = 3
#             ORDER_UNSPECIFIED = 0
#             ASCENDING = 1
#             DESCENDING = 2
#             ARRAY_CONFIG_UNSPECIFIED = 0
#             CONTAINS = 1


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.firestore_admin_v1.types import field
from google.cloud.firestore_admin_v1.types import firestore_admin
from google.cloud.firestore_admin_v1.types import index
    ``ListFields`` requests and continue to iterate
    through the ``fields`` field on the
    corresponding responses.

    All the usual :class:`google.cloud.firestore_admin_v1.types.ListFieldsResponse`
    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[..., firestore_admin.ListFieldsResponse],
        request: firestore_admin.ListFieldsRequest,
        response: firestore_admin.ListFieldsResponse,
        *,
        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.firestore_admin_v1.types.ListFieldsRequest):
                The initial request object.
            response (google.cloud.firestore_admin_v1.types.ListFieldsResponse):
                The initial response object.
            metadata (Sequence[Tuple[str, str]]): Strings which should be
                sent along with the request as metadata.
        """
        self._method = method

# Path: google/cloud/firestore_admin_v1/types/field.py
# class Field(proto.Message):
#     class IndexConfig(proto.Message):
# 
# Path: google/cloud/firestore_admin_v1/types/firestore_admin.py
# class ListDatabasesRequest(proto.Message):
# class ListDatabasesResponse(proto.Message):
# class GetDatabaseRequest(proto.Message):
# class UpdateDatabaseRequest(proto.Message):
# class UpdateDatabaseMetadata(proto.Message):
# class CreateIndexRequest(proto.Message):
# class ListIndexesRequest(proto.Message):
# class ListIndexesResponse(proto.Message):
# class GetIndexRequest(proto.Message):
# class DeleteIndexRequest(proto.Message):
# class UpdateFieldRequest(proto.Message):
# class GetFieldRequest(proto.Message):
# class ListFieldsRequest(proto.Message):
# class ListFieldsResponse(proto.Message):
# class ExportDocumentsRequest(proto.Message):
# class ImportDocumentsRequest(proto.Message):
#     def raw_page(self):
#     def raw_page(self):
# 
# Path: google/cloud/firestore_admin_v1/types/index.py
# class Index(proto.Message):
#     class QueryScope(proto.Enum):
#     class State(proto.Enum):
#     class IndexField(proto.Message):
#         class Order(proto.Enum):
#         class ArrayConfig(proto.Enum):
#         QUERY_SCOPE_UNSPECIFIED = 0
#         COLLECTION = 1
#         COLLECTION_GROUP = 2
#         STATE_UNSPECIFIED = 0
#         CREATING = 1
#         READY = 2
#         NEEDS_REPAIR = 3
#             ORDER_UNSPECIFIED = 0
#             ASCENDING = 1
#             DESCENDING = 2
#             ARRAY_CONFIG_UNSPECIFIED = 0
#             CONTAINS = 1


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

    ``ListFields`` requests and continue to iterate
    through the ``fields`` field on the
    corresponding responses.

    All the usual :class:`google.cloud.firestore_admin_v1.types.ListFieldsResponse`
    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[..., firestore_admin.ListFieldsResponse],
        request: firestore_admin.ListFieldsRequest,
        response: firestore_admin.ListFieldsResponse,
        *,
        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.firestore_admin_v1.types.ListFieldsRequest):
                The initial request object.
            response (google.cloud.firestore_admin_v1.types.ListFieldsResponse):
                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 = firestore_admin.ListFieldsRequest(request)