public sealed class PurgeContextsResponse : IMessage<PurgeContextsResponse>, IEquatable<PurgeContextsResponse>, IDeepCloneable<PurgeContextsResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class PurgeContextsResponse.
Response message for
[MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts].
A sample of the Context names that will be deleted.
Only populated if force is set to false. The maximum number of samples is
100 (it is possible to return fewer).
[[["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-14 UTC."],[[["\u003cp\u003eThis documentation is for the \u003ccode\u003ePurgeContextsResponse\u003c/code\u003e class within the Vertex AI v1beta1 API, specifically the latest version, 1.0.0-beta21.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePurgeContextsResponse\u003c/code\u003e is a response message used by the \u003ccode\u003eMetadataService.PurgeContexts\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements 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\u003eKey properties of \u003ccode\u003ePurgeContextsResponse\u003c/code\u003e include \u003ccode\u003ePurgeCount\u003c/code\u003e, which estimates the number of deleted contexts, and \u003ccode\u003ePurgeSample\u003c/code\u003e, which provides a sample of the names of contexts that will be deleted if the \u003ccode\u003eforce\u003c/code\u003e parameter is set to false.\u003c/p\u003e\n"],["\u003cp\u003eThe class can be instantiated via two constructors, one default and one that accepts another \u003ccode\u003ePurgeContextsResponse\u003c/code\u003e object as an input.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class PurgeContextsResponse (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.PurgeContextsResponse)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.PurgeContextsResponse) \n\n public sealed class PurgeContextsResponse : IMessage\u003cPurgeContextsResponse\u003e, IEquatable\u003cPurgeContextsResponse\u003e, IDeepCloneable\u003cPurgeContextsResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class PurgeContextsResponse.\n\nResponse message for\n\\[MetadataService.PurgeContexts\\]\\[google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PurgeContextsResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PurgeContextsResponse](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PurgeContextsResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PurgeContextsResponse](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PurgeContextsResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PurgeContextsResponse](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PurgeContextsResponse), [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### PurgeContextsResponse()\n\n public PurgeContextsResponse()\n\n### PurgeContextsResponse(PurgeContextsResponse)\n\n public PurgeContextsResponse(PurgeContextsResponse other)\n\nProperties\n----------\n\n### PurgeCount\n\n public long PurgeCount { get; set; }\n\nThe number of Contexts that this request deleted (or, if `force` is false,\nthe number of Contexts that will be deleted). This can be an estimate.\n\n### PurgeSample\n\n public RepeatedField\u003cstring\u003e PurgeSample { get; }\n\nA sample of the Context names that will be deleted.\nOnly populated if `force` is set to false. The maximum number of samples is\n100 (it is possible to return fewer).\n\n### PurgeSampleAsContextNames\n\n public ResourceNameList\u003cContextName\u003e PurgeSampleAsContextNames { get; }\n\n[ContextName](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ContextName)-typed view over the [PurgeSample](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PurgeContextsResponse#Google_Cloud_AIPlatform_V1Beta1_PurgeContextsResponse_PurgeSample) resource name property."]]