Google Cloud Discovery Engine V1 Client - Class ConverseConversationResponse (0.8.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
NameDescription
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
TypeDescription
Google\Cloud\DiscoveryEngine\V1\Reply|null

hasReply

clearReply

setReply

Answer to the current query.

Parameter
NameDescription
var Google\Cloud\DiscoveryEngine\V1\Reply
Returns
TypeDescription
$this

getConversation

Updated conversation including the answer.

Returns
TypeDescription
Google\Cloud\DiscoveryEngine\V1\Conversation|null

hasConversation

clearConversation

setConversation

Updated conversation including the answer.

Parameter
NameDescription
var Google\Cloud\DiscoveryEngine\V1\Conversation
Returns
TypeDescription
$this

getSearchResults

Search Results.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSearchResults

Search Results.

Parameter
NameDescription
var array<Google\Cloud\DiscoveryEngine\V1\SearchResponse\SearchResult>
Returns
TypeDescription
$this