Retail v2 API - Class Image (2.3.0)

public sealed class Image : IMessage<Image>, IEquatable<Image>, IDeepCloneable<Image>, IBufferMessage, IMessage

Reference documentation and code samples for the Retail v2 API class Image.

[Product][google.cloud.retail.v2.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.

Inheritance

Object > Image

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

Image()

public Image()

Image(Image)

public Image(Image other)
Parameter
NameDescription
otherImage

Properties

Height

public int Height { get; set; }

Height of the image in number of pixels.

This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.

Property Value
TypeDescription
Int32

Uri

public string Uri { get; set; }

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

Property Value
TypeDescription
System.String

Width

public int Width { get; set; }

Width of the image in number of pixels.

This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.

Property Value
TypeDescription
Int32