public string GithubEnterpriseConfig { get; set; }
The full resource name of the github enterprise config.
Format:
projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}.
projects/{project}/githubEnterpriseConfigs/{id}.
The connected repository resource name, in the format
projects/*/locations/*/connections/*/repositories/*. Either uri or
repository can be specified and is required.
[[["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\u003eThis webpage provides reference documentation for the \u003ccode\u003eGitRepoSource\u003c/code\u003e class within the Google Cloud Build v1 API, detailing its properties, constructors, and inheritance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGitRepoSource\u003c/code\u003e class describes the specifics of a code repository, including the repository's URI or resource name, and the branch or tag to be utilized, with the latest version being 2.15.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGitRepoSource\u003c/code\u003e class supports multiple properties including \u003ccode\u003eEnterpriseConfigCase\u003c/code\u003e, \u003ccode\u003eGithubEnterpriseConfig\u003c/code\u003e, \u003ccode\u003eRef\u003c/code\u003e, \u003ccode\u003eRepository\u003c/code\u003e, \u003ccode\u003eUri\u003c/code\u003e, \u003ccode\u003eSourceCase\u003c/code\u003e, \u003ccode\u003eRepoType\u003c/code\u003e, and several views over resource names, such as \u003ccode\u003eGithubEnterpriseConfigAsGithubEnterpriseConfigName\u003c/code\u003e and \u003ccode\u003eRepositoryAsRepositoryName\u003c/code\u003e, providing flexible access to different aspects of the repository.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation covers versions of \u003ccode\u003eGitRepoSource\u003c/code\u003e ranging from 1.0.0 up to the most recent version 2.15.0, detailing all changes and features added along the way.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGitRepoSource\u003c/code\u003e has 2 constructors; One to create an empty instance, and another to clone an instance of \u003ccode\u003eGitRepoSource\u003c/code\u003e given an existing instance.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class GitRepoSource (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.GitRepoSource)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.GitRepoSource)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.GitRepoSource) \n\n public sealed class GitRepoSource : IMessage\u003cGitRepoSource\u003e, IEquatable\u003cGitRepoSource\u003e, IDeepCloneable\u003cGitRepoSource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class GitRepoSource.\n\nGitRepoSource describes a repo and ref of a code repository. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GitRepoSource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GitRepoSource](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitRepoSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitRepoSource](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitRepoSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GitRepoSource](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitRepoSource), [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### GitRepoSource()\n\n public GitRepoSource()\n\n### GitRepoSource(GitRepoSource)\n\n public GitRepoSource(GitRepoSource other)\n\nProperties\n----------\n\n### EnterpriseConfigCase\n\n public GitRepoSource.EnterpriseConfigOneofCase EnterpriseConfigCase { get; }\n\n### GithubEnterpriseConfig\n\n public string GithubEnterpriseConfig { get; set; }\n\nThe full resource name of the github enterprise config.\nFormat:\n`projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`.\n`projects/{project}/githubEnterpriseConfigs/{id}`.\n\n### GithubEnterpriseConfigAsGithubEnterpriseConfigName\n\n public GithubEnterpriseConfigName GithubEnterpriseConfigAsGithubEnterpriseConfigName { get; set; }\n\n[GithubEnterpriseConfigName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GithubEnterpriseConfigName)-typed view over the [GithubEnterpriseConfig](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitRepoSource#Google_Cloud_CloudBuild_V1_GitRepoSource_GithubEnterpriseConfig) resource\nname property.\n\n### HasGithubEnterpriseConfig\n\n public bool HasGithubEnterpriseConfig { get; }\n\nGets whether the \"github_enterprise_config\" field is set\n\n### HasRepository\n\n public bool HasRepository { get; }\n\nGets whether the \"repository\" field is set\n\n### Ref\n\n public string Ref { get; set; }\n\nThe branch or tag to use. Must start with \"refs/\" (required).\n\n### RepoType\n\n public GitFileSource.Types.RepoType RepoType { get; set; }\n\nSee RepoType below.\n\n### Repository\n\n public string Repository { get; set; }\n\nThe connected repository resource name, in the format\n`projects/*/locations/*/connections/*/repositories/*`. Either `uri` or\n`repository` can be specified and is required.\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.GitRepoSource#Google_Cloud_CloudBuild_V1_GitRepoSource_Repository) resource name property.\n\n### SourceCase\n\n public GitRepoSource.SourceOneofCase SourceCase { get; }\n\n### Uri\n\n public string Uri { get; set; }\n\nThe URI of the repo (e.g. \u003chttps://github.com/user/repo.git\u003e).\nEither `uri` or `repository` can be specified and is required."]]