GoogleCloudRetailV2ImageResponse

data class GoogleCloudRetailV2ImageResponse(val height: Int, val uri: String, val width: Int)

Product image. Recommendations AI and Retail Search do not use product images to improve prediction and search results. However, product images can be returned in results, and are shown in prediction or search previews in the console.

Constructors

Link copied to clipboard
fun GoogleCloudRetailV2ImageResponse(height: Int, uri: String, width: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val height: Int

Height of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.

Link copied to clipboard
val uri: String

URI of the image. This field must be a valid UTF-8 encoded URI with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property image_link. Schema.org property Product.image.

Link copied to clipboard
val width: Int

Width of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.