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 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.