Output only. The name of the Pub/Sub subscription created and managed by
Eventarc as a transport for the event delivery. Format:
projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.
Optional. The name of the Pub/Sub topic created and managed by Eventarc as
a transport for the event delivery. Format:
projects/{PROJECT_ID}/topics/{TOPIC_NAME}.
You can set an existing topic for triggers of the type
google.cloud.pubsub.topic.v1.messagePublished. The topic you provide
here is not deleted by Eventarc at trigger deletion.
[[["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 webpage provides reference documentation for the \u003ccode\u003ePubsub\u003c/code\u003e class within the Google Cloud Eventarc v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePubsub\u003c/code\u003e class represents a Pub/Sub transport mechanism used for event delivery and 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"],["\u003cp\u003eThe latest version of the API available for the \u003ccode\u003ePubsub\u003c/code\u003e class is 2.6.0, and the page also shows 10 other previous versions of the API, going back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003ePubsub\u003c/code\u003e class include \u003ccode\u003eSubscription\u003c/code\u003e, which is an output-only property indicating the managed subscription, and \u003ccode\u003eTopic\u003c/code\u003e, which is an optional property allowing users to define a Pub/Sub topic.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePubsub\u003c/code\u003e class contains two constructors, a parameterless constructor and one that accepts another instance of the \u003ccode\u003ePubsub\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# Eventarc v1 API - Class Pubsub (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pubsub)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.5.0/Google.Cloud.Eventarc.V1.Pubsub)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.4.0/Google.Cloud.Eventarc.V1.Pubsub)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.3.0/Google.Cloud.Eventarc.V1.Pubsub)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.2.0/Google.Cloud.Eventarc.V1.Pubsub)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.1.0/Google.Cloud.Eventarc.V1.Pubsub)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.0.0/Google.Cloud.Eventarc.V1.Pubsub)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.3.0/Google.Cloud.Eventarc.V1.Pubsub)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.2.0/Google.Cloud.Eventarc.V1.Pubsub)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.1.0/Google.Cloud.Eventarc.V1.Pubsub)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.0.0/Google.Cloud.Eventarc.V1.Pubsub) \n\n public sealed class Pubsub : IMessage\u003cPubsub\u003e, IEquatable\u003cPubsub\u003e, IDeepCloneable\u003cPubsub\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Eventarc v1 API class Pubsub.\n\nRepresents a Pub/Sub transport. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Pubsub \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Pubsub](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pubsub), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Pubsub](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pubsub), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Pubsub](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pubsub), [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.Eventarc.V1](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Eventarc.V1.dll\n\nConstructors\n------------\n\n### Pubsub()\n\n public Pubsub()\n\n### Pubsub(Pubsub)\n\n public Pubsub(Pubsub other)\n\nProperties\n----------\n\n### Subscription\n\n public string Subscription { get; set; }\n\nOutput only. The name of the Pub/Sub subscription created and managed by\nEventarc as a transport for the event delivery. Format:\n`projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.\n\n### Topic\n\n public string Topic { get; set; }\n\nOptional. The name of the Pub/Sub topic created and managed by Eventarc as\na transport for the event delivery. Format:\n`projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.\n\nYou can set an existing topic for triggers of the type\n`google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide\nhere is not deleted by Eventarc at trigger deletion."]]