Package-level declarations

Types

Link copied to clipboard
data class GetControlResult(val associatedServingConfigIds: List<String>, val displayName: String, val name: String, val rule: GoogleCloudRetailV2RuleResponse, val searchSolutionUseCase: List<String>, val solutionTypes: List<String>)
Link copied to clipboard
data class GetModelResult(val createTime: String, val dataState: String, val displayName: String, val filteringOption: String, val lastTuneTime: String, val modelFeaturesConfig: GoogleCloudRetailV2ModelModelFeaturesConfigResponse, val name: String, val optimizationObjective: String, val periodicTuningState: String, val servingConfigLists: List<GoogleCloudRetailV2ModelServingConfigListResponse>, val servingState: String, val trainingState: String, val tuningOperation: String, val type: String, val updateTime: String)
Link copied to clipboard
data class GetProductResult(val attributes: Map<String, String>, val audience: GoogleCloudRetailV2AudienceResponse, val availability: String, val availableQuantity: Int, val availableTime: String, val brands: List<String>, val categories: List<String>, val collectionMemberIds: List<String>, val colorInfo: GoogleCloudRetailV2ColorInfoResponse, val conditions: List<String>, val description: String, val expireTime: String, val fulfillmentInfo: List<GoogleCloudRetailV2FulfillmentInfoResponse>, val gtin: String, val images: List<GoogleCloudRetailV2ImageResponse>, val languageCode: String, val localInventories: List<GoogleCloudRetailV2LocalInventoryResponse>, val materials: List<String>, val name: String, val patterns: List<String>, val priceInfo: GoogleCloudRetailV2PriceInfoResponse, val primaryProductId: String, val promotions: List<GoogleCloudRetailV2PromotionResponse>, val publishTime: String, val rating: GoogleCloudRetailV2RatingResponse, val retrievableFields: String, val sizes: List<String>, val tags: List<String>, val title: String, val ttl: String, val type: String, val uri: String, val variants: List<GoogleCloudRetailV2ProductResponse>)
Link copied to clipboard
data class GetServingConfigResult(val boostControlIds: List<String>, val displayName: String, val diversityLevel: String, val diversityType: String, val doNotAssociateControlIds: List<String>, val dynamicFacetSpec: GoogleCloudRetailV2SearchRequestDynamicFacetSpecResponse, val enableCategoryFilterLevel: String, val facetControlIds: List<String>, val filterControlIds: List<String>, val ignoreControlIds: List<String>, val modelId: String, val name: String, val onewaySynonymsControlIds: List<String>, val personalizationSpec: GoogleCloudRetailV2SearchRequestPersonalizationSpecResponse, val priceRerankingLevel: String, val redirectControlIds: List<String>, val replacementControlIds: List<String>, val solutionTypes: List<String>, val twowaySynonymsControlIds: List<String>)
Link copied to clipboard
data class GoogleCloudRetailV2AudienceResponse(val ageGroups: List<String>, val genders: List<String>)

An intended audience of the Product for whom it's sold.

Link copied to clipboard
data class GoogleCloudRetailV2ColorInfoResponse(val colorFamilies: List<String>, val colors: List<String>)

The color information of a Product.

data class GoogleCloudRetailV2ConditionQueryTermResponse(val fullMatch: Boolean, val value: String)

Query terms that we want to match on.

Link copied to clipboard

Metadata that is used to define a condition that triggers an action. A valid condition must specify at least one of 'query_terms' or 'products_filter'. If multiple fields are specified, the condition is met if all the fields are satisfied e.g. if a set of query terms and product_filter are set, then only items matching the product_filter for requests with a query matching the query terms wil get boosted.

data class GoogleCloudRetailV2ConditionTimeRangeResponse(val endTime: String, val startTime: String)

Used for time-dependent conditions. Example: Want to have rule applied for week long sale.

data class GoogleCloudRetailV2FulfillmentInfoResponse(val placeIds: List<String>, val type: String)

Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.

Link copied to clipboard
data class GoogleCloudRetailV2ImageResponse(val height: Int, val uri: String, val width: Int)

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.

Link copied to clipboard
data class GoogleCloudRetailV2IntervalResponse(val exclusiveMaximum: Double, val exclusiveMinimum: Double, val maximum: Double, val minimum: Double)

A floating point interval.

data class GoogleCloudRetailV2LocalInventoryResponse(val attributes: Map<String, String>, val fulfillmentTypes: List<String>, val placeId: String, val priceInfo: GoogleCloudRetailV2PriceInfoResponse)

The inventory information at a place (e.g. a store) identified by a place ID.

Additional configs for the frequently-bought-together model type.

Represents an ordered combination of valid serving configs, which can be used for PAGE_OPTIMIZATION recommendations.

The price range of all variant Product having the same Product.primary_product_id.

Link copied to clipboard
data class GoogleCloudRetailV2PriceInfoResponse(val cost: Double, val currencyCode: String, val originalPrice: Double, val price: Double, val priceEffectiveTime: String, val priceExpireTime: String, val priceRange: GoogleCloudRetailV2PriceInfoPriceRangeResponse)

The price information of a Product.

Link copied to clipboard
data class GoogleCloudRetailV2ProductResponse(val attributes: Map<String, String>, val audience: GoogleCloudRetailV2AudienceResponse, val availability: String, val availableQuantity: Int, val availableTime: String, val brands: List<String>, val categories: List<String>, val collectionMemberIds: List<String>, val colorInfo: GoogleCloudRetailV2ColorInfoResponse, val conditions: List<String>, val description: String, val expireTime: String, val fulfillmentInfo: List<GoogleCloudRetailV2FulfillmentInfoResponse>, val gtin: String, val images: List<GoogleCloudRetailV2ImageResponse>, val languageCode: String, val localInventories: List<GoogleCloudRetailV2LocalInventoryResponse>, val materials: List<String>, val name: String, val patterns: List<String>, val priceInfo: GoogleCloudRetailV2PriceInfoResponse, val primaryProductId: String, val promotions: List<GoogleCloudRetailV2PromotionResponse>, val publishTime: String, val rating: GoogleCloudRetailV2RatingResponse, val retrievableFields: String, val sizes: List<String>, val tags: List<String>, val title: String, val ttl: String, val type: String, val uri: String, val variants: List<GoogleCloudRetailV2ProductResponse>)

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

Link copied to clipboard
data class GoogleCloudRetailV2PromotionResponse(val promotionId: String)

Promotion specification.

Link copied to clipboard
data class GoogleCloudRetailV2RatingResponse(val averageRating: Double, val ratingCount: Int, val ratingHistogram: List<Int>)

The rating of a Product.

data class GoogleCloudRetailV2RuleBoostActionResponse(val boost: Double, val productsFilter: String)

A boost action to apply to results matching condition specified above.

data class GoogleCloudRetailV2RuleDoNotAssociateActionResponse(val doNotAssociateTerms: List<String>, val queryTerms: List<String>, val terms: List<String>)

Prevents query_term from being associated with specified terms during search. Example: Don't associate "gShoe" and "cheap".

Prevents a term in the query from being used in search. Example: Don't search for "shoddy".

data class GoogleCloudRetailV2RuleOnewaySynonymsActionResponse(val onewayTerms: List<String>, val queryTerms: List<String>, val synonyms: List<String>)

Maps a set of terms to a set of synonyms. Set of synonyms will be treated as synonyms of each query term only. query_terms will not be treated as synonyms of each other. Example: "sneakers" will use a synonym of "shoes". "shoes" will not use a synonym of "sneakers".

Redirects a shopper to a specific page. * Rule Condition: - Must specify Condition.query_terms. * Action Input: Request Query * Action Result: Redirects shopper to provided uri.

data class GoogleCloudRetailV2RuleReplacementActionResponse(val queryTerms: List<String>, val replacementTerm: String, val term: String)

Replaces a term in the query. Multiple replacement candidates can be specified. All query_terms will be replaced with the replacement term. Example: Replace "gShoe" with "google shoe".

Link copied to clipboard

A rule is a condition-action pair * A condition defines when a rule is to be triggered. * An action specifies what occurs on that trigger. Currently rules only work for controls with SOLUTION_TYPE_SEARCH.

Creates a set of terms that will be treated as synonyms of each other. Example: synonyms of "sneakers" and "shoes": * "sneakers" will use a synonym of "shoes". * "shoes" will use a synonym of "sneakers".

The specifications of dynamically generated facets.

The specification for personalization.