[Obsolete]public sealed class RelationshipAttributes:IMessage<RelationshipAttributes>, IEquatable<RelationshipAttributes>, IDeepCloneable<RelationshipAttributes>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Asset Inventory v1 API class RelationshipAttributes.
DEPRECATED. This message only presents for the purpose of
backward-compatibility. The server will never populate this message in
responses.
The relationship attributes which include type, source_resource_type,
target_resource_type and action.
[[["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\u003eRelationshipAttributes\u003c/code\u003e class is 3.12.0, with multiple previous versions available, spanning from 3.11.0 down to 2.7.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRelationshipAttributes\u003c/code\u003e class is part of the Google Cloud Asset Inventory v1 API within the \u003ccode\u003eGoogle.Cloud.Asset.V1\u003c/code\u003e namespace, found in the \u003ccode\u003eGoogle.Cloud.Asset.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThis \u003ccode\u003eRelationshipAttributes\u003c/code\u003e class is marked as obsolete and is intended solely for backward compatibility, with the server not populating it in responses.\u003c/p\u003e\n"],["\u003cp\u003eThe class properties, \u003ccode\u003eAction\u003c/code\u003e, \u003ccode\u003eSourceResourceType\u003c/code\u003e, \u003ccode\u003eTargetResourceType\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e, each representing details of the relationship with string values.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRelationshipAttributes\u003c/code\u003e 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.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Asset Inventory v1 API - Class RelationshipAttributes (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.RelationshipAttributes)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.12.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.11.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.10.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.9.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.8.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.7.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.6.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.5.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.4.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.3.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.2.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.1.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.0.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.11.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.10.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.9.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.8.0/Google.Cloud.Asset.V1.RelationshipAttributes)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.7.0/Google.Cloud.Asset.V1.RelationshipAttributes) \n\n [Obsolete]\n public sealed class RelationshipAttributes : IMessage\u003cRelationshipAttributes\u003e, IEquatable\u003cRelationshipAttributes\u003e, IDeepCloneable\u003cRelationshipAttributes\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Asset Inventory v1 API class RelationshipAttributes.\n\nDEPRECATED. This message only presents for the purpose of\nbackward-compatibility. The server will never populate this message in\nresponses.\nThe relationship attributes which include `type`, `source_resource_type`,\n`target_resource_type` and `action`. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RelationshipAttributes \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RelationshipAttributes](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.RelationshipAttributes), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RelationshipAttributes](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.RelationshipAttributes), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RelationshipAttributes](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.RelationshipAttributes), [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### RelationshipAttributes()\n\n public RelationshipAttributes()\n\n### RelationshipAttributes(RelationshipAttributes)\n\n public RelationshipAttributes(RelationshipAttributes other)\n\nProperties\n----------\n\n### Action\n\n public string Action { get; set; }\n\nThe detail of the relationship, e.g. `contains`, `attaches`\n\n### SourceResourceType\n\n public string SourceResourceType { get; set; }\n\nThe source asset type. Example: `compute.googleapis.com/Instance`\n\n### TargetResourceType\n\n public string TargetResourceType { get; set; }\n\nThe target asset type. Example: `compute.googleapis.com/Disk`\n\n### Type\n\n public string Type { get; set; }\n\nThe unique identifier of the relationship type. Example:\n`INSTANCE_TO_INSTANCEGROUP`"]]