Reference documentation and code samples for the Google Cloud Design Center V1 Client class DeveloperConnectSourceConfig.

This config specifies the location of a source (such as GitHub or Bitbucket)
through Developer Connect.

Generated from protobuf message `google.cloud.designcenter.v1.DeveloperConnectSourceConfig`

## Namespace

Google \\ Cloud \\ DesignCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getDeveloperConnectRepoUri

Required. The Developer Connect Git repository link, formatted as
`projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

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

### setDeveloperConnectRepoUri

Required. The Developer Connect Git repository link, formatted as
`projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

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

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

### getReference

Required. The reference (for example, a branch, tag, or commit SHA) from
which the content should be read.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.GitReference|null` |   |

### hasReference

### clearReference

### setReference

Required. The reference (for example, a branch, tag, or commit SHA) from
which the content should be read.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.GitReference` |

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

### getDir

Required. The sub-directory within the repository from which to read
content. The path must be relative to the repository's root such as
dir1/dir2. To read content from the root dir, provide "/" as the value of
the field.

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

### setDir

Required. The sub-directory within the repository from which to read
content. The path must be relative to the repository's root such as
dir1/dir2. To read content from the root dir, provide "/" as the value of
the field.

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

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

### getFetchedCommitSha

Output only. The SHA of the commit deduced from GitReference.

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

### setFetchedCommitSha

Output only. The SHA of the commit deduced from GitReference.

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

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