public sealed class GenerateGroundedContentResponse.Types.Candidate : IMessage<GenerateGroundedContentResponse.Types.Candidate>, IEquatable<GenerateGroundedContentResponse.Types.Candidate>, IDeepCloneable<GenerateGroundedContentResponse.Types.Candidate>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class GenerateGroundedContentResponse.Types.Candidate.
[[["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 documentation for the \u003ccode\u003eGenerateGroundedContentResponse.Types.Candidate\u003c/code\u003e class within the Google Cloud Discovery Engine v1beta API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGenerateGroundedContentResponse.Types.Candidate\u003c/code\u003e class represents a response candidate generated by the model and inherits from the object class while implementing several 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 offers properties such as \u003ccode\u003eContent\u003c/code\u003e (of type \u003ccode\u003eGroundedGenerationContent\u003c/code\u003e), \u003ccode\u003eGroundingMetadata\u003c/code\u003e (of type \u003ccode\u003eGroundingMetadata\u003c/code\u003e), \u003ccode\u003eGroundingScore\u003c/code\u003e (a float), and \u003ccode\u003eIndex\u003c/code\u003e (an integer) to provide details about the candidate.\u003c/p\u003e\n"],["\u003cp\u003eConstructors for the class include a default constructor \u003ccode\u003eCandidate()\u003c/code\u003e and another \u003ccode\u003eCandidate(GenerateGroundedContentResponse.Types.Candidate other)\u003c/code\u003e that takes an existing candidate for creation.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is \u003ccode\u003e1.0.0-beta18\u003c/code\u003e, and \u003ccode\u003e1.0.0-beta17\u003c/code\u003e is also referenced within the document.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class GenerateGroundedContentResponse.Types.Candidate (1.0.0-beta19)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta19 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentResponse.Types.Candidate)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentResponse.Types.Candidate) \n\n public sealed class GenerateGroundedContentResponse.Types.Candidate : IMessage\u003cGenerateGroundedContentResponse.Types.Candidate\u003e, IEquatable\u003cGenerateGroundedContentResponse.Types.Candidate\u003e, IDeepCloneable\u003cGenerateGroundedContentResponse.Types.Candidate\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class GenerateGroundedContentResponse.Types.Candidate.\n\nA response candidate generated from the model. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GenerateGroundedContentResponse.Types.Candidate \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GenerateGroundedContentResponse](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentResponse)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentResponse.Types)[Candidate](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentResponse.Types.Candidate), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GenerateGroundedContentResponse](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentResponse)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentResponse.Types)[Candidate](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentResponse.Types.Candidate), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GenerateGroundedContentResponse](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentResponse)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentResponse.Types)[Candidate](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentResponse.Types.Candidate), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1Beta](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1Beta.dll\n\nConstructors\n------------\n\n### Candidate()\n\n public Candidate()\n\n### Candidate(Candidate)\n\n public Candidate(GenerateGroundedContentResponse.Types.Candidate other)\n\nProperties\n----------\n\n### Content\n\n public GroundedGenerationContent Content { get; set; }\n\nContent of the candidate.\n\n### GroundingMetadata\n\n public GenerateGroundedContentResponse.Types.Candidate.Types.GroundingMetadata GroundingMetadata { get; set; }\n\nGrounding metadata for the generated content.\n\n### GroundingScore\n\n public float GroundingScore { get; set; }\n\nThe overall grounding score for the candidate, in the range of \\[0, 1\\].\n\n### HasGroundingScore\n\n public bool HasGroundingScore { get; }\n\nGets whether the \"grounding_score\" field is set\n\n### Index\n\n public int Index { get; set; }\n\nIndex of the candidate."]]