Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchResponseSearchResult

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

Overview

Represents the search results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SearchResponseSearchResult

Returns a new instance of GoogleCloudDiscoveryengineV1SearchResponseSearchResult.



9069
9070
9071
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9069

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

Instance Attribute Details

#chunkGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Chunk

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



9056
9057
9058
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9056

def chunk
  @chunk
end

#documentGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Document

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



9062
9063
9064
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9062

def document
  @document
end

#idString

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

Returns:

  • (String)


9067
9068
9069
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9067

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9074
9075
9076
9077
9078
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9074

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