public sealed class Condition : IMessage<Condition>, IEquatable<Condition>, IDeepCloneable<Condition>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class Condition.
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."],[[["The webpage provides documentation for the `Condition` class within the Google Cloud Retail v2 API, which is used to define conditions that trigger specific actions."],["The `Condition` class requires at least one of `query_terms` or `products_filter` to be specified, and will only be met if all specified fields are met."],["The `Condition` class has several properties including `ActiveTimeRange` and `QueryTerms`, the former controlling the active time range for the condition, and the latter being a list of up to 10 query terms that will trigger the condition."],["The documentation lists various versions of the Retail v2 API, ranging from version 1.0.0 up to the latest version 2.12.0, demonstrating its evolution over time."],["The `Condition` class implements multiple interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, indicating its integration within the .NET environment and the Google Protobuf system."]]],[]]