Google Cloud Discovery Engine V1 Client - Class QueryUnderstandingSpec (1.5.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class QueryUnderstandingSpec.

Query understanding specification.

Generated from protobuf message google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ AnswerQueryRequest

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ query_classification_specQueryUnderstandingSpec\QueryClassificationSpec

Query classification specification.

↳ query_rephraser_specQueryUnderstandingSpec\QueryRephraserSpec

Query rephraser specification.

↳ disable_spell_correctionbool

Optional. Whether to disable spell correction. The default value is false.

getQueryClassificationSpec

Query classification specification.

Returns
TypeDescription
QueryUnderstandingSpec\QueryClassificationSpec|null

hasQueryClassificationSpec

clearQueryClassificationSpec

setQueryClassificationSpec

Query classification specification.

Parameter
NameDescription
varQueryUnderstandingSpec\QueryClassificationSpec
Returns
TypeDescription
$this

getQueryRephraserSpec

Query rephraser specification.

Returns
TypeDescription
QueryUnderstandingSpec\QueryRephraserSpec|null

hasQueryRephraserSpec

clearQueryRephraserSpec

setQueryRephraserSpec

Query rephraser specification.

Parameter
NameDescription
varQueryUnderstandingSpec\QueryRephraserSpec
Returns
TypeDescription
$this

getDisableSpellCorrection

Optional. Whether to disable spell correction.

The default value is false.

Returns
TypeDescription
bool

setDisableSpellCorrection

Optional. Whether to disable spell correction.

The default value is false.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this