Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
A specification for configuring snippets in a search response.
Instance Attribute Summary collapse
-
#max_snippet_count ⇒ Fixnum
[DEPRECATED] This field is deprecated.
-
#reference_only ⇒ Boolean
(also: #reference_only?)
[DEPRECATED] This field is deprecated and will have no affect on the snippet.
-
#return_snippet ⇒ Boolean
(also: #return_snippet?)
If
true, then return snippet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec
Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec.
4014 4015 4016 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4014 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_snippet_count ⇒ Fixnum
[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.
Corresponds to the JSON property maxSnippetCount
3998 3999 4000 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3998 def max_snippet_count @max_snippet_count end |
#reference_only ⇒ Boolean Also known as: reference_only?
[DEPRECATED] This field is deprecated and will have no affect on the snippet.
Corresponds to the JSON property referenceOnly
4003 4004 4005 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4003 def reference_only @reference_only end |
#return_snippet ⇒ Boolean Also known as: return_snippet?
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.
Corresponds to the JSON property returnSnippet
4011 4012 4013 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4011 def return_snippet @return_snippet end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4019 4020 4021 4022 4023 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4019 def update!(**args) @max_snippet_count = args[:max_snippet_count] if args.key?(:max_snippet_count) @reference_only = args[:reference_only] if args.key?(:reference_only) @return_snippet = args[:return_snippet] if args.key?(:return_snippet) end |