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

import builtins
import collections.abc
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import projects_pb2
import sys
import typing

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

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

@typing.final
class OutputMessage(google.protobuf.message.Message):
    """*
    Describes a single response of an intent.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

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

    class _ChannelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[OutputMessage._Channel.ValueType], builtins.type):
        DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
        CHAT: OutputMessage._Channel.ValueType  # 0
        VOICE: OutputMessage._Channel.ValueType  # 1
        EMAIL: OutputMessage._Channel.ValueType  # 2

    class Channel(_Channel, metaclass=_ChannelEnumTypeWrapper): ...
    CHAT: OutputMessage.Channel.ValueType  # 0
    VOICE: OutputMessage.Channel.ValueType  # 1
    EMAIL: OutputMessage.Channel.ValueType  # 2

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

        KEY_FIELD_NUMBER: builtins.int
        VALUE_FIELD_NUMBER: builtins.int
        key: builtins.str
        value: builtins.str
        def __init__(
            self,
            *,
            key: builtins.str = ...,
            value: builtins.str = ...,
        ) -> None: ...
        def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...

    CHANNEL_FIELD_NUMBER: builtins.int
    DATA_FIELD_NUMBER: builtins.int
    channel: global___OutputMessage.Channel.ValueType
    """Channel through which the message is delivered."""
    @property
    def data(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
        """Flexible key/value pairs for message data.
        Example: "text": "Hello, how can I help?"
                 "redirect": "intent_123"
                 "tts_speed": "slow"
        """

    def __init__(
        self,
        *,
        channel: global___OutputMessage.Channel.ValueType = ...,
        data: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["channel", b"channel", "data", b"data"]) -> None: ...

global___OutputMessage = OutputMessage

@typing.final
class Intent(google.protobuf.message.Message):
    """*
    Represents an intent within a project.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    ID_FIELD_NUMBER: builtins.int
    PROJECT_ID_FIELD_NUMBER: builtins.int
    LOCALE_FIELD_NUMBER: builtins.int
    TOPIC_FIELD_NUMBER: builtins.int
    INPUTS_FIELD_NUMBER: builtins.int
    OUTPUT_CHAT_FIELD_NUMBER: builtins.int
    OUTPUT_VOICE_FIELD_NUMBER: builtins.int
    OUTPUT_EMAIL_FIELD_NUMBER: builtins.int
    OUTPUTS_FIELD_NUMBER: builtins.int
    RELATED_TO_FIELD_NUMBER: builtins.int
    PUBLISHED_FIELD_NUMBER: builtins.int
    EXCLUDE_OUTPUT_FROM_SEARCH_FIELD_NUMBER: builtins.int
    KEYWORDS_FIELD_NUMBER: builtins.int
    CREATOR_ID_FIELD_NUMBER: builtins.int
    id: builtins.str
    """Unique ID of the intent."""
    project_id: builtins.str
    """Project ID to which this intent belongs."""
    locale: builtins.str
    """Default locale for input and output."""
    topic: builtins.str
    """Topic assignment of the intent."""
    published: builtins.bool
    """Indicates whether the intent is published (not a draft)."""
    exclude_output_from_search: builtins.bool
    """If true, the output of this intent is excluded from search queries."""
    creator_id: builtins.str
    """ID of the creator of this intent."""
    @property
    def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IntentInput]:
        """List of inputs (IntentInput) assigned to this intent."""

    @property
    def output_chat(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """Old, channel-separated outputs (still present)."""

    @property
    def output_voice(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
    @property
    def output_email(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
    @property
    def outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OutputMessage]:
        """New, extensible outputs."""

    @property
    def related_to(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Relation]:
        """Relationships to other intents (parents, children, peers)."""

    @property
    def keywords(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Keyword]:
        """List of keywords for targeted search."""

    def __init__(
        self,
        *,
        id: builtins.str = ...,
        project_id: builtins.str = ...,
        locale: builtins.str = ...,
        topic: builtins.str = ...,
        inputs: collections.abc.Iterable[global___IntentInput] | None = ...,
        output_chat: collections.abc.Iterable[builtins.str] | None = ...,
        output_voice: collections.abc.Iterable[builtins.str] | None = ...,
        output_email: collections.abc.Iterable[builtins.str] | None = ...,
        outputs: collections.abc.Iterable[global___OutputMessage] | None = ...,
        related_to: collections.abc.Iterable[global___Relation] | None = ...,
        published: builtins.bool = ...,
        exclude_output_from_search: builtins.bool = ...,
        keywords: collections.abc.Iterable[global___Keyword] | None = ...,
        creator_id: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["creator_id", b"creator_id", "exclude_output_from_search", b"exclude_output_from_search", "id", b"id", "inputs", b"inputs", "keywords", b"keywords", "locale", b"locale", "output_chat", b"output_chat", "output_email", b"output_email", "output_voice", b"output_voice", "outputs", b"outputs", "project_id", b"project_id", "published", b"published", "related_to", b"related_to", "topic", b"topic"]) -> None: ...

global___Intent = Intent

@typing.final
class IntentInput(google.protobuf.message.Message):
    """*
    Defines an input for an intent.
    Each input can be identified by UUID; if it does not exist, a new input is created.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    UUID_FIELD_NUMBER: builtins.int
    INPUT_FIELD_NUMBER: builtins.int
    uuid: builtins.str
    """UUID for identification."""
    input: builtins.str
    """The actual input text."""
    def __init__(
        self,
        *,
        uuid: builtins.str = ...,
        input: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["input", b"input", "uuid", b"uuid"]) -> None: ...

global___IntentInput = IntentInput

@typing.final
class Relation(google.protobuf.message.Message):
    """*
    Relation
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    PARENTS_FIELD_NUMBER: builtins.int
    CHILDREN_FIELD_NUMBER: builtins.int
    PEERS_FIELD_NUMBER: builtins.int
    @property
    def parents(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """Parents are intents that are directly related to this intent."""

    @property
    def children(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """Children are intents that are directly related to this intent."""

    @property
    def peers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """Peers are intents that are at the same level in the hierarchy."""

    def __init__(
        self,
        *,
        parents: collections.abc.Iterable[builtins.str] | None = ...,
        children: collections.abc.Iterable[builtins.str] | None = ...,
        peers: collections.abc.Iterable[builtins.str] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["children", b"children", "parents", b"parents", "peers", b"peers"]) -> None: ...

global___Relation = Relation

@typing.final
class Keyword(google.protobuf.message.Message):
    """*
    Represents a keyword for identification or prioritization of an intent.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEYWORD_FIELD_NUMBER: builtins.int
    PRIORITY_FIELD_NUMBER: builtins.int
    keyword: builtins.str
    """The keyword."""
    priority: builtins.int
    """Priority (e.g. for ranking)."""
    def __init__(
        self,
        *,
        keyword: builtins.str = ...,
        priority: builtins.int = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["keyword", b"keyword", "priority", b"priority"]) -> None: ...

global___Keyword = Keyword

@typing.final
class UpdateContentRequest(google.protobuf.message.Message):
    """*
    Used to add or update intents.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    INTENTS_FIELD_NUMBER: builtins.int
    @property
    def intents(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Intent]:
        """Intents to add or update."""

    def __init__(
        self,
        *,
        intents: collections.abc.Iterable[global___Intent] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["intents", b"intents"]) -> None: ...

global___UpdateContentRequest = UpdateContentRequest

@typing.final
class UpdateContentResponse(google.protobuf.message.Message):
    """*
    Contains the status of the update operation.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    INTENT_IDS_FIELD_NUMBER: builtins.int
    @property
    def intent_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """IDs of added or updated intents."""

    def __init__(
        self,
        *,
        intent_ids: collections.abc.Iterable[builtins.str] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["intent_ids", b"intent_ids"]) -> None: ...

global___UpdateContentResponse = UpdateContentResponse

@typing.final
class RemoveContentRequest(google.protobuf.message.Message):
    """*
    Used to remove intents.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    ID_FIELD_NUMBER: builtins.int
    PROJECT_ID_FIELD_NUMBER: builtins.int
    project_id: builtins.str
    """Project from which to delete."""
    @property
    def id(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """IDs of intents to delete."""

    def __init__(
        self,
        *,
        id: collections.abc.Iterable[builtins.str] | None = ...,
        project_id: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["id", b"id", "project_id", b"project_id"]) -> None: ...

global___RemoveContentRequest = RemoveContentRequest

@typing.final
class RemoveContentResponse(google.protobuf.message.Message):
    """* Confirms removal of intents."""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    def __init__(
        self,
    ) -> None: ...

global___RemoveContentResponse = RemoveContentResponse

@typing.final
class GetContentRequest(google.protobuf.message.Message):
    """*
    Retrieves content (intents) and performs similarity searches.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    PROMPT_FIELD_NUMBER: builtins.int
    PROJECT_ID_FIELD_NUMBER: builtins.int
    NUM_RESULTS_FIELD_NUMBER: builtins.int
    THRESHOLD_FIELD_NUMBER: builtins.int
    FILTERS_FIELD_NUMBER: builtins.int
    CHAT_ID_FIELD_NUMBER: builtins.int
    INCLUDE_UNPUBLISHED_INTENTS_FIELD_NUMBER: builtins.int
    prompt: builtins.str
    project_id: builtins.str
    num_results: builtins.int
    threshold: builtins.float
    chat_id: builtins.str
    include_unpublished_intents: builtins.bool
    @property
    def filters(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ContentFilter]: ...
    def __init__(
        self,
        *,
        prompt: builtins.str = ...,
        project_id: builtins.str = ...,
        num_results: builtins.int = ...,
        threshold: builtins.float | None = ...,
        filters: collections.abc.Iterable[global___ContentFilter] | None = ...,
        chat_id: builtins.str = ...,
        include_unpublished_intents: builtins.bool = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["_threshold", b"_threshold", "threshold", b"threshold"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["_threshold", b"_threshold", "chat_id", b"chat_id", "filters", b"filters", "include_unpublished_intents", b"include_unpublished_intents", "num_results", b"num_results", "project_id", b"project_id", "prompt", b"prompt", "threshold", b"threshold"]) -> None: ...
    def WhichOneof(self, oneof_group: typing.Literal["_threshold", b"_threshold"]) -> typing.Literal["threshold"] | None: ...

global___GetContentRequest = GetContentRequest

@typing.final
class GetContentResponse(google.protobuf.message.Message):
    """*
    Response to a content query.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    ITEMS_FIELD_NUMBER: builtins.int
    CHAT_ID_FIELD_NUMBER: builtins.int
    chat_id: builtins.str
    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ContentResponseItem]: ...
    def __init__(
        self,
        *,
        items: collections.abc.Iterable[global___ContentResponseItem] | None = ...,
        chat_id: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["chat_id", b"chat_id", "items", b"items"]) -> None: ...

global___GetContentResponse = GetContentResponse

@typing.final
class ContentFilter(google.protobuf.message.Message):
    """*
    Defines filter criteria for content queries.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    FIELD_FIELD_NUMBER: builtins.int
    VALUE_FIELD_NUMBER: builtins.int
    OPERATOR_FIELD_NUMBER: builtins.int
    LABEL_FIELD_NUMBER: builtins.int
    field: builtins.str
    value: builtins.str
    operator: builtins.str
    @property
    def label(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
    def __init__(
        self,
        *,
        field: builtins.str = ...,
        value: builtins.str = ...,
        operator: builtins.str = ...,
        label: collections.abc.Iterable[builtins.str] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["field", b"field", "label", b"label", "operator", b"operator", "value", b"value"]) -> None: ...

global___ContentFilter = ContentFilter

@typing.final
class ContentResponseItem(google.protobuf.message.Message):
    """*
    A single search result.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    ID_FIELD_NUMBER: builtins.int
    SCORE_FIELD_NUMBER: builtins.int
    INTENT_FIELD_NUMBER: builtins.int
    FALLBACK_MESSAGE_FIELD_NUMBER: builtins.int
    FALLBACK_MESSAGES_FIELD_NUMBER: builtins.int
    MATCHED_INPUTS_FIELD_NUMBER: builtins.int
    MATCHED_KEYWORD_FIELD_NUMBER: builtins.int
    id: builtins.str
    """ID of the matching IntentInput element."""
    score: builtins.float
    """Similarity/relevance score."""
    fallback_message: builtins.str
    """A single fallback message as a string"""
    matched_inputs: builtins.int
    """Number of inputs of the intent that matched the query."""
    @property
    def intent(self) -> global___Intent:
        """Full intent."""

    @property
    def fallback_messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[projects_pb2.FallbackMessage]: ...
    @property
    def matched_keyword(self) -> global___Keyword:
        """Might contain the keyword that resulted in the match rather than semantic similarity search."""

    def __init__(
        self,
        *,
        id: builtins.str = ...,
        score: builtins.float = ...,
        intent: global___Intent | None = ...,
        fallback_message: builtins.str = ...,
        fallback_messages: collections.abc.Iterable[projects_pb2.FallbackMessage] | None = ...,
        matched_inputs: builtins.int = ...,
        matched_keyword: global___Keyword | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["intent", b"intent", "matched_keyword", b"matched_keyword"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["fallback_message", b"fallback_message", "fallback_messages", b"fallback_messages", "id", b"id", "intent", b"intent", "matched_inputs", b"matched_inputs", "matched_keyword", b"matched_keyword", "score", b"score"]) -> None: ...

global___ContentResponseItem = ContentResponseItem

@typing.final
class GetIntentsRequest(google.protobuf.message.Message):
    """*
    Requests all intents of a specific project.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    PROJECT_ID_FIELD_NUMBER: builtins.int
    project_id: builtins.str
    def __init__(
        self,
        *,
        project_id: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["project_id", b"project_id"]) -> None: ...

global___GetIntentsRequest = GetIntentsRequest

@typing.final
class GetScoreLimitsRequest(google.protobuf.message.Message):
    """*
    Determines score limits for a project.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    PROJECT_ID_FIELD_NUMBER: builtins.int
    TEST_SENTENCES_UPPER_LIMIT_FIELD_NUMBER: builtins.int
    TEST_SENTENCES_LOWER_LIMIT_FIELD_NUMBER: builtins.int
    project_id: builtins.str
    @property
    def test_sentences_upper_limit(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
    @property
    def test_sentences_lower_limit(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
    def __init__(
        self,
        *,
        project_id: builtins.str = ...,
        test_sentences_upper_limit: collections.abc.Iterable[builtins.str] | None = ...,
        test_sentences_lower_limit: collections.abc.Iterable[builtins.str] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["project_id", b"project_id", "test_sentences_lower_limit", b"test_sentences_lower_limit", "test_sentences_upper_limit", b"test_sentences_upper_limit"]) -> None: ...

global___GetScoreLimitsRequest = GetScoreLimitsRequest

@typing.final
class GetScoreLimitsResponse(google.protobuf.message.Message):
    """*
    Returns the determined score limits for a project.
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    MIN_THRESHOLD_FIELD_NUMBER: builtins.int
    MAX_THRESHOLD_FIELD_NUMBER: builtins.int
    min_threshold: builtins.float
    max_threshold: builtins.float
    def __init__(
        self,
        *,
        min_threshold: builtins.float = ...,
        max_threshold: builtins.float = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["max_threshold", b"max_threshold", "min_threshold", b"min_threshold"]) -> None: ...

global___GetScoreLimitsResponse = GetScoreLimitsResponse

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

    PROJECT_ID_FIELD_NUMBER: builtins.int
    project_id: builtins.str
    def __init__(
        self,
        *,
        project_id: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["project_id", b"project_id"]) -> None: ...

global___GetKeywordsRequest = GetKeywordsRequest

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

    KEYWORD_FIELD_NUMBER: builtins.int
    ID_FIELD_NUMBER: builtins.int
    id: builtins.str
    @property
    def keyword(self) -> global___Keyword: ...
    def __init__(
        self,
        *,
        keyword: global___Keyword | None = ...,
        id: builtins.str = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["keyword", b"keyword"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["id", b"id", "keyword", b"keyword"]) -> None: ...

global___GetKeywordsResponse = GetKeywordsResponse
