# coding: utf-8

"""
    Aron API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 1.0.0
    Generated by: https://openapi-generator.tech
"""


try:
    from inspect import getfullargspec
except ImportError:
    from inspect import getargspec as getfullargspec
import pprint
import re  # noqa: F401
import six

from openapi_client.configuration import Configuration


class V1WorkflowNodeInput(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    openapi_types = {
        'inline_code': 'V1WorkflowNodeInlineCode',
        'kind': 'str',
        'llm_query': 'V1WorkflowNodeLLMQuery',
        'vector_search': 'V1WorkflowNodeVectorSearch'
    }

    attribute_map = {
        'inline_code': 'inline_code',
        'kind': 'kind',
        'llm_query': 'llm_query',
        'vector_search': 'vector_search'
    }

    def __init__(self, inline_code=None, kind=None, llm_query=None, vector_search=None, local_vars_configuration=None):  # noqa: E501
        """V1WorkflowNodeInput - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._inline_code = None
        self._kind = None
        self._llm_query = None
        self._vector_search = None
        self.discriminator = None

        if inline_code is not None:
            self.inline_code = inline_code
        if kind is not None:
            self.kind = kind
        if llm_query is not None:
            self.llm_query = llm_query
        if vector_search is not None:
            self.vector_search = vector_search

    @property
    def inline_code(self):
        """Gets the inline_code of this V1WorkflowNodeInput.  # noqa: E501


        :return: The inline_code of this V1WorkflowNodeInput.  # noqa: E501
        :rtype: V1WorkflowNodeInlineCode
        """
        return self._inline_code

    @inline_code.setter
    def inline_code(self, inline_code):
        """Sets the inline_code of this V1WorkflowNodeInput.


        :param inline_code: The inline_code of this V1WorkflowNodeInput.  # noqa: E501
        :type inline_code: V1WorkflowNodeInlineCode
        """

        self._inline_code = inline_code

    @property
    def kind(self):
        """Gets the kind of this V1WorkflowNodeInput.  # noqa: E501


        :return: The kind of this V1WorkflowNodeInput.  # noqa: E501
        :rtype: str
        """
        return self._kind

    @kind.setter
    def kind(self, kind):
        """Sets the kind of this V1WorkflowNodeInput.


        :param kind: The kind of this V1WorkflowNodeInput.  # noqa: E501
        :type kind: str
        """
        allowed_values = ["workflowv1/InlineCode", "workflowv1/LLMQuery", "workflowv1/VectorSearch", "workflowv1/InvokeTool"]  # noqa: E501
        if self.local_vars_configuration.client_side_validation and kind not in allowed_values:  # noqa: E501
            raise ValueError(
                "Invalid value for `kind` ({0}), must be one of {1}"  # noqa: E501
                .format(kind, allowed_values)
            )

        self._kind = kind

    @property
    def llm_query(self):
        """Gets the llm_query of this V1WorkflowNodeInput.  # noqa: E501


        :return: The llm_query of this V1WorkflowNodeInput.  # noqa: E501
        :rtype: V1WorkflowNodeLLMQuery
        """
        return self._llm_query

    @llm_query.setter
    def llm_query(self, llm_query):
        """Sets the llm_query of this V1WorkflowNodeInput.


        :param llm_query: The llm_query of this V1WorkflowNodeInput.  # noqa: E501
        :type llm_query: V1WorkflowNodeLLMQuery
        """

        self._llm_query = llm_query

    @property
    def vector_search(self):
        """Gets the vector_search of this V1WorkflowNodeInput.  # noqa: E501


        :return: The vector_search of this V1WorkflowNodeInput.  # noqa: E501
        :rtype: V1WorkflowNodeVectorSearch
        """
        return self._vector_search

    @vector_search.setter
    def vector_search(self, vector_search):
        """Sets the vector_search of this V1WorkflowNodeInput.


        :param vector_search: The vector_search of this V1WorkflowNodeInput.  # noqa: E501
        :type vector_search: V1WorkflowNodeVectorSearch
        """

        self._vector_search = vector_search

    def to_dict(self, serialize=False):
        """Returns the model properties as a dict"""
        result = {}

        def convert(x):
            if hasattr(x, "to_dict"):
                args = getfullargspec(x.to_dict).args
                if len(args) == 1:
                    return x.to_dict()
                else:
                    return x.to_dict(serialize)
            else:
                return x

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            attr = self.attribute_map.get(attr, attr) if serialize else attr
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: convert(x),
                    value
                ))
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], convert(item[1])),
                    value.items()
                ))
            else:
                result[attr] = convert(value)

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, V1WorkflowNodeInput):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, V1WorkflowNodeInput):
            return True

        return self.to_dict() != other.to_dict()
