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

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

Options for `CreateLoadJob` operations.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [JobCreationOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.JobCreationOptions) \> CreateLoadJobOptions

## Inherited Members

[JobCreationOptions.ProjectId](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.JobCreationOptions#Google_Cloud_BigQuery_V2_JobCreationOptions_ProjectId) [JobCreationOptions.JobIdPrefix](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.JobCreationOptions#Google_Cloud_BigQuery_V2_JobCreationOptions_JobIdPrefix) [JobCreationOptions.JobId](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.JobCreationOptions#Google_Cloud_BigQuery_V2_JobCreationOptions_JobId) [JobCreationOptions.JobLocation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.JobCreationOptions#Google_Cloud_BigQuery_V2_JobCreationOptions_JobLocation) [JobCreationOptions.Labels](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.JobCreationOptions#Google_Cloud_BigQuery_V2_JobCreationOptions_Labels) [JobCreationOptions.JobConfigurationModifier](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.JobCreationOptions#Google_Cloud_BigQuery_V2_JobCreationOptions_JobConfigurationModifier) [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

## Properties

### AllowJaggedRows

    public bool? AllowJaggedRows { get; set; }

Whether or not to accept rows missing trailing optional columns.
If not set, this is effectively false.

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

### AllowQuotedNewlines

    public bool? AllowQuotedNewlines { get; set; }

Indicates if quoted data sections can contain newline characters.
If not set, this is effectively false.

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

### Autodetect

    public bool? Autodetect { get; set; }

Specifies whether or not the options and schema for CSV and JSON sources
should automatically be inferred.

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

### ConfigurationModifier

    public Action<JobConfigurationLoad> ConfigurationModifier { get; set; }

Optional action to perform after preparing the request. If this property is non-null,
the [JobConfigurationLoad](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.JobConfigurationLoad.html) used for a request will be passed to the delegate
before the request is executed. This allows for fine-grained modifications which aren't
otherwise directly supported by the properties in this options type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.action-1https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.JobConfigurationLoad.html` |   |

**Remarks** Prefer the properties on this type over this modifier to prepare the request.
Only use this modifier to configure aspects for which there are no properties available.
This modifier is applied to the request after all properties on this type have been applied.
The delegate is only called once per operation, even if the request is automatically retried.

### CreateDisposition

    public CreateDisposition? CreateDisposition { get; set; }

Specifies whether the operation is allowed to create new tables.
If not set, this is effectively [CreateIfNeeded](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateDisposition#Google_Cloud_BigQuery_V2_CreateDisposition_CreateIfNeeded).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateDisposition` |   |

### DestinationEncryptionConfiguration

    public EncryptionConfiguration DestinationEncryptionConfiguration { get; set; }

The encryption configuration to apply to the destination table, if any.

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

### DestinationSchemaUpdateOptions

    public SchemaUpdateOption? DestinationSchemaUpdateOptions { get; set; }

Allows the schema of the destination table to be updated as a side effect
of the load job if a schema is autodetected or supplied in the job configuration.
Schema update options are supported in two cases:
when [WriteDisposition](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateLoadJobOptions#Google_Cloud_BigQuery_V2_CreateLoadJobOptions_WriteDisposition) is [WriteAppend](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.WriteDisposition#Google_Cloud_BigQuery_V2_WriteDisposition_WriteAppend);
when [WriteDisposition](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateLoadJobOptions#Google_Cloud_BigQuery_V2_CreateLoadJobOptions_WriteDisposition) is [WriteTruncate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.WriteDisposition#Google_Cloud_BigQuery_V2_WriteDisposition_WriteTruncate)
and the destination table is a partition of a table, specified by partition decorators.
[SchemaUpdateOption](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.SchemaUpdateOption) is marked with the [FlagsAttribute](https://learn.microsoft.com/dotnet/api/system.flagsattribute)
so several flags can be specified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.SchemaUpdateOption` |   |

### Encoding

    public string Encoding { get; set; }

The character encoding of the data. The default value is UTF-8. BigQuery decodes the data after the
raw, binary data has been split using the values of the [Quote](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateLoadJobOptions#Google_Cloud_BigQuery_V2_CreateLoadJobOptions_Quote) and [FieldDelimiter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateLoadJobOptions#Google_Cloud_BigQuery_V2_CreateLoadJobOptions_FieldDelimiter)
properties.
See <https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#JobConfigurationLoad.FIELDS.encoding> for more details.

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

### FieldDelimiter

    public string FieldDelimiter { get; set; }

The delimiter between fields in the data.
If not set, a comma (,) is used.

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

### IgnoreUnknownValues

    public bool? IgnoreUnknownValues { get; set; }

Whether or not to accept rows with extra values that are not represented in the table schema.
If not set, this is effectively false.

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

### MaxBadRecords

    public int? MaxBadRecords { get; set; }

The maximum number of bad records that are ignored before the overall job fails.
If not set, this is effectively 0.

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

### NullMarker

    public string NullMarker { get; set; }

Specifies a string that represents a null value in a CSV file. For example,
if you specify "\\N", BigQuery interprets "\\N" as a null value when loading
a CSV file. The default value is the empty string. If you set this property
to a custom value, BigQuery throws an error if an empty string is present for
all data types except for STRING and BYTE. For STRING and BYTE columns,
BigQuery interprets the empty string as an empty value.

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

### ProjectionFields

    public IList<string> ProjectionFields { get; set; }

If sourceFormat is set to [DatastoreBackup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.FileFormat#Google_Cloud_BigQuery_V2_FileFormat_DatastoreBackup), indicates which entity properties
to load into BigQuery from a Cloud Datastore backup. Property names are case
sensitive and must be top-level properties. If no properties are specified,
BigQuery loads all properties. If any named property isn't found in the Cloud
Datastore backup, an invalid error is returned in the job result.

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

### Quote

    public string Quote { get; set; }

The value used to quote data sections in a CSV file.
If not set, a double quote (") is used.

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

### SkipLeadingRows

    public int? SkipLeadingRows { get; set; }

The number of rows to skip, usually for headers.

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

### SourceFormat

    public FileFormat? SourceFormat { get; set; }

The format of the source files.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.FileFormat` |   |

### TimePartitioning

    public TimePartitioning TimePartitioning { get; set; }

The time partitioning to apply, if any. See [TimePartition](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.TimePartition) to create instances of [TimePartitioning](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.CreateLoadJobOptions#Google_Cloud_BigQuery_V2_CreateLoadJobOptions_TimePartitioning).

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

### UseAvroLogicalTypes

    public bool? UseAvroLogicalTypes { get; set; }

For Avro sources, this indicates whether to enable interpreting logical types
into their corresponding types (ie. TIMESTAMP), instead of only using their raw types
(ie. INTEGER). If unset, the server default will be used.

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

### WriteDisposition

    public WriteDisposition? WriteDisposition { get; set; }

Specifies the behavior if the destination table exists and is non-empty.
If not set, this is effectively [WriteAppend](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.WriteDisposition#Google_Cloud_BigQuery_V2_WriteDisposition_WriteAppend).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.WriteDisposition` |   |