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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eImage\u003c/code\u003e class within the Google Cloud Retail v2 API, with version 2.12.0 being the most recent.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eImage\u003c/code\u003e class represents an image related to a product, containing properties for \u003ccode\u003eHeight\u003c/code\u003e, \u003ccode\u003eUri\u003c/code\u003e, and \u003ccode\u003eWidth\u003c/code\u003e, all of which must meet certain validation criteria, such as being non-negative for \u003ccode\u003eHeight\u003c/code\u003e and \u003ccode\u003eWidth\u003c/code\u003e and the \u003ccode\u003eUri\u003c/code\u003e needs to be under a character limit.\u003c/p\u003e\n"],["\u003cp\u003eAlthough product images are not used to enhance prediction and search performance within Recommendations AI and Retail Search, they can be included in results and displayed in console previews.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eImage\u003c/code\u003e class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and also inherits members from the base \u003ccode\u003eobject\u003c/code\u003e class, allowing for common functionalities such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a parameterless one (\u003ccode\u003eImage()\u003c/code\u003e) and one that takes another \u003ccode\u003eImage\u003c/code\u003e object as a parameter to be copied from (\u003ccode\u003eImage(Image other)\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,[]]