GoogleCloudRetailV2alphaImageResponse class
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
-
GoogleCloudRetailV2alphaImageResponse({required Input<
int> height, required Input<String> uri, required Input<int> width}) -
Creates a new GoogleCloudRetailV2alphaImageResponse.
heightHeight of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.uriURI 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.widthWidth of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.const -
GoogleCloudRetailV2alphaImageResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
height
→ Input<
int> -
Height of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
uri
→ Input<
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.
final
-
width
→ Input<
int> -
Width of the image in number of pixels. This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited