Google Cloud Discovery Engine V1beta Client - Class ConverseConversationResponse (0.7.1)

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

Response message for ConversationalSearchService.ConverseConversation method.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ reply Google\Cloud\DiscoveryEngine\V1beta\Reply

Answer to the current query.

↳ conversation Google\Cloud\DiscoveryEngine\V1beta\Conversation

Updated conversation including the answer.

↳ related_questions array

Suggested related questions.

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

Search Results.

getReply

Answer to the current query.

Returns
TypeDescription
Google\Cloud\DiscoveryEngine\V1beta\Reply|null

hasReply

clearReply

setReply

Answer to the current query.

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

getConversation

Updated conversation including the answer.

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

hasConversation

clearConversation

setConversation

Updated conversation including the answer.

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

getRelatedQuestions

Suggested related questions.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRelatedQuestions

Suggested related questions.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getSearchResults

Search Results.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSearchResults

Search Results.

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