AzureGroundingEnhancementCoordinatePoint Class

  • java.lang.Object
    • com.azure.ai.openai.models.AzureGroundingEnhancementCoordinatePoint

Implements

public final class AzureGroundingEnhancementCoordinatePoint
implements JsonSerializable<AzureGroundingEnhancementCoordinatePoint>

A representation of a single polygon point as used by the Azure grounding enhancement.

Method Summary

Modifier and Type Method and Description
static AzureGroundingEnhancementCoordinatePoint fromJson(JsonReader jsonReader)

Reads an instance of AzureGroundingEnhancementCoordinatePoint from the JsonReader.

double getX()

Get the x property: The x-coordinate (horizontal axis) of the point.

double getY()

Get the y property: The y-coordinate (vertical axis) of the point.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static AzureGroundingEnhancementCoordinatePoint fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to