public sealed class GroundednessInstance : IMessage<GroundednessInstance>, IEquatable<GroundednessInstance>, IDeepCloneable<GroundednessInstance>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class GroundednessInstance.
[[["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-28 UTC."],[[["\u003cp\u003eThis documentation provides details for the \u003ccode\u003eGroundednessInstance\u003c/code\u003e class, which is part of the Vertex AI v1beta1 API within the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGroundednessInstance\u003c/code\u003e class is designed to specify and work with groundedness instances, inheriting from the \u003ccode\u003eobject\u003c/code\u003e class and implementing 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 includes two constructors, a default constructor \u003ccode\u003eGroundednessInstance()\u003c/code\u003e and another that accepts an existing \u003ccode\u003eGroundednessInstance\u003c/code\u003e as a parameter for copying purposes.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eGroundednessInstance\u003c/code\u003e class include \u003ccode\u003eContext\u003c/code\u003e, which represents the background information used for comparison, and \u003ccode\u003ePrediction\u003c/code\u003e, representing the output of the evaluated model, both of which are required string properties.\u003c/p\u003e\n"],["\u003cp\u003eThe class also contains two read only boolean properties \u003ccode\u003eHasContext\u003c/code\u003e and \u003ccode\u003eHasPrediction\u003c/code\u003e which indicate if these respective fields are set.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class GroundednessInstance (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GroundednessInstance)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.GroundednessInstance) \n\n public sealed class GroundednessInstance : IMessage\u003cGroundednessInstance\u003e, IEquatable\u003cGroundednessInstance\u003e, IDeepCloneable\u003cGroundednessInstance\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class GroundednessInstance.\n\nSpec for groundedness instance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GroundednessInstance \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GroundednessInstance](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GroundednessInstance), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GroundednessInstance](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GroundednessInstance), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GroundednessInstance](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GroundednessInstance), [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.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### GroundednessInstance()\n\n public GroundednessInstance()\n\n### GroundednessInstance(GroundednessInstance)\n\n public GroundednessInstance(GroundednessInstance other)\n\nProperties\n----------\n\n### Context\n\n public string Context { get; set; }\n\nRequired. Background information provided in context used to compare\nagainst the prediction.\n\n### HasContext\n\n public bool HasContext { get; }\n\nGets whether the \"context\" field is set\n\n### HasPrediction\n\n public bool HasPrediction { get; }\n\nGets whether the \"prediction\" field is set\n\n### Prediction\n\n public string Prediction { get; set; }\n\nRequired. Output of the evaluated model."]]