Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class SearchAddonSpec.
SearchAddonSpec is used to disable add-ons for search as per new repricing model. By default if the SearchAddonSpec is not specified, we consider that the customer wants to enable them wherever applicable.
Generated from protobuf message google.cloud.discoveryengine.v1.SearchRequest.SearchAddonSpec
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ SearchRequestMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ disable_semantic_add_on |
bool
Optional. If true, semantic add-on is disabled. Semantic add-on includes embeddings and jetstream. |
↳ disable_kpi_personalization_add_on |
bool
Optional. If true, disables event re-ranking and personalization to optimize KPIs & personalize results. |
↳ disable_generative_answer_add_on |
bool
Optional. If true, generative answer add-on is disabled. Generative answer add-on includes natural language to filters and simple answers. |
getDisableSemanticAddOn
Optional. If true, semantic add-on is disabled. Semantic add-on includes embeddings and jetstream.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setDisableSemanticAddOn
Optional. If true, semantic add-on is disabled. Semantic add-on includes embeddings and jetstream.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisableKpiPersonalizationAddOn
Optional. If true, disables event re-ranking and personalization to optimize KPIs & personalize results.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setDisableKpiPersonalizationAddOn
Optional. If true, disables event re-ranking and personalization to optimize KPIs & personalize results.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisableGenerativeAnswerAddOn
Optional. If true, generative answer add-on is disabled. Generative answer add-on includes natural language to filters and simple answers.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setDisableGenerativeAnswerAddOn
Optional. If true, generative answer add-on is disabled. Generative answer add-on includes natural language to filters and simple answers.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|