View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Condition (google_api_retail v0.19.1)

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.

Attributes

  • activeTimeRange (type: list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ConditionTimeRange.t), default: nil) - Range of time(s) specifying when Condition is active. Condition true if any time range matches.
  • pageCategories (type: list(String.t), default: nil) - Used to support browse uses cases. A list (up to 10 entries) of categories or departments. The format should be the same as UserEvent.page_categories;
  • queryTerms (type: list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ConditionQueryTerm.t), default: nil) - A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Condition{
  activeTimeRange:
    [GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ConditionTimeRange.t()] | nil,
  pageCategories: [String.t()] | nil,
  queryTerms:
    [GoogleApi.Retail.V2.Model.GoogleCloudRetailV2ConditionQueryTerm.t()] | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.