public sealed class AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint : IMessage<AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint>, IEquatable<AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint>, IDeepCloneable<AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Asset Inventory v1 API class AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint.
A Constraint that is either enforced or not.
For example a constraint constraints/compute.disableSerialPortAccess.
If it is enforced on a VM instance, serial port connections will not be
opened to that instance.
[[["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 latest version of the \u003ccode\u003eBooleanConstraint\u003c/code\u003e class is 3.12.0, within the \u003ccode\u003eGoogle.Cloud.Asset.V1\u003c/code\u003e API.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation provides reference information for the \u003ccode\u003eAnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint\u003c/code\u003e class in the Google Cloud Asset Inventory v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBooleanConstraint\u003c/code\u003e class represents a constraint that can be either enforced or not, such as disabling serial port access on a VM instance.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists available versions of \u003ccode\u003eBooleanConstraint\u003c/code\u003e, ranging from version 2.7.0 to the latest 3.12.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class 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, providing functionalities for message handling, equality checks, deep cloning, and buffered message operations.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Asset Inventory v1 API - Class AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint (3.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.13.0 (latest)](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.12.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.11.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.10.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.9.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.8.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.7.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.6.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.5.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.4.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.3.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.2.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.1.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.0.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.11.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.10.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.9.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.8.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.7.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint) \n\n public sealed class AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint : IMessage\u003cAnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint\u003e, IEquatable\u003cAnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint\u003e, IDeepCloneable\u003cAnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Asset Inventory v1 API class AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint.\n\nA `Constraint` that is either enforced or not.\n\nFor example a constraint `constraints/compute.disableSerialPortAccess`.\nIf it is enforced on a VM instance, serial port connections will not be\nopened to that instance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AnalyzerOrgPolicyConstraint](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)[Types](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types)[Constraint](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint)[Types](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types)[BooleanConstraint](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AnalyzerOrgPolicyConstraint](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)[Types](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types)[Constraint](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint)[Types](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types)[BooleanConstraint](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AnalyzerOrgPolicyConstraint](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)[Types](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types)[Constraint](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint)[Types](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types)[BooleanConstraint](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint), [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.Asset.V1](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Asset.V1.dll\n\nConstructors\n------------\n\n### BooleanConstraint()\n\n public BooleanConstraint()\n\n### BooleanConstraint(BooleanConstraint)\n\n public BooleanConstraint(AnalyzerOrgPolicyConstraint.Types.Constraint.Types.BooleanConstraint other)"]]