3.16.0 (latest) 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.4.0 2.3.0 2.2.0

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

Reference documentation and code samples for the Grafeas v1 API class GerritSourceContext.

A SourceContext referring to a Gerrit project.

## Inheritance

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

## Implements

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

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

## Assembly

Grafeas.V1.dll

## Constructors

### GerritSourceContext()

    public GerritSourceContext()

### GerritSourceContext(GerritSourceContext)

    public GerritSourceContext(GerritSourceContext other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.GerritSourceContext` |

## Properties

### AliasContext

    public AliasContext AliasContext { get; set; }

An alias, which may be a branch or tag.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.AliasContext` |   |

### GerritProject

    public string GerritProject { get; set; }

The full project name within the host. Projects may be nested, so
"project/subproject" is a valid project name. The "repo name" is the
hostURI/project.

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

### HasRevisionId

    public bool HasRevisionId { get; }

Gets whether the "revision_id" field is set

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

### HostUri

    public string HostUri { get; set; }

The URI of a running Gerrit instance.

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

### RevisionCase

    public GerritSourceContext.RevisionOneofCase RevisionCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.GerritSourceContexthttps://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.GerritSourceContext.RevisionOneofCase` |   |

### RevisionId

    public string RevisionId { get; set; }

A revision (commit) ID.

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