o
    ëÉ¶dt  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   s˜   e Zd ZdZdd„ Zedd„ ƒZejdd„ ƒZedd„ ƒZejd	d„ ƒZed
d„ ƒZ	e	jdd„ ƒZ	edd„ ƒZ
e
jdd„ ƒZ
dd„ Zdd„ Zdd„ ZdS )ÚLinez
    The line of text.
    c                 K   s<   dddddœ| _ dddd	dœ| _d
| _d
| _d
| _d
| _d
S )aý  
        Initializes a new Line object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param text:
            The value to assign to the text property of this Line.
        :type text: str

        :param confidence:
            The value to assign to the confidence property of this Line.
        :type confidence: float

        :param bounding_polygon:
            The value to assign to the bounding_polygon property of this Line.
        :type bounding_polygon: oci.ai_document.models.BoundingPolygon

        :param word_indexes:
            The value to assign to the word_indexes property of this Line.
        :type word_indexes: list[int]

        ÚstrÚfloatZBoundingPolygonz	list[int])ÚtextÚ
confidenceÚbounding_polygonÚword_indexesr	   r
   ZboundingPolygonZwordIndexesN)Zswagger_typesZattribute_mapÚ_textÚ_confidenceÚ_bounding_polygonÚ_word_indexes)ÚselfÚkwargs© r   ú?usr/lib/python3.10/site-packages/oci/ai_document/models/line.pyÚ__init__   s   üü
zLine.__init__c                 C   ó   | j S )z—
        **[Required]** Gets the text of this Line.
        The text recognized.


        :return: The text of this Line.
        :rtype: str
        ©r   ©r   r   r   r   r	   ;   ó   
z	Line.textc                 C   ó
   || _ dS )z‹
        Sets the text of this Line.
        The text recognized.


        :param text: The text of this Line.
        :type: str
        Nr   )r   r	   r   r   r   r	   G   ó   

c                 C   r   )z¶
        **[Required]** Gets the confidence of this Line.
        The confidence score between 0 and 1.


        :return: The confidence of this Line.
        :rtype: float
        ©r   r   r   r   r   r
   S   r   zLine.confidencec                 C   r   )z°
        Sets the confidence of this Line.
        The confidence score between 0 and 1.


        :param confidence: The confidence of this Line.
        :type: float
        Nr   )r   r
   r   r   r   r
   _   r   c                 C   r   )z´
        **[Required]** Gets the bounding_polygon of this Line.

        :return: The bounding_polygon of this Line.
        :rtype: oci.ai_document.models.BoundingPolygon
        ©r   r   r   r   r   r   k   s   zLine.bounding_polygonc                 C   r   )z´
        Sets the bounding_polygon of this Line.

        :param bounding_polygon: The bounding_polygon of this Line.
        :type: oci.ai_document.models.BoundingPolygon
        Nr   )r   r   r   r   r   r   u   s   
c                 C   r   )z¬
        **[Required]** Gets the word_indexes of this Line.
        The array of words.


        :return: The word_indexes of this Line.
        :rtype: list[int]
        ©r   r   r   r   r   r      r   zLine.word_indexesc                 C   r   )z¨
        Sets the word_indexes of this Line.
        The array of words.


        :param word_indexes: The word_indexes of this Line.
        :type: list[int]
        Nr   )r   r   r   r   r   r   ‹   r   c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__—   s   zLine.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__š   s   zLine.__eq__c                 C   s
   | |k S r   r   r"   r   r   r   Ú__ne__    s   
zLine.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr	   Úsetterr
   r   r   r    r$   r%   r   r   r   r   r      s,    )




	
	

r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   