# Google Cloud Data Catalog V1 Client - Class GcsFileSpec (2.4.2)

2.4.2 (latest) 2.4.1 2.3.2 2.2.4 2.1.0 2.0.2 1.10.3 1.9.1 1.8.2 1.7.1 1.6.0 1.5.1 1.4.2 1.3.9 Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class GcsFileSpec.

Specification of a single file in Cloud Storage.

Generated from protobuf message `google.cloud.datacatalog.v1.GcsFileSpec`

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ file_path` | `string` Required. Full file path. Example: `gs://bucket_name/a/b.txt`. |
| `↳ gcs_timestamps` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.SystemTimestamps` Output only. Creation, modification, and expiration timestamps of a Cloud Storage file. |
| `↳ size_bytes` | `int|string` Output only. File size in bytes. |

### getFilePath

Required. Full file path. Example: `gs://bucket_name/a/b.txt`.

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

### setFilePath

Required. Full file path. Example: `gs://bucket_name/a/b.txt`.

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

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

### getGcsTimestamps

Output only. Creation, modification, and expiration timestamps of a Cloud
Storage file.

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

### hasGcsTimestamps

### clearGcsTimestamps

### setGcsTimestamps

Output only. Creation, modification, and expiration timestamps of a Cloud
Storage file.

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

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

### getSizeBytes

Output only. File size in bytes.

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

### setSizeBytes

Output only. File size in bytes.

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

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