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.



19221
19222
19223
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19221

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



19203
19204
19205
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19203

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



19209
19210
19211
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19209

def document
  @document
end

#idString

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

Returns:

  • (String)


19214
19215
19216
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19214

def id
  @id
end

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

Google provided available scores. Corresponds to the JSON property modelScores



19219
19220
19221
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19219

def model_scores
  @model_scores
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19226
19227
19228
19229
19230
19231
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19226

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