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.



11765
11766
11767
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11765

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

Instance Attribute Details

#documentGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocument

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



11753
11754
11755
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11753

def document
  @document
end

#idString

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

Returns:

  • (String)


11758
11759
11760
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11758

def id
  @id
end

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

Google provided available scores. Corresponds to the JSON property modelScores



11763
11764
11765
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11763

def model_scores
  @model_scores
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11770
11771
11772
11773
11774
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11770

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