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
Name Description
data array

Optional. Data for populating the Message object.

↳ query_classification_spec QueryUnderstandingSpec\QueryClassificationSpec

Query classification specification.

↳ query_rephraser_spec QueryUnderstandingSpec\QueryRephraserSpec

Query rephraser specification.

↳ disable_spell_correction bool

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

getQueryClassificationSpec

Query classification specification.

Returns
Type Description
QueryUnderstandingSpec\QueryClassificationSpec|null

hasQueryClassificationSpec

clearQueryClassificationSpec

setQueryClassificationSpec

Query classification specification.

Parameter
Name Description
var QueryUnderstandingSpec\QueryClassificationSpec
Returns
Type Description
$this

getQueryRephraserSpec

Query rephraser specification.

Returns
Type Description
QueryUnderstandingSpec\QueryRephraserSpec|null

hasQueryRephraserSpec

clearQueryRephraserSpec

setQueryRephraserSpec

Query rephraser specification.

Parameter
Name Description
var QueryUnderstandingSpec\QueryRephraserSpec
Returns
Type Description
$this

getDisableSpellCorrection

Optional. Whether to disable spell correction.

The default value is false.

Returns
Type Description
bool

setDisableSpellCorrection

Optional. Whether to disable spell correction.

The default value is false.

Parameter
Name Description
var bool
Returns
Type Description
$this