Optional. Query regex to match the whole search query.
Cannot be set when
[Condition.query_terms][google.cloud.discoveryengine.v1beta.Condition.query_terms]
is set. This is currently supporting promotion use case.
public RepeatedField<Condition.Types.QueryTerm> QueryTerms { get; }
Search only
A list of terms to match the query on.
Cannot be set when
[Condition.query_regex][google.cloud.discoveryengine.v1beta.Condition.query_regex]
is set.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation is for the \u003ccode\u003eCondition\u003c/code\u003e class within the Google Cloud Discovery Engine v1beta API, specifically the latest version 1.0.0-beta18.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCondition\u003c/code\u003e class is used to define the criteria that must be met before a particular behavior is allowed within the Discovery Engine.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from the .NET \u003ccode\u003eobject\u003c/code\u003e class and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers properties such as \u003ccode\u003eActiveTimeRange\u003c/code\u003e, which specifies timeframes for when the condition is active, \u003ccode\u003eQueryRegex\u003c/code\u003e, for matching search queries with a regular expression, and \u003ccode\u003eQueryTerms\u003c/code\u003e, a list of search query terms.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for the \u003ccode\u003eCondition\u003c/code\u003e class: a parameterless constructor and one that takes another \u003ccode\u003eCondition\u003c/code\u003e object as a parameter for creating a copy.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class Condition (1.0.0-beta19)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta19 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Condition)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.Condition) \n\n public sealed class Condition : IMessage\u003cCondition\u003e, IEquatable\u003cCondition\u003e, IDeepCloneable\u003cCondition\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class Condition.\n\nDefines circumstances to be checked before allowing a behavior \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Condition \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Condition](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Condition), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Condition](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Condition), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Condition](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Condition), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1Beta](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1Beta.dll\n\nConstructors\n------------\n\n### Condition()\n\n public Condition()\n\n### Condition(Condition)\n\n public Condition(Condition other)\n\nProperties\n----------\n\n### ActiveTimeRange\n\n public RepeatedField\u003cCondition.Types.TimeRange\u003e ActiveTimeRange { get; }\n\nRange of time(s) specifying when condition is active.\n\nMaximum of 10 time ranges.\n\n### QueryRegex\n\n public string QueryRegex { get; set; }\n\nOptional. Query regex to match the whole search query.\nCannot be set when\n\\[Condition.query_terms\\]\\[google.cloud.discoveryengine.v1beta.Condition.query_terms\\]\nis set. This is currently supporting promotion use case.\n\n### QueryTerms\n\n public RepeatedField\u003cCondition.Types.QueryTerm\u003e QueryTerms { get; }\n\nSearch only\nA list of terms to match the query on.\nCannot be set when\n\\[Condition.query_regex\\]\\[google.cloud.discoveryengine.v1beta.Condition.query_regex\\]\nis set.\n\nMaximum of 10 query terms."]]