ruạṛ
a ���f� � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zdd� Z dd� Zdd� ZdS )�SentimentDocumentResultz: The document response for sentiment detect call. c K sP ddddddd�| _ dddd d dd�| _d| _d| _d| _d| _d| _d| _dS ) a� Initializes a new SentimentDocumentResult object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param key: The value to assign to the key property of this SentimentDocumentResult. :type key: str :param document_sentiment: The value to assign to the document_sentiment property of this SentimentDocumentResult. :type document_sentiment: str :param document_scores: The value to assign to the document_scores property of this SentimentDocumentResult. :type document_scores: dict(str, float) :param aspects: The value to assign to the aspects property of this SentimentDocumentResult. :type aspects: list[oci.ai_language.models.SentimentAspect] :param sentences: The value to assign to the sentences property of this SentimentDocumentResult. :type sentences: list[oci.ai_language.models.SentimentSentence] :param language_code: The value to assign to the language_code property of this SentimentDocumentResult. :type language_code: str �strzdict(str, float)zlist[SentimentAspect]zlist[SentimentSentence])�key�document_sentiment�document_scores�aspects� sentences� language_coder ZdocumentSentimentZdocumentScoresr r ZlanguageCodeN)Z swagger_typesZ attribute_map�_key�_document_sentiment�_document_scores�_aspects� _sentences�_language_code)�self�kwargs� r �T/usr/lib/python3.9/site-packages/oci/ai_language/models/sentiment_document_result.py�__init__ s( � � z SentimentDocumentResult.__init__c C s | j S )z� **[Required]** Gets the key of this SentimentDocumentResult. Document unique identifier defined by the user. :return: The key of this SentimentDocumentResult. :rtype: str �r �r r r r r I s zSentimentDocumentResult.keyc C s || _ dS )z� Sets the key of this SentimentDocumentResult. Document unique identifier defined by the user. :param key: The key of this SentimentDocumentResult. :type: str Nr )r r r r r r U s c C s | j S )z� Gets the document_sentiment of this SentimentDocumentResult. Document level sentiment. :return: The document_sentiment of this SentimentDocumentResult. :rtype: str �r r r r r r a s z*SentimentDocumentResult.document_sentimentc C s || _ dS )z� Sets the document_sentiment of this SentimentDocumentResult. Document level sentiment. :param document_sentiment: The document_sentiment of this SentimentDocumentResult. :type: str Nr )r r r r r r m s c C s | j S )a Gets the document_scores of this SentimentDocumentResult. Scores for each sentiment. Example: {"positive": 1.0, "negative": 0.0} :return: The document_scores of this SentimentDocumentResult. :rtype: dict(str, float) �r r r r r r y s z'SentimentDocumentResult.document_scoresc C s || _ dS )a Sets the document_scores of this SentimentDocumentResult. Scores for each sentiment. Example: {"positive": 1.0, "negative": 0.0} :param document_scores: The document_scores of this SentimentDocumentResult. :type: dict(str, float) Nr )r r r r r r � s c C s | j S )z� **[Required]** Gets the aspects of this SentimentDocumentResult. List of detected aspects sentiment. :return: The aspects of this SentimentDocumentResult. :rtype: list[oci.ai_language.models.SentimentAspect] �r r r r r r � s zSentimentDocumentResult.aspectsc C s || _ dS )z� Sets the aspects of this SentimentDocumentResult. List of detected aspects sentiment. :param aspects: The aspects of this SentimentDocumentResult. :type: list[oci.ai_language.models.SentimentAspect] Nr )r r r r r r � s c C s | j S )z� Gets the sentences of this SentimentDocumentResult. List of detected sentences sentiment. :return: The sentences of this SentimentDocumentResult. :rtype: list[oci.ai_language.models.SentimentSentence] �r r r r r r � s z!SentimentDocumentResult.sentencesc C s || _ dS )z� Sets the sentences of this SentimentDocumentResult. List of detected sentences sentiment. :param sentences: The sentences of this SentimentDocumentResult. :type: list[oci.ai_language.models.SentimentSentence] Nr )r r r r r r � s c C s | j S )aA **[Required]** Gets the language_code of this SentimentDocumentResult. Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR : Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he : Hebrew :return: The language_code of this SentimentDocumentResult. :rtype: str �r r r r r r � s "z%SentimentDocumentResult.language_codec C s || _ dS )a> Sets the language_code of this SentimentDocumentResult. Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR : Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he : Hebrew :param language_code: The language_code of this SentimentDocumentResult. :type: str Nr )r r r r r r � s "c C s t | �S �N)r r r r r �__repr__ s z SentimentDocumentResult.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__ s zSentimentDocumentResult.__eq__c C s | |k S r r r# r r r �__ne__ s zSentimentDocumentResult.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r! r% r&