Class GenericEntity
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.datalabelingservicedataplane.model.Entity
-
- com.oracle.bmc.datalabelingservicedataplane.model.GenericEntity
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20211001") public final class GenericEntity extends Entity
This is an extensible entity type for users, and the base entity type for some annotation formats.
Note: Objects should always be created or deserialized using theGenericEntity.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 theGenericEntity.Builder
, which maintain a set of all explicitly set fields calledGenericEntity.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
GenericEntity.Builder
-
Nested classes/interfaces inherited from class com.oracle.bmc.datalabelingservicedataplane.model.Entity
Entity.EntityType
-
-
Constructor Summary
Constructors Constructor Description GenericEntity(DocumentEntityMetadata documentEntityMetadata, List<Label> labels, Map<String,String> extendedMetadata)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GenericEntity.Builder
builder()
Create a new builder.boolean
equals(Object o)
DocumentEntityMetadata
getDocumentEntityMetadata()
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.int
hashCode()
GenericEntity.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
GenericEntity
@Deprecated public GenericEntity(DocumentEntityMetadata documentEntityMetadata, List<Label> labels, Map<String,String> extendedMetadata)
Deprecated.
-
-
Method Detail
-
builder
public static GenericEntity.Builder builder()
Create a new builder.
-
toBuilder
public GenericEntity.Builder toBuilder()
-
getDocumentEntityMetadata
public DocumentEntityMetadata getDocumentEntityMetadata()
-
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.
-
-