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 fully qualified resource name of the Repos API repository.
Either URI or repository can be specified.
If unspecified, the repo from which the trigger invocation originated is
assumed to be the repo from which to read the specified path.
The branch, tag, arbitrary ref, or SHA version of the repo to use when
resolving the filename (optional).
This field respects the same syntax/resolution as described here:
https://git-scm.com/docs/gitrevisions
If unspecified, the revision from which the trigger invocation originated
is assumed to be the revision from which to read the specified path.
The URI of the repo.
Either uri or repository can be specified.
If unspecified, the repo from which the trigger invocation originated is
assumed to be the repo from which to read the specified path.
[[["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 webpage provides documentation for the \u003ccode\u003eGitFileSource\u003c/code\u003e class within the Google Cloud Build v1 API, which is used to describe a file in a code repository.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers various versions of the API, from version 1.0.0 up to the latest version 2.15.0, each linking to its respective page.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGitFileSource\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for message manipulation and comparison.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGitFileSource\u003c/code\u003e class properties provide functionalities to specify details about a file's location, including \u003ccode\u003ePath\u003c/code\u003e, \u003ccode\u003eRepository\u003c/code\u003e, \u003ccode\u003eRevision\u003c/code\u003e, \u003ccode\u003eRepoType\u003c/code\u003e, and \u003ccode\u003eUri\u003c/code\u003e, as well as information related to GitHub Enterprise configurations, through \u003ccode\u003eGithubEnterpriseConfig\u003c/code\u003e, \u003ccode\u003eGithubEnterpriseConfigAsGithubEnterpriseConfigName\u003c/code\u003e, and \u003ccode\u003eHasGithubEnterpriseConfig\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are inherited members such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e and \u003ccode\u003eToString()\u003c/code\u003e, and also available constructors for GitFileSource.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class GitFileSource (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.GitFileSource)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.GitFileSource)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.GitFileSource) \n\n public sealed class GitFileSource : IMessage\u003cGitFileSource\u003e, IEquatable\u003cGitFileSource\u003e, IDeepCloneable\u003cGitFileSource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class GitFileSource.\n\nGitFileSource describes a file within a (possibly remote) code repository. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GitFileSource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GitFileSource](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitFileSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitFileSource](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitFileSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GitFileSource](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitFileSource), [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### GitFileSource()\n\n public GitFileSource()\n\n### GitFileSource(GitFileSource)\n\n public GitFileSource(GitFileSource other)\n\nProperties\n----------\n\n### EnterpriseConfigCase\n\n public GitFileSource.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.GitFileSource#Google_Cloud_CloudBuild_V1_GitFileSource_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### Path\n\n public string Path { get; set; }\n\nThe path of the file, with the repo root as the root of the path.\n\n### RepoType\n\n public GitFileSource.Types.RepoType RepoType { get; set; }\n\nSee RepoType above.\n\n### Repository\n\n public string Repository { get; set; }\n\nThe fully qualified resource name of the Repos API repository.\nEither URI or repository can be specified.\nIf unspecified, the repo from which the trigger invocation originated is\nassumed to be the repo from which to read the specified path.\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.GitFileSource#Google_Cloud_CloudBuild_V1_GitFileSource_Repository) resource name property.\n\n### Revision\n\n public string Revision { get; set; }\n\nThe branch, tag, arbitrary ref, or SHA version of the repo to use when\nresolving the filename (optional).\nThis field respects the same syntax/resolution as described here:\n\u003chttps://git-scm.com/docs/gitrevisions\u003e\nIf unspecified, the revision from which the trigger invocation originated\nis assumed to be the revision from which to read the specified path.\n\n### SourceCase\n\n public GitFileSource.SourceOneofCase SourceCase { get; }\n\n### Uri\n\n public string Uri { get; set; }\n\nThe URI of the repo.\nEither uri or repository can be specified.\nIf unspecified, the repo from which the trigger invocation originated is\nassumed to be the repo from which to read the specified path."]]