public sealed class SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec : IMessage<SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec>, IEquatable<SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec>, IDeepCloneable<SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec.
A specification for configuring snippets in a search response.
[Obsolete]public int MaxSnippetCount { get; set; }
[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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe document provides reference documentation for the \u003ccode\u003eSnippetSpec\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API, specifically for version 1.3.0, with links to other versions also available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSnippetSpec\u003c/code\u003e is designed to configure snippets in search responses and is a public sealed class that implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eSnippetSpec\u003c/code\u003e includes constructors for creating new instances and properties such as \u003ccode\u003eMaxSnippetCount\u003c/code\u003e, \u003ccode\u003eReferenceOnly\u003c/code\u003e, and \u003ccode\u003eReturnSnippet\u003c/code\u003e, to control the configuration of snippets.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMaxSnippetCount\u003c/code\u003e and \u003ccode\u003eReferenceOnly\u003c/code\u003e are deprecated fields, with \u003ccode\u003eReturnSnippet\u003c/code\u003e being the preferred method for controlling whether a snippet should be returned, and will return "No snippet is available for this page." if one can not be generated.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSnippetSpec\u003c/code\u003e is a specification within the \u003ccode\u003eSearchRequest\u003c/code\u003e to configure snippets, with it's namespace being \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1\u003c/code\u003e and being found in the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]