Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult

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

Overview

Represents the search results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult.



9091
9092
9093
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9091

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

Instance Attribute Details

#chunkGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunk

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



9073
9074
9075
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9073

def chunk
  @chunk
end

#documentGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocument

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



9079
9080
9081
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9079

def document
  @document
end

#idString

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

Returns:

  • (String)


9084
9085
9086
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9084

def id
  @id
end

#model_scoresHash<String,Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDoubleList>

Google provided available scores. Corresponds to the JSON property modelScores



9089
9090
9091
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9089

def model_scores
  @model_scores
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9096
9097
9098
9099
9100
9101
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9096

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