[[["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-19 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003ePubsubConfig\u003c/code\u003e class in the Google Cloud Build v1 API is 2.15.0, and there are numerous previous versions, dating back to version 1.0.0, that are also available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePubsubConfig\u003c/code\u003e class is used to define a trigger that initiates a build when a Pub/Sub message is published, which is used to monitor and respond to these messages.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, demonstrating its capabilities for message handling and object management.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePubsubConfig\u003c/code\u003e class has several properties such as \u003ccode\u003eServiceAccountEmail\u003c/code\u003e, \u003ccode\u003eState\u003c/code\u003e, \u003ccode\u003eSubscription\u003c/code\u003e, and \u003ccode\u003eTopic\u003c/code\u003e that allow configuration and management of the Pub/Sub subscription and related information.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available, a default one, and one that lets you clone another \u003ccode\u003ePubsubConfig\u003c/code\u003e object by inputing it as a parameter.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class PubsubConfig (2.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.16.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.PubsubConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.PubsubConfig) \n\n public sealed class PubsubConfig : IMessage\u003cPubsubConfig\u003e, IEquatable\u003cPubsubConfig\u003e, IDeepCloneable\u003cPubsubConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class PubsubConfig.\n\nPubsubConfig describes the configuration of a trigger that\ncreates a build whenever a Pub/Sub message is published. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PubsubConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PubsubConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PubsubConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PubsubConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PubsubConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PubsubConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PubsubConfig), [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.CloudBuild.V1](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V1.dll\n\nConstructors\n------------\n\n### PubsubConfig()\n\n public PubsubConfig()\n\n### PubsubConfig(PubsubConfig)\n\n public PubsubConfig(PubsubConfig other)\n\nProperties\n----------\n\n### ServiceAccountEmail\n\n public string ServiceAccountEmail { get; set; }\n\nService account that will make the push request.\n\n### ServiceAccountEmailAsServiceAccountName\n\n public ServiceAccountName ServiceAccountEmailAsServiceAccountName { get; set; }\n\n[ServiceAccountName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.ServiceAccountName)-typed view over the [ServiceAccountEmail](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PubsubConfig#Google_Cloud_CloudBuild_V1_PubsubConfig_ServiceAccountEmail) resource name\nproperty.\n\n### State\n\n public PubsubConfig.Types.State State { get; set; }\n\nPotential issues with the underlying Pub/Sub subscription configuration.\nOnly populated on get requests.\n\n### Subscription\n\n public string Subscription { get; set; }\n\nOutput only. Name of the subscription. Format is\n`projects/{project}/subscriptions/{subscription}`.\n\n### SubscriptionAsSubscriptionName\n\n public SubscriptionName SubscriptionAsSubscriptionName { get; set; }\n\n[SubscriptionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.SubscriptionName)-typed view over the [Subscription](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PubsubConfig#Google_Cloud_CloudBuild_V1_PubsubConfig_Subscription) resource name property.\n\n### Topic\n\n public string Topic { get; set; }\n\nThe name of the topic from which this subscription is receiving messages.\nFormat is `projects/{project}/topics/{topic}`.\n\n### TopicAsTopicName\n\n public TopicName TopicAsTopicName { get; set; }\n\n[TopicName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.TopicName)-typed view over the [Topic](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.PubsubConfig#Google_Cloud_CloudBuild_V1_PubsubConfig_Topic) resource name property."]]