o
    ɶd                     @   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
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 )Cellz#
    A single cell in a table.
    c                 K   sP   ddddddd| _ ddd	d
ddd| _d| _d| _d| _d| _d| _d| _dS )a  
        Initializes a new Cell 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 Cell.
        :type text: str

        :param row_index:
            The value to assign to the row_index property of this Cell.
        :type row_index: int

        :param column_index:
            The value to assign to the column_index property of this Cell.
        :type column_index: int

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

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

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

        strintfloatZBoundingPolygonz	list[int])text	row_indexcolumn_index
confidencebounding_polygonword_indexesr
   ZrowIndexZcolumnIndexr   ZboundingPolygonZwordIndexesN)Zswagger_typesZattribute_map_text
_row_index_column_index_confidence_bounding_polygon_word_indexes)selfkwargs r   ?usr/lib/python3.10/site-packages/oci/ai_document/models/cell.py__init__   s(   
	
zCell.__init__c                 C      | j S )z
        **[Required]** Gets the text of this Cell.
        The text recognized in the cell.


        :return: The text of this Cell.
        :rtype: str
        r   r   r   r   r   r
   I      
z	Cell.textc                 C   
   || _ dS )z
        Sets the text of this Cell.
        The text recognized in the cell.


        :param text: The text of this Cell.
        :type: str
        Nr   )r   r
   r   r   r   r
   U      

c                 C   r   )z
        **[Required]** Gets the row_index of this Cell.
        The index of the cell inside the row.


        :return: The row_index of this Cell.
        :rtype: int
        r   r   r   r   r   r   a   r   zCell.row_indexc                 C   r   )z
        Sets the row_index of this Cell.
        The index of the cell inside the row.


        :param row_index: The row_index of this Cell.
        :type: int
        Nr!   )r   r   r   r   r   r   m   r    c                 C   r   )z
        **[Required]** Gets the column_index of this Cell.
        The index of the cell inside the column.


        :return: The column_index of this Cell.
        :rtype: int
        r   r   r   r   r   r   y   r   zCell.column_indexc                 C   r   )z
        Sets the column_index of this Cell.
        The index of the cell inside the column.


        :param column_index: The column_index of this Cell.
        :type: int
        Nr"   )r   r   r   r   r   r      r    c                 C   r   )z
        **[Required]** Gets the confidence of this Cell.
        The confidence score between 0 and 1.


        :return: The confidence of this Cell.
        :rtype: float
        r   r   r   r   r   r      r   zCell.confidencec                 C   r   )z
        Sets the confidence of this Cell.
        The confidence score between 0 and 1.


        :param confidence: The confidence of this Cell.
        :type: float
        Nr#   )r   r   r   r   r   r      r    c                 C   r   )z
        **[Required]** Gets the bounding_polygon of this Cell.

        :return: The bounding_polygon of this Cell.
        :rtype: oci.ai_document.models.BoundingPolygon
        r   r   r   r   r   r      s   zCell.bounding_polygonc                 C   r   )z
        Sets the bounding_polygon of this Cell.

        :param bounding_polygon: The bounding_polygon of this Cell.
        :type: oci.ai_document.models.BoundingPolygon
        Nr$   )r   r   r   r   r   r      s   
c                 C   r   )z
        **[Required]** Gets the word_indexes of this Cell.
        The words detected in the cell.


        :return: The word_indexes of this Cell.
        :rtype: list[int]
        r   r   r   r   r   r      r   zCell.word_indexesc                 C   r   )z
        Sets the word_indexes of this Cell.
        The words detected in the cell.


        :param word_indexes: The word_indexes of this Cell.
        :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Cell.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zCell.__eq__c                 C   s
   | |k S r&   r   r)   r   r   r   __ne__   s   
zCell.__ne__N)__name__
__module____qualname____doc__r   propertyr
   setterr   r   r   r   r   r'   r+   r,   r   r   r   r   r      s<    7








	
	

r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   