# Google Cloud Dataplex V1 Client - Class StorageFormat (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class StorageFormat.

Describes the format of the data within its storage location.

Generated from protobuf message `google.cloud.dataplex.v1.StorageFormat`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ format` | `int` Output only. The data format associated with the stored data, which represents content type values. The value is inferred from mime type. |
| `↳ compression_format` | `int` Optional. The compression type associated with the stored data. If unspecified, the data is uncompressed. |
| `↳ mime_type` | `string` Required. The mime type descriptor for the data. Must match the pattern {type}/{subtype}. Supported values: - application/x-parquet - application/x-avro - application/x-orc - application/x-tfrecord - application/x-parquet+iceberg - application/x-avro+iceberg - application/x-orc+iceberg - application/json - application/{subtypes} - text/csv - text/ |
| `↳ csv` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.CsvOptions` Optional. Additional information about CSV formatted data. |
| `↳ json` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.JsonOptions` Optional. Additional information about CSV formatted data. |
| `↳ iceberg` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.IcebergOptions` Optional. Additional information about iceberg tables. |

### getFormat

Output only. The data format associated with the stored data, which
represents content type values. The value is inferred from mime type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Format](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.Format). |

### setFormat

Output only. The data format associated with the stored data, which
represents content type values. The value is inferred from mime type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Format](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.Format). |

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

### getCompressionFormat

Optional. The compression type associated with the stored data.

If unspecified, the data is uncompressed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CompressionFormat](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.CompressionFormat). |

### setCompressionFormat

Optional. The compression type associated with the stored data.

If unspecified, the data is uncompressed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CompressionFormat](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.CompressionFormat). |

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

### getMimeType

Required. The mime type descriptor for the data. Must match the pattern
{type}/{subtype}. Supported values:

- application/x-parquet
- application/x-avro
- application/x-orc
- application/x-tfrecord
- application/x-parquet+iceberg
- application/x-avro+iceberg
- application/x-orc+iceberg
- application/json
- application/{subtypes}
- text/csv
- text/
- image/{image subtype}
- video/{video subtype}
- audio/{audio subtype}

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

### setMimeType

Required. The mime type descriptor for the data. Must match the pattern
{type}/{subtype}. Supported values:

- application/x-parquet
- application/x-avro
- application/x-orc
- application/x-tfrecord
- application/x-parquet+iceberg
- application/x-avro+iceberg
- application/x-orc+iceberg
- application/json
- application/{subtypes}
- text/csv
- text/
- image/{image subtype}
- video/{video subtype}
- audio/{audio subtype}

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

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

### getCsv

Optional. Additional information about CSV formatted data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.CsvOptions|null` |   |

### hasCsv

### setCsv

Optional. Additional information about CSV formatted data.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.CsvOptions` |

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

### getJson

Optional. Additional information about CSV formatted data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.JsonOptions|null` |   |

### hasJson

### setJson

Optional. Additional information about CSV formatted data.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.JsonOptions` |

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

### getIceberg

Optional. Additional information about iceberg tables.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.IcebergOptions|null` |   |

### hasIceberg

### setIceberg

Optional. Additional information about iceberg tables.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.StorageFormat.IcebergOptions` |

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

### getOptions

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