# Google BigQuery v2 API - Class BigQueryDataset (3.12.0)

3.12.0 (latest) 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.4.0 2.3.0 2.2.0

    public sealed class BigQueryDataset

Reference documentation and code samples for the Google BigQuery v2 API class BigQueryDataset.

A dataset within BigQuery.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> BigQueryDataset

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BigQuery.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2)

## Assembly

Google.Cloud.BigQuery.V2.dll

## Remarks

This class wraps the underlying REST API resource and retains a reference to the original
client, allowing for simpler dataset-oriented operations.

## Constructors

### BigQueryDataset(BigQueryClient, Dataset)

    public BigQueryDataset(BigQueryClient client, Dataset resource)

Constructs a new dataset.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `client` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient` The client to use for operations on the dataset. Must not be null. |
| `resource` | `Google.Apis.Bigquery.v2.Data.Dataset` The REST-ful resource representing the dataset. Must not be null. |

**Remarks** This is public to allow tests to construct instances for production code to consume;
production code should not normally construct instances itself.

## Properties

### FullyQualifiedId

    public string FullyQualifiedId { get; }

The fully-qualified identifier for the dataset in a string form of `project:dataset`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Reference

    public DatasetReference Reference { get; }

The fully-qualified identifier for the dataset as a [DatasetReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.DatasetReference.html).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.DatasetReference.html` |   |

**Remarks** The properties within the reference can be used to determine the project ID
and dataset ID components.

### Resource

    public Dataset Resource { get; }

The underlying REST-ful resource for the dataset.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Google.Apis.Bigquery.v2.Data.Dataset` |   |

**Remarks** The data within the resource may be incomplete, depending on how it was obtained.

## Methods

### CreateRoutine(string, Routine, CreateRoutineOptions)

    public BigQueryRoutine CreateRoutine(string routineId, Routine routine, CreateRoutineOptions options = null)

Creates a routine within this dataset.
This method just creates a [RoutineReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.RoutineReference.html) and delegates to [CreateRoutine(RoutineReference, Routine, CreateRoutineOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateRoutine_Google_Apis_Bigquery_v2_Data_RoutineReference_Google_Apis_Bigquery_v2_Data_Routine_Google_Cloud_BigQuery_V2_CreateRoutineOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `routineId` | `https://learn.microsoft.com/dotnet/api/system.string` The routine ID. Must not be null. |
| `routine` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html` The routine resource representation to use for the creation. Must not be null. If this routine's [RoutineReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html#Google_Apis_Bigquery_v2_Data_Routine_RoutineReference) is specified, then it must be the same as the one obtained from the other parameters. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateRoutineOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryRoutine` | The newly created routine. |

### CreateRoutineAsync(string, Routine, CreateRoutineOptions, CancellationToken)

    public Task<BigQueryRoutine> CreateRoutineAsync(string routineId, Routine routine, CreateRoutineOptions options = null, CancellationToken cancellationToken = default)

Asynchronously creates a routine within this dataset.
This method just creates a [RoutineReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.RoutineReference.html) and delegates to [CreateRoutineAsync(RoutineReference, Routine, CreateRoutineOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateRoutineAsync_Google_Apis_Bigquery_v2_Data_RoutineReference_Google_Apis_Bigquery_v2_Data_Routine_Google_Cloud_BigQuery_V2_CreateRoutineOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `routineId` | `https://learn.microsoft.com/dotnet/api/system.string` The routine ID. Must not be null. |
| `routine` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html` The routine resource representation to use for the creation. Must not be null. If this table's [RoutineReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html#Google_Apis_Bigquery_v2_Data_Routine_RoutineReference) is specified, then it must be the same as the one obtained from the other parameters. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateRoutineOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryRoutine` | A task representing the asynchronous operation. When complete, the result is the newly created routine. |

### CreateTable(string, Table, CreateTableOptions)

    public BigQueryTable CreateTable(string tableId, Table table, CreateTableOptions options = null)

Creates a table within this dataset.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [CreateTable(TableReference, Table, CreateTableOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateTable_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_Table_Google_Cloud_BigQuery_V2_CreateTableOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `table` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html` The table resource representation to use for the creation. Must not be null. If this table's [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html#Google_Apis_Bigquery_v2_Data_Table_TableReference) is specified, then it must be the same as the one obtained from the other parameters. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateTableOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable` | The newly created table. |

**Example**

See [BigQueryClient.CreateTable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateTable_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_CreateTableOptions_) for an example using BigQueryClient.

### CreateTable(string, TableSchema, CreateTableOptions)

    public BigQueryTable CreateTable(string tableId, TableSchema schema, CreateTableOptions options = null)

Creates a table within this dataset.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [CreateTable(TableReference, TableSchema, CreateTableOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateTable_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_CreateTableOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `schema` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableSchema.html` The schema for the new table. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateTableOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable` | The newly created table. |

**Example**

See [BigQueryClient.CreateTable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateTable_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_CreateTableOptions_) for an example using BigQueryClient.

### CreateTableAsync(string, Table, CreateTableOptions, CancellationToken)

    public Task<BigQueryTable> CreateTableAsync(string tableId, Table table, CreateTableOptions options = null, CancellationToken cancellationToken = default)

Asynchronously creates a table within this dataset.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [CreateTableAsync(TableReference, Table, CreateTableOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateTableAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_Table_Google_Cloud_BigQuery_V2_CreateTableOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `table` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html` The table resource representation to use for the creation. Must not be null. If this table's [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html#Google_Apis_Bigquery_v2_Data_Table_TableReference) is specified, then it must be the same as the one obtained from the other parameters. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateTableOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable` | A task representing the asynchronous operation. When complete, the result is the newly created table. |

**Example**

See [BigQueryClient.CreateTableAsync](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateTableAsync_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_CreateTableOptions_System_Threading_CancellationToken_) for an example using BigQueryClient.

### CreateTableAsync(string, TableSchema, CreateTableOptions, CancellationToken)

    public Task<BigQueryTable> CreateTableAsync(string tableId, TableSchema schema, CreateTableOptions options = null, CancellationToken cancellationToken = default)

Asynchronously creates a table within this dataset.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [CreateTableAsync(TableReference, TableSchema, CreateTableOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateTableAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_CreateTableOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `schema` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableSchema.html` The schema for the new table. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateTableOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable` | A task representing the asynchronous operation. When complete, the result is the newly created table. |

**Example**

See [BigQueryClient.CreateTableAsync](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateTableAsync_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_CreateTableOptions_System_Threading_CancellationToken_) for an example using BigQueryClient.

### Delete(DeleteDatasetOptions)

    public void Delete(DeleteDatasetOptions options = null)

Deletes this dataset.
This method just creates a [DatasetReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.DatasetReference.html) and delegates to [DeleteDataset(DatasetReference, DeleteDatasetOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_DeleteDataset_Google_Apis_Bigquery_v2_Data_DatasetReference_Google_Cloud_BigQuery_V2_DeleteDatasetOptions_).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.DeleteDatasetOptions` The options for the operation. May be null, in which case defaults will be supplied. |

**Example**

See [BigQueryClient.Delete](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_DeleteDataset_System_String_Google_Cloud_BigQuery_V2_DeleteDatasetOptions_) for an example using BigQueryClient.

### DeleteAsync(DeleteDatasetOptions, CancellationToken)

    public Task DeleteAsync(DeleteDatasetOptions options = null, CancellationToken cancellationToken = default)

Deletes this dataset.
This method just creates a [DatasetReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.DatasetReference.html) and delegates to [DeleteDatasetAsync(DatasetReference, DeleteDatasetOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_DeleteDatasetAsync_Google_Apis_Bigquery_v2_Data_DatasetReference_Google_Cloud_BigQuery_V2_DeleteDatasetOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.DeleteDatasetOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous operation. |

**Example**

See [BigQueryClient.DeleteDatasetAsync](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_DeleteDatasetAsync_System_String_Google_Cloud_BigQuery_V2_DeleteDatasetOptions_System_Threading_CancellationToken_) for an example using BigQueryClient.

### GetModel(string, GetModelOptions)

    public BigQueryModel GetModel(string modelId, GetModelOptions options = null)

Retrieves a model within this dataset.
This method just creates a [ModelReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.ModelReference.html) and delegates to [GetModel(ModelReference, GetModelOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetModel_Google_Apis_Bigquery_v2_Data_ModelReference_Google_Cloud_BigQuery_V2_GetModelOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `modelId` | `https://learn.microsoft.com/dotnet/api/system.string` The model ID. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetModelOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryModel` | The requested model. |

### GetModelAsync(string, GetModelOptions, CancellationToken)

    public Task<BigQueryModel> GetModelAsync(string modelId, GetModelOptions options = null, CancellationToken cancellationToken = default)

Asynchronously retrieves a model within this dataset.
This method just creates a [ModelReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.ModelReference.html) and delegates to [GetModel(ModelReference, GetModelOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetModel_Google_Apis_Bigquery_v2_Data_ModelReference_Google_Cloud_BigQuery_V2_GetModelOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `modelId` | `https://learn.microsoft.com/dotnet/api/system.string` The model ID. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetModelOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryModel` | A task representing the asynchronous operation. When complete, the result is the requested table. |

### GetModelReference(string)

    public ModelReference GetModelReference(string modelId)

Creates a [ModelReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.ModelReference.html) for a model within this dataset.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `modelId` | `https://learn.microsoft.com/dotnet/api/system.string` The model ID. Must not be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.ModelReference.html` | A [ModelReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.ModelReference.html) representing the requested model. |

### GetOrCreateRoutine(string, Routine, GetRoutineOptions, CreateRoutineOptions)

    public BigQueryRoutine GetOrCreateRoutine(string routineId, Routine routine, GetRoutineOptions getOptions = null, CreateRoutineOptions createOptions = null)

Attempts to fetch the specified routine within this dataset, creating it if it doesn't exist.
This method just creates a [RoutineReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.RoutineReference.html) and delegates to [GetOrCreateRoutine(RoutineReference, Routine, GetRoutineOptions, CreateRoutineOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetOrCreateRoutine_Google_Apis_Bigquery_v2_Data_RoutineReference_Google_Apis_Bigquery_v2_Data_Routine_Google_Cloud_BigQuery_V2_GetRoutineOptions_Google_Cloud_BigQuery_V2_CreateRoutineOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `routineId` | `https://learn.microsoft.com/dotnet/api/system.string` The routine ID. Must not be null. |
| `routine` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html` The routine resource representation to use for the creation. Must not be null. If this table's [RoutineReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html#Google_Apis_Bigquery_v2_Data_Routine_RoutineReference) is specified, then it must be the same as the one obtained from the other parameters. |
| `getOptions` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetRoutineOptions` The options for the "get" operation. May be null, in which case defaults will be supplied. |
| `createOptions` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateRoutineOptions` The options for the "create" operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryRoutine` | The existing or new routine. |

### GetOrCreateRoutineAsync(string, Routine, GetRoutineOptions, CreateRoutineOptions, CancellationToken)

    public Task<BigQueryRoutine> GetOrCreateRoutineAsync(string routineId, Routine routine, GetRoutineOptions getOptions = null, CreateRoutineOptions createOptions = null, CancellationToken cancellationToken = default)

Attempts to fetch the specified routine within this dataset, creating it if it doesn't exist.
This method just creates a [RoutineReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.RoutineReference.html) and delegates to
[GetOrCreateRoutineAsync(RoutineReference, Routine, GetRoutineOptions, CreateRoutineOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetOrCreateRoutineAsync_Google_Apis_Bigquery_v2_Data_RoutineReference_Google_Apis_Bigquery_v2_Data_Routine_Google_Cloud_BigQuery_V2_GetRoutineOptions_Google_Cloud_BigQuery_V2_CreateRoutineOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `routineId` | `https://learn.microsoft.com/dotnet/api/system.string` The routine ID. Must not be null. |
| `routine` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html` The routine resource representation to use for the creation. Must not be null. If this routine's [RoutineReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html#Google_Apis_Bigquery_v2_Data_Routine_RoutineReference) is specified, then it must be the same as the one obtained from the other parameters. |
| `getOptions` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetRoutineOptions` The options for the "get" operation. May be null, in which case defaults will be supplied. |
| `createOptions` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateRoutineOptions` The options for the "create" operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryRoutine` | A task representing the asynchronous operation. When complete, the result is the existing or new routine. |

### GetOrCreateTable(string, Table, GetTableOptions, CreateTableOptions)

    public BigQueryTable GetOrCreateTable(string tableId, Table table, GetTableOptions getOptions = null, CreateTableOptions createOptions = null)

Attempts to fetch the specified table within this dataset, creating it if it doesn't exist.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [GetOrCreateTable(TableReference, Table, GetTableOptions, CreateTableOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetOrCreateTable_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_Table_Google_Cloud_BigQuery_V2_GetTableOptions_Google_Cloud_BigQuery_V2_CreateTableOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `table` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html` The table resource representation to use for the creation. Must not be null. If this table's [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html#Google_Apis_Bigquery_v2_Data_Table_TableReference) is specified, then it must be the same as the one obtained from the other parameters. |
| `getOptions` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetTableOptions` The options for the "get" operation. May be null, in which case defaults will be supplied. |
| `createOptions` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateTableOptions` The options for the "create" operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable` | The existing or new table. |

**Example**

See [BigQueryClient.GetOrCreateTable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetOrCreateTable_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_GetTableOptions_Google_Cloud_BigQuery_V2_CreateTableOptions_) for an example using BigQueryClient.

### GetOrCreateTable(string, TableSchema, GetTableOptions, CreateTableOptions)

    public BigQueryTable GetOrCreateTable(string tableId, TableSchema schema, GetTableOptions getOptions = null, CreateTableOptions createOptions = null)

Attempts to fetch the specified table within this dataset, creating it if it doesn't exist.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [GetOrCreateTable(TableReference, TableSchema, GetTableOptions, CreateTableOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetOrCreateTable_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_GetTableOptions_Google_Cloud_BigQuery_V2_CreateTableOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `schema` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableSchema.html` The schema for the new table. Must not be null. |
| `getOptions` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetTableOptions` The options for the "get" operation. May be null, in which case defaults will be supplied. |
| `createOptions` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateTableOptions` The options for the "create" operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable` | The existing or new table. |

**Example**

See [BigQueryClient.GetOrCreateTable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetOrCreateTable_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_GetTableOptions_Google_Cloud_BigQuery_V2_CreateTableOptions_) for an example using BigQueryClient.

### GetOrCreateTableAsync(string, Table, GetTableOptions, CreateTableOptions, CancellationToken)

    public Task<BigQueryTable> GetOrCreateTableAsync(string tableId, Table table, GetTableOptions getOptions = null, CreateTableOptions createOptions = null, CancellationToken cancellationToken = default)

Attempts to fetch the specified table within this dataset, creating it if it doesn't exist.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [GetOrCreateTableAsync(TableReference, Table, GetTableOptions, CreateTableOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetOrCreateTableAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_Table_Google_Cloud_BigQuery_V2_GetTableOptions_Google_Cloud_BigQuery_V2_CreateTableOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `table` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html` The table resource representation to use for the creation. Must not be null. If this table's [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html#Google_Apis_Bigquery_v2_Data_Table_TableReference) is specified, then it must be the same as the one obtained from the other parameters. |
| `getOptions` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetTableOptions` The options for the "get" operation. May be null, in which case defaults will be supplied. |
| `createOptions` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateTableOptions` The options for the "create" operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable` | A task representing the asynchronous operation. When complete, the result is the existing or new table. |

**Example**

See [BigQueryClient.GetOrCreateTable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetOrCreateTable_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_GetTableOptions_Google_Cloud_BigQuery_V2_CreateTableOptions_) for an example using BigQueryClient.

### GetOrCreateTableAsync(string, TableSchema, GetTableOptions, CreateTableOptions, CancellationToken)

    public Task<BigQueryTable> GetOrCreateTableAsync(string tableId, TableSchema schema, GetTableOptions getOptions = null, CreateTableOptions createOptions = null, CancellationToken cancellationToken = default)

Attempts to fetch the specified table within this dataset, creating it if it doesn't exist.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [GetOrCreateTableAsync(TableReference, TableSchema, GetTableOptions, CreateTableOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetOrCreateTableAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_GetTableOptions_Google_Cloud_BigQuery_V2_CreateTableOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `schema` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableSchema.html` The schema for the new table. Must not be null. |
| `getOptions` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetTableOptions` The options for the "get" operation. May be null, in which case defaults will be supplied. |
| `createOptions` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateTableOptions` The options for the "create" operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable` | A task representing the asynchronous operation. When complete, the result is the existing or new table. |

**Example**

See [BigQueryClient.GetOrCreateTable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetOrCreateTable_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_GetTableOptions_Google_Cloud_BigQuery_V2_CreateTableOptions_) for an example using BigQueryClient.

### GetRoutine(string, GetRoutineOptions)

    public BigQueryRoutine GetRoutine(string routineId, GetRoutineOptions options = null)

Retrieves a routine within this dataset.
This method just creates a [RoutineReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.RoutineReference.html) and delegates to [GetRoutine(RoutineReference, GetRoutineOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetRoutine_Google_Apis_Bigquery_v2_Data_RoutineReference_Google_Cloud_BigQuery_V2_GetRoutineOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `routineId` | `https://learn.microsoft.com/dotnet/api/system.string` The routine ID. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetRoutineOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryRoutine` | The requested routine. |

### GetRoutineAsync(string, GetRoutineOptions, CancellationToken)

    public Task<BigQueryRoutine> GetRoutineAsync(string routineId, GetRoutineOptions options = null, CancellationToken cancellationToken = default)

Asynchronously retrieves a routine within this dataset.
This method just creates a [RoutineReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.RoutineReference.html) and delegates to [GetRoutineAsync(RoutineReference, GetRoutineOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetRoutineAsync_Google_Apis_Bigquery_v2_Data_RoutineReference_Google_Cloud_BigQuery_V2_GetRoutineOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `routineId` | `https://learn.microsoft.com/dotnet/api/system.string` The routine ID. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetRoutineOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryRoutine` | A task representing the asynchronous operation. When complete, the result is the requested table. |

### GetRoutineReference(string)

    public RoutineReference GetRoutineReference(string routineId)

Creates a [RoutineReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.RoutineReference.html) for a routine within this dataset.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `routineId` | `https://learn.microsoft.com/dotnet/api/system.string` The routine ID. Must not be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.RoutineReference.html` | A [RoutineReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.RoutineReference.html) representing the requested routine. |

### GetTable(string, GetTableOptions)

    public BigQueryTable GetTable(string tableId, GetTableOptions options = null)

Retrieves a table within this dataset.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [GetTable(TableReference, GetTableOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetTable_Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_GetTableOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetTableOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable` | The requested table. |

**Example**

See [BigQueryClient.GetTable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetTable_System_String_System_String_Google_Cloud_BigQuery_V2_GetTableOptions_) for an example using BigQueryClient.

### GetTableAsync(string, GetTableOptions, CancellationToken)

    public Task<BigQueryTable> GetTableAsync(string tableId, GetTableOptions options = null, CancellationToken cancellationToken = default)

Asynchronously retrieves a table within this dataset.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [GetTableAsync(TableReference, GetTableOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetTableAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_GetTableOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetTableOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable` | A task representing the asynchronous operation. When complete, the result is the requested table. |

**Example**

See [BigQueryClient.GetTable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetTable_System_String_System_String_Google_Cloud_BigQuery_V2_GetTableOptions_) for an example using BigQueryClient.

### GetTableReference(string)

    public TableReference GetTableReference(string tableId)

Creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) for a table within this dataset.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html` | A [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) representing the requested table. |

**Example**

    BigQueryClient client = BigQueryClient.Create(projectId);
    BigQueryDataset dataset = client.GetDataset(datasetId);
    TableReference reference = dataset.GetTableReference("table");
    Console.WriteLine(reference);

### ListModels(ListModelsOptions)

    public PagedEnumerable<ListModelsResponse, BigQueryModel> ListModels(ListModelsOptions options = null)

Lists the models within this dataset.
This method just creates a [DatasetReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.DatasetReference.html) and delegates to [ListModels(DatasetReference, ListModelsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_ListModels_Google_Apis_Bigquery_v2_Data_DatasetReference_Google_Cloud_BigQuery_V2_ListModelsOptions_).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.ListModelsOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.ListModelsResponse.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryModel` | A sequence of models within this dataset. |

### ListModelsAsync(ListModelsOptions)

    public PagedAsyncEnumerable<ListModelsResponse, BigQueryModel> ListModelsAsync(ListModelsOptions options = null)

Asynchronously lists the models within this dataset.
This method just creates a [DatasetReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.DatasetReference.html) and delegates to [ListModelsAsync(DatasetReference, ListModelsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_ListModelsAsync_Google_Apis_Bigquery_v2_Data_DatasetReference_Google_Cloud_BigQuery_V2_ListModelsOptions_).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.ListModelsOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.ListModelsResponse.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryModel` | An asynchronous sequence of models within this dataset. |

### ListRoutines(ListRoutinesOptions)

    public PagedEnumerable<ListRoutinesResponse, BigQueryRoutine> ListRoutines(ListRoutinesOptions options = null)

Lists the routines within this dataset.
This method just creates a [DatasetReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.DatasetReference.html) and delegates to [ListRoutines(DatasetReference, ListRoutinesOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_ListRoutines_Google_Apis_Bigquery_v2_Data_DatasetReference_Google_Cloud_BigQuery_V2_ListRoutinesOptions_).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.ListRoutinesOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.ListRoutinesResponse.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryRoutine` | A sequence of routines within this dataset. |

### ListRoutinesAsync(ListRoutinesOptions)

    public PagedAsyncEnumerable<ListRoutinesResponse, BigQueryRoutine> ListRoutinesAsync(ListRoutinesOptions options = null)

Asynchronously lists the routines within this dataset.
This method just creates a [DatasetReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.DatasetReference.html) and delegates to [ListRoutinesAsync(DatasetReference, ListRoutinesOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_ListRoutinesAsync_Google_Apis_Bigquery_v2_Data_DatasetReference_Google_Cloud_BigQuery_V2_ListRoutinesOptions_).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.ListRoutinesOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.ListRoutinesResponse.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryRoutine` | An asynchronous sequence of routines within this dataset. |

### ListTables(ListTablesOptions)

    public PagedEnumerable<TableList, BigQueryTable> ListTables(ListTablesOptions options = null)

Lists the tables within this dataset.
This method just creates a [DatasetReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.DatasetReference.html) and delegates to [ListTables(DatasetReference, ListTablesOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_ListTables_Google_Apis_Bigquery_v2_Data_DatasetReference_Google_Cloud_BigQuery_V2_ListTablesOptions_).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.ListTablesOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableList.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable` | A sequence of tables within this dataset. |

**Example**

See [BigQueryClient.ListTables](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_ListTables_System_String_Google_Cloud_BigQuery_V2_ListTablesOptions_) for an example using BigQueryClient.

### ListTablesAsync(ListTablesOptions)

    public PagedAsyncEnumerable<TableList, BigQueryTable> ListTablesAsync(ListTablesOptions options = null)

Asynchronously lists the tables within this dataset.
This method just creates a [DatasetReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.DatasetReference.html) and delegates to [ListTablesAsync(DatasetReference, ListTablesOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_ListTablesAsync_Google_Apis_Bigquery_v2_Data_DatasetReference_Google_Cloud_BigQuery_V2_ListTablesOptions_).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.ListTablesOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableList.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable` | An asynchronous sequence of tables within this dataset. |

**Example**

See [BigQueryClient.ListTablesAsync](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_ListTablesAsync_System_String_Google_Cloud_BigQuery_V2_ListTablesOptions_) for an example using BigQueryClient.

### Patch(Dataset, bool, PatchDatasetOptions)

    public BigQueryDataset Patch(Dataset resource, bool matchETag, PatchDatasetOptions options = null)

Patches this dataset with fields in the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `Google.Apis.Bigquery.v2.Data.Dataset` The resource to patch with. Must not be null. |
| `matchETag` | `https://learn.microsoft.com/dotnet/api/system.boolean` If true, the etag from [Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset#Google_Cloud_BigQuery_V2_BigQueryDataset_Resource) is propagated into `resource` for optimistic concurrency. Otherwise, `resource` is left unchanged. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.PatchDatasetOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset` | The updated dataset. |

**Remarks** This method delegates to [PatchDataset(DatasetReference, Dataset, PatchDatasetOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_PatchDataset_Google_Apis_Bigquery_v2_Data_DatasetReference_Google_Apis_Bigquery_v2_Data_Dataset_Google_Cloud_BigQuery_V2_PatchDatasetOptions_).
**Example**

    BigQueryClient client = BigQueryClient.Create(projectId);
    BigQueryDataset dataset = client.GetDataset(datasetId);

    // There's no ETag in this Dataset. The matchETag parameter in the method call
    // determines whether the ETag in the original resource is propagated into the
    // patch.
    Dataset patch = new Dataset
    {
        FriendlyName = "Patched dataset"
    };
    BigQueryDataset updated = dataset.Patch(patch, matchETag: true);

    Console.WriteLine($"Patched dataset friendly name: {updated.Resource.FriendlyName}");

### PatchAsync(Dataset, bool, PatchDatasetOptions, CancellationToken)

    public Task<BigQueryDataset> PatchAsync(Dataset resource, bool matchETag, PatchDatasetOptions options = null, CancellationToken cancellationToken = default)

Asynchronously patches this dataset with fields in the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `Google.Apis.Bigquery.v2.Data.Dataset` The resource to patch with. Must not be null. |
| `matchETag` | `https://learn.microsoft.com/dotnet/api/system.boolean` If true, the etag from [Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset#Google_Cloud_BigQuery_V2_BigQueryDataset_Resource) is propagated into `resource` for optimistic concurrency. Otherwise, `resource` is left unchanged. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.PatchDatasetOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset` | A task representing the asynchronous operation. When complete, the result is the updated dataset. |

**Remarks** This method delegates to [PatchDatasetAsync(DatasetReference, Dataset, PatchDatasetOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_PatchDatasetAsync_Google_Apis_Bigquery_v2_Data_DatasetReference_Google_Apis_Bigquery_v2_Data_Dataset_Google_Cloud_BigQuery_V2_PatchDatasetOptions_System_Threading_CancellationToken_).
**Example**

See [Patch](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset#Google_Cloud_BigQuery_V2_BigQueryDataset_Patch_Google_Apis_Bigquery_v2_Data_Dataset_System_Boolean_Google_Cloud_BigQuery_V2_PatchDatasetOptions_) for a synchronous example.

### Update(Dataset, UpdateDatasetOptions)

    public BigQueryDataset Update(Dataset resource = null, UpdateDatasetOptions options = null)

Updates this dataset to match the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `Google.Apis.Bigquery.v2.Data.Dataset` The resource to update with. If null, the [Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset#Google_Cloud_BigQuery_V2_BigQueryDataset_Resource) property is used. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UpdateDatasetOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset` | The updated dataset. |

**Remarks** This method delegates to [UpdateDataset(DatasetReference, Dataset, UpdateDatasetOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UpdateDataset_Google_Apis_Bigquery_v2_Data_DatasetReference_Google_Apis_Bigquery_v2_Data_Dataset_Google_Cloud_BigQuery_V2_UpdateDatasetOptions_).
A simple way of updating the dataset is to modify [Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset#Google_Cloud_BigQuery_V2_BigQueryDataset_Resource) and then call this method with no arguments.
This is convenient, but it's important to understand that modifying [Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset#Google_Cloud_BigQuery_V2_BigQueryDataset_Resource) in this way leaves this object
in an unusual state - it represents "the dataset as it was when fetched, but then modified locally". For example, the etag
will be the original etag, rather than the one associated with the updated dataset. To avoid this causing confusion,
we recommend only taking this approach if the object will not be used afterwards. Use the value returned by this method
as the new, self-consistent representation of the dataset.
**Example**

    BigQueryClient client = BigQueryClient.Create(projectId);
    BigQueryDataset dataset = client.GetDataset(datasetId);

    // This example modifies the in-memory resource in the BigQueryDataset,
    // and then applies that change in the server. Alternatively, pass a Dataset
    // into the Update method.
    dataset.Resource.FriendlyName = "Updated dataset";
    BigQueryDataset updated = dataset.Update();

    Console.WriteLine($"Updated dataset friendly name: {updated.Resource.FriendlyName}");

### UpdateAsync(Dataset, UpdateDatasetOptions, CancellationToken)

    public Task<BigQueryDataset> UpdateAsync(Dataset resource = null, UpdateDatasetOptions options = null, CancellationToken cancellationToken = default)

Asynchronously updates this dataset to match the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `Google.Apis.Bigquery.v2.Data.Dataset` The resource to update with. If null, the [Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset#Google_Cloud_BigQuery_V2_BigQueryDataset_Resource) property is used. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UpdateDatasetOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset` | A task representing the asynchronous operation. When complete, the result is the updated dataset. |

**Remarks** This method delegates to [UpdateDatasetAsync(DatasetReference, Dataset, UpdateDatasetOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UpdateDatasetAsync_Google_Apis_Bigquery_v2_Data_DatasetReference_Google_Apis_Bigquery_v2_Data_Dataset_Google_Cloud_BigQuery_V2_UpdateDatasetOptions_System_Threading_CancellationToken_).
A simple way of updating the dataset is to modify [Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset#Google_Cloud_BigQuery_V2_BigQueryDataset_Resource) and then call this method with no arguments.
This is convenient, but it's important to understand that modifying [Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset#Google_Cloud_BigQuery_V2_BigQueryDataset_Resource) in this way leaves this object
in an unusual state - it represents "the dataset as it was when fetched, but then modified locally". For example, the etag
will be the original etag, rather than the one associated with the updated dataset. To avoid this causing confusion,
we recommend only taking this approach if the object will not be used afterwards. Use the value returned by this method
as the new, self-consistent representation of the dataset.
**Example**

See [Update](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryDataset#Google_Cloud_BigQuery_V2_BigQueryDataset_Update_Google_Apis_Bigquery_v2_Data_Dataset_Google_Cloud_BigQuery_V2_UpdateDatasetOptions_) for a synchronous example.

### UploadAvro(string, TableSchema, Stream, UploadAvroOptions)

    public BigQueryJob UploadAvro(string tableId, TableSchema schema, Stream input, UploadAvroOptions options = null)

Uploads a stream of Avro data to a table.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [UploadAvro(TableReference, TableSchema, Stream, UploadAvroOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadAvro_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadAvroOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `schema` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableSchema.html` The schema of the data. May be null if the table already exists, in which case the table schema will be fetched and used. |
| `input` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream of input data. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UploadAvroOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryJob` | A data upload job. |

**Example**

See [BigQueryClient.UploadAvro](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadAvro_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadAvroOptions_) for an example using BigQueryClient.

### UploadAvroAsync(string, TableSchema, Stream, UploadAvroOptions, CancellationToken)

    public Task<BigQueryJob> UploadAvroAsync(string tableId, TableSchema schema, Stream input, UploadAvroOptions options = null, CancellationToken cancellationToken = default)

Asynchronously uploads a stream of Avro data to a table.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [UploadAvroAsync(TableReference, TableSchema, Stream, UploadAvroOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadAvroAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadAvroOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `schema` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableSchema.html` The schema of the data. May be null if the table already exists, in which case the table schema will be fetched and used. |
| `input` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream of input data. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UploadAvroOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryJob` | A task representing the asynchronous operation. When complete, the result is a data upload job. |

**Example**

See [BigQueryClient.UploadAvro](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadAvro_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadAvroOptions_) for an example using BigQueryClient.

### UploadCsv(string, TableSchema, Stream, UploadCsvOptions)

    public BigQueryJob UploadCsv(string tableId, TableSchema schema, Stream input, UploadCsvOptions options = null)

Uploads a stream of CSV data to a table.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [UploadCsv(TableReference, TableSchema, Stream, UploadCsvOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadCsv_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadCsvOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `schema` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableSchema.html` The schema of the data. May be null if the table already exists, in which case the table schema will be fetched and used. |
| `input` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream of input data. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UploadCsvOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryJob` | A data upload job. |

**Example**

See [BigQueryClient.UploadCsv](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadCsv_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadCsvOptions_) for an example using BigQueryClient.

### UploadCsvAsync(string, TableSchema, Stream, UploadCsvOptions, CancellationToken)

    public Task<BigQueryJob> UploadCsvAsync(string tableId, TableSchema schema, Stream input, UploadCsvOptions options = null, CancellationToken cancellationToken = default)

Asynchronously uploads a stream of CSV data to a table.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [UploadCsvAsync(TableReference, TableSchema, Stream, UploadCsvOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadCsvAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadCsvOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `schema` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableSchema.html` The schema of the data. May be null if the table already exists, in which case the table schema will be fetched and used. |
| `input` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream of input data. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UploadCsvOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryJob` | A task representing the asynchronous operation. When complete, the result is a data upload job. |

**Example**

See [BigQueryClient.UploadCsvAsync](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadCsvAsync_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadCsvOptions_System_Threading_CancellationToken_) for an example using BigQueryClient.

### UploadJson(string, TableSchema, IEnumerable\<string\>, UploadJsonOptions)

    public BigQueryJob UploadJson(string tableId, TableSchema schema, IEnumerable<string> rows, UploadJsonOptions options = null)

Uploads a stream of JSON data to a table.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [UploadJson(TableReference, TableSchema, IEnumerable\<string\>, UploadJsonOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadJson_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_System_Collections_Generic_IEnumerable_System_String__Google_Cloud_BigQuery_V2_UploadJsonOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `schema` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableSchema.html` The schema of the data. May be null if the table already exists, in which case the table schema will be fetched and used. |
| `rows` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The sequence of JSON strings to upload. Must not be null, and must not contain null elements. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UploadJsonOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryJob` | A data upload job. |

**Remarks** Each element of `rows` is converted into a single line of text by replacing carriage returns and line
feeds with spaces. This is safe as they cannot exist within well-formed JSON keys or values, and simply means that the
original JSON can be formatted however you choose.
**Example**

See [BigQueryClient.UploadJson](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadJson_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_System_Collections_Generic_IEnumerable_System_String__Google_Cloud_BigQuery_V2_UploadJsonOptions_) for an example using BigQueryClient.

### UploadJson(string, TableSchema, Stream, UploadJsonOptions)

    public BigQueryJob UploadJson(string tableId, TableSchema schema, Stream input, UploadJsonOptions options = null)

Uploads a stream of JSON data to a table.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [UploadJson(TableReference, TableSchema, Stream, UploadJsonOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadJson_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadJsonOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `schema` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableSchema.html` The schema of the data. May be null if the table already exists, in which case the table schema will be fetched and used. |
| `input` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream of input data. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UploadJsonOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryJob` | A data upload job. |

**Example**

See [BigQueryClient.UploadJson](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadJson_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadJsonOptions_) for an example using BigQueryClient.

### UploadJsonAsync(string, TableSchema, IEnumerable\<string\>, UploadJsonOptions, CancellationToken)

    public Task<BigQueryJob> UploadJsonAsync(string tableId, TableSchema schema, IEnumerable<string> rows, UploadJsonOptions options = null, CancellationToken cancellationToken = default)

Asynchronously uploads a stream of JSON data to a table.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [UploadJsonAsync(TableReference, TableSchema, IEnumerable\<string\>, UploadJsonOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadJsonAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_System_Collections_Generic_IEnumerable_System_String__Google_Cloud_BigQuery_V2_UploadJsonOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `schema` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableSchema.html` The schema of the data. May be null if the table already exists, in which case the table schema will be fetched and used. |
| `rows` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The sequence of JSON strings to upload. Must not be null, and must not contain null elements. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UploadJsonOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryJob` | A task representing the asynchronous operation. When complete, the result is a data upload job. |

**Remarks** Each element of `rows` is converted into a single line of text by replacing carriage returns and line
feeds with spaces. This is safe as they cannot exist within well-formed JSON keys or values, and simply means that the
original JSON can be formatted however you choose.
**Example**

See [BigQueryClient.UploadJsonAsync](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadJsonAsync_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_System_Collections_Generic_IEnumerable_System_String__Google_Cloud_BigQuery_V2_UploadJsonOptions_System_Threading_CancellationToken_) for an example using BigQueryClient.

### UploadJsonAsync(string, TableSchema, Stream, UploadJsonOptions, CancellationToken)

    public Task<BigQueryJob> UploadJsonAsync(string tableId, TableSchema schema, Stream input, UploadJsonOptions options = null, CancellationToken cancellationToken = default)

Asynchronously uploads a stream of JSON data to a table.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [UploadJsonAsync(TableReference, TableSchema, Stream, UploadJsonOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadJsonAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadJsonOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `schema` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableSchema.html` The schema of the data. May be null if the table already exists, in which case the table schema will be fetched and used. |
| `input` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream of input data. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UploadJsonOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryJob` | A task representing the asynchronous operation. When complete, the result is a data upload job. |

**Example**

See [BigQueryClient.UploadJsonAsync](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadJsonAsync_System_String_System_String_Google_Apis_Bigquery_v2_Data_TableSchema_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadJsonOptions_System_Threading_CancellationToken_) for an example using BigQueryClient.

### UploadOrc(string, Stream, UploadOrcOptions)

    public BigQueryJob UploadOrc(string tableId, Stream input, UploadOrcOptions options = null)

Uploads a stream of ORC data to a table.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [UploadOrc(TableReference, Stream, UploadOrcOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadOrc_Google_Apis_Bigquery_v2_Data_TableReference_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadOrcOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `input` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream of input data. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UploadOrcOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryJob` | A data upload job. |

**Example**

See [BigQueryClient.UploadOrc](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadOrc_System_String_System_String_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadOrcOptions_) for an example using BigQueryClient.

### UploadOrcAsync(string, Stream, UploadOrcOptions, CancellationToken)

    public Task<BigQueryJob> UploadOrcAsync(string tableId, Stream input, UploadOrcOptions options = null, CancellationToken cancellationToken = default)

Asynchronously uploads a stream of ORC data to a table.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [UploadOrcAsync(TableReference, Stream, UploadOrcOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadOrcAsync_Google_Apis_Bigquery_v2_Data_TableReference_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadOrcOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `input` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream of input data. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UploadOrcOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryJob` | A task representing the asynchronous operation. When complete, the result is a data upload job. |

**Example**

See [BigQueryClient.UploadOrc](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadOrc_System_String_System_String_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadOrcOptions_) for an example using BigQueryClient.

### UploadParquet(string, Stream, UploadParquetOptions)

    public BigQueryJob UploadParquet(string tableId, Stream input, UploadParquetOptions options = null)

Uploads a stream of Parquet data to a table.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [UploadParquet(TableReference, Stream, UploadParquetOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadParquet_Google_Apis_Bigquery_v2_Data_TableReference_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadParquetOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `input` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream of input data. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UploadParquetOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryJob` | A data upload job. |

**Example**

See [BigQueryClient.UploadParquet](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadParquet_System_String_System_String_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadParquetOptions_) for an example using BigQueryClient.

### UploadParquetAsync(string, Stream, UploadParquetOptions, CancellationToken)

    public Task<BigQueryJob> UploadParquetAsync(string tableId, Stream input, UploadParquetOptions options = null, CancellationToken cancellationToken = default)

Asynchronously uploads a stream of Parquet data to a table.
This method just creates a [TableReference](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html) and delegates to [UploadParquetAsync(TableReference, Stream, UploadParquetOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadParquetAsync_Google_Apis_Bigquery_v2_Data_TableReference_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadParquetOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tableId` | `https://learn.microsoft.com/dotnet/api/system.string` The table ID. Must not be null. |
| `input` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream of input data. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UploadParquetOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryJob` | A task representing the asynchronous operation. When complete, the result is a data upload job. |

**Example**

See [BigQueryClient.UploadParquet](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UploadParquet_System_String_System_String_System_IO_Stream_Google_Cloud_BigQuery_V2_UploadParquetOptions_) for an example using BigQueryClient.