# Data Catalog V1 API - Class Google::Cloud::DataCatalog::V1::PhysicalSchema (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.0 2.5.1 2.4.0 2.3.1 2.2.2 2.1.1 2.0.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.23.0 0.22.0 0.21.2 0.20.1 0.19.0 0.18.1 0.17.0 0.16.1 0.15.0 0.14.0 0.13.0 0.12.1 0.11.0 0.10.0 0.9.1 Reference documentation and code samples for the Data Catalog V1 API class Google::Cloud::DataCatalog::V1::PhysicalSchema.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #avro

    def avro() -> ::Google::Cloud::DataCatalog::V1::PhysicalSchema::AvroSchema

**Returns**

- ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::AvroSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-AvroSchema)) --- Schema in Avro JSON format.


  Note: The following fields are mutually exclusive: `avro`, `thrift`, `protobuf`, `parquet`, `orc`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #avro=

    def avro=(value) -> ::Google::Cloud::DataCatalog::V1::PhysicalSchema::AvroSchema

**Parameter**

- **value** ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::AvroSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-AvroSchema)) --- Schema in Avro JSON format.


  Note: The following fields are mutually exclusive: `avro`, `thrift`, `protobuf`, `parquet`, `orc`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::AvroSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-AvroSchema)) --- Schema in Avro JSON format.


  Note: The following fields are mutually exclusive: `avro`, `thrift`, `protobuf`, `parquet`, `orc`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #csv

    def csv() -> ::Google::Cloud::DataCatalog::V1::PhysicalSchema::CsvSchema

**Returns**

- ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::CsvSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-CsvSchema)) --- Marks a CSV-encoded data source.


  Note: The following fields are mutually exclusive: `csv`, `avro`, `thrift`, `protobuf`, `parquet`, `orc`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #csv=

    def csv=(value) -> ::Google::Cloud::DataCatalog::V1::PhysicalSchema::CsvSchema

**Parameter**

- **value** ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::CsvSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-CsvSchema)) --- Marks a CSV-encoded data source.


  Note: The following fields are mutually exclusive: `csv`, `avro`, `thrift`, `protobuf`, `parquet`, `orc`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::CsvSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-CsvSchema)) --- Marks a CSV-encoded data source.


  Note: The following fields are mutually exclusive: `csv`, `avro`, `thrift`, `protobuf`, `parquet`, `orc`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #orc

    def orc() -> ::Google::Cloud::DataCatalog::V1::PhysicalSchema::OrcSchema

**Returns**

- ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::OrcSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-OrcSchema)) --- Marks an ORC-encoded data source.


  Note: The following fields are mutually exclusive: `orc`, `avro`, `thrift`, `protobuf`, `parquet`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #orc=

    def orc=(value) -> ::Google::Cloud::DataCatalog::V1::PhysicalSchema::OrcSchema

**Parameter**

- **value** ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::OrcSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-OrcSchema)) --- Marks an ORC-encoded data source.


  Note: The following fields are mutually exclusive: `orc`, `avro`, `thrift`, `protobuf`, `parquet`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::OrcSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-OrcSchema)) --- Marks an ORC-encoded data source.


  Note: The following fields are mutually exclusive: `orc`, `avro`, `thrift`, `protobuf`, `parquet`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #parquet

    def parquet() -> ::Google::Cloud::DataCatalog::V1::PhysicalSchema::ParquetSchema

**Returns**

- ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::ParquetSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-ParquetSchema)) --- Marks a Parquet-encoded data source.


  Note: The following fields are mutually exclusive: `parquet`, `avro`, `thrift`, `protobuf`, `orc`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #parquet=

    def parquet=(value) -> ::Google::Cloud::DataCatalog::V1::PhysicalSchema::ParquetSchema

**Parameter**

- **value** ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::ParquetSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-ParquetSchema)) --- Marks a Parquet-encoded data source.


  Note: The following fields are mutually exclusive: `parquet`, `avro`, `thrift`, `protobuf`, `orc`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::ParquetSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-ParquetSchema)) --- Marks a Parquet-encoded data source.


  Note: The following fields are mutually exclusive: `parquet`, `avro`, `thrift`, `protobuf`, `orc`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #protobuf

    def protobuf() -> ::Google::Cloud::DataCatalog::V1::PhysicalSchema::ProtobufSchema

**Returns**

- ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::ProtobufSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-ProtobufSchema)) --- Schema in protocol buffer format.


  Note: The following fields are mutually exclusive: `protobuf`, `avro`, `thrift`, `parquet`, `orc`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #protobuf=

    def protobuf=(value) -> ::Google::Cloud::DataCatalog::V1::PhysicalSchema::ProtobufSchema

**Parameter**

- **value** ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::ProtobufSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-ProtobufSchema)) --- Schema in protocol buffer format.


  Note: The following fields are mutually exclusive: `protobuf`, `avro`, `thrift`, `parquet`, `orc`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::ProtobufSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-ProtobufSchema)) --- Schema in protocol buffer format.


  Note: The following fields are mutually exclusive: `protobuf`, `avro`, `thrift`, `parquet`, `orc`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #thrift

    def thrift() -> ::Google::Cloud::DataCatalog::V1::PhysicalSchema::ThriftSchema

**Returns**

- ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::ThriftSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-ThriftSchema)) --- Schema in Thrift format.


  Note: The following fields are mutually exclusive: `thrift`, `avro`, `protobuf`, `parquet`, `orc`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #thrift=

    def thrift=(value) -> ::Google::Cloud::DataCatalog::V1::PhysicalSchema::ThriftSchema

**Parameter**

- **value** ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::ThriftSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-ThriftSchema)) --- Schema in Thrift format.


  Note: The following fields are mutually exclusive: `thrift`, `avro`, `protobuf`, `parquet`, `orc`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataCatalog::V1::PhysicalSchema::ThriftSchema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-PhysicalSchema-ThriftSchema)) --- Schema in Thrift format.


  Note: The following fields are mutually exclusive: `thrift`, `avro`, `protobuf`, `parquet`, `orc`, `csv`. If a field in that set is populated, all other fields in the set will automatically be cleared.