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.



18316
18317
18318
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18316

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

Instance Attribute Details

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

References in the reply. Corresponds to the JSON property references



18304
18305
18306
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18304

def references
  @references
end

#replyString

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

Returns:

  • (String)


18309
18310
18311
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18309

def reply
  @reply
end

#summaryGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSummary

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



18314
18315
18316
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18314

def summary
  @summary
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18321
18322
18323
18324
18325
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18321

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