public sealed class CheckGroundingRequest : IMessage<CheckGroundingRequest>, IEquatable<CheckGroundingRequest>, IDeepCloneable<CheckGroundingRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class CheckGroundingRequest.
Request message for
[GroundedGenerationService.CheckGrounding][google.cloud.discoveryengine.v1beta.GroundedGenerationService.CheckGrounding]
method.
public MapField<string, string> UserLabels { get; }
The user labels applied to a resource must meet the following requirements:
Each resource can have multiple labels, up to a maximum of 64.
Each label must be a key-value pair.
Keys have a minimum length of 1 character and a maximum length of 63
characters and cannot be empty. Values can be empty and have a maximum
length of 63 characters.
Keys and values can contain only lowercase letters, numeric characters,
underscores, and dashes. All characters must use UTF-8 encoding, and
international characters are allowed.
The key portion of a label must be unique. However, you can use the same
key with multiple resources.
Keys must start with a lowercase letter or international character.
[[["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 \u003ccode\u003eCheckGroundingRequest\u003c/code\u003e class is used for requesting a grounding check via the \u003ccode\u003eGroundedGenerationService.CheckGrounding\u003c/code\u003e method within the Discovery Engine v1beta API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionality for message handling, equality checks, deep cloning, and buffered message operations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCheckGroundingRequest\u003c/code\u003e has several key properties, including \u003ccode\u003eAnswerCandidate\u003c/code\u003e (the text to check, limited to 4096 tokens), \u003ccode\u003eFacts\u003c/code\u003e (a list of up to 200 grounding facts), \u003ccode\u003eGroundingConfig\u003c/code\u003e (the required resource name of the grounding config), and \u003ccode\u003eUserLabels\u003c/code\u003e (a set of user-defined labels with specific formatting rules).\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available: a default constructor, \u003ccode\u003eCheckGroundingRequest()\u003c/code\u003e, and a constructor that accepts another \u003ccode\u003eCheckGroundingRequest\u003c/code\u003e object, \u003ccode\u003eCheckGroundingRequest(CheckGroundingRequest other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCheckGroundingRequest\u003c/code\u003e class can be accessed in two versions as of this release: \u003ccode\u003e1.0.0-beta18 (latest)\u003c/code\u003e and \u003ccode\u003e1.0.0-beta17\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class CheckGroundingRequest (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.CheckGroundingRequest)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.CheckGroundingRequest) \n\n public sealed class CheckGroundingRequest : IMessage\u003cCheckGroundingRequest\u003e, IEquatable\u003cCheckGroundingRequest\u003e, IDeepCloneable\u003cCheckGroundingRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class CheckGroundingRequest.\n\nRequest message for\n\\[GroundedGenerationService.CheckGrounding\\]\\[google.cloud.discoveryengine.v1beta.GroundedGenerationService.CheckGrounding\\]\nmethod. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CheckGroundingRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CheckGroundingRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CheckGroundingRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CheckGroundingRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CheckGroundingRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CheckGroundingRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CheckGroundingRequest), [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### CheckGroundingRequest()\n\n public CheckGroundingRequest()\n\n### CheckGroundingRequest(CheckGroundingRequest)\n\n public CheckGroundingRequest(CheckGroundingRequest other)\n\nProperties\n----------\n\n### AnswerCandidate\n\n public string AnswerCandidate { get; set; }\n\nAnswer candidate to check. It can have a maximum length of 4096 tokens.\n\n### Facts\n\n public RepeatedField\u003cGroundingFact\u003e Facts { get; }\n\nList of facts for the grounding check.\nWe support up to 200 facts.\n\n### GroundingConfig\n\n public string GroundingConfig { get; set; }\n\nRequired. The resource name of the grounding config, such as\n`projects/*/locations/global/groundingConfigs/default_grounding_config`.\n\n### GroundingConfigAsGroundingConfigName\n\n public GroundingConfigName GroundingConfigAsGroundingConfigName { get; set; }\n\n[GroundingConfigName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GroundingConfigName)-typed view over the [GroundingConfig](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CheckGroundingRequest#Google_Cloud_DiscoveryEngine_V1Beta_CheckGroundingRequest_GroundingConfig) resource name property.\n\n### GroundingSpec\n\n public CheckGroundingSpec GroundingSpec { get; set; }\n\nConfiguration of the grounding check.\n\n### UserLabels\n\n public MapField\u003cstring, string\u003e UserLabels { get; }\n\nThe user labels applied to a resource must meet the following requirements:\n\n- Each resource can have multiple labels, up to a maximum of 64.\n- Each label must be a key-value pair.\n- Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters.\n- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed.\n- The key portion of a label must be unique. However, you can use the same key with multiple resources.\n- Keys must start with a lowercase letter or international character.\n\nSee [Google Cloud\nDocument](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)\nfor more details."]]