Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class BoostSpecs.
Boost specifications for data stores.
Generated from protobuf message google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs
Namespace
Google \ Cloud \ Dialogflow \ V2 \ SearchKnowledgeRequest \ SearchConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ data_stores |
array
Optional. Data Stores where the boosting configuration is applied. The full names of the referenced data stores. Formats: |
↳ spec |
array<BoostSpecs\BoostSpec>
Optional. A list of boosting specifications. |
getDataStores
Optional. Data Stores where the boosting configuration is applied. The
full names of the referenced data stores. Formats:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
projects/{project}/locations/{location}/dataStores/{data_store}
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setDataStores
Optional. Data Stores where the boosting configuration is applied. The
full names of the referenced data stores. Formats:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
projects/{project}/locations/{location}/dataStores/{data_store}
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSpec
Optional. A list of boosting specifications.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setSpec
Optional. A list of boosting specifications.
| Parameter | |
|---|---|
| Name | Description |
var |
array<BoostSpecs\BoostSpec>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|