# Google Cloud OsConfig V1 Client - Class Gcs (2.2.3)

2.2.3 (latest) 2.2.2 2.1.0 2.0.5 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud OsConfig V1 Client class Gcs.

Specifies a file available as a Cloud Storage Object.

Generated from protobuf message `google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1 \\ OSPolicy \\ Resource \\ File

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ bucket` | `string` Required. Bucket of the Cloud Storage object. |
| `↳ object` | `string` Required. Name of the Cloud Storage object. |
| `↳ generation` | `int|string` Generation number of the Cloud Storage object. |

### getBucket

Required. Bucket of the Cloud Storage object.

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

### setBucket

Required. Bucket of the Cloud Storage object.

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

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

### getObject

Required. Name of the Cloud Storage object.

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

### setObject

Required. Name of the Cloud Storage object.

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

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

### getGeneration

Generation number of the Cloud Storage object.

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

### setGeneration

Generation number of the Cloud Storage object.

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

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