Google Cloud Discovery Engine V1beta Client - Class QueryRephraserSpec (0.11.3)

Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class QueryRephraserSpec.

Query rephraser specification.

Generated from protobuf message google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ AnswerQueryRequest \ QueryUnderstandingSpec

Methods

__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