Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchResponseSearchResult

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

Overview

Represents the search results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SearchResponseSearchResult

Returns a new instance of GoogleCloudDiscoveryengineV1SearchResponseSearchResult.



6272
6273
6274
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 6272

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

Instance Attribute Details

#documentGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Document

Document captures all raw metadata information of items to be recommended or searched. Corresponds to the JSON property document



6265
6266
6267
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 6265

def document
  @document
end

#idString

Document.id of the searched Document. Corresponds to the JSON property id

Returns:

  • (String)


6270
6271
6272
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 6270

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6277
6278
6279
6280
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 6277

def update!(**args)
  @document = args[:document] if args.key?(:document)
  @id = args[:id] if args.key?(:id)
end