Package com.google.genai.types
Class EntityLabel
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.EntityLabel
An entity representing the segmented area.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityLabel.Builder
builder()
Instantiates a builder for EntityLabel.static EntityLabel
Deserializes a JSON string to a EntityLabel object.label()
The label of the segmented entity.score()
The confidence score of the detected label.abstract EntityLabel.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
EntityLabel
public EntityLabel()
-
-
Method Details
-
label
The label of the segmented entity. -
score
The confidence score of the detected label. -
builder
Instantiates a builder for EntityLabel. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a EntityLabel object.
-