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
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#reference_only ⇒ ::Boolean
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#return_snippet ⇒ ::Boolean
If
true
, then return snippet.
Instance Attribute Details
#max_snippet_count ⇒ ::Integer
This field is deprecated and may be removed in the next major version update.
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.
634 635 636 637 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 634 class SnippetSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#reference_only ⇒ ::Boolean
This field is deprecated and may be removed in the next major version update.
Returns [DEPRECATED] This field is deprecated and will have no affect on the snippet.
634 635 636 637 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 634 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.
634 635 636 637 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 634 class SnippetSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |