# Path: google/cloud/firestore_admin_v1/types/database.py
# class Database(proto.Message):
#     class DatabaseType(proto.Enum):
#     class ConcurrencyMode(proto.Enum):
#         DATABASE_TYPE_UNSPECIFIED = 0
#         FIRESTORE_NATIVE = 1
#         DATASTORE_MODE = 2
#         CONCURRENCY_MODE_UNSPECIFIED = 0
#         OPTIMISTIC = 1
#         PESSIMISTIC = 2
#         OPTIMISTIC_WITH_ENTITY_GROUPS = 3
# 
# 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


import abc
import pkg_resources
import google.auth  # type: ignore
import google.api_core
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.api_core import operations_v1
from google.auth import credentials as ga_credentials  # type: ignore
from google.oauth2 import service_account  # type: ignore
from google.cloud.firestore_admin_v1.types import database
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
from google.longrunning import operations_pb2  # type: ignore
from google.protobuf import empty_pb2  # type: ignore
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# 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.
#



try:
    DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
        gapic_version=pkg_resources.get_distribution(

# Path: google/cloud/firestore_admin_v1/types/database.py
# class Database(proto.Message):
#     class DatabaseType(proto.Enum):
#     class ConcurrencyMode(proto.Enum):
#         DATABASE_TYPE_UNSPECIFIED = 0
#         FIRESTORE_NATIVE = 1
#         DATASTORE_MODE = 2
#         CONCURRENCY_MODE_UNSPECIFIED = 0
#         OPTIMISTIC = 1
#         PESSIMISTIC = 2
#         OPTIMISTIC_WITH_ENTITY_GROUPS = 3
# 
# 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/transports/base.py
import abc
import pkg_resources
import google.auth  # type: ignore
import google.api_core
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.api_core import operations_v1
from google.auth import credentials as ga_credentials  # type: ignore
from google.oauth2 import service_account  # type: ignore
from google.cloud.firestore_admin_v1.types import database
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
from google.longrunning import operations_pb2  # type: ignore
from google.protobuf import empty_pb2  # type: ignore

# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# 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.
#



try:
    DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
        gapic_version=pkg_resources.get_distribution(

            "google-cloud-firestore-admin",