public sealed class MetricxInstance : IMessage<MetricxInstance>, IEquatable<MetricxInstance>, IDeepCloneable<MetricxInstance>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class MetricxInstance.
Spec for MetricX instance - The fields used for evaluation are dependent on
the MetricX version.
[[["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 document provides reference documentation for the \u003ccode\u003eMetricxInstance\u003c/code\u003e class within the Vertex AI v1beta1 API, specifically focusing on version 1.0.0-beta21 (latest).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMetricxInstance\u003c/code\u003e is a sealed class that implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role in data handling and comparison.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetricxInstance\u003c/code\u003e class includes properties like \u003ccode\u003ePrediction\u003c/code\u003e, \u003ccode\u003eReference\u003c/code\u003e, and \u003ccode\u003eSource\u003c/code\u003e, which are used to define and compare model output, ground truth, and source text, respectively, for the purpose of metric evaluation.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for the class: one empty, and one that takes another \u003ccode\u003eMetricxInstance\u003c/code\u003e to copy.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetricxInstance\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and is located in the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1\u003c/code\u003e namespace, within the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class MetricxInstance (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.MetricxInstance)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.MetricxInstance) \n\n public sealed class MetricxInstance : IMessage\u003cMetricxInstance\u003e, IEquatable\u003cMetricxInstance\u003e, IDeepCloneable\u003cMetricxInstance\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class MetricxInstance.\n\nSpec for MetricX instance - The fields used for evaluation are dependent on\nthe MetricX version. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MetricxInstance \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MetricxInstance](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MetricxInstance), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MetricxInstance](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MetricxInstance), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MetricxInstance](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MetricxInstance), [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### MetricxInstance()\n\n public MetricxInstance()\n\n### MetricxInstance(MetricxInstance)\n\n public MetricxInstance(MetricxInstance other)\n\nProperties\n----------\n\n### HasPrediction\n\n public bool HasPrediction { get; }\n\nGets whether the \"prediction\" field is set\n\n### HasReference\n\n public bool HasReference { get; }\n\nGets whether the \"reference\" field is set\n\n### HasSource\n\n public bool HasSource { get; }\n\nGets whether the \"source\" field is set\n\n### Prediction\n\n public string Prediction { get; set; }\n\nRequired. Output of the evaluated model.\n\n### Reference\n\n public string Reference { get; set; }\n\nOptional. Ground truth used to compare against the prediction.\n\n### Source\n\n public string Source { get; set; }\n\nOptional. Source text in original language."]]