Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaReply

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

Overview

Defines a reply message to user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaReply

Returns a new instance of GoogleCloudDiscoveryengineV1betaReply.



6465
6466
6467
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6465

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

Instance Attribute Details

#referencesArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaReplyReference>

References in the reply. Corresponds to the JSON property references



6453
6454
6455
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6453

def references
  @references
end

#replyString

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

Returns:

  • (String)


6458
6459
6460
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6458

def reply
  @reply
end

#summaryGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSummary

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



6463
6464
6465
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6463

def summary
  @summary
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6470
6471
6472
6473
6474
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6470

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