[[["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\u003eSource\u003c/code\u003e class for the Cloud Build v1 API is 2.15.0, with a range of previous versions from 2.14.0 down to 1.0.0 also being documented.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSource\u003c/code\u003e class represents the location of source code in a storage service and implements multiple interfaces such as \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\u003eThe \u003ccode\u003eSource\u003c/code\u003e class offers constructors for creating new instances and cloning existing instances, and several properties for defining the source location, including \u003ccode\u003eGitSource\u003c/code\u003e, \u003ccode\u003eRepoSource\u003c/code\u003e, \u003ccode\u003eStorageSource\u003c/code\u003e, and \u003ccode\u003eStorageSourceManifest\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has inherited members \u003ccode\u003eobject.GetHashCode()\u003c/code\u003e, \u003ccode\u003eobject.GetType()\u003c/code\u003e, and \u003ccode\u003eobject.ToString()\u003c/code\u003e, while being part of the \u003ccode\u003eGoogle.Cloud.CloudBuild.V1\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.CloudBuild.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe properties of the \u003ccode\u003eSource\u003c/code\u003e class allow specifying various source locations like Git repositories, Cloud Source Repositories, or Cloud Storage, with the \u003ccode\u003eSourceCase\u003c/code\u003e property indicating which source location is active.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v1 API - Class Source (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.Source)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.15.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.14.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.13.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.12.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.11.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.10.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.9.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.8.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.7.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.6.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.5.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.4.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.3.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.2.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.1.0/Google.Cloud.CloudBuild.V1.Source)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/2.0.0/Google.Cloud.CloudBuild.V1.Source)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.4.0/Google.Cloud.CloudBuild.V1.Source)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.3.0/Google.Cloud.CloudBuild.V1.Source)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.2.0/Google.Cloud.CloudBuild.V1.Source)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.1.0/Google.Cloud.CloudBuild.V1.Source)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/1.0.0/Google.Cloud.CloudBuild.V1.Source) \n\n public sealed class Source : IMessage\u003cSource\u003e, IEquatable\u003cSource\u003e, IDeepCloneable\u003cSource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v1 API class Source.\n\nLocation of the source in a supported storage service. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Source \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Source](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Source), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Source](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Source), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Source](/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.Source), [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### Source()\n\n public Source()\n\n### Source(Source)\n\n public Source(Source other)\n\nProperties\n----------\n\n### GitSource\n\n public GitSource GitSource { get; set; }\n\nIf provided, get the source from this Git repository.\n\n### RepoSource\n\n public RepoSource RepoSource { get; set; }\n\nIf provided, get the source from this location in a Cloud Source\nRepository.\n\n### SourceCase\n\n public Source.SourceOneofCase SourceCase { get; }\n\n### StorageSource\n\n public StorageSource StorageSource { get; set; }\n\nIf provided, get the source from this location in Cloud Storage.\n\n### StorageSourceManifest\n\n public StorageSourceManifest StorageSourceManifest { get; set; }\n\nIf provided, get the source from this manifest in Cloud Storage.\nThis feature is in Preview; see description\n[here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher)."]]