public sealed class GitHubEventsConfig : IMessage<GitHubEventsConfig>, IEquatable<GitHubEventsConfig>, IDeepCloneable<GitHubEventsConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v1 API class GitHubEventsConfig.
GitHubEventsConfig describes the configuration of a trigger that creates a
build whenever a GitHub event 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\u003eGitHubEventsConfig\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\u003e\u003ccode\u003eGitHubEventsConfig\u003c/code\u003e is a class used to configure triggers for builds initiated by GitHub events.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing comprehensive functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties for defining the event, including \u003ccode\u003eInstallationId\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eOwner\u003c/code\u003e, \u003ccode\u003ePullRequest\u003c/code\u003e and \u003ccode\u003ePush\u003c/code\u003e, enabling detailed configuration of the GitHub trigger.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the class that can be accessed using the links provided, making this a comprehensive history of this class.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class GitHubEventsConfig (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.GitHubEventsConfig)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.GitHubEventsConfig) \n\n public sealed class GitHubEventsConfig : IMessage\u003cGitHubEventsConfig\u003e, IEquatable\u003cGitHubEventsConfig\u003e, IDeepCloneable\u003cGitHubEventsConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class GitHubEventsConfig.\n\nGitHubEventsConfig describes the configuration of a trigger that creates a\nbuild whenever a GitHub event is received. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GitHubEventsConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GitHubEventsConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEventsConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitHubEventsConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEventsConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GitHubEventsConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitHubEventsConfig), [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### GitHubEventsConfig()\n\n public GitHubEventsConfig()\n\n### GitHubEventsConfig(GitHubEventsConfig)\n\n public GitHubEventsConfig(GitHubEventsConfig other)\n\nProperties\n----------\n\n### EventCase\n\n public GitHubEventsConfig.EventOneofCase EventCase { get; }\n\n### InstallationId\n\n [Obsolete]\n public long InstallationId { get; set; }\n\nThe installationID that emits the GitHub event.\n\n### Name\n\n public string Name { get; set; }\n\nName of the repository. For example: The name for\n\u003chttps://github.com/googlecloudplatform/cloud-builders\u003e is \"cloud-builders\".\n\n### Owner\n\n public string Owner { get; set; }\n\nOwner of the repository. For example: The owner for\n\u003chttps://github.com/googlecloudplatform/cloud-builders\u003e is\n\"googlecloudplatform\".\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."]]