Google Cloud Dialogflow V2 Client - Class SearchConfig (2.1.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class SearchConfig.

Configuration specific to search queries with data stores.

Generated from protobuf message google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig

Namespace

Google \ Cloud \ Dialogflow \ V2 \ SearchKnowledgeRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ boost_specs array<SearchConfig\BoostSpecs>

Optional. Boost specifications for data stores. Maps from datastore name to their boost configuration. Do not specify more than one BoostSpecs for each datastore name. If multiple BoostSpecs are provided for the same datastore name, the behavior is undefined.

↳ filter_specs array<SearchConfig\FilterSpecs>

Optional. Filter specification for data store queries. TMaps 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.

getBoostSpecs

Optional. Boost specifications for data stores.

Maps from datastore name to their boost configuration. Do not specify more than one BoostSpecs for each datastore name. If multiple BoostSpecs are provided for the same datastore name, the behavior is undefined.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setBoostSpecs

Optional. Boost specifications for data stores.

Maps from datastore name to their boost configuration. Do not specify more than one BoostSpecs for each datastore name. If multiple BoostSpecs are provided for the same datastore name, the behavior is undefined.

Parameter
Name Description
var array<SearchConfig\BoostSpecs>
Returns
Type Description
$this

getFilterSpecs

Optional. Filter specification for data store queries.

TMaps 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.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setFilterSpecs

Optional. Filter specification for data store queries.

TMaps 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.

Parameter
Name Description
var array<SearchConfig\FilterSpecs>
Returns
Type Description
$this