Package-level declarations

Types

Link copied to clipboard
data class BoundingPolyResponse(val normalizedVertices: List<NormalizedVertexResponse>, val vertices: List<VertexResponse>)

A bounding polygon for the detected image annotation.

Link copied to clipboard
data class GetProductResult(val description: String, val displayName: String, val name: String, val productCategory: String, val productLabels: List<KeyValueResponse>)
Link copied to clipboard
data class GetProductSetResult(val displayName: String, val indexError: StatusResponse, val indexTime: String, val name: String)
Link copied to clipboard
data class GetReferenceImageResult(val boundingPolys: List<BoundingPolyResponse>, val name: String, val uri: String)
Link copied to clipboard
data class KeyValueResponse(val key: String, val value: String)

A product label represented as a key-value pair.

Link copied to clipboard
data class NormalizedVertexResponse(val x: Double, val y: Double)

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

Link copied to clipboard
data class StatusResponse(val code: Int, val details: List<Map<String, String>>, val message: String)

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

Link copied to clipboard
data class VertexResponse(val x: Int, val y: Int)

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.