Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConverseConversationResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb

Overview

Response message for ConversationalSearchService.ConverseConversation method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaConverseConversationResponse

Returns a new instance of GoogleCloudDiscoveryengineV1alphaConverseConversationResponse.



1085
1086
1087
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1085

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#conversationGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversation

External conversation proto definition. Corresponds to the JSON property conversation



1068
1069
1070
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1068

def conversation
  @conversation
end

Suggested related questions. Corresponds to the JSON property relatedQuestions

Returns:

  • (Array<String>)


1073
1074
1075
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1073

def related_questions
  @related_questions
end

#replyGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaReply

Defines a reply message to user. Corresponds to the JSON property reply



1078
1079
1080
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1078

def reply
  @reply
end

#search_resultsArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult>

Search Results. Corresponds to the JSON property searchResults



1083
1084
1085
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1083

def search_results
  @search_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1090
1091
1092
1093
1094
1095
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1090

def update!(**args)
  @conversation = args[:conversation] if args.key?(:conversation)
  @related_questions = args[:related_questions] if args.key?(:related_questions)
  @reply = args[:reply] if args.key?(:reply)
  @search_results = args[:search_results] if args.key?(:search_results)
end