# Google Cloud Capacity Planner V1beta Client - Class GcsDestination (0.1.2)

0.1.2 (latest) 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class GcsDestination.

A Cloud Storage location.

Generated from protobuf message `google.cloud.capacityplanner.v1beta.GcsDestination`

## Namespace

Google \\ Cloud \\ CapacityPlanner \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ uri` | `string` Optional. The path to the file in Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. |
| `↳ bucket` | `string` Required. The bucket name to which the export will be stored. |
| `↳ object` | `string` Required. The object name to which the export will be stored. |
| `↳ force` | `bool` Optional. Flag to indicate overwrite in case file already exists. |

### getUri

Optional. The path to the file in Cloud Storage where the export will be
stored. The URI is in the form `gs://bucketName/fileName`. If the file
already exists, the request succeeds, but the operation fails.

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

### setUri

Optional. The path to the file in Cloud Storage where the export will be
stored. The URI is in the form `gs://bucketName/fileName`. If the file
already exists, the request succeeds, but the operation fails.

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

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

### getBucket

Required. The bucket name to which the export will be stored.

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

### setBucket

Required. The bucket name to which the export will be stored.

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

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

### getObject

Required. The object name to which the export will be stored.

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

### setObject

Required. The object name to which the export will be stored.

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

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

### getForce

Optional. Flag to indicate overwrite in case file already exists.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setForce

Optional. Flag to indicate overwrite in case file already exists.

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

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