public sealed class ConditionContext : IMessage<ConditionContext>, IEquatable<ConditionContext>, IDeepCloneable<ConditionContext>, IBufferMessage, IMessage
Reference documentation and code samples for the Policy Troubleshooter v3 API class ConditionContext.
Additional context for troubleshooting conditional role bindings and deny
rules.
public ConditionContext.Types.Peer Destination { get; set; }
The destination of a network activity, such as accepting a TCP connection.
In a multi-hop network activity, the destination represents the receiver of
the last hop.
public ConditionContext.Types.Resource Resource { get; set; }
Represents a target resource that is involved with a network activity.
If multiple resources are involved with an activity, this must be the
primary one.
[[["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 \u003ccode\u003eConditionContext\u003c/code\u003e class provides additional context for troubleshooting conditional role bindings and deny rules within the Policy Troubleshooter v3 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for the ConditionContext class is 1.2.0, with prior versions 1.1.0 and 1.0.0 also accessible.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConditionContext\u003c/code\u003e includes properties like \u003ccode\u003eDestination\u003c/code\u003e, \u003ccode\u003eEffectiveTags\u003c/code\u003e, \u003ccode\u003eRequest\u003c/code\u003e, and \u003ccode\u003eResource\u003c/code\u003e to represent network activities, tags, requests, and target resources, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors, a default constructor \u003ccode\u003eConditionContext()\u003c/code\u003e and a constructor \u003ccode\u003eConditionContext(ConditionContext other)\u003c/code\u003e to make a copy of an existing \u003ccode\u003eConditionContext\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Policy Troubleshooter v3 API - Class ConditionContext (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/1.1.0/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/1.0.0/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext) \n\n public sealed class ConditionContext : IMessage\u003cConditionContext\u003e, IEquatable\u003cConditionContext\u003e, IDeepCloneable\u003cConditionContext\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Policy Troubleshooter v3 API class ConditionContext.\n\nAdditional context for troubleshooting conditional role bindings and deny\nrules. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ConditionContext \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ConditionContext](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ConditionContext](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ConditionContext](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext), [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.PolicyTroubleshooter.Iam.V3](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3)\n\nAssembly\n--------\n\nGoogle.Cloud.PolicyTroubleshooter.Iam.V3.dll\n\nConstructors\n------------\n\n### ConditionContext()\n\n public ConditionContext()\n\n### ConditionContext(ConditionContext)\n\n public ConditionContext(ConditionContext other)\n\nProperties\n----------\n\n### Destination\n\n public ConditionContext.Types.Peer Destination { get; set; }\n\nThe destination of a network activity, such as accepting a TCP connection.\nIn a multi-hop network activity, the destination represents the receiver of\nthe last hop.\n\n### EffectiveTags\n\n public RepeatedField\u003cConditionContext.Types.EffectiveTag\u003e EffectiveTags { get; }\n\nOutput only. The effective tags on the resource. The effective tags are\nfetched during troubleshooting.\n\n### Request\n\n public ConditionContext.Types.Request Request { get; set; }\n\nRepresents a network request, such as an HTTP request.\n\n### Resource\n\n public ConditionContext.Types.Resource Resource { get; set; }\n\nRepresents a target resource that is involved with a network activity.\nIf multiple resources are involved with an activity, this must be the\nprimary one."]]