# coding: utf-8

"""
    insight

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class ItemDocForPullPostOutput(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_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.
    """
    swagger_types = {
        'asr': 'str',
        'content': 'str',
        'dedup_id': 'str',
        'emotion': 'str',
        'fans_count': 'int',
        'is_follow': 'bool',
        'main_domain': 'str',
        'media_name': 'str',
        'ocr': 'str',
        'ocr_high': 'str',
        'post_id': 'str',
        'publish_time': 'str',
        'reason': 'str',
        'risk_type': 'list[str]',
        'summary': 'str',
        'title': 'str',
        'url': 'str',
        'locations': 'list[LocationForPullPostOutput]'
    }

    attribute_map = {
        'asr': 'Asr',
        'content': 'Content',
        'dedup_id': 'DedupID',
        'emotion': 'Emotion',
        'fans_count': 'FansCount',
        'is_follow': 'IsFollow',
        'main_domain': 'MainDomain',
        'media_name': 'MediaName',
        'ocr': 'Ocr',
        'ocr_high': 'OcrHigh',
        'post_id': 'PostID',
        'publish_time': 'PublishTime',
        'reason': 'Reason',
        'risk_type': 'RiskType',
        'summary': 'Summary',
        'title': 'Title',
        'url': 'Url',
        'locations': 'locations'
    }

    def __init__(self, asr=None, content=None, dedup_id=None, emotion=None, fans_count=None, is_follow=None, main_domain=None, media_name=None, ocr=None, ocr_high=None, post_id=None, publish_time=None, reason=None, risk_type=None, summary=None, title=None, url=None, locations=None, _configuration=None):  # noqa: E501
        """ItemDocForPullPostOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._asr = None
        self._content = None
        self._dedup_id = None
        self._emotion = None
        self._fans_count = None
        self._is_follow = None
        self._main_domain = None
        self._media_name = None
        self._ocr = None
        self._ocr_high = None
        self._post_id = None
        self._publish_time = None
        self._reason = None
        self._risk_type = None
        self._summary = None
        self._title = None
        self._url = None
        self._locations = None
        self.discriminator = None

        if asr is not None:
            self.asr = asr
        if content is not None:
            self.content = content
        if dedup_id is not None:
            self.dedup_id = dedup_id
        if emotion is not None:
            self.emotion = emotion
        if fans_count is not None:
            self.fans_count = fans_count
        if is_follow is not None:
            self.is_follow = is_follow
        if main_domain is not None:
            self.main_domain = main_domain
        if media_name is not None:
            self.media_name = media_name
        if ocr is not None:
            self.ocr = ocr
        if ocr_high is not None:
            self.ocr_high = ocr_high
        if post_id is not None:
            self.post_id = post_id
        if publish_time is not None:
            self.publish_time = publish_time
        if reason is not None:
            self.reason = reason
        if risk_type is not None:
            self.risk_type = risk_type
        if summary is not None:
            self.summary = summary
        if title is not None:
            self.title = title
        if url is not None:
            self.url = url
        if locations is not None:
            self.locations = locations

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


        :return: The asr of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._asr

    @asr.setter
    def asr(self, asr):
        """Sets the asr of this ItemDocForPullPostOutput.


        :param asr: The asr of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._asr = asr

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


        :return: The content of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._content

    @content.setter
    def content(self, content):
        """Sets the content of this ItemDocForPullPostOutput.


        :param content: The content of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._content = content

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


        :return: The dedup_id of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._dedup_id

    @dedup_id.setter
    def dedup_id(self, dedup_id):
        """Sets the dedup_id of this ItemDocForPullPostOutput.


        :param dedup_id: The dedup_id of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._dedup_id = dedup_id

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


        :return: The emotion of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._emotion

    @emotion.setter
    def emotion(self, emotion):
        """Sets the emotion of this ItemDocForPullPostOutput.


        :param emotion: The emotion of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._emotion = emotion

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


        :return: The fans_count of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: int
        """
        return self._fans_count

    @fans_count.setter
    def fans_count(self, fans_count):
        """Sets the fans_count of this ItemDocForPullPostOutput.


        :param fans_count: The fans_count of this ItemDocForPullPostOutput.  # noqa: E501
        :type: int
        """

        self._fans_count = fans_count

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


        :return: The is_follow of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: bool
        """
        return self._is_follow

    @is_follow.setter
    def is_follow(self, is_follow):
        """Sets the is_follow of this ItemDocForPullPostOutput.


        :param is_follow: The is_follow of this ItemDocForPullPostOutput.  # noqa: E501
        :type: bool
        """

        self._is_follow = is_follow

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


        :return: The main_domain of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._main_domain

    @main_domain.setter
    def main_domain(self, main_domain):
        """Sets the main_domain of this ItemDocForPullPostOutput.


        :param main_domain: The main_domain of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._main_domain = main_domain

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


        :return: The media_name of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._media_name

    @media_name.setter
    def media_name(self, media_name):
        """Sets the media_name of this ItemDocForPullPostOutput.


        :param media_name: The media_name of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._media_name = media_name

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


        :return: The ocr of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._ocr

    @ocr.setter
    def ocr(self, ocr):
        """Sets the ocr of this ItemDocForPullPostOutput.


        :param ocr: The ocr of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._ocr = ocr

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


        :return: The ocr_high of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._ocr_high

    @ocr_high.setter
    def ocr_high(self, ocr_high):
        """Sets the ocr_high of this ItemDocForPullPostOutput.


        :param ocr_high: The ocr_high of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._ocr_high = ocr_high

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


        :return: The post_id of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._post_id

    @post_id.setter
    def post_id(self, post_id):
        """Sets the post_id of this ItemDocForPullPostOutput.


        :param post_id: The post_id of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._post_id = post_id

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


        :return: The publish_time of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._publish_time

    @publish_time.setter
    def publish_time(self, publish_time):
        """Sets the publish_time of this ItemDocForPullPostOutput.


        :param publish_time: The publish_time of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._publish_time = publish_time

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


        :return: The reason of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._reason

    @reason.setter
    def reason(self, reason):
        """Sets the reason of this ItemDocForPullPostOutput.


        :param reason: The reason of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._reason = reason

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


        :return: The risk_type of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: list[str]
        """
        return self._risk_type

    @risk_type.setter
    def risk_type(self, risk_type):
        """Sets the risk_type of this ItemDocForPullPostOutput.


        :param risk_type: The risk_type of this ItemDocForPullPostOutput.  # noqa: E501
        :type: list[str]
        """

        self._risk_type = risk_type

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


        :return: The summary of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._summary

    @summary.setter
    def summary(self, summary):
        """Sets the summary of this ItemDocForPullPostOutput.


        :param summary: The summary of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._summary = summary

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


        :return: The title of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._title

    @title.setter
    def title(self, title):
        """Sets the title of this ItemDocForPullPostOutput.


        :param title: The title of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._title = title

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


        :return: The url of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._url

    @url.setter
    def url(self, url):
        """Sets the url of this ItemDocForPullPostOutput.


        :param url: The url of this ItemDocForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._url = url

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


        :return: The locations of this ItemDocForPullPostOutput.  # noqa: E501
        :rtype: list[LocationForPullPostOutput]
        """
        return self._locations

    @locations.setter
    def locations(self, locations):
        """Sets the locations of this ItemDocForPullPostOutput.


        :param locations: The locations of this ItemDocForPullPostOutput.  # noqa: E501
        :type: list[LocationForPullPostOutput]
        """

        self._locations = locations

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

        for attr, _ in six.iteritems(self.swagger_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
        if issubclass(ItemDocForPullPostOutput, dict):
            for key, value in self.items():
                result[key] = 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, ItemDocForPullPostOutput):
            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, ItemDocForPullPostOutput):
            return True

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