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

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 Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryClassificationSpec

Query classification specification.

↳ query_rephraser_spec Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryRephraserSpec

Query rephraser specification.

getQueryClassificationSpec

Query classification specification.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryClassificationSpec|null

hasQueryClassificationSpec

clearQueryClassificationSpec

setQueryClassificationSpec

Query classification specification.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryClassificationSpec
Returns
Type Description
$this

getQueryRephraserSpec

Query rephraser specification.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryRephraserSpec|null

hasQueryRephraserSpec

clearQueryRephraserSpec

setQueryRephraserSpec

Query rephraser specification.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryRephraserSpec
Returns
Type Description
$this