"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
"""

import builtins
import clappform.proto.clappform.client.v1.version_pb2
import clappform.proto.clappform.v1.commons_pb2
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import sys
import typing

if sys.version_info >= (3, 10):
    import typing as typing_extensions
else:
    import typing_extensions

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

class _databaseType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _databaseTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_databaseType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    UNSPECIFIED: _databaseType.ValueType  # 0
    MONGO: _databaseType.ValueType  # 1
    POSTGRES: _databaseType.ValueType  # 2
    DATALAKE: _databaseType.ValueType  # 3
    RELATIONAL: _databaseType.ValueType  # 4

class databaseType(_databaseType, metaclass=_databaseTypeEnumTypeWrapper):
    """Do not change numbers of databaseType
    This will affect the meaning its value in the database
    """

UNSPECIFIED: databaseType.ValueType  # 0
MONGO: databaseType.ValueType  # 1
POSTGRES: databaseType.ValueType  # 2
DATALAKE: databaseType.ValueType  # 3
RELATIONAL: databaseType.ValueType  # 4
global___databaseType = databaseType

@typing.final
class Collection(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    ID_FIELD_NUMBER: builtins.int
    SLUG_FIELD_NUMBER: builtins.int
    SETTINGS_FIELD_NUMBER: builtins.int
    APP_ID_FIELD_NUMBER: builtins.int
    DATABASE_FIELD_NUMBER: builtins.int
    CREATED_AT_FIELD_NUMBER: builtins.int
    UPDATED_AT_FIELD_NUMBER: builtins.int
    DELETED_AT_FIELD_NUMBER: builtins.int
    VERSIONS_FIELD_NUMBER: builtins.int
    id: builtins.str
    slug: builtins.str
    settings: builtins.bytes
    app_id: builtins.str
    database: builtins.str
    created_at: builtins.str
    updated_at: builtins.str
    deleted_at: builtins.str
    @property
    def versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[clappform.proto.clappform.client.v1.version_pb2.Version]: ...
    def __init__(
        self,
        *,
        id: builtins.str = ...,
        slug: builtins.str = ...,
        settings: builtins.bytes = ...,
        app_id: builtins.str = ...,
        database: builtins.str | None = ...,
        created_at: builtins.str = ...,
        updated_at: builtins.str = ...,
        deleted_at: builtins.str = ...,
        versions: collections.abc.Iterable[clappform.proto.clappform.client.v1.version_pb2.Version] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["_database", b"_database", "database", b"database"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["_database", b"_database", "app_id", b"app_id", "created_at", b"created_at", "database", b"database", "deleted_at", b"deleted_at", "id", b"id", "settings", b"settings", "slug", b"slug", "updated_at", b"updated_at", "versions", b"versions"]) -> None: ...
    def WhichOneof(self, oneof_group: typing.Literal["_database", b"_database"]) -> typing.Literal["database"] | None: ...

global___Collection = Collection

@typing.final
class CreateRequest(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    SLUG_FIELD_NUMBER: builtins.int
    SETTINGS_FIELD_NUMBER: builtins.int
    APP_ID_FIELD_NUMBER: builtins.int
    DATABASE_FIELD_NUMBER: builtins.int
    slug: builtins.str
    settings: builtins.bytes
    app_id: builtins.str
    database: global___databaseType.ValueType
    def __init__(
        self,
        *,
        slug: builtins.str = ...,
        settings: builtins.bytes = ...,
        app_id: builtins.str = ...,
        database: global___databaseType.ValueType | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["_database", b"_database", "database", b"database"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["_database", b"_database", "app_id", b"app_id", "database", b"database", "settings", b"settings", "slug", b"slug"]) -> None: ...
    def WhichOneof(self, oneof_group: typing.Literal["_database", b"_database"]) -> typing.Literal["database"] | None: ...

global___CreateRequest = CreateRequest

@typing.final
class UpdateRequest(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    ID_FIELD_NUMBER: builtins.int
    SETTINGS_FIELD_NUMBER: builtins.int
    SLUG_FIELD_NUMBER: builtins.int
    id: builtins.str
    settings: builtins.bytes
    slug: builtins.str
    def __init__(
        self,
        *,
        id: builtins.str = ...,
        settings: builtins.bytes = ...,
        slug: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["id", b"id", "settings", b"settings", "slug", b"slug"]) -> None: ...

global___UpdateRequest = UpdateRequest

@typing.final
class Collections(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    COLLECTIONS_FIELD_NUMBER: builtins.int
    PAGINATION_FIELD_NUMBER: builtins.int
    @property
    def collections(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Collection]: ...
    @property
    def pagination(self) -> clappform.proto.clappform.v1.commons_pb2.Pagination: ...
    def __init__(
        self,
        *,
        collections: collections.abc.Iterable[global___Collection] | None = ...,  # type: ignore
        pagination: clappform.proto.clappform.v1.commons_pb2.Pagination | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["pagination", b"pagination"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["collections", b"collections", "pagination", b"pagination"]) -> None: ...

global___Collections = Collections
