Google Cloud Discovery Engine V1 Client - Class ConverseConversationResponse (1.2.0)

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

Response message for ConversationalSearchService.ConverseConversation method.

Generated from protobuf message google.cloud.discoveryengine.v1.ConverseConversationResponse

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ reply Google\Cloud\DiscoveryEngine\V1\Reply

Answer to the current query.

↳ conversation Google\Cloud\DiscoveryEngine\V1\Conversation

Updated conversation including the answer.

↳ search_results array<Google\Cloud\DiscoveryEngine\V1\SearchResponse\SearchResult>

Search Results.

getReply

Answer to the current query.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\Reply|null

hasReply

clearReply

setReply

Answer to the current query.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\Reply
Returns
Type Description
$this

getConversation

Updated conversation including the answer.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\Conversation|null

hasConversation

clearConversation

setConversation

Updated conversation including the answer.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\Conversation
Returns
Type Description
$this

getSearchResults

Search Results.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSearchResults

Search Results.

Parameter
Name Description
var array<Google\Cloud\DiscoveryEngine\V1\SearchResponse\SearchResult>
Returns
Type Description
$this