# 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 LlmLLMKnowledgeIngestionConfigReadResponse(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 = {
        'documents': 'list[ProtoLLMDocument]',
        'knowledge': 'ProtoLLMKnowledge',
        'model_connection': 'ProtoLLMModelConnection',
        'vector_db_connection': 'ProtoLLMVectorDBConnConfig'
    }

    attribute_map = {
        'documents': 'documents',
        'knowledge': 'knowledge',
        'model_connection': 'model_connection',
        'vector_db_connection': 'vector_db_connection'
    }

    def __init__(self, documents=None, knowledge=None, model_connection=None, vector_db_connection=None, local_vars_configuration=None):  # noqa: E501
        """LlmLLMKnowledgeIngestionConfigReadResponse - 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._documents = None
        self._knowledge = None
        self._model_connection = None
        self._vector_db_connection = None
        self.discriminator = None

        if documents is not None:
            self.documents = documents
        if knowledge is not None:
            self.knowledge = knowledge
        if model_connection is not None:
            self.model_connection = model_connection
        if vector_db_connection is not None:
            self.vector_db_connection = vector_db_connection

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


        :return: The documents of this LlmLLMKnowledgeIngestionConfigReadResponse.  # noqa: E501
        :rtype: list[ProtoLLMDocument]
        """
        return self._documents

    @documents.setter
    def documents(self, documents):
        """Sets the documents of this LlmLLMKnowledgeIngestionConfigReadResponse.


        :param documents: The documents of this LlmLLMKnowledgeIngestionConfigReadResponse.  # noqa: E501
        :type documents: list[ProtoLLMDocument]
        """

        self._documents = documents

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


        :return: The knowledge of this LlmLLMKnowledgeIngestionConfigReadResponse.  # noqa: E501
        :rtype: ProtoLLMKnowledge
        """
        return self._knowledge

    @knowledge.setter
    def knowledge(self, knowledge):
        """Sets the knowledge of this LlmLLMKnowledgeIngestionConfigReadResponse.


        :param knowledge: The knowledge of this LlmLLMKnowledgeIngestionConfigReadResponse.  # noqa: E501
        :type knowledge: ProtoLLMKnowledge
        """

        self._knowledge = knowledge

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


        :return: The model_connection of this LlmLLMKnowledgeIngestionConfigReadResponse.  # noqa: E501
        :rtype: ProtoLLMModelConnection
        """
        return self._model_connection

    @model_connection.setter
    def model_connection(self, model_connection):
        """Sets the model_connection of this LlmLLMKnowledgeIngestionConfigReadResponse.


        :param model_connection: The model_connection of this LlmLLMKnowledgeIngestionConfigReadResponse.  # noqa: E501
        :type model_connection: ProtoLLMModelConnection
        """

        self._model_connection = model_connection

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


        :return: The vector_db_connection of this LlmLLMKnowledgeIngestionConfigReadResponse.  # noqa: E501
        :rtype: ProtoLLMVectorDBConnConfig
        """
        return self._vector_db_connection

    @vector_db_connection.setter
    def vector_db_connection(self, vector_db_connection):
        """Sets the vector_db_connection of this LlmLLMKnowledgeIngestionConfigReadResponse.


        :param vector_db_connection: The vector_db_connection of this LlmLLMKnowledgeIngestionConfigReadResponse.  # noqa: E501
        :type vector_db_connection: ProtoLLMVectorDBConnConfig
        """

        self._vector_db_connection = vector_db_connection

    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, LlmLLMKnowledgeIngestionConfigReadResponse):
            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, LlmLLMKnowledgeIngestionConfigReadResponse):
            return True

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