# Google Cloud Secure Source Manager V1 Client - Class Repository (1.8.0)

1.8.0 (latest) 1.7.0 1.6.3 1.5.0 1.4.1 1.3.3 1.2.0 1.1.0 1.0.0 0.2.5 0.1.0 Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class Repository.

Metadata of a Secure Source Manager repository.

Generated from protobuf message `google.cloud.securesourcemanager.v1.Repository`

## Namespace

Google \\ Cloud \\ SecureSourceManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. A unique identifier for a repository. The name should be of the format: `projects/{project}/locations/{location_id}/repositories/{repository_id}` |
| `↳ description` | `string` Optional. Description of the repository, which cannot exceed 500 characters. |
| `↳ instance` | `string` Optional. The name of the instance in which the repository is hosted, formatted as `projects/{project_number}/locations/{location_id}/instances/{instance_id}` When creating repository via securesourcemanager.googleapis.com, this field is used as input. When creating repository via \*.sourcemanager.dev, this field is output only. |
| `↳ uid` | `string` Output only. Unique identifier of the repository. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Create timestamp. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Update timestamp. |
| `↳ etag` | `string` Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
| `↳ uris` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.Repository.URIs` Output only. URIs for the repository. |
| `↳ initial_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.Repository.InitialConfig` Input only. Initial configurations for the repository. |

### getName

Identifier. A unique identifier for a repository. The name should be of the
format:
`projects/{project}/locations/{location_id}/repositories/{repository_id}`

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

### setName

Identifier. A unique identifier for a repository. The name should be of the
format:
`projects/{project}/locations/{location_id}/repositories/{repository_id}`

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

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

### getDescription

Optional. Description of the repository, which cannot exceed 500
characters.

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

### setDescription

Optional. Description of the repository, which cannot exceed 500
characters.

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

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

### getInstance

Optional. The name of the instance in which the repository is hosted,
formatted as
`projects/{project_number}/locations/{location_id}/instances/{instance_id}`
When creating repository via securesourcemanager.googleapis.com, this field
is used as input. When creating repository via \*.sourcemanager.dev, this
field is output only.

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

### setInstance

Optional. The name of the instance in which the repository is hosted,
formatted as
`projects/{project_number}/locations/{location_id}/instances/{instance_id}`
When creating repository via securesourcemanager.googleapis.com, this field
is used as input. When creating repository via \*.sourcemanager.dev, this
field is output only.

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

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

### getUid

Output only. Unique identifier of the repository.

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

### setUid

Output only. Unique identifier of the repository.

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

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

### getCreateTime

Output only. Create timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Create timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. Update timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Update timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getEtag

Optional. This checksum is computed by the server based on the value of
other fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.

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

### setEtag

Optional. This checksum is computed by the server based on the value of
other fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.

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

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

### getUris

Output only. URIs for the repository.

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

### hasUris

### clearUris

### setUris

Output only. URIs for the repository.

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

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

### getInitialConfig

Input only. Initial configurations for the repository.

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

### hasInitialConfig

### clearInitialConfig

### setInitialConfig

Input only. Initial configurations for the repository.

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

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