Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Condition
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Condition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Defines circumstances to be checked before allowing a behavior
Instance Attribute Summary collapse
-
#active_time_range ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ConditionTimeRange>
Range of time(s) specifying when condition is active.
-
#query_regex ⇒ String
Optional.
-
#query_terms ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ConditionQueryTerm>
Search only A list of terms to match the query on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1Condition
constructor
A new instance of GoogleCloudDiscoveryengineV1Condition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1Condition
Returns a new instance of GoogleCloudDiscoveryengineV1Condition.
3104 3105 3106 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3104 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active_time_range ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ConditionTimeRange>
Range of time(s) specifying when condition is active. Maximum of 10 time
ranges.
Corresponds to the JSON property activeTimeRange
3090 3091 3092 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3090 def active_time_range @active_time_range end |
#query_regex ⇒ String
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.
Corresponds to the JSON property queryRegex
3096 3097 3098 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3096 def query_regex @query_regex end |
#query_terms ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ConditionQueryTerm>
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.
Corresponds to the JSON property queryTerms
3102 3103 3104 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3102 def query_terms @query_terms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3109 3110 3111 3112 3113 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3109 def update!(**args) @active_time_range = args[:active_time_range] if args.key?(:active_time_range) @query_regex = args[:query_regex] if args.key?(:query_regex) @query_terms = args[:query_terms] if args.key?(:query_terms) end |