Image
Stay organized with collections
Save and categorize content based on your preferences.
Product image represented as bytes directly or a URI.
JSON representation |
{
// Union field image can be only one of the following:
"uri": string,
"data": string
// End of list of possible types for union field image .
} |
Fields |
Union field image . image can be only one of the following:
|
uri |
string
Generally web-requestable URI.
|
data |
string (bytes format)
Raw bytes for the image. A base64-encoded string.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-14 UTC.
[[["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 2024-11-14 UTC."],[[["Product images can be represented either directly as bytes or using a URI."],["The JSON representation uses a union field called \"image\" to store this information."],["When using a URI, it should generally be web-requestable."],["Raw image bytes are stored as a base64-encoded string in the \"data\" field."]]],["The content describes a JSON structure for representing a product image. The `image` field is a union type, meaning it can hold only one value at a time. This value can be either a `uri`, a string representing a web-requestable URI, or `data`, a string containing the image's raw bytes in base64 encoding. The structure allows for either referencing an image via a web link or embedding the image data directly.\n"]]