Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class QueryRephraserSpec.
Query rephraser specification.
Generated from protobuf message google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ AnswerQueryRequest \ QueryUnderstandingSpecMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ disable |
bool
Disable query rephraser. |
↳ max_rephrase_steps |
int
Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default. |
getDisable
Disable query rephraser.
Returns | |
---|---|
Type | Description |
bool |
setDisable
Disable query rephraser.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getMaxRephraseSteps
Max rephrase steps.
The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default.
Returns | |
---|---|
Type | Description |
int |
setMaxRephraseSteps
Max rephrase steps.
The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |