# Google BigQuery v2 API - Class BigQueryTable (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 BigQueryTable : IFormattable

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

A table within a BigQuery dataset.

## Inheritance

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

## Implements

[IFormattable](https://learn.microsoft.com/dotnet/api/system.iformattable)

## Inherited Members

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

## 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 table-oriented operations.

## Constructors

### BigQueryTable(BigQueryClient, Table)

    public BigQueryTable(BigQueryClient client, Table resource)

Constructs a new table.

| **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 table. Must not be null. |
| `resource` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html` The REST-ful resource representing the table. 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 table in a string form of `project.dataset.table`.

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

### Reference

    public TableReference Reference { get; }

The fully-qualified identifier for the table, as an object which can be used for other operations
within this API.

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

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

### Resource

    public Table Resource { get; }

The underlying REST-ful resource for the table.

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

**Remarks** The data within the resource may be incomplete, depending on how it was obtained.
(ListTables operations return less data than GetTable operations.)

### Schema

    public TableSchema Schema { get; }

The schema of this table, if known. Schemas are not retrieved when listing the tables within a dataset,
so the value of this property can be `null`.

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

## Methods

### CreateCopyJob(TableReference, CreateCopyJobOptions)

    public BigQueryJob CreateCopyJob(TableReference destination, CreateCopyJobOptions options = null)

Creates a job to copy data from this table to another.
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 [CreateCopyJob(TableReference, TableReference, CreateCopyJobOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateCopyJob_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_CreateCopyJobOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `destination` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html` The destination table to copy to. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateCopyJobOptions` 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` | The job created for the copy operation. |

**Remarks** This method only allows one table (this one) to be used as the source table. To copy multiple tables to one destination table,
use [CreateCopyJob(IEnumerable\<TableReference\>, TableReference, CreateCopyJobOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateCopyJob_System_Collections_Generic_IEnumerable_Google_Apis_Bigquery_v2_Data_TableReference__Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_CreateCopyJobOptions_).
**Example**

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

### CreateCopyJobAsync(TableReference, CreateCopyJobOptions, CancellationToken)

    public Task<BigQueryJob> CreateCopyJobAsync(TableReference destination, CreateCopyJobOptions options = null, CancellationToken cancellationToken = default)

Asynchronously creates a job to copy data from this table to another.
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 [CreateCopyJobAsync(TableReference, TableReference, CreateCopyJobOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateCopyJobAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_CreateCopyJobOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `destination` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableReference.html` The destination table to copy to. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateCopyJobOptions` 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 the job created for the copy operation. |

**Remarks** This method only allows one table (this one) to be used as the source table. To copy multiple tables to one destination table,
use [CreateCopyJobAsync(IEnumerable\<TableReference\>, TableReference, CreateCopyJobOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateCopyJobAsync_System_Collections_Generic_IEnumerable_Google_Apis_Bigquery_v2_Data_TableReference__Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_CreateCopyJobOptions_System_Threading_CancellationToken_).
**Example**

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

### CreateExtractJob(IEnumerable\<string\>, CreateExtractJobOptions)

    public BigQueryJob CreateExtractJob(IEnumerable<string> destinationUris, CreateExtractJobOptions options = null)

Creates a job to extract data from this table to Google Cloud Storage.
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 [CreateExtractJob(TableReference, IEnumerable\<string\>, CreateExtractJobOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateExtractJob_Google_Apis_Bigquery_v2_Data_TableReference_System_Collections_Generic_IEnumerable_System_String__Google_Cloud_BigQuery_V2_CreateExtractJobOptions_).
See [the BigQuery documentation](https://cloud.google.com/bigquery/docs/exporting-data) for more information on extract jobs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `destinationUris` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The Google Cloud Storage URIs (possibly including a wildcard) to extract the data to. Must not be null or empty. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateExtractJobOptions` 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` | The job created for the extract operation. |

**Example**

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

### CreateExtractJob(string, CreateExtractJobOptions)

    public BigQueryJob CreateExtractJob(string destinationUri, CreateExtractJobOptions options = null)

Creates a job to extract data from this table to Google Cloud Storage.
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 [CreateExtractJob(TableReference, string, CreateExtractJobOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateExtractJob_Google_Apis_Bigquery_v2_Data_TableReference_System_String_Google_Cloud_BigQuery_V2_CreateExtractJobOptions_).
See [the BigQuery documentation](https://cloud.google.com/bigquery/docs/exporting-data) for more information on extract jobs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `destinationUri` | `https://learn.microsoft.com/dotnet/api/system.string` The Google Cloud Storage URI (possibly including a wildcard) to extract the data to. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateExtractJobOptions` 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` | The job created for the extract operation. |

**Example**

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

### CreateExtractJobAsync(IEnumerable\<string\>, CreateExtractJobOptions, CancellationToken)

    public Task<BigQueryJob> CreateExtractJobAsync(IEnumerable<string> destinationUris, CreateExtractJobOptions options = null, CancellationToken cancellationToken = default)

Asynchronously creates a job to extract data from this table to Google Cloud Storage.
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 [CreateExtractJobAsync(TableReference, IEnumerable\<string\>, CreateExtractJobOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateExtractJobAsync_Google_Apis_Bigquery_v2_Data_TableReference_System_Collections_Generic_IEnumerable_System_String__Google_Cloud_BigQuery_V2_CreateExtractJobOptions_System_Threading_CancellationToken_).
See [the BigQuery documentation](https://cloud.google.com/bigquery/docs/exporting-data) for more information on extract jobs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `destinationUris` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The Google Cloud Storage URIs (possibly including a wildcard) to extract the data to. Must not be null or empty. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateExtractJobOptions` 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 the job created for the extract operation. |

**Example**

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

### CreateExtractJobAsync(string, CreateExtractJobOptions, CancellationToken)

    public Task<BigQueryJob> CreateExtractJobAsync(string destinationUri, CreateExtractJobOptions options = null, CancellationToken cancellationToken = default)

Asynchronously creates a job to extract data from this table to Google Cloud Storage.
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 [CreateExtractJobAsync(TableReference, string, CreateExtractJobOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_CreateExtractJobAsync_Google_Apis_Bigquery_v2_Data_TableReference_System_String_Google_Cloud_BigQuery_V2_CreateExtractJobOptions_System_Threading_CancellationToken_).
See [the BigQuery documentation](https://cloud.google.com/bigquery/docs/exporting-data) for more information on extract jobs.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `destinationUri` | `https://learn.microsoft.com/dotnet/api/system.string` The Google Cloud Storage URI (possibly including a wildcard) to extract the data to. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateExtractJobOptions` 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 the job created for the extract operation. |

**Example**

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

### Delete(DeleteTableOptions)

    public void Delete(DeleteTableOptions options = null)

Deletes this 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 [DeleteTable(TableReference, DeleteTableOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_DeleteTable_Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_DeleteTableOptions_).

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

**Example**

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

### DeleteAsync(DeleteTableOptions, CancellationToken)

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

Asynchronously deletes this 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 [DeleteTableAsync(TableReference, DeleteTableOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_DeleteTableAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_DeleteTableOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.DeleteTableOptions` 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.DeleteTableAsync](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_DeleteTableAsync_System_String_System_String_Google_Cloud_BigQuery_V2_DeleteTableOptions_System_Threading_CancellationToken_) for an example using BigQueryClient.

### GetIamPolicy(GetTableIamPolicyOptions)

    public Policy GetIamPolicy(GetTableIamPolicyOptions options = null)

Gets the IAM policy applied to this table.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Policy.html` | The IAM policy. |

**Remarks** This method delegates to [GetTableIamPolicy(TableReference, GetTableIamPolicyOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetTableIamPolicy_Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_GetTableIamPolicyOptions_).

### GetIamPolicyAsync(GetTableIamPolicyOptions, CancellationToken)

    public Task<Policy> GetIamPolicyAsync(GetTableIamPolicyOptions options = null, CancellationToken cancellationToken = default)

Asynchronously gets the IAM policy applied to this table.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.GetTableIamPolicyOptions` 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://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Policy.html` | A task representing the asynchronous operation. When complete, the result is the IAM policy obtained. |

**Remarks** This method delegates to [GetTableIamPolicyAsync(TableReference, GetTableIamPolicyOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_GetTableIamPolicyAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_GetTableIamPolicyOptions_System_Threading_CancellationToken_).

### InsertRow(BigQueryInsertRow, InsertOptions)

    public BigQueryInsertResults InsertRow(BigQueryInsertRow row, InsertOptions options = null)

Inserts a single row of data into this 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 [InsertRow(TableReference, BigQueryInsertRow, InsertOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_InsertRow_Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_BigQueryInsertRow_Google_Cloud_BigQuery_V2_InsertOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `row` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryInsertRow` The data to insert. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.InsertOptions` 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.BigQueryInsertResults` | An insert result object which contains information on insert errors if any. |

**Example**

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

### InsertRowAsync(BigQueryInsertRow, InsertOptions, CancellationToken)

    public Task<BigQueryInsertResults> InsertRowAsync(BigQueryInsertRow row, InsertOptions options = null, CancellationToken cancellationToken = default)

Asynchronously inserts a single row of data into this 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 [InsertRowAsync(TableReference, BigQueryInsertRow, InsertOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_InsertRowAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_BigQueryInsertRow_Google_Cloud_BigQuery_V2_InsertOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `row` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryInsertRow` The data to insert. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.InsertOptions` 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.BigQueryInsertResults` | A task representing the asynchronous operation. When complete, the result is an insert result object which contains information on insert errors if any. |

**Example**

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

### InsertRows(params BigQueryInsertRow\[\])

    public BigQueryInsertResults InsertRows(params BigQueryInsertRow[] rows)

Inserts all the given rows of data into this 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 [InsertRows(TableReference, params BigQueryInsertRow\[\])](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_InsertRows_Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_BigQueryInsertRow___).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `rows` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryInsertRow` The rows to insert. Must not be null or contain null entries. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryInsertResults` | An insert result object which contains information on insert errors if any. |

**Example**

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

### InsertRows(IEnumerable\<BigQueryInsertRow\>, InsertOptions)

    public BigQueryInsertResults InsertRows(IEnumerable<BigQueryInsertRow> rows, InsertOptions options = null)

Inserts all the given rows of data into this 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 [InsertRows(TableReference, IEnumerable\<BigQueryInsertRow\>, InsertOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_InsertRows_Google_Apis_Bigquery_v2_Data_TableReference_System_Collections_Generic_IEnumerable_Google_Cloud_BigQuery_V2_BigQueryInsertRow__Google_Cloud_BigQuery_V2_InsertOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `rows` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryInsertRow` The rows to insert. Must not be null or contain null entries. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.InsertOptions` 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.BigQueryInsertResults` | An insert result object which contains information on insert errors if any. |

**Example**

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

### InsertRowsAsync(params BigQueryInsertRow\[\])

    public Task<BigQueryInsertResults> InsertRowsAsync(params BigQueryInsertRow[] rows)

Asynchronously inserts all the given rows of data into this 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 [InsertRowsAsync(TableReference, params BigQueryInsertRow\[\])](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_InsertRowsAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Cloud_BigQuery_V2_BigQueryInsertRow___).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `rows` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryInsertRow` The rows to insert. Must not be null or contain null entries. |

| **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.BigQueryInsertResults` | A task representing the asynchronous operation. When complete, the result is an insert result object which contains information on insert errors if any. |

**Example**

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

### InsertRowsAsync(IEnumerable\<BigQueryInsertRow\>, InsertOptions, CancellationToken)

    public Task<BigQueryInsertResults> InsertRowsAsync(IEnumerable<BigQueryInsertRow> rows, InsertOptions options = null, CancellationToken cancellationToken = default)

Asynchronously inserts all the given rows of data into this 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 [InsertRowsAsync(TableReference, IEnumerable\<BigQueryInsertRow\>, InsertOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_InsertRowsAsync_Google_Apis_Bigquery_v2_Data_TableReference_System_Collections_Generic_IEnumerable_Google_Cloud_BigQuery_V2_BigQueryInsertRow__Google_Cloud_BigQuery_V2_InsertOptions_System_Threading_CancellationToken_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `rows` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryInsertRow` The rows to insert. Must not be null or contain null entries. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.InsertOptions` 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.BigQueryInsertResults` | A task representing the asynchronous operation. When complete, the result is an insert result object which contains information on insert errors if any. |

**Example**

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

### ListRows(ListRowsOptions)

    public PagedEnumerable<TableDataList, BigQueryRow> ListRows(ListRowsOptions options = null)

Lists the rows within this table, similar to a `SELECT * FROM ...` query.
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 [ListRows(TableReference, TableSchema, ListRowsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_ListRows_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_ListRowsOptions_).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.ListRowsOptions` 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.TableDataList.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryRow` | The results of listing the rows within the table. |

**Example**

    BigQueryClient client = BigQueryClient.Create(projectId);
    BigQueryTable table = client.GetTable(datasetId, tableId);
    PagedEnumerable<TableDataList, BigQueryRow> result = table.ListRows();
    foreach (BigQueryRow row in result)
    {
        DateTime timestamp = (DateTime)row["game_started"];
        long level = (long)row["level"];
        long score = (long)row["score"];
        string player = (string)row["player"];
        Console.WriteLine($"{player}: {level}/{score} ({timestamp:yyyy-MM-dd HH:mm:ss})");
    }

### ListRowsAsync(ListRowsOptions)

    public PagedAsyncEnumerable<TableDataList, BigQueryRow> ListRowsAsync(ListRowsOptions options = null)

Asynchronously lists the rows within this table, similar to a `SELECT * FROM ...` query.
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 [ListRowsAsync(TableReference, TableSchema, ListRowsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_ListRowsAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_TableSchema_Google_Cloud_BigQuery_V2_ListRowsOptions_).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.ListRowsOptions` 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.TableDataList.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryRow` | An asynchronous sequence of the rows within the table. |

**Example**

    BigQueryClient client = BigQueryClient.Create(projectId);
    BigQueryTable table = client.GetTable(datasetId, tableId);
    PagedAsyncEnumerable<TableDataList, BigQueryRow> result = table.ListRowsAsync();
    await foreach (BigQueryRow row in result)
    {
        DateTime timestamp = (DateTime)row["game_started"];
        long level = (long)row["level"];
        long score = (long)row["score"];
        string player = (string)row["player"];
        Console.WriteLine($"{player}: {level}/{score} ({timestamp:yyyy-MM-dd HH:mm:ss})");
    }

### Patch(Table, bool, PatchTableOptions)

    public BigQueryTable Patch(Table resource, bool matchETag, PatchTableOptions options = null)

Patches this table with fields in the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html` 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.BigQueryTable#Google_Cloud_BigQuery_V2_BigQueryTable_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.PatchTableOptions` 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 updated table. |

**Remarks** This method delegates to [PatchTable(TableReference, Table, PatchTableOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_PatchTable_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_Table_Google_Cloud_BigQuery_V2_PatchTableOptions_).
**Example**

    BigQueryClient client = BigQueryClient.Create(projectId);
    BigQueryTable dataset = client.GetTable(datasetId, tableId);

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

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

### PatchAsync(Table, bool, PatchTableOptions, CancellationToken)

    public Task<BigQueryTable> PatchAsync(Table resource, bool matchETag, PatchTableOptions options = null, CancellationToken cancellationToken = default)

Asynchronously patches this table with fields in the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html` 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.BigQueryTable#Google_Cloud_BigQuery_V2_BigQueryTable_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.PatchTableOptions` 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 updated table. |

**Remarks** This method delegates to [PatchTableAsync(TableReference, Table, PatchTableOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_PatchTableAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_Table_Google_Cloud_BigQuery_V2_PatchTableOptions_System_Threading_CancellationToken_).
**Example**

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

### SetIamPolicy(Policy, SetTableIamPolicyOptions)

    public Policy SetIamPolicy(Policy policy, SetTableIamPolicyOptions options = null)

Applies the given IAM policy to this table. An update mask may be provided through `options`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `policy` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Policy.html` The policy to apply to this table. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.SetTableIamPolicyOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Policy.html` | The resulting IAM policy after appying `policy` to this table. |

**Remarks** This method delegates to [SetTableIamPolicy(TableReference, Policy, SetTableIamPolicyOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_SetTableIamPolicy_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_Policy_Google_Cloud_BigQuery_V2_SetTableIamPolicyOptions_).

### SetIamPolicyAsync(Policy, SetTableIamPolicyOptions, CancellationToken)

    public Task<Policy> SetIamPolicyAsync(Policy policy, SetTableIamPolicyOptions options = null, CancellationToken cancellationToken = default)

Asynchronously applies the given IAM policy to this table. An update mask may be provided through `options`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `policy` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Policy.html` The policy to apply to this table. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.SetTableIamPolicyOptions` 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://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Policy.html` | A task representing the asynchronous operation. When complete, the result is the resulting IAM policy after appying `policy` to this table. |

**Remarks** This method delegates to [SetTableIamPolicyAsync(TableReference, Policy, SetTableIamPolicyOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_SetTableIamPolicyAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_Policy_Google_Cloud_BigQuery_V2_SetTableIamPolicyOptions_System_Threading_CancellationToken_).

### TestIamPermissions(IList\<string\>, TestTableIamPermissionsOptions)

    public TestIamPermissionsResponse TestIamPermissions(IList<string> permissions, TestTableIamPermissionsOptions options = null)

Tests whether the caller has the given permissions for this table.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1https://learn.microsoft.com/dotnet/api/system.string` The table permissions to test for this caller. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.TestTableIamPermissionsOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TestIamPermissionsResponse.html` | A response object that contains a list of permissions which is the subset of `permissions` that the caller has on this table. |

**Remarks** This method delegates to [TestTableIamPermissions(TableReference, IList\<string\>, TestTableIamPermissionsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_TestTableIamPermissions_Google_Apis_Bigquery_v2_Data_TableReference_System_Collections_Generic_IList_System_String__Google_Cloud_BigQuery_V2_TestTableIamPermissionsOptions_).

### TestIamPermissionsAsync(IList\<string\>, TestTableIamPermissionsOptions, CancellationToken)

    public Task<TestIamPermissionsResponse> TestIamPermissionsAsync(IList<string> permissions, TestTableIamPermissionsOptions options = null, CancellationToken cancellationToken = default)

Asynchronously tests whether the caller has the given permissions for this table.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1https://learn.microsoft.com/dotnet/api/system.string` The table permissions to test for this caller. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.TestTableIamPermissionsOptions` 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://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TestIamPermissionsResponse.html` | A task representing the asynchronous operation. When complete, the result is a response object that contains a list of permissions which is the subset of `permissions` that the caller has on this table. |

**Remarks** This method delegates to [TestTableIamPermissionsAsync(TableReference, IList\<string\>, TestTableIamPermissionsOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_TestTableIamPermissionsAsync_Google_Apis_Bigquery_v2_Data_TableReference_System_Collections_Generic_IList_System_String__Google_Cloud_BigQuery_V2_TestTableIamPermissionsOptions_System_Threading_CancellationToken_).

### ToLegacySqlFormat()

    public string ToLegacySqlFormat()

Returns the fully-qualified ID of the table in Legacy SQL format. The Legacy SQL
format uses square brackets instead of backticks to surround the ID, and uses a colon
instead of a period between the project ID and the dataset ID.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` | The fully-qualified ID of the table in Legacy SQL format. |

### ToString()

    public override string ToString()

Returns the fully-qualified ID of the table in backticks.

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

**Overrides** [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring) **Remarks** <br />


This is designed to facilitate constructing queries by simply
including the table in the string.

### ToString(string, IFormatProvider)

    public string ToString(string format, IFormatProvider formatProvider)

Returns the fully-qualified ID of the table, in either the Standard SQL
or Legacy SQL format.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `format` | `https://learn.microsoft.com/dotnet/api/system.string` If this has a value of `"legacy"`, the Legacy SQL format is used; otherwise, the Standard SQL format is used. |
| `formatProvider` | `https://learn.microsoft.com/dotnet/api/system.iformatprovider` Ignored. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` | The formatted table name. |

**Remarks** <br />


This method allows the Legacy SQL format to be used simply within an
interpolated string.

### Update(Table, UpdateTableOptions)

    public BigQueryTable Update(Table resource = null, UpdateTableOptions options = null)

Updates this table to match the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html` 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.BigQueryTable#Google_Cloud_BigQuery_V2_BigQueryTable_Resource) property is used. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UpdateTableOptions` 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 updated table. |

**Remarks** This method delegates to [UpdateTable(TableReference, Table, UpdateTableOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UpdateTable_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_Table_Google_Cloud_BigQuery_V2_UpdateTableOptions_).
A simple way of updating the table is to modify [Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable#Google_Cloud_BigQuery_V2_BigQueryTable_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.BigQueryTable#Google_Cloud_BigQuery_V2_BigQueryTable_Resource) in this way leaves this object
in an unusual state - it represents "the table 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 table. 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 table.
**Example**

    BigQueryClient client = BigQueryClient.Create(projectId);
    BigQueryTable table = client.GetTable(datasetId, tableId);

    // 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.
    table.Resource.FriendlyName = "Updated table";
    BigQueryTable updated = table.Update();

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

### UpdateAsync(Table, UpdateTableOptions, CancellationToken)

    public Task<BigQueryTable> UpdateAsync(Table resource = null, UpdateTableOptions options = null, CancellationToken cancellationToken = default)

Asynchronously updates this table to match the specified resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Table.html` 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.BigQueryTable#Google_Cloud_BigQuery_V2_BigQueryTable_Resource) property is used. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.UpdateTableOptions` 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 updated table. |

**Remarks** This method delegates to [UpdateTableAsync(TableReference, Table, UpdateTableOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryClient#Google_Cloud_BigQuery_V2_BigQueryClient_UpdateTableAsync_Google_Apis_Bigquery_v2_Data_TableReference_Google_Apis_Bigquery_v2_Data_Table_Google_Cloud_BigQuery_V2_UpdateTableOptions_System_Threading_CancellationToken_).
A simple way of updating the table is to modify [Resource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryTable#Google_Cloud_BigQuery_V2_BigQueryTable_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.BigQueryTable#Google_Cloud_BigQuery_V2_BigQueryTable_Resource) in this way leaves this object
in an unusual state - it represents "the table 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 table. 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 table.
**Example**

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

### UploadAvro(Stream, UploadAvroOptions)

    public BigQueryJob UploadAvro(Stream input, UploadAvroOptions options = null)

Uploads a stream of Avro data to this 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** |
| `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(Stream, UploadAvroOptions, CancellationToken)

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

Asynchronously uploads a stream of Avro data to this 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** |
| `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(Stream, UploadCsvOptions)

    public BigQueryJob UploadCsv(Stream input, UploadCsvOptions options = null)

Uploads a stream of CSV data to this 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** |
| `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(Stream, UploadCsvOptions, CancellationToken)

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

Asynchronously uploads a stream of CSV data to this 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** |
| `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(IEnumerable\<string\>, UploadJsonOptions)

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

Uploads a sequence of JSON rows to this 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** |
| `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(Stream, UploadJsonOptions)

    public BigQueryJob UploadJson(Stream input, UploadJsonOptions options = null)

Uploads a stream of JSON data to this 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** |
| `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(IEnumerable\<string\>, UploadJsonOptions, CancellationToken)

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

Asynchronously uploads a stream of JSON data to this 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** |
| `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(Stream, UploadJsonOptions, CancellationToken)

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

Asynchronously uploads a sequence of JSON rows to this 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** |
| `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(Stream, UploadOrcOptions)

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

Uploads a stream of ORC data to this 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** |
| `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(Stream, UploadOrcOptions, CancellationToken)

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

Asynchronously uploads a stream of ORC data to this 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** |
| `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(Stream, UploadParquetOptions)

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

Uploads a stream of Parquet data to this 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** |
| `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(Stream, UploadParquetOptions, CancellationToken)

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

Asynchronously uploads a stream of Parquet data to this 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** |
| `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.