Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaCondition

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb

Overview

Defines circumstances to be checked before allowing a behavior

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCondition

Returns a new instance of GoogleCloudDiscoveryengineV1alphaCondition.



4669
4670
4671
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4669

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#active_time_rangeArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaConditionTimeRange>

Range of time(s) specifying when condition is active. Maximum of 10 time ranges. Corresponds to the JSON property activeTimeRange



4655
4656
4657
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4655

def active_time_range
  @active_time_range
end

#query_regexString

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

Returns:

  • (String)


4661
4662
4663
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4661

def query_regex
  @query_regex
end

#query_termsArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaConditionQueryTerm>

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



4667
4668
4669
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4667

def query_terms
  @query_terms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4674
4675
4676
4677
4678
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4674

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