# Google Cloud Run V2 Client - Class StorageSource (1.12.2)

1.12.2 (latest) 1.12.1 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.0 1.5.2 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.9.3 0.8.0 0.7.2 0.6.0 0.5.2 0.4.0 0.3.4 Reference documentation and code samples for the Google Cloud Run V2 Client class StorageSource.

Location of the source in an archive file in Google Cloud Storage.

Generated from protobuf message `google.cloud.run.v2.StorageSource`

## Namespace

Google \\ Cloud \\ Run \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ bucket` | `string` Required. Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). |
| `↳ object` | `string` Required. Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build. |
| `↳ generation` | `int|string` Optional. Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. |

### getBucket

Required. Google Cloud Storage bucket containing the source (see
[Bucket Name
Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).

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

### setBucket

Required. Google Cloud Storage bucket containing the source (see
[Bucket Name
Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).

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

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

### getObject

Required. Google Cloud Storage object containing the source.

This object must be a gzipped archive file (`.tar.gz`) containing source to
build.

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

### setObject

Required. Google Cloud Storage object containing the source.

This object must be a gzipped archive file (`.tar.gz`) containing source to
build.

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

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

### getGeneration

Optional. Google Cloud Storage generation for the object. If the generation
is omitted, the latest generation will be used.

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

### setGeneration

Optional. Google Cloud Storage generation for the object. If the generation
is omitted, the latest generation will be used.

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

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