# coding: utf-8

"""
    Corpus Processing Service (CPS) API

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

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


import pprint
import re  # noqa: F401

import six

from deepsearch.cps.apis.public.configuration import Configuration


class ProjectTask(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 = {
        'completed_at': 'float',
        'created_at': 'float',
        'meta': 'object',
        'progress': 'float',
        'proj_key': 'str',
        'started_at': 'float',
        'task_id': 'str',
        'task_status': 'str',
        'task_type': 'str',
        'user_key': 'str'
    }

    attribute_map = {
        'completed_at': 'completed_at',
        'created_at': 'created_at',
        'meta': 'meta',
        'progress': 'progress',
        'proj_key': 'proj_key',
        'started_at': 'started_at',
        'task_id': 'task_id',
        'task_status': 'task_status',
        'task_type': 'task_type',
        'user_key': 'user_key'
    }

    def __init__(self, completed_at=None, created_at=None, meta=None, progress=None, proj_key=None, started_at=None, task_id=None, task_status=None, task_type=None, user_key=None, local_vars_configuration=None):  # noqa: E501
        """ProjectTask - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._completed_at = None
        self._created_at = None
        self._meta = None
        self._progress = None
        self._proj_key = None
        self._started_at = None
        self._task_id = None
        self._task_status = None
        self._task_type = None
        self._user_key = None
        self.discriminator = None

        self.completed_at = completed_at
        if created_at is not None:
            self.created_at = created_at
        if meta is not None:
            self.meta = meta
        if progress is not None:
            self.progress = progress
        if proj_key is not None:
            self.proj_key = proj_key
        self.started_at = started_at
        if task_id is not None:
            self.task_id = task_id
        if task_status is not None:
            self.task_status = task_status
        if task_type is not None:
            self.task_type = task_type
        if user_key is not None:
            self.user_key = user_key

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


        :return: The completed_at of this ProjectTask.  # noqa: E501
        :rtype: float
        """
        return self._completed_at

    @completed_at.setter
    def completed_at(self, completed_at):
        """Sets the completed_at of this ProjectTask.


        :param completed_at: The completed_at of this ProjectTask.  # noqa: E501
        :type: float
        """

        self._completed_at = completed_at

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


        :return: The created_at of this ProjectTask.  # noqa: E501
        :rtype: float
        """
        return self._created_at

    @created_at.setter
    def created_at(self, created_at):
        """Sets the created_at of this ProjectTask.


        :param created_at: The created_at of this ProjectTask.  # noqa: E501
        :type: float
        """

        self._created_at = created_at

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


        :return: The meta of this ProjectTask.  # noqa: E501
        :rtype: object
        """
        return self._meta

    @meta.setter
    def meta(self, meta):
        """Sets the meta of this ProjectTask.


        :param meta: The meta of this ProjectTask.  # noqa: E501
        :type: object
        """

        self._meta = meta

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


        :return: The progress of this ProjectTask.  # noqa: E501
        :rtype: float
        """
        return self._progress

    @progress.setter
    def progress(self, progress):
        """Sets the progress of this ProjectTask.


        :param progress: The progress of this ProjectTask.  # noqa: E501
        :type: float
        """

        self._progress = progress

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


        :return: The proj_key of this ProjectTask.  # noqa: E501
        :rtype: str
        """
        return self._proj_key

    @proj_key.setter
    def proj_key(self, proj_key):
        """Sets the proj_key of this ProjectTask.


        :param proj_key: The proj_key of this ProjectTask.  # noqa: E501
        :type: str
        """

        self._proj_key = proj_key

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


        :return: The started_at of this ProjectTask.  # noqa: E501
        :rtype: float
        """
        return self._started_at

    @started_at.setter
    def started_at(self, started_at):
        """Sets the started_at of this ProjectTask.


        :param started_at: The started_at of this ProjectTask.  # noqa: E501
        :type: float
        """

        self._started_at = started_at

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


        :return: The task_id of this ProjectTask.  # noqa: E501
        :rtype: str
        """
        return self._task_id

    @task_id.setter
    def task_id(self, task_id):
        """Sets the task_id of this ProjectTask.


        :param task_id: The task_id of this ProjectTask.  # noqa: E501
        :type: str
        """

        self._task_id = task_id

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


        :return: The task_status of this ProjectTask.  # noqa: E501
        :rtype: str
        """
        return self._task_status

    @task_status.setter
    def task_status(self, task_status):
        """Sets the task_status of this ProjectTask.


        :param task_status: The task_status of this ProjectTask.  # noqa: E501
        :type: str
        """

        self._task_status = task_status

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


        :return: The task_type of this ProjectTask.  # noqa: E501
        :rtype: str
        """
        return self._task_type

    @task_type.setter
    def task_type(self, task_type):
        """Sets the task_type of this ProjectTask.


        :param task_type: The task_type of this ProjectTask.  # noqa: E501
        :type: str
        """

        self._task_type = task_type

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


        :return: The user_key of this ProjectTask.  # noqa: E501
        :rtype: str
        """
        return self._user_key

    @user_key.setter
    def user_key(self, user_key):
        """Sets the user_key of this ProjectTask.


        :param user_key: The user_key of this ProjectTask.  # noqa: E501
        :type: str
        """

        self._user_key = user_key

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

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = 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, ProjectTask):
            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, ProjectTask):
            return True

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