Google Cloud Discovery Engine V1beta Client - Class Turn (0.11.2)

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

Represents a turn, including a query from the user and a answer from service.

Generated from protobuf message google.cloud.discoveryengine.v1beta.Session.Turn

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ Session

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ query Google\Cloud\DiscoveryEngine\V1beta\Query

The user query.

↳ answer string

The resource name of the answer to the user query.

getQuery

The user query.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1beta\Query|null

hasQuery

clearQuery

setQuery

The user query.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1beta\Query
Returns
Type Description
$this

getAnswer

The resource name of the answer to the user query.

Returns
Type Description
string

setAnswer

The resource name of the answer to the user query.

Parameter
Name Description
var string
Returns
Type Description
$this