public sealed class Condition : IMessage<Condition>, IEquatable<Condition>, IDeepCloneable<Condition>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class Condition.
Defines circumstances to be checked before allowing a behavior
Implements
IMessageCondition, IEquatableCondition, IDeepCloneableCondition, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.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.v1beta.Condition.query_terms] is set. This is currently supporting promotion use case.
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.v1beta.Condition.query_regex] is set.
Maximum of 10 query terms.
Property Value | |
---|---|
Type | Description |
RepeatedFieldConditionTypesQueryTerm |