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 Entity
This 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 Summary
Nested Classes Modifier and Type Class Description static class
TextSelectionEntity.Builder
-
Nested classes/interfaces inherited from class com.oracle.bmc.datalabelingservicedataplane.model.Entity
Entity.EntityType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextSelectionEntity.Builder
builder()
Create a new builder.boolean
equals(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.TextSpan
getTextSpan()
int
hashCode()
TextSelectionEntity.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Method Detail
-
builder
public static TextSelectionEntity.Builder builder()
Create a new builder.
-
toBuilder
public TextSelectionEntity.Builder toBuilder()
-
getTextSpan
public TextSpan getTextSpan()
-
getExtendedMetadata
public 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
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-