ruạṛ
a N��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 @ sb e Zd ZdZdZdZdZdd� Zedd� �Z e d d � �Zejdd � �Zdd � Z dd� Zdd� ZdS )�Entitya� An entity allows the labeler to identify an object in the record to label. This can be, for example, a snippet of text, an entire image, or a bounding box within an image. All entity types have an array of labels that are indexed. If more than one label is provided, but the annotationType on the corresponding dataset is for a single class, the API rejects the create annotation request. �GENERIC�IMAGEOBJECTSELECTION� TEXTSELECTIONc K s ddi| _ ddi| _d| _dS )a� Initializes a new Entity object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.data_labeling_service_dataplane.models.ImageObjectSelectionEntity` * :class:`~oci.data_labeling_service_dataplane.models.GenericEntity` * :class:`~oci.data_labeling_service_dataplane.models.TextSelectionEntity` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param entity_type: The value to assign to the entity_type property of this Entity. Allowed values for this property are: "GENERIC", "IMAGEOBJECTSELECTION", "TEXTSELECTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_type: str �entity_type�str� entityTypeN)� swagger_types� attribute_map�_entity_type)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/data_labeling_service_dataplane/models/entity.py�__init__ s ��zEntity.__init__c C s4 | d }|dkrdS |dkr dS |dkr,dS dS d S ) z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r �ImageObjectSelectionEntityr � GenericEntityr �TextSelectionEntityr Nr )�object_dictionary�typer r r �get_subtype8 s zEntity.get_subtypec C s | j S )a **[Required]** Gets the entity_type of this Entity. The entity type described in the annotation. GENERIC - An extensible entity type that is the base entity type for some annotation formats. IMAGEOBJECTSELECTION- - This allows the labeler to use specify a bounding polygon on the image to represent an object and apply labels to it. TEXTSELECTION - This allows the labeler to highlight text, by specifying an offset and a length, and apply labels to it. Allowed values for this property are: "GENERIC", "IMAGEOBJECTSELECTION", "TEXTSELECTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The entity_type of this Entity. :rtype: str )r �r r r r r K s zEntity.entity_typec C s g d�}t ||�sd}|| _dS )a: Sets the entity_type of this Entity. The entity type described in the annotation. GENERIC - An extensible entity type that is the base entity type for some annotation formats. IMAGEOBJECTSELECTION- - This allows the labeler to use specify a bounding polygon on the image to represent an object and apply labels to it. TEXTSELECTION - This allows the labeler to highlight text, by specifying an offset and a length, and apply labels to it. :param entity_type: The entity_type of this Entity. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r ] s c C s t | �S �N)r r r r r �__repr__o s zEntity.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__r s z Entity.__eq__c C s | |k S r r r! r r r �__ne__x s z Entity.__ne__N)�__name__� __module__�__qualname__�__doc__�ENTITY_TYPE_GENERIC� ENTITY_TYPE_IMAGEOBJECTSELECTION�ENTITY_TYPE_TEXTSELECTIONr �staticmethodr �propertyr �setterr r# r$ r r r r r s r N)�oci.utilr r r �oci.decoratorsr �objectr r r r r �<module> s
cải xoăn