# 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/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 proto  # type: ignore
from google.cloud.firestore_admin_v1.types import database as gfa_database
from google.cloud.firestore_admin_v1.types import field as gfa_field
from google.cloud.firestore_admin_v1.types import index as gfa_index
from google.protobuf import field_mask_pb2  # type: ignore

    databases = proto.RepeatedField(
        proto.MESSAGE, number=1, message=gfa_database.Database,
    )


class GetDatabaseRequest(proto.Message):
    r"""The request for
    [FirestoreAdmin.GetDatabase][google.firestore.admin.v1.FirestoreAdmin.GetDatabase].

    Attributes:
        name (str):
            Required. A name of the form
            ``projects/{project_id}/databases/{database_id}``
    """

    name = proto.Field(proto.STRING, number=1,)


class UpdateDatabaseRequest(proto.Message):
    r"""The request for
    [FirestoreAdmin.UpdateDatabase][google.firestore.admin.v1.FirestoreAdmin.UpdateDatabase].

    Attributes:
        database (google.cloud.firestore_admin_v1.types.Database):
            Required. The database to update.
        update_mask (google.protobuf.field_mask_pb2.FieldMask):
            The list of fields to be updated.
    """


# 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/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/types/firestore_admin.py
import proto  # type: ignore
from google.cloud.firestore_admin_v1.types import database as gfa_database
from google.cloud.firestore_admin_v1.types import field as gfa_field
from google.cloud.firestore_admin_v1.types import index as gfa_index
from google.protobuf import field_mask_pb2  # type: ignore


    databases = proto.RepeatedField(
        proto.MESSAGE, number=1, message=gfa_database.Database,
    )


class GetDatabaseRequest(proto.Message):
    r"""The request for
    [FirestoreAdmin.GetDatabase][google.firestore.admin.v1.FirestoreAdmin.GetDatabase].

    Attributes:
        name (str):
            Required. A name of the form
            ``projects/{project_id}/databases/{database_id}``
    """

    name = proto.Field(proto.STRING, number=1,)


class UpdateDatabaseRequest(proto.Message):
    r"""The request for
    [FirestoreAdmin.UpdateDatabase][google.firestore.admin.v1.FirestoreAdmin.UpdateDatabase].

    Attributes:
        database (google.cloud.firestore_admin_v1.types.Database):
            Required. The database to update.
        update_mask (google.protobuf.field_mask_pb2.FieldMask):
            The list of fields to be updated.
    """


    database = proto.Field(proto.MESSAGE, number=1, message=gfa_database.Database,)