public sealed class AnswerQueryRequest.Types.SafetySpec : IMessage<AnswerQueryRequest.Types.SafetySpec>, IEquatable<AnswerQueryRequest.Types.SafetySpec>, IDeepCloneable<AnswerQueryRequest.Types.SafetySpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class AnswerQueryRequest.Types.SafetySpec.
[[["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\u003eThis document provides reference information for the \u003ccode\u003eAnswerQueryRequest.Types.SafetySpec\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API, which is used to define safety specifications.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSafetySpec\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1\u003c/code\u003e namespace, is a sealed class that inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces like \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 is available in multiple versions, ranging from version 1.0.0-beta06 to the latest 1.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSafetySpec\u003c/code\u003e class includes a boolean property named \u003ccode\u003eEnable\u003c/code\u003e which is used to activate safety filtering on the answer response, and defaults to \u003ccode\u003efalse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe document details the constructors available for the class; \u003ccode\u003eSafetySpec()\u003c/code\u003e, and \u003ccode\u003eSafetySpec(AnswerQueryRequest.Types.SafetySpec other)\u003c/code\u003e, the latter allowing the creation of a copy based on another \u003ccode\u003eSafetySpec\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]