public sealed class RepositoryEventConfig : IMessage<RepositoryEventConfig>, IEquatable<RepositoryEventConfig>, IDeepCloneable<RepositoryEventConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v1 API class RepositoryEventConfig.
The configuration of a trigger that creates a build whenever an event from
Repo API is received.
[[["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\u003eRepositoryEventConfig\u003c/code\u003e class in the Cloud Build v1 API is 2.15.0, and older versions are available for reference, ranging down to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRepositoryEventConfig\u003c/code\u003e class is designed to configure triggers that initiate builds upon receiving events from the Repo API.\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, making it compatible with various Protobuf functionalities and the .NET framework.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eRepositoryEventConfig\u003c/code\u003e include \u003ccode\u003ePullRequest\u003c/code\u003e and \u003ccode\u003ePush\u003c/code\u003e for filtering changes, along with \u003ccode\u003eRepository\u003c/code\u003e to specify the resource name, and \u003ccode\u003eRepositoryType\u003c/code\u003e to indicate the SCM vendor of the repository.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class RepositoryEventConfig (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.RepositoryEventConfig)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.RepositoryEventConfig) \n\n public sealed class RepositoryEventConfig : IMessage\u003cRepositoryEventConfig\u003e, IEquatable\u003cRepositoryEventConfig\u003e, IDeepCloneable\u003cRepositoryEventConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class RepositoryEventConfig.\n\nThe configuration of a trigger that creates a build whenever an event from\nRepo API is received. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RepositoryEventConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RepositoryEventConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.RepositoryEventConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RepositoryEventConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.RepositoryEventConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RepositoryEventConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.RepositoryEventConfig), [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### RepositoryEventConfig()\n\n public RepositoryEventConfig()\n\n### RepositoryEventConfig(RepositoryEventConfig)\n\n public RepositoryEventConfig(RepositoryEventConfig other)\n\nProperties\n----------\n\n### FilterCase\n\n public RepositoryEventConfig.FilterOneofCase FilterCase { get; }\n\n### PullRequest\n\n public PullRequestFilter PullRequest { get; set; }\n\nFilter to match changes in pull requests.\n\n### Push\n\n public PushFilter Push { get; set; }\n\nFilter to match changes in refs like branches, tags.\n\n### Repository\n\n public string Repository { get; set; }\n\nThe resource name of the Repo API resource.\n\n### RepositoryAsRepositoryName\n\n public RepositoryName RepositoryAsRepositoryName { get; set; }\n\n[RepositoryName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.RepositoryName)-typed view over the [Repository](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.RepositoryEventConfig#Google_Cloud_CloudBuild_V1_RepositoryEventConfig_Repository) resource name property.\n\n### RepositoryType\n\n public RepositoryEventConfig.Types.RepositoryType RepositoryType { get; set; }\n\nOutput only. The type of the SCM vendor the repository points to."]]