Retail v2 API - Class Condition (2.9.0)

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.

Inheritance

object > Condition

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

Condition()

public Condition()

Condition(Condition)

public Condition(Condition other)
Parameter
Name Description
other Condition

Properties

ActiveTimeRange

public RepeatedField<Condition.Types.TimeRange> ActiveTimeRange { get; }

Range of time(s) specifying when Condition is active. Condition true if any time range matches.

Property Value
Type Description
RepeatedFieldConditionTypesTimeRange

QueryTerms

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).

Property Value
Type Description
RepeatedFieldConditionTypesQueryTerm