# Google Cloud Data Catalog V1 Client - Class PhysicalSchema (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 PhysicalSchema.

Native schema used by a resource represented as an entry. Used by query
engines for deserializing and parsing source data.

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

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ avro` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.PhysicalSchema.AvroSchema` Schema in Avro JSON format. |
| `↳ thrift` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.PhysicalSchema.ThriftSchema` Schema in Thrift format. |
| `↳ protobuf` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.PhysicalSchema.ProtobufSchema` Schema in protocol buffer format. |
| `↳ parquet` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.PhysicalSchema.ParquetSchema` Marks a Parquet-encoded data source. |
| `↳ orc` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.PhysicalSchema.OrcSchema` Marks an ORC-encoded data source. |
| `↳ csv` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.PhysicalSchema.CsvSchema` Marks a CSV-encoded data source. |

### getAvro

Schema in Avro JSON format.

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

### hasAvro

### setAvro

Schema in Avro JSON format.

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

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

### getThrift

Schema in Thrift format.

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

### hasThrift

### setThrift

Schema in Thrift format.

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

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

### getProtobuf

Schema in protocol buffer format.

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

### hasProtobuf

### setProtobuf

Schema in protocol buffer format.

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

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

### getParquet

Marks a Parquet-encoded data source.

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

### hasParquet

### setParquet

Marks a Parquet-encoded data source.

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

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

### getOrc

Marks an ORC-encoded data source.

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

### hasOrc

### setOrc

Marks an ORC-encoded data source.

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

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

### getCsv

Marks a CSV-encoded data source.

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

### hasCsv

### setCsv

Marks a CSV-encoded data source.

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

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

### getSchema

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