Class TextSelectionEntity
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.datalabelingservicedataplane.model.Entity
- 
- com.oracle.bmc.datalabelingservicedataplane.model.TextSelectionEntity
 
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20211001") public final class TextSelectionEntity extends EntityThis lets the labeler highlight text, by specifying an offset and a length, and apply labels to it.
 Note: Objects should always be created or deserialized using theTextSelectionEntity.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theTextSelectionEntity.Builder, which maintain a set of all explicitly set fields calledTextSelectionEntity.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classTextSelectionEntity.Builder- 
Nested classes/interfaces inherited from class com.oracle.bmc.datalabelingservicedataplane.model.EntityEntity.EntityType
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextSelectionEntity.Builderbuilder()Create a new builder.booleanequals(Object o)Map<String,String>getExtendedMetadata()A simple key-value pair that is applied without any predefined name, type, or scope.List<Label>getLabels()A collection of label entities.TextSpangetTextSpan()inthashCode()TextSelectionEntity.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Method Detail- 
builderpublic static TextSelectionEntity.Builder builder() Create a new builder.
 - 
toBuilderpublic TextSelectionEntity.Builder toBuilder() 
 - 
getTextSpanpublic TextSpan getTextSpan() 
 - 
getExtendedMetadatapublic Map<String,String> getExtendedMetadata() A simple key-value pair that is applied without any predefined name, type, or scope.It exists for cross-compatibility only. For example: {“bar-key”: “value”} - Returns:
- the value
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.
 
- 
 
-