Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaReply

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

Defines a reply message to user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaReply

Returns a new instance of GoogleCloudDiscoveryengineV1alphaReply.



5101
5102
5103
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5101

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

Instance Attribute Details

#referencesArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaReplyReference>

References in the reply. Corresponds to the JSON property references



5089
5090
5091
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5089

def references
  @references
end

#replyString

DEPRECATED: use summary instead. Text reply. Corresponds to the JSON property reply

Returns:

  • (String)


5094
5095
5096
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5094

def reply
  @reply
end

#summaryGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummary

Summary of the top N search result specified by the summary spec. Corresponds to the JSON property summary



5099
5100
5101
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5099

def summary
  @summary
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5106
5107
5108
5109
5110
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5106

def update!(**args)
  @references = args[:references] if args.key?(:references)
  @reply = args[:reply] if args.key?(:reply)
  @summary = args[:summary] if args.key?(:summary)
end