public sealed class Dependency.Types.GitSourceRepository : IMessage<Dependency.Types.GitSourceRepository>, IEquatable<Dependency.Types.GitSourceRepository>, IDeepCloneable<Dependency.Types.GitSourceRepository>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v1 API class Dependency.Types.GitSourceRepository.
The Developer Connect Git repository link or the url that matches a
repository link in the current project, formatted as
projects/*/locations/*/connections/*/gitRepositoryLink/*
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe latest version available for the \u003ccode\u003eGitSourceRepository\u003c/code\u003e class within the Cloud Build v1 API is 2.15.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGitSourceRepository\u003c/code\u003e class is a representation of a Git source repository, used within the \u003ccode\u003eGoogle.Cloud.CloudBuild.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties such as \u003ccode\u003eDeveloperConnect\u003c/code\u003e, \u003ccode\u003eDeveloperConnectAsGitRepositoryLinkName\u003c/code\u003e, \u003ccode\u003eHasDeveloperConnect\u003c/code\u003e, \u003ccode\u003eHasUrl\u003c/code\u003e, \u003ccode\u003eRepotypeCase\u003c/code\u003e, and \u003ccode\u003eUrl\u003c/code\u003e, to access details about a Git repository.\u003c/p\u003e\n"],["\u003cp\u003eThe content gives you access to the version history of this class, going back as far as 1.0.0.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class Dependency.Types.GitSourceRepository (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.Dependency.Types.GitSourceRepository)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository) \n\n public sealed class Dependency.Types.GitSourceRepository : IMessage\u003cDependency.Types.GitSourceRepository\u003e, IEquatable\u003cDependency.Types.GitSourceRepository\u003e, IDeepCloneable\u003cDependency.Types.GitSourceRepository\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class Dependency.Types.GitSourceRepository.\n\nA repository for a git source. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Dependency.Types.GitSourceRepository \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Dependency](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Dependency)[Types](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Dependency.Types)[GitSourceRepository](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Dependency](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Dependency)[Types](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Dependency.Types)[GitSourceRepository](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Dependency](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Dependency)[Types](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Dependency.Types)[GitSourceRepository](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository), [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### GitSourceRepository()\n\n public GitSourceRepository()\n\n### GitSourceRepository(GitSourceRepository)\n\n public GitSourceRepository(Dependency.Types.GitSourceRepository other)\n\nProperties\n----------\n\n### DeveloperConnect\n\n public string DeveloperConnect { get; set; }\n\nThe Developer Connect Git repository link or the url that matches a\nrepository link in the current project, formatted as\n`projects/*/locations/*/connections/*/gitRepositoryLink/*`\n\n### DeveloperConnectAsGitRepositoryLinkName\n\n public GitRepositoryLinkName DeveloperConnectAsGitRepositoryLinkName { get; set; }\n\n[GitRepositoryLinkName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.GitRepositoryLinkName)-typed view over the [DeveloperConnect](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Dependency.Types.GitSourceRepository#Google_Cloud_CloudBuild_V1_Dependency_Types_GitSourceRepository_DeveloperConnect) resource name\nproperty.\n\n### HasDeveloperConnect\n\n public bool HasDeveloperConnect { get; }\n\nGets whether the \"developer_connect\" field is set\n\n### HasUrl\n\n public bool HasUrl { get; }\n\nGets whether the \"url\" field is set\n\n### RepotypeCase\n\n public Dependency.Types.GitSourceRepository.RepotypeOneofCase RepotypeCase { get; }\n\n### Url\n\n public string Url { get; set; }\n\nLocation of the Git repository."]]