# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::BigQuerySource (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::BigQuerySource.

BigQuery source import data from.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data_schema

    def data_schema() -> ::String

**Returns**

- (::String) --- The schema to use when parsing the data from the source.

  Supported values for user event imports:
  - `user_event` (default): One [UserEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-UserEvent "Google::Cloud::DiscoveryEngine::V1::UserEvent (class)") per row.

  Supported values for document imports:
  - `document` (default): One [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)") format per row. Each document must have a valid [Document.id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document#Google__Cloud__DiscoveryEngine__V1__Document_id_instance_ "Google::Cloud::DiscoveryEngine::V1::Document#id (method)") and one of [Document.json_data](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document#Google__Cloud__DiscoveryEngine__V1__Document_json_data_instance_ "Google::Cloud::DiscoveryEngine::V1::Document#json_data (method)") or [Document.struct_data](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document#Google__Cloud__DiscoveryEngine__V1__Document_struct_data_instance_ "Google::Cloud::DiscoveryEngine::V1::Document#struct_data (method)").
  - `custom`: One custom data per row in arbitrary format that conforms to the defined [Schema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Schema "Google::Cloud::DiscoveryEngine::V1::Schema (class)") of the data store. This can only be used by the GENERIC Data Store vertical.

### #data_schema=

    def data_schema=(value) -> ::String

**Parameter**

- **value** (::String) ---

  The schema to use when parsing the data from the source.

  Supported values for user event imports:
  - `user_event` (default): One [UserEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-UserEvent "Google::Cloud::DiscoveryEngine::V1::UserEvent (class)") per row.

  Supported values for document imports:
  - `document` (default): One [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)") format per row. Each document must have a valid [Document.id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document#Google__Cloud__DiscoveryEngine__V1__Document_id_instance_ "Google::Cloud::DiscoveryEngine::V1::Document#id (method)") and one of [Document.json_data](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document#Google__Cloud__DiscoveryEngine__V1__Document_json_data_instance_ "Google::Cloud::DiscoveryEngine::V1::Document#json_data (method)") or [Document.struct_data](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document#Google__Cloud__DiscoveryEngine__V1__Document_struct_data_instance_ "Google::Cloud::DiscoveryEngine::V1::Document#struct_data (method)").
  - `custom`: One custom data per row in arbitrary format that conforms to the defined [Schema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Schema "Google::Cloud::DiscoveryEngine::V1::Schema (class)") of the data store. This can only be used by the GENERIC Data Store vertical.
**Returns**

- (::String) --- The schema to use when parsing the data from the source.

  Supported values for user event imports:
  - `user_event` (default): One [UserEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-UserEvent "Google::Cloud::DiscoveryEngine::V1::UserEvent (class)") per row.

  Supported values for document imports:
  - `document` (default): One [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)") format per row. Each document must have a valid [Document.id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document#Google__Cloud__DiscoveryEngine__V1__Document_id_instance_ "Google::Cloud::DiscoveryEngine::V1::Document#id (method)") and one of [Document.json_data](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document#Google__Cloud__DiscoveryEngine__V1__Document_json_data_instance_ "Google::Cloud::DiscoveryEngine::V1::Document#json_data (method)") or [Document.struct_data](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document#Google__Cloud__DiscoveryEngine__V1__Document_struct_data_instance_ "Google::Cloud::DiscoveryEngine::V1::Document#struct_data (method)").
  - `custom`: One custom data per row in arbitrary format that conforms to the defined [Schema](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Schema "Google::Cloud::DiscoveryEngine::V1::Schema (class)") of the data store. This can only be used by the GENERIC Data Store vertical.

### #dataset_id

    def dataset_id() -> ::String

**Returns**

- (::String) --- Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.

### #dataset_id=

    def dataset_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
**Returns**

- (::String) --- Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.

### #gcs_staging_dir

    def gcs_staging_dir() -> ::String

**Returns**

- (::String) --- Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.

### #gcs_staging_dir=

    def gcs_staging_dir=(value) -> ::String

**Parameter**

- **value** (::String) --- Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
**Returns**

- (::String) --- Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.

### #partition_date

    def partition_date() -> ::Google::Type::Date

**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Type-Date)) --- BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.

### #partition_date=

    def partition_date=(value) -> ::Google::Type::Date

**Parameter**

- **value** ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Type-Date)) --- BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Type-Date)) --- BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.

### #project_id

    def project_id() -> ::String

**Returns**

- (::String) --- The project ID or the project number that contains the BigQuery source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.

### #project_id=

    def project_id=(value) -> ::String

**Parameter**

- **value** (::String) --- The project ID or the project number that contains the BigQuery source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
**Returns**

- (::String) --- The project ID or the project number that contains the BigQuery source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.

### #table_id

    def table_id() -> ::String

**Returns**

- (::String) --- Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.

### #table_id=

    def table_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
**Returns**

- (::String) --- Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.