public sealed class ComputeThreatListDiffRequest.Types.Constraints : IMessage<ComputeThreatListDiffRequest.Types.Constraints>, IEquatable<ComputeThreatListDiffRequest.Types.Constraints>, IDeepCloneable<ComputeThreatListDiffRequest.Types.Constraints>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Web Risk v1beta1 API class ComputeThreatListDiffRequest.Types.Constraints.
Sets the maximum number of entries that the client is willing to have
in the local database. This should be a power of 2 between 210 and
220. If zero, no database size limit is set.
The maximum size in number of entries. The diff will not contain more
entries than this value. This should be a power of 2 between 210 and
220. If zero, no diff size limit is set.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eComputeThreatListDiffRequest.Types.Constraints\u003c/code\u003e class within the Google Cloud Web Risk v1beta1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eComputeThreatListDiffRequest.Types.Constraints\u003c/code\u003e class is used to define the constraints for computing the difference between threat lists and implements interfaces such as \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 constructors to create \u003ccode\u003eConstraints\u003c/code\u003e objects, either as a default or by copying another \u003ccode\u003eConstraints\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eMaxDatabaseEntries\u003c/code\u003e and \u003ccode\u003eMaxDiffEntries\u003c/code\u003e, which allow setting limits on the number of entries in the database and the diff size respectively, with values between 2\u003cstrong\u003e10 and 2\u003c/strong\u003e20, and \u003ccode\u003eSupportedCompressions\u003c/code\u003e, which specifies the compression types supported.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for this class is \u003ccode\u003e3.0.0-beta05\u003c/code\u003e with a couple other versions also available for review, \u003ccode\u003e3.0.0-beta04\u003c/code\u003e and \u003ccode\u003e2.0.0-beta05\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Web Risk v1beta1 API - Class ComputeThreatListDiffRequest.Types.Constraints (3.0.0-beta05)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta05 (latest)](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.ComputeThreatListDiffRequest.Types.Constraints)\n- [3.0.0-beta04](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/3.0.0-beta04/Google.Cloud.WebRisk.V1Beta1.ComputeThreatListDiffRequest.Types.Constraints)\n- [2.0.0-beta05](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/2.0.0-beta05/Google.Cloud.WebRisk.V1Beta1.ComputeThreatListDiffRequest.Types.Constraints) \n\n public sealed class ComputeThreatListDiffRequest.Types.Constraints : IMessage\u003cComputeThreatListDiffRequest.Types.Constraints\u003e, IEquatable\u003cComputeThreatListDiffRequest.Types.Constraints\u003e, IDeepCloneable\u003cComputeThreatListDiffRequest.Types.Constraints\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Web Risk v1beta1 API class ComputeThreatListDiffRequest.Types.Constraints.\n\nThe constraints for this diff. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ComputeThreatListDiffRequest.Types.Constraints \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ComputeThreatListDiffRequest](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.ComputeThreatListDiffRequest)[Types](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.ComputeThreatListDiffRequest.Types)[Constraints](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.ComputeThreatListDiffRequest.Types.Constraints), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ComputeThreatListDiffRequest](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.ComputeThreatListDiffRequest)[Types](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.ComputeThreatListDiffRequest.Types)[Constraints](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.ComputeThreatListDiffRequest.Types.Constraints), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ComputeThreatListDiffRequest](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.ComputeThreatListDiffRequest)[Types](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.ComputeThreatListDiffRequest.Types)[Constraints](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1.ComputeThreatListDiffRequest.Types.Constraints), [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.WebRisk.V1Beta1](/dotnet/docs/reference/Google.Cloud.WebRisk.V1Beta1/latest/Google.Cloud.WebRisk.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.WebRisk.V1Beta1.dll\n\nConstructors\n------------\n\n### Constraints()\n\n public Constraints()\n\n### Constraints(Constraints)\n\n public Constraints(ComputeThreatListDiffRequest.Types.Constraints other)\n\nProperties\n----------\n\n### MaxDatabaseEntries\n\n public int MaxDatabaseEntries { get; set; }\n\nSets the maximum number of entries that the client is willing to have\nin the local database. This should be a power of 2 between 2**10 and\n2**20. If zero, no database size limit is set.\n\n### MaxDiffEntries\n\n public int MaxDiffEntries { get; set; }\n\nThe maximum size in number of entries. The diff will not contain more\nentries than this value. This should be a power of 2 between 2**10 and\n2**20. If zero, no diff size limit is set.\n\n### SupportedCompressions\n\n public RepeatedField\u003cCompressionType\u003e SupportedCompressions { get; }\n\nThe compression types supported by the client."]]