public sealed class Feed : IMessage<Feed>, IEquatable<Feed>, IDeepCloneable<Feed>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Asset Inventory v1 API class Feed.
An asset feed used to export asset updates to a destinations.
An asset feed filter controls what updates are exported.
The asset feed must be created within a project, organization, or
folder. Supported destinations are:
Pub/Sub topics.
A list of the full names of the assets to receive updates. You must specify
either or both of asset_names and asset_types. Only asset updates matching
specified asset_names or asset_types are exported to the feed.
Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.
For a list of the full names for supported asset types, see Resource
name format.
A list of types of the assets to receive updates. You must specify either
or both of asset_names and asset_types. Only asset updates matching
specified asset_names or asset_types are exported to the feed.
Example: "compute.googleapis.com/Disk"
A condition which determines whether an asset update should be published.
If specified, an asset will be returned only when the expression evaluates
to true.
When set, expression field in the Expr must be a valid CEL expression on a TemporalAsset with name
temporal_asset. Example: a Feed with expression ("temporal_asset.deleted
== true") will only publish Asset deletions. Other fields of Expr are
optional.
Required. The format will be
projects/{project_number}/feeds/{client-assigned_feed_identifier} or
folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
The client-assigned feed identifier must be unique within the parent
project/folder/organization.
public RepeatedField<string> RelationshipTypes { get; }
A list of relationship types to output, for example:
INSTANCE_TO_INSTANCEGROUP. This field should only be specified if
content_type=RELATIONSHIP.
If specified:
it outputs specified relationship updates on the [asset_names] or the
[asset_types]. It returns an error if any of the [relationship_types]
doesn't belong to the supported relationship types of the [asset_names] or
[asset_types], or any of the [asset_names] or the [asset_types] doesn't
belong to the source types of the [relationship_types].
Otherwise:
it outputs the supported relationships of the types of [asset_names] and
[asset_types] or returns an error if any of the [asset_names] or the
[asset_types] has no replationship support.
See Introduction to Cloud Asset
Inventory
for all supported asset types and relationship types.
[[["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 document provides reference information for the \u003ccode\u003eFeed\u003c/code\u003e class within the Google Cloud Asset Inventory v1 API, which is used to export asset updates to specified destinations like Pub/Sub topics.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFeed\u003c/code\u003e class offers features to filter asset updates based on asset names, asset types, or a specified condition, allowing users to customize what data is exported.\u003c/p\u003e\n"],["\u003cp\u003eThere are various versions available, spanning from version 2.7.0 up to the latest 3.12.0, with links to documentation for each, ensuring backwards compatibility, as well as access to the latest features.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFeed\u003c/code\u003e object has properties for configuring the output destination, the specific assets and types to track, as well as methods to filter the updates with a conditional expression.\u003c/p\u003e\n"],["\u003cp\u003eIt also supports the tracking of relationship types between assets, allowing for a nuanced understanding of asset dependencies, with the ability to be created within projects, organizations, or folders.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Asset Inventory v1 API - Class Feed (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.Feed)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.12.0/Google.Cloud.Asset.V1.Feed)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.11.0/Google.Cloud.Asset.V1.Feed)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.10.0/Google.Cloud.Asset.V1.Feed)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.9.0/Google.Cloud.Asset.V1.Feed)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.8.0/Google.Cloud.Asset.V1.Feed)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.7.0/Google.Cloud.Asset.V1.Feed)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.6.0/Google.Cloud.Asset.V1.Feed)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.5.0/Google.Cloud.Asset.V1.Feed)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.4.0/Google.Cloud.Asset.V1.Feed)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.3.0/Google.Cloud.Asset.V1.Feed)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.2.0/Google.Cloud.Asset.V1.Feed)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.1.0/Google.Cloud.Asset.V1.Feed)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.0.0/Google.Cloud.Asset.V1.Feed)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.11.0/Google.Cloud.Asset.V1.Feed)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.10.0/Google.Cloud.Asset.V1.Feed)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.9.0/Google.Cloud.Asset.V1.Feed)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.8.0/Google.Cloud.Asset.V1.Feed)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.7.0/Google.Cloud.Asset.V1.Feed) \n\n public sealed class Feed : IMessage\u003cFeed\u003e, IEquatable\u003cFeed\u003e, IDeepCloneable\u003cFeed\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Asset Inventory v1 API class Feed.\n\nAn asset feed used to export asset updates to a destinations.\nAn asset feed filter controls what updates are exported.\nThe asset feed must be created within a project, organization, or\nfolder. Supported destinations are:\nPub/Sub topics. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Feed \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Feed](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.Feed), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Feed](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.Feed), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Feed](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.Feed), [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### Feed()\n\n public Feed()\n\n### Feed(Feed)\n\n public Feed(Feed other)\n\nProperties\n----------\n\n### AssetNames\n\n public RepeatedField\u003cstring\u003e AssetNames { get; }\n\nA list of the full names of the assets to receive updates. You must specify\neither or both of asset_names and asset_types. Only asset updates matching\nspecified asset_names or asset_types are exported to the feed.\nExample:\n`//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.\nFor a list of the full names for supported asset types, see [Resource\nname format](/asset-inventory/docs/resource-name-format).\n\n### AssetTypes\n\n public RepeatedField\u003cstring\u003e AssetTypes { get; }\n\nA list of types of the assets to receive updates. You must specify either\nor both of asset_names and asset_types. Only asset updates matching\nspecified asset_names or asset_types are exported to the feed.\nExample: `\"compute.googleapis.com/Disk\"`\n\nFor a list of all supported asset types, see\n[Supported asset types](/asset-inventory/docs/supported-asset-types).\n\n### Condition\n\n public Expr Condition { get; set; }\n\nA condition which determines whether an asset update should be published.\nIf specified, an asset will be returned only when the expression evaluates\nto true.\nWhen set, `expression` field in the `Expr` must be a valid [CEL expression](https://github.com/google/cel-spec) on a TemporalAsset with name\n`temporal_asset`. Example: a Feed with expression (\"temporal_asset.deleted\n== true\") will only publish Asset deletions. Other fields of `Expr` are\noptional.\n\nSee our [user\nguide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition)\nfor detailed instructions.\n\n### ContentType\n\n public ContentType ContentType { get; set; }\n\nAsset content type. If not specified, no content but the asset name and\ntype will be returned.\n\n### FeedName\n\n public FeedName FeedName { get; set; }\n\n[FeedName](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.FeedName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.Feed#Google_Cloud_Asset_V1_Feed_Name) resource name property.\n\n### FeedOutputConfig\n\n public FeedOutputConfig FeedOutputConfig { get; set; }\n\nRequired. Feed output configuration defining where the asset updates are\npublished to.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The format will be\nprojects/{project_number}/feeds/{client-assigned_feed_identifier} or\nfolders/{folder_number}/feeds/{client-assigned_feed_identifier} or\norganizations/{organization_number}/feeds/{client-assigned_feed_identifier}\n\nThe client-assigned feed identifier must be unique within the parent\nproject/folder/organization.\n\n### RelationshipTypes\n\n public RepeatedField\u003cstring\u003e RelationshipTypes { get; }\n\nA list of relationship types to output, for example:\n`INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if\ncontent_type=RELATIONSHIP.\n\n- If specified: it outputs specified relationship updates on the \\[asset_names\\] or the \\[asset_types\\]. It returns an error if any of the \\[relationship_types\\] doesn't belong to the supported relationship types of the \\[asset_names\\] or \\[asset_types\\], or any of the \\[asset_names\\] or the \\[asset_types\\] doesn't belong to the source types of the \\[relationship_types\\].\n- Otherwise: it outputs the supported relationships of the types of \\[asset_names\\] and \\[asset_types\\] or returns an error if any of the \\[asset_names\\] or the \\[asset_types\\] has no replationship support. See [Introduction to Cloud Asset\n Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types."]]