Class Condition (0.13.2)

Condition(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Defines circumstances to be checked before allowing a behavior

Attributes

Name Description
query_terms MutableSequence[google.cloud.discoveryengine_v1.types.Condition.QueryTerm]
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set. Maximum of 10 query terms.
active_time_range MutableSequence[google.cloud.discoveryengine_v1.types.Condition.TimeRange]
Range of time(s) specifying when condition is active. Maximum of 10 time ranges.
query_regex str
Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. This is currently supporting promotion use case.

Classes

QueryTerm

QueryTerm(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Matcher for search request query

TimeRange

TimeRange(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Used for time-dependent conditions.