# Google Cloud Functions V2 Client - Class SourceProvenance (2.1.3)

2.1.3 (latest) 2.1.2 2.0.6 1.7.0 1.6.5 1.5.0 1.4.2 1.3.1 1.2.0 1.1.2 1.0.3 Reference documentation and code samples for the Google Cloud Functions V2 Client class SourceProvenance.

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

Generated from protobuf message `google.cloud.functions.v2.SourceProvenance`

## Namespace

Google \\ Cloud \\ Functions \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resolved_storage_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-functions/latest/V2.StorageSource` A copy of the build's `source.storage_source`, if exists, with any generations resolved. |
| `↳ resolved_repo_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-functions/latest/V2.RepoSource` A copy of the build's `source.repo_source`, if exists, with any revisions resolved. |
| `↳ git_uri` | `string` A copy of the build's `source.git_uri`, if exists, with any commits resolved. |

### getResolvedStorageSource

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-functions/latest/V2.StorageSource|null` |   |

### hasResolvedStorageSource

### clearResolvedStorageSource

### setResolvedStorageSource

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-functions/latest/V2.StorageSource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResolvedRepoSource

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-functions/latest/V2.RepoSource|null` |   |

### hasResolvedRepoSource

### clearResolvedRepoSource

### setResolvedRepoSource

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-functions/latest/V2.RepoSource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGitUri

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setGitUri

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |