public sealed class Condition : IMessage<Condition>, IEquatable<Condition>, IDeepCloneable<Condition>, IBufferMessage, IMessageReference documentation and code samples for the Discovery Engine v1 API class Condition.
Defines circumstances to be checked before allowing a behavior
Implements
IMessageCondition, IEquatableCondition, IDeepCloneableCondition, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.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.
Maximum of 10 time ranges.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldConditionTypesTimeRange |
|
QueryRegex
public string QueryRegex { get; set; }Optional. Query regex to match the whole search query. Cannot be set when [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms] is set. Only supported for Basic Site Search promotion serving controls.
| Property Value | |
|---|---|
| Type | Description |
string |
|
QueryTerms
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.v1.Condition.query_regex] is set.
Maximum of 10 query terms.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldConditionTypesQueryTerm |
|