Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult

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

Represents the search results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult

Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult.



12321
12322
12323
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12321

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

Instance Attribute Details

#chunkGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaChunk

Chunk captures all raw metadata information of items to be recommended or searched in the chunk mode. Corresponds to the JSON property chunk



12303
12304
12305
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12303

def chunk
  @chunk
end

#documentGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocument

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



12309
12310
12311
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12309

def document
  @document
end

#idString

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

Returns:

  • (String)


12314
12315
12316
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12314

def id
  @id
end

#model_scoresHash<String,Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDoubleList>

Google provided available scores. Corresponds to the JSON property modelScores



12319
12320
12321
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12319

def model_scores
  @model_scores
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12326
12327
12328
12329
12330
12331
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12326

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