AzureGroundingEnhancementLineSpan Class
- java.
lang. Object - com.
azure. ai. openai. models. AzureGroundingEnhancementLineSpan
- com.
Implements
public final class AzureGroundingEnhancementLineSpan
implements JsonSerializable<AzureGroundingEnhancementLineSpan>
A span object that represents a detected object and its bounding box information.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
int |
getLength()
Get the length property: The length of the span in characters, measured in Unicode codepoints. |
int |
getOffset()
Get the offset property: The character offset within the text where the span begins. |
List<Azure |
getPolygon()
Get the polygon property: An array of objects representing points in the polygon that encloses the detected object. |
String |
getText()
Get the text property: The text content of the span that represents the detected object. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static AzureGroundingEnhancementLineSpan fromJson(JsonReader jsonReader)
Reads an instance of AzureGroundingEnhancementLineSpan from the JsonReader.
Parameters:
Returns:
Throws:
getLength
public int getLength()
Get the length property: The length of the span in characters, measured in Unicode codepoints.
Returns:
getOffset
public int getOffset()
Get the offset property: The character offset within the text where the span begins. This offset is defined as the position of the first character of the span, counting from the start of the text as Unicode codepoints.
Returns:
getPolygon
public List
Get the polygon property: An array of objects representing points in the polygon that encloses the detected object.
Returns:
getText
public String getText()
Get the text property: The text content of the span that represents the detected object.
Returns:
toJson
Applies to
Azure SDK for Java