Package com.azure.ai.openai.models
Class AzureGroundingEnhancementCoordinatePoint
java.lang.Object
com.azure.ai.openai.models.AzureGroundingEnhancementCoordinatePoint
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureGroundingEnhancementCoordinatePoint>
public final class AzureGroundingEnhancementCoordinatePoint
extends Object
implements com.azure.json.JsonSerializable<AzureGroundingEnhancementCoordinatePoint>
A representation of a single polygon point as used by the Azure grounding enhancement.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureGroundingEnhancementCoordinatePoint from the JsonReader.doublegetX()Get the x property: The x-coordinate (horizontal axis) of the point.doublegetY()Get the y property: The y-coordinate (vertical axis) of the point.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter)
-
Method Details
-
getX
public double getX()Get the x property: The x-coordinate (horizontal axis) of the point.- Returns:
- the x value.
-
getY
public double getY()Get the y property: The y-coordinate (vertical axis) of the point.- Returns:
- the y value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureGroundingEnhancementCoordinatePoint>- Throws:
IOException
-
fromJson
public static AzureGroundingEnhancementCoordinatePoint fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureGroundingEnhancementCoordinatePoint from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureGroundingEnhancementCoordinatePoint if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AzureGroundingEnhancementCoordinatePoint.
-