public sealed class Condition : IMessage<Condition>, IEquatable<Condition>, IDeepCloneable<Condition>, IBufferMessage, IMessage
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.
public RepeatedField<Condition.Types.QueryTerm> QueryTerms { get; }
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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This document outlines the `Condition` class within the Google.Cloud.Retail.V2 namespace, specifically for version 2.2.0, and its role in defining conditions that trigger actions."],["The `Condition` class is designed to be used with a least one of 'query_terms' or 'products_filter', and when multiple fields are specified all the fields must be met for the condition to be satisfied."],["The `Condition` class implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from the `Object` class."],["There are two constructors for the `Condition` class, a default `Condition()` and `Condition(Condition other)`, which creates a new condition object based off of another condition object."],["The `Condition` class also contains two properties: `ActiveTimeRange`, which defines time ranges when the condition is active, and `QueryTerms`, which is a list of query terms that are checked against the queries being made."]]],[]]