Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec

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

A specification for configuring the behavior of content search.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec

Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec.



18209
18210
18211
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18209

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

Instance Attribute Details

#chunk_specGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec

Specifies the chunk spec to be returned from the search response. Only available if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS Corresponds to the JSON property chunkSpec



18186
18187
18188
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18186

def chunk_spec
  @chunk_spec
end

#extractive_content_specGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec

A specification for configuring the extractive content in a search response. Corresponds to the JSON property extractiveContentSpec



18191
18192
18193
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18191

def extractive_content_spec
  @extractive_content_spec
end

#search_result_modeString

Specifies the search result mode. If unspecified, the search result mode defaults to DOCUMENTS. Corresponds to the JSON property searchResultMode

Returns:

  • (String)


18197
18198
18199
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18197

def search_result_mode
  @search_result_mode
end

#snippet_specGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec

A specification for configuring snippets in a search response. Corresponds to the JSON property snippetSpec



18202
18203
18204
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18202

def snippet_spec
  @snippet_spec
end

#summary_specGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec

A specification for configuring a summary returned in a search response. Corresponds to the JSON property summarySpec



18207
18208
18209
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18207

def summary_spec
  @summary_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18214
18215
18216
18217
18218
18219
18220
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18214

def update!(**args)
  @chunk_spec = args[:chunk_spec] if args.key?(:chunk_spec)
  @extractive_content_spec = args[:extractive_content_spec] if args.key?(:extractive_content_spec)
  @search_result_mode = args[:search_result_mode] if args.key?(:search_result_mode)
  @snippet_spec = args[:snippet_spec] if args.key?(:snippet_spec)
  @summary_spec = args[:summary_spec] if args.key?(:summary_spec)
end