Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec
- 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
-
#chunk_spec ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec
Specifies the chunk spec to be returned from the search response.
-
#extractive_content_spec ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec
A specification for configuring the extractive content in a search response.
-
#search_result_mode ⇒ String
Specifies the search result mode.
-
#snippet_spec ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec
A specification for configuring snippets in a search response.
-
#summary_spec ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec
A specification for configuring a summary returned in a search response.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec.
12754 12755 12756 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12754 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chunk_spec ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec
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
12731 12732 12733 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12731 def chunk_spec @chunk_spec end |
#extractive_content_spec ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec
A specification for configuring the extractive content in a search response.
Corresponds to the JSON property extractiveContentSpec
12736 12737 12738 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12736 def extractive_content_spec @extractive_content_spec end |
#search_result_mode ⇒ String
Specifies the search result mode. If unspecified, the search result mode
defaults to DOCUMENTS.
Corresponds to the JSON property searchResultMode
12742 12743 12744 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12742 def search_result_mode @search_result_mode end |
#snippet_spec ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec
A specification for configuring snippets in a search response.
Corresponds to the JSON property snippetSpec
12747 12748 12749 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12747 def snippet_spec @snippet_spec end |
#summary_spec ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec
A specification for configuring a summary returned in a search response.
Corresponds to the JSON property summarySpec
12752 12753 12754 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12752 def summary_spec @summary_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12759 12760 12761 12762 12763 12764 12765 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12759 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 |