Class: Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SnippetSpec
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SnippetSpec
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb
Overview
A specification for configuring snippets in a search response.
Instance Attribute Summary collapse
-
#max_snippet_count ⇒ ::Integer
[DEPRECATED] This field is deprecated.
-
#reference_only ⇒ ::Boolean
[DEPRECATED] This field is deprecated and will have no affect on the snippet.
-
#return_snippet ⇒ ::Boolean
If
true
, then return snippet.
Instance Attribute Details
#max_snippet_count ⇒ ::Integer
Returns [DEPRECATED] This field is deprecated. To control snippet return, use
return_snippet
field. For backwards compatibility, we will return
snippet if max_snippet_count > 0.
489 490 491 492 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 489 class SnippetSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#reference_only ⇒ ::Boolean
Returns [DEPRECATED] This field is deprecated and will have no affect on the snippet.
489 490 491 492 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 489 class SnippetSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#return_snippet ⇒ ::Boolean
If true
, then return snippet. If no snippet can be generated, we
return "No snippet is available for this page." A snippet_status
with
SUCCESS
or NO_SNIPPET_AVAILABLE
will also be returned.
489 490 491 492 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 489 class SnippetSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |