public sealed class AnalyzerOrgPolicyConstraint : IMessage<AnalyzerOrgPolicyConstraint>, IEquatable<AnalyzerOrgPolicyConstraint>, IDeepCloneable<AnalyzerOrgPolicyConstraint>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Asset Inventory v1 API class AnalyzerOrgPolicyConstraint.
[[["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\u003eAnalyzerOrgPolicyConstraint\u003c/code\u003e class is 3.12.0, with multiple previous versions available, including versions from 3.11.0 down to 2.7.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnalyzerOrgPolicyConstraint\u003c/code\u003e class, used in the Google Cloud Asset Inventory v1 API, defines an organization policy constraint.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities like deep cloning and message buffer management.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default one and one that takes another \u003ccode\u003eAnalyzerOrgPolicyConstraint\u003c/code\u003e object as a parameter, enabling cloning of instances.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for both custom and Google-defined constraint definitions, namely \u003ccode\u003eCustomConstraint\u003c/code\u003e and \u003ccode\u003eGoogleDefinedConstraint\u003c/code\u003e with a \u003ccode\u003eConstraintDefinitionCase\u003c/code\u003e property to clarify the active constraint.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Asset Inventory v1 API - Class AnalyzerOrgPolicyConstraint (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)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.12.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.11.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.10.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.9.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.8.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.7.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.6.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.5.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.4.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.3.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.2.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.1.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.0.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.11.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.10.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.9.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.8.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.7.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint) \n\n public sealed class AnalyzerOrgPolicyConstraint : IMessage\u003cAnalyzerOrgPolicyConstraint\u003e, IEquatable\u003cAnalyzerOrgPolicyConstraint\u003e, IDeepCloneable\u003cAnalyzerOrgPolicyConstraint\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Asset Inventory v1 API class AnalyzerOrgPolicyConstraint.\n\nThe organization policy constraint definition. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AnalyzerOrgPolicyConstraint \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), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AnalyzerOrgPolicyConstraint](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicyConstraint), [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), [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### AnalyzerOrgPolicyConstraint()\n\n public AnalyzerOrgPolicyConstraint()\n\n### AnalyzerOrgPolicyConstraint(AnalyzerOrgPolicyConstraint)\n\n public AnalyzerOrgPolicyConstraint(AnalyzerOrgPolicyConstraint other)\n\nProperties\n----------\n\n### ConstraintDefinitionCase\n\n public AnalyzerOrgPolicyConstraint.ConstraintDefinitionOneofCase ConstraintDefinitionCase { get; }\n\n### CustomConstraint\n\n public AnalyzerOrgPolicyConstraint.Types.CustomConstraint CustomConstraint { get; set; }\n\nThe definition of the custom constraint.\n\n### GoogleDefinedConstraint\n\n public AnalyzerOrgPolicyConstraint.Types.Constraint GoogleDefinedConstraint { get; set; }\n\nThe definition of the canned constraint defined by Google."]]