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.



3777
3778
3779
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3777

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

Instance Attribute Details

#documentGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocument

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



3765
3766
3767
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3765

def document
  @document
end

#idString

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

Returns:

  • (String)


3770
3771
3772
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3770

def id
  @id
end

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

Google provided available scores. Corresponds to the JSON property modelScores



3775
3776
3777
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3775

def model_scores
  @model_scores
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3782
3783
3784
3785
3786
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3782

def update!(**args)
  @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