    public sealed class GitSource : IMessage<GitSource>, IEquatable<GitSource>, IDeepCloneable<GitSource>, IBufferMessage, IMessage

Reference documentation and code samples for the Design Center v1 API class GitSource.

Defines how to access a Git source.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GitSource

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GitSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.GitSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GitSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.GitSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GitSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.GitSource), [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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DesignCenter.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1)

## Assembly

Google.Cloud.DesignCenter.V1.dll

## Constructors

### GitSource()

    public GitSource()

### GitSource(GitSource)

    public GitSource(GitSource other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.GitSource` |

## Properties

### CommitSha

    public string CommitSha { get; set; }

Output only. The commit SHA of the git repo deduced from given ref_tag.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DeveloperConnectConfig

    [Obsolete]
    public DeveloperConnectConfig DeveloperConnectConfig { get; set; }

Optional. This config defines the location of a source through Developer
Connect. Used to access private git repos.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.DeveloperConnectConfig` |   |

### Dir

    public string Dir { get; set; }

Optional. Directory, relative to the source root, in which to run the
build. This must be a relative path. If a step's `dir` is specified and is
an absolute path, this value is ignored for that step's execution.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### RefTag

    public string RefTag { get; set; }

Required. The reference tag of the git repo.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Repo

    public string Repo { get; set; }

Required. Location of the git repo to build.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |