2.23.0 (latest) 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Cloud Build v1 API class SourceProvenance.

Provenance of the source. Ways to find the original source, or verify that
some source was used for this build.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[SourceProvenance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.SourceProvenance.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SourceProvenance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.SourceProvenance.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[SourceProvenance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.SourceProvenance.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.CloudBuild.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.md.txt)

## Assembly

Google.Cloud.CloudBuild.V1.dll

## Constructors

### SourceProvenance()

    public SourceProvenance()

### SourceProvenance(SourceProvenance)

    public SourceProvenance(SourceProvenance other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `SourceProvenance` |

## Properties

### FileHashes

    public MapField<string, FileHashes> FileHashes { get; }

Output only. Hash(es) of the build source, which can be used to verify that
the original source integrity was maintained in the build. Note that
`FileHashes` will only be populated if `BuildOptions` has requested a
`SourceProvenanceHash`.

The keys to this map are file paths used as build source and the values
contain the hash values for those files.

If the build source came in a single package such as a gzipped tarfile
(`.tar.gz`), the `FileHash` will be for the single path to that file.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringFileHashes` |   |

### ResolvedConnectedRepository

    public ConnectedRepository ResolvedConnectedRepository { get; set; }

Output only. A copy of the build's `source.connected_repository`, if
exists, with any revisions resolved.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ConnectedRepository` |   |

### ResolvedGitSource

    public GitSource ResolvedGitSource { get; set; }

Output only. A copy of the build's `source.git_source`, if exists, with any
revisions resolved.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `GitSource` |   |

### ResolvedRepoSource

    public RepoSource ResolvedRepoSource { get; set; }

A copy of the build's `source.repo_source`, if exists, with any
revisions resolved.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepoSource` |   |

### ResolvedStorageSource

    public StorageSource ResolvedStorageSource { get; set; }

A copy of the build's `source.storage_source`, if exists, with any
generations resolved.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `StorageSource` |   |

### ResolvedStorageSourceManifest

    public StorageSourceManifest ResolvedStorageSourceManifest { get; set; }

A copy of the build's `source.storage_source_manifest`, if exists, with any
revisions resolved.
This feature is in Preview.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `StorageSourceManifest` |   |