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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 )#Pagez,
    One page document analysis result.
    c              	   K   sd   dddddd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 Page object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param page_number:
            The value to assign to the page_number property of this Page.
        :type page_number: int

        :param dimensions:
            The value to assign to the dimensions property of this Page.
        :type dimensions: oci.ai_vision.models.Dimensions

        :param detected_document_types:
            The value to assign to the detected_document_types property of this Page.
        :type detected_document_types: list[oci.ai_vision.models.DetectedDocumentType]

        :param detected_languages:
            The value to assign to the detected_languages property of this Page.
        :type detected_languages: list[oci.ai_vision.models.DetectedLanguage]

        :param words:
            The value to assign to the words property of this Page.
        :type words: list[oci.ai_vision.models.Word]

        :param lines:
            The value to assign to the lines property of this Page.
        :type lines: list[oci.ai_vision.models.Line]

        :param tables:
            The value to assign to the tables property of this Page.
        :type tables: list[oci.ai_vision.models.Table]

        :param document_fields:
            The value to assign to the document_fields property of this Page.
        :type document_fields: list[oci.ai_vision.models.DocumentField]

        intZ
Dimensionszlist[DetectedDocumentType]zlist[DetectedLanguage]z
list[Word]z
list[Line]zlist[Table]zlist[DocumentField])page_number
dimensionsdetected_document_typesdetected_languageswordslinestablesdocument_fieldsZ
pageNumberr	   ZdetectedDocumentTypesZdetectedLanguagesr   r   r   ZdocumentFieldsN)
Zswagger_typesZattribute_map_page_number_dimensions_detected_document_types_detected_languages_words_lines_tables_document_fields)selfkwargs r   =usr/lib/python3.10/site-packages/oci/ai_vision/models/page.py__init__   s4   '
zPage.__init__c                 C      | j S )z
        **[Required]** Gets the page_number of this Page.
        The document page number.


        :return: The page_number of this Page.
        :rtype: int
        r   r   r   r   r   r   W      
zPage.page_numberc                 C   
   || _ dS )z
        Sets the page_number of this Page.
        The document page number.


        :param page_number: The page_number of this Page.
        :type: int
        Nr   )r   r   r   r   r   r   c      

c                 C   r   )z
        Gets the dimensions of this Page.

        :return: The dimensions of this Page.
        :rtype: oci.ai_vision.models.Dimensions
        r   r   r   r   r   r	   o   s   zPage.dimensionsc                 C   r!   )z
        Sets the dimensions of this Page.

        :param dimensions: The dimensions of this Page.
        :type: oci.ai_vision.models.Dimensions
        Nr#   )r   r	   r   r   r   r	   y   s   
c                 C   r   )z
        Gets the detected_document_types of this Page.
        An array of detected document types.


        :return: The detected_document_types of this Page.
        :rtype: list[oci.ai_vision.models.DetectedDocumentType]
        r   r   r   r   r   r
      r    zPage.detected_document_typesc                 C   r!   )a   
        Sets the detected_document_types of this Page.
        An array of detected document types.


        :param detected_document_types: The detected_document_types of this Page.
        :type: list[oci.ai_vision.models.DetectedDocumentType]
        Nr$   )r   r
   r   r   r   r
      r"   c                 C   r   )z
        Gets the detected_languages of this Page.
        An array of detected languages.


        :return: The detected_languages of this Page.
        :rtype: list[oci.ai_vision.models.DetectedLanguage]
        r   r   r   r   r   r      r    zPage.detected_languagesc                 C   r!   )z
        Sets the detected_languages of this Page.
        An array of detected languages.


        :param detected_languages: The detected_languages of this Page.
        :type: list[oci.ai_vision.models.DetectedLanguage]
        Nr%   )r   r   r   r   r   r      r"   c                 C   r   )z
        Gets the words of this Page.
        The words detected on the page.


        :return: The words of this Page.
        :rtype: list[oci.ai_vision.models.Word]
        r   r   r   r   r   r      r    z
Page.wordsc                 C   r!   )z
        Sets the words of this Page.
        The words detected on the page.


        :param words: The words of this Page.
        :type: list[oci.ai_vision.models.Word]
        Nr&   )r   r   r   r   r   r      r"   c                 C   r   )z
        Gets the lines of this Page.
        The lines of text detected on the page.


        :return: The lines of this Page.
        :rtype: list[oci.ai_vision.models.Line]
        r   r   r   r   r   r      r    z
Page.linesc                 C   r!   )z
        Sets the lines of this Page.
        The lines of text detected on the page.


        :param lines: The lines of this Page.
        :type: list[oci.ai_vision.models.Line]
        Nr'   )r   r   r   r   r   r      r"   c                 C   r   )z
        Gets the tables of this Page.
        The tables detected on the page.


        :return: The tables of this Page.
        :rtype: list[oci.ai_vision.models.Table]
        r   r   r   r   r   r      r    zPage.tablesc                 C   r!   )z
        Sets the tables of this Page.
        The tables detected on the page.


        :param tables: The tables of this Page.
        :type: list[oci.ai_vision.models.Table]
        Nr(   )r   r   r   r   r   r      r"   c                 C   r   )z
        Gets the document_fields of this Page.
        The form fields detected on the page.


        :return: The document_fields of this Page.
        :rtype: list[oci.ai_vision.models.DocumentField]
        r   r   r   r   r   r      r    zPage.document_fieldsc                 C   r!   )z
        Sets the document_fields of this Page.
        The form fields detected on the page.


        :param document_fields: The document_fields of this Page.
        :type: list[oci.ai_vision.models.DocumentField]
        Nr)   )r   r   r   r   r   r     r"   c                 C   s   t | S N)r   r   r   r   r   __repr__  s   zPage.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__  s   zPage.__eq__c                 C   s
   | |k S r*   r   r-   r   r   r   __ne__  s   
zPage.__ne__N)__name__
__module____qualname____doc__r   propertyr   setterr	   r
   r   r   r   r   r   r+   r/   r0   r   r   r   r   r      sL    E


	
	











r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   