GoogleCloudRetailV2Product class

Product captures all metadata information of items to be recommended or searched.

Constructors

GoogleCloudRetailV2Product({Map<String, GoogleCloudRetailV2CustomAttribute>? attributes, GoogleCloudRetailV2Audience? audience, String? availability, int? availableQuantity, String? availableTime, List<String>? brands, List<String>? categories, List<String>? collectionMemberIds, GoogleCloudRetailV2ColorInfo? colorInfo, List<String>? conditions, String? description, String? expireTime, List<GoogleCloudRetailV2FulfillmentInfo>? fulfillmentInfo, String? gtin, String? id, List<GoogleCloudRetailV2Image>? images, String? languageCode, List<GoogleCloudRetailV2LocalInventory>? localInventories, List<String>? materials, String? name, List<String>? patterns, GoogleCloudRetailV2PriceInfo? priceInfo, String? primaryProductId, List<GoogleCloudRetailV2Promotion>? promotions, String? publishTime, GoogleCloudRetailV2Rating? rating, String? retrievableFields, List<String>? sizes, List<String>? tags, String? title, String? ttl, String? type, String? uri, List<GoogleCloudRetailV2Product>? variants})
GoogleCloudRetailV2Product.fromJson(Map json_)

Properties

attributes Map<String, GoogleCloudRetailV2CustomAttribute>?
Highly encouraged.
getter/setter pair
audience GoogleCloudRetailV2Audience?
The target group associated with a given audience (e.g. male, veterans, car owners, musicians, etc.) of the product.
getter/setter pair
availability String?
The online availability of the Product.
getter/setter pair
availableQuantity int?
The available quantity of the item.
getter/setter pair
availableTime String?
The timestamp when this Product becomes available for SearchService.Search.
getter/setter pair
brands List<String>?
The brands of the product.
getter/setter pair
categories List<String>?
Product categories.
getter/setter pair
collectionMemberIds List<String>?
The id of the collection members when type is Type.COLLECTION.
getter/setter pair
colorInfo GoogleCloudRetailV2ColorInfo?
The color of the product.
getter/setter pair
conditions List<String>?
The condition of the product.
getter/setter pair
description String?
Product description.
getter/setter pair
expireTime String?
Note that this field is applied in the following ways: * If the Product is already expired when it is uploaded, this product is not indexed for search.
getter/setter pair
fulfillmentInfo List<GoogleCloudRetailV2FulfillmentInfo>?
Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.
getter/setter pair
gtin String?
The Global Trade Item Number (GTIN) of the product.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
Product identifier, which is the final component of name.
getter/setter pair
images List<GoogleCloudRetailV2Image>?
Product images for the product.
getter/setter pair
languageCode String?
Language of the title/description and other string attributes.
getter/setter pair
localInventories List<GoogleCloudRetailV2LocalInventory>?
A list of local inventories specific to different places.
getter/setter pair
materials List<String>?
The material of the product.
getter/setter pair
name String?
Full resource name of the product, such as projects / * /locations/global/catalogs/default_catalog/branches/default_branch/products/product_id.
getter/setter pair
patterns List<String>?
The pattern or graphic print of the product.
getter/setter pair
priceInfo GoogleCloudRetailV2PriceInfo?
Product price and cost information.
getter/setter pair
primaryProductId String?
Variant group identifier.
getter/setter pair
promotions List<GoogleCloudRetailV2Promotion>?
The promotions applied to the product.
getter/setter pair
publishTime String?
The timestamp when the product is published by the retailer for the first time, which indicates the freshness of the products.
getter/setter pair
rating GoogleCloudRetailV2Rating?
The rating of this product.
getter/setter pair
retrievableFields String?
Indicates which fields in the Products are returned in SearchResponse.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizes List<String>?
The size of the product.
getter/setter pair
tags List<String>?
Custom tags associated with the product.
getter/setter pair
title String?
Product title.
getter/setter pair
ttl String?
Input only.
getter/setter pair
type String?
The type of the product.
getter/setter pair
uri String?
Canonical URL directly linking to the product detail page.
getter/setter pair
variants List<GoogleCloudRetailV2Product>?
Product variants grouped together on primary product which share similar product attributes.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited