Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfig

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

Overview

Configuration specific to search queries with data stores.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfig

Returns a new instance of GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfig.



21098
21099
21100
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21098

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

Instance Attribute Details

#boost_specsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecs>

Optional. Boost specifications for data stores. Corresponds to the JSON property boostSpecs



21088
21089
21090
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21088

def boost_specs
  @boost_specs
end

#filter_specsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigFilterSpecs>

Optional. Filter specification for data store queries. Maps from datastore name to the filter expression for that datastore. Do not specify more than one FilterSpecs for each datastore name. If multiple FilterSpecs are provided for the same datastore name, the behavior is undefined. Corresponds to the JSON property filterSpecs



21096
21097
21098
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21096

def filter_specs
  @filter_specs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21103
21104
21105
21106
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21103

def update!(**args)
  @boost_specs = args[:boost_specs] if args.key?(:boost_specs)
  @filter_specs = args[:filter_specs] if args.key?(:filter_specs)
end