public sealed class ConditionContext.Types.Peer : IMessage<ConditionContext.Types.Peer>, IEquatable<ConditionContext.Types.Peer>, IDeepCloneable<ConditionContext.Types.Peer>, IBufferMessage, IMessage
Reference documentation and code samples for the Policy Troubleshooter v3 API class ConditionContext.Types.Peer.
This message defines attributes for a node that handles a network request.
The node can be either a service or an application that sends, forwards,
or receives the request. Service peers should fill in
principal and labels as appropriate.
[[["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\u003eThis page provides reference documentation for the \u003ccode\u003eConditionContext.Types.Peer\u003c/code\u003e class within the Google Cloud Policy Troubleshooter v3 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConditionContext.Types.Peer\u003c/code\u003e class represents a node that handles a network request, which can be a service or application involved in sending, forwarding, or receiving requests.\u003c/p\u003e\n"],["\u003cp\u003eThe 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, enhancing its functionality and compatibility.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eConditionContext.Types.Peer\u003c/code\u003e class include \u003ccode\u003eIp\u003c/code\u003e, representing the IPv4 or IPv6 address, and \u003ccode\u003ePort\u003c/code\u003e, representing the network port.\u003c/p\u003e\n"],["\u003cp\u003eThe page contains information for three versions of the API for this class: 1.2.0, 1.1.0, and 1.0.0.\u003c/p\u003e\n"]]],[],null,["# Policy Troubleshooter v3 API - Class ConditionContext.Types.Peer (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.Types.Peer)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/1.1.0/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types.Peer)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/1.0.0/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types.Peer) \n\n public sealed class ConditionContext.Types.Peer : IMessage\u003cConditionContext.Types.Peer\u003e, IEquatable\u003cConditionContext.Types.Peer\u003e, IDeepCloneable\u003cConditionContext.Types.Peer\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Policy Troubleshooter v3 API class ConditionContext.Types.Peer.\n\nThis message defines attributes for a node that handles a network request.\nThe node can be either a service or an application that sends, forwards,\nor receives the request. Service peers should fill in\n`principal` and `labels` as appropriate. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ConditionContext.Types.Peer \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)[Types](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types)[Peer](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types.Peer), [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)[Types](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types)[Peer](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types.Peer), [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)[Types](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types)[Peer](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types.Peer), [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### Peer()\n\n public Peer()\n\n### Peer(Peer)\n\n public Peer(ConditionContext.Types.Peer other)\n\nProperties\n----------\n\n### Ip\n\n public string Ip { get; set; }\n\nThe IPv4 or IPv6 address of the peer.\n\n### Port\n\n public long Port { get; set; }\n\nThe network port of the peer."]]