The schema to use when parsing the data from the source.
Supported values for user event imports:
user_event (default): One
[UserEvent][google.cloud.discoveryengine.v1.UserEvent] per row.
Supported values for document imports:
document (default): One
[Document][google.cloud.discoveryengine.v1.Document] format per
row. Each document must have a valid
[Document.id][google.cloud.discoveryengine.v1.Document.id] and one of
[Document.json_data][google.cloud.discoveryengine.v1.Document.json_data]
or
[Document.struct_data][google.cloud.discoveryengine.v1.Document.struct_data].
custom: One custom data per row in arbitrary format that conforms to
the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data
store. This can only be used by the GENERIC Data Store vertical.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eBigQuerySource\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API, with the latest version being 1.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBigQuerySource\u003c/code\u003e class, which inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces, is used for importing data from BigQuery.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties such as \u003ccode\u003eDataSchema\u003c/code\u003e, \u003ccode\u003eDatasetId\u003c/code\u003e, \u003ccode\u003eGcsStagingDir\u003c/code\u003e, \u003ccode\u003ePartitionCase\u003c/code\u003e, \u003ccode\u003ePartitionDate\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, and \u003ccode\u003eTableId\u003c/code\u003e, each serving a specific purpose in configuring the data source.\u003c/p\u003e\n"],["\u003cp\u003eTwo constructors are available, one default and another that accepts another \u003ccode\u003eBigQuerySource\u003c/code\u003e instance for initialization.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDataSchema\u003c/code\u003e property allows users to specify the format of the imported data, such as 'user_event' or 'document', or 'custom' for arbitrary data, depending on whether user events or documents are imported.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class BigQuerySource (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.BigQuerySource)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.BigQuerySource)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.BigQuerySource)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.BigQuerySource)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.BigQuerySource)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.BigQuerySource)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.BigQuerySource)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.BigQuerySource)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.BigQuerySource)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.BigQuerySource) \n\n public sealed class BigQuerySource : IMessage\u003cBigQuerySource\u003e, IEquatable\u003cBigQuerySource\u003e, IDeepCloneable\u003cBigQuerySource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class BigQuerySource.\n\nBigQuery source import data from. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BigQuerySource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BigQuerySource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.BigQuerySource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BigQuerySource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.BigQuerySource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BigQuerySource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.BigQuerySource), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### BigQuerySource()\n\n public BigQuerySource()\n\n### BigQuerySource(BigQuerySource)\n\n public BigQuerySource(BigQuerySource other)\n\nProperties\n----------\n\n### DataSchema\n\n public string DataSchema { get; set; }\n\nThe schema to use when parsing the data from the source.\n\nSupported values for user event imports:\n\n- `user_event` (default): One \\[UserEvent\\]\\[google.cloud.discoveryengine.v1.UserEvent\\] per row.\n\nSupported values for document imports:\n\n- `document` (default): One \\[Document\\]\\[google.cloud.discoveryengine.v1.Document\\] format per row. Each document must have a valid \\[Document.id\\]\\[google.cloud.discoveryengine.v1.Document.id\\] and one of \\[Document.json_data\\]\\[google.cloud.discoveryengine.v1.Document.json_data\\] or \\[Document.struct_data\\]\\[google.cloud.discoveryengine.v1.Document.struct_data\\].\n- `custom`: One custom data per row in arbitrary format that conforms to the defined \\[Schema\\]\\[google.cloud.discoveryengine.v1.Schema\\] of the data store. This can only be used by the GENERIC Data Store vertical.\n\n### DatasetId\n\n public string DatasetId { get; set; }\n\nRequired. The BigQuery data set to copy the data from with a length limit\nof 1,024 characters.\n\n### GcsStagingDir\n\n public string GcsStagingDir { get; set; }\n\nIntermediate Cloud Storage directory used for the import with a length\nlimit of 2,000 characters. Can be specified if one wants to have the\nBigQuery export to a specific Cloud Storage directory.\n\n### PartitionCase\n\n public BigQuerySource.PartitionOneofCase PartitionCase { get; }\n\n### PartitionDate\n\n public Date PartitionDate { get; set; }\n\nBigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nThe project ID or the project number that contains the BigQuery source. Has\na length limit of 128 characters. If not specified, inherits the project\nID from the parent request.\n\n### TableId\n\n public string TableId { get; set; }\n\nRequired. The BigQuery table to copy the data from with a length limit of\n1,024 characters."]]