Skip to main content

JobConfigurationLoad

Struct JobConfigurationLoad 

Source
#[non_exhaustive]
pub struct JobConfigurationLoad {
Show 43 fields pub source_uris: Vec<String>, pub file_set_spec_type: FileSetSpecType, pub schema: Option<TableSchema>, pub destination_table: Option<TableReference>, pub destination_table_properties: Option<DestinationTableProperties>, pub create_disposition: String, pub write_disposition: String, pub null_marker: Option<StringValue>, pub field_delimiter: String, pub skip_leading_rows: Option<Int32Value>, pub encoding: String, pub quote: Option<StringValue>, pub max_bad_records: Option<Int32Value>, pub allow_quoted_newlines: Option<BoolValue>, pub source_format: String, pub allow_jagged_rows: Option<BoolValue>, pub ignore_unknown_values: Option<BoolValue>, pub projection_fields: Vec<String>, pub autodetect: Option<BoolValue>, pub schema_update_options: Vec<String>, pub time_partitioning: Option<TimePartitioning>, pub range_partitioning: Option<RangePartitioning>, pub clustering: Option<Clustering>, pub destination_encryption_configuration: Option<EncryptionConfiguration>, pub use_avro_logical_types: Option<BoolValue>, pub reference_file_schema_uri: Option<StringValue>, pub hive_partitioning_options: Option<HivePartitioningOptions>, pub decimal_target_types: Vec<DecimalTargetType>, pub json_extension: JsonExtension, pub parquet_options: Option<ParquetOptions>, pub preserve_ascii_control_characters: Option<BoolValue>, pub connection_properties: Vec<ConnectionProperty>, pub create_session: Option<BoolValue>, pub column_name_character_map: ColumnNameCharacterMap, pub copy_files_only: Option<BoolValue>, pub time_zone: Option<StringValue>, pub null_markers: Vec<String>, pub date_format: Option<String>, pub datetime_format: Option<String>, pub time_format: Option<String>, pub timestamp_format: Option<String>, pub source_column_match: SourceColumnMatch, pub timestamp_target_precision: Vec<i32>, /* private fields */
}
Expand description

JobConfigurationLoad contains the configuration properties for loading data into a destination table.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§source_uris: Vec<String>

[Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one ‘’ wildcard character and it must come after the ‘bucket’ name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups: Exactly one URI can be specified. Also, the ‘’ wildcard character is not allowed.

§file_set_spec_type: FileSetSpecType

Optional. Specifies how source URIs are interpreted for constructing the file set to load. By default, source URIs are expanded against the underlying storage. You can also specify manifest files to control how the file set is constructed. This option is only applicable to object storage systems.

§schema: Option<TableSchema>

Optional. The schema for the destination table. The schema can be omitted if the destination table already exists, or if you’re loading data from Google Cloud Datastore.

§destination_table: Option<TableReference>

[Required] The destination table to load the data into.

§destination_table_properties: Option<DestinationTableProperties>

Optional. [Experimental] Properties with which to create the destination table if it is new.

§create_disposition: String

Optional. Specifies whether the job is allowed to create new tables. The following values are supported:

  • CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table.
  • CREATE_NEVER: The table must already exist. If it does not, a ‘notFound’ error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.
§write_disposition: String

Optional. Specifies the action that occurs if the destination table already exists. The following values are supported:

  • WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints and uses the schema from the load job.
  • WRITE_TRUNCATE_DATA: If the table already exists, BigQuery overwrites the data, but keeps the constraints and schema of the existing table.
  • WRITE_APPEND: If the table already exists, BigQuery appends the data to the table.
  • WRITE_EMPTY: If the table already exists and contains data, a ‘duplicate’ error is returned in the job result.

The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.

§null_marker: Option<StringValue>

Optional. 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.

§field_delimiter: String

Optional. The separator character for fields in a CSV file. The separator is interpreted as a single byte. For files encoded in ISO-8859-1, any single character can be used as a separator. For files encoded in UTF-8, characters represented in decimal range 1-127 (U+0001-U+007F) can be used without any modification. UTF-8 characters encoded with multiple bytes (i.e. U+0080 and above) will have only the first byte used for separating fields. The remaining bytes will be treated as a part of the field. BigQuery also supports the escape sequence “\t” (U+0009) to specify a tab separator. The default value is comma (“,”, U+002C).

§skip_leading_rows: Option<Int32Value>

Optional. The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following:

  • skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row.
  • skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row.
  • skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
§encoding: String

Optional. The character encoding of the data. The supported values are UTF-8, ISO-8859-1, UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.

If you don’t specify an encoding, or if you specify a UTF-8 encoding when the CSV file is not UTF-8 encoded, BigQuery attempts to convert the data to UTF-8. Generally, your data loads successfully, but it may not match byte-for-byte what you expect. To avoid this, specify the correct encoding by using the --encoding flag.

If BigQuery can’t convert a character other than the ASCII 0 character, BigQuery converts the character to the standard Unicode replacement character: �.

§quote: Option<StringValue>

Optional. The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote (‘“’). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true. To include the specific quote character within a quoted value, precede it with an additional matching quote character. For example, if you want to escape the default character ’ “ ’, use ’ “” ’. @default “

§max_bad_records: Option<Int32Value>

Optional. The maximum number of bad records that BigQuery can ignore when running the job. If the number of bad records exceeds this value, an invalid error is returned in the job result. The default value is 0, which requires that all records are valid. This is only supported for CSV and NEWLINE_DELIMITED_JSON file formats.

§allow_quoted_newlines: Option<BoolValue>

Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.

§source_format: String

Optional. The format of the data files. For CSV files, specify “CSV”. For datastore backups, specify “DATASTORE_BACKUP”. For newline-delimited JSON, specify “NEWLINE_DELIMITED_JSON”. For Avro, specify “AVRO”. For parquet, specify “PARQUET”. For orc, specify “ORC”. The default value is CSV.

§allow_jagged_rows: Option<BoolValue>

Optional. Accept rows that are missing trailing optional columns. The missing values are treated as nulls. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. Only applicable to CSV, ignored for other formats.

§ignore_unknown_values: Option<BoolValue>

Optional. Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don’t match any column names in the table schema Avro, Parquet, ORC: Fields in the file schema that don’t exist in the table schema.

§projection_fields: Vec<String>

If sourceFormat is set to “DATASTORE_BACKUP”, 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.

§autodetect: Option<BoolValue>

Optional. Indicates if we should automatically infer the options and schema for CSV and JSON sources.

§schema_update_options: Vec<String>

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 three cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE_DATA; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified:

  • ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema.
  • ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable.
§time_partitioning: Option<TimePartitioning>

Time-based partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified.

§range_partitioning: Option<RangePartitioning>

Range partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified.

§clustering: Option<Clustering>

Clustering specification for the destination table.

§destination_encryption_configuration: Option<EncryptionConfiguration>

Custom encryption configuration (e.g., Cloud KMS keys)

§use_avro_logical_types: Option<BoolValue>

Optional. If sourceFormat is set to “AVRO”, indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).

§reference_file_schema_uri: Option<StringValue>

Optional. The user can provide a reference file with the reader schema. This file is only loaded if it is part of source URIs, but is not loaded otherwise. It is enabled for the following formats: AVRO, PARQUET, ORC.

§hive_partitioning_options: Option<HivePartitioningOptions>

Optional. When set, configures hive partitioning support. Not all storage formats support hive partitioning – requesting hive partitioning on an unsupported format will lead to an error, as will providing an invalid specification.

§decimal_target_types: Vec<DecimalTargetType>

Defines the list of possible SQL data types to which the source decimal values are converted. This list and the precision and the scale parameters of the decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified list and if it supports the precision and the scale. STRING supports all precision and scale values. If none of the listed types supports the precision and the scale, the type supporting the widest range in the specified list is picked, and if a value exceeds the supported range when reading the data, an error will be thrown.

Example: Suppose the value of this field is [“NUMERIC”, “BIGNUMERIC”]. If (precision,scale) is:

  • (38,9) -> NUMERIC;
  • (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits);
  • (38,10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits);
  • (76,38) -> BIGNUMERIC;
  • (77,38) -> BIGNUMERIC (error if value exceeds supported range).

This field cannot contain duplicate types. The order of the types in this field is ignored. For example, [“BIGNUMERIC”, “NUMERIC”] is the same as [“NUMERIC”, “BIGNUMERIC”] and NUMERIC always takes precedence over BIGNUMERIC.

Defaults to [“NUMERIC”, “STRING”] for ORC and [“NUMERIC”] for the other file formats.

§json_extension: JsonExtension

Optional. Load option to be used together with source_format newline-delimited JSON to indicate that a variant of JSON is being loaded. To load newline-delimited GeoJSON, specify GEOJSON (and source_format must be set to NEWLINE_DELIMITED_JSON).

§parquet_options: Option<ParquetOptions>

Optional. Additional properties to set if sourceFormat is set to PARQUET.

§preserve_ascii_control_characters: Option<BoolValue>

Optional. When sourceFormat is set to “CSV”, this indicates whether the embedded ASCII control characters (the first 32 characters in the ASCII-table, from ‘\x00’ to ‘\x1F’) are preserved.

§connection_properties: Vec<ConnectionProperty>

Optional. Connection properties which can modify the load job behavior. Currently, only the ‘session_id’ connection property is supported, and is used to resolve _SESSION appearing as the dataset id.

§create_session: Option<BoolValue>

Optional. If this property is true, the job creates a new session using a randomly generated session_id. To continue using a created session with subsequent queries, pass the existing session identifier as a ConnectionProperty value. The session identifier is returned as part of the SessionInfo message within the query statistics.

The new session’s location will be set to Job.JobReference.location if it is present, otherwise it’s set to the default location based on existing routing logic.

§column_name_character_map: ColumnNameCharacterMap

Optional. Character map supported for column names in CSV/Parquet loads. Defaults to STRICT and can be overridden by Project Config Service. Using this option with unsupporting load formats will result in an error.

§copy_files_only: Option<BoolValue>

Optional. [Experimental] Configures the load job to copy files directly to the destination BigLake managed table, bypassing file content reading and rewriting.

Copying files only is supported when all the following are true:

  • source_uris are located in the same Cloud Storage location as the destination table’s storage_uri location.
  • source_format is PARQUET.
  • destination_table is an existing BigLake managed table. The table’s schema does not have flexible column names. The table’s columns do not have type parameters other than precision and scale.
  • No options other than the above are specified.
§time_zone: Option<StringValue>

Optional. Default time zone that will apply when parsing timestamp values that have no specific time zone.

§null_markers: Vec<String>

Optional. A list of strings represented as SQL NULL value in a CSV file.

null_marker and null_markers can’t be set at the same time. If null_marker is set, null_markers has to be not set. If null_markers is set, null_marker has to be not set. If both null_marker and null_markers are set at the same time, a user error would be thrown. Any strings listed in null_markers, including empty string would be interpreted as SQL NULL. This applies to all column types.

§date_format: Option<String>

Optional. Date format used for parsing DATE values.

§datetime_format: Option<String>

Optional. Date format used for parsing DATETIME values.

§time_format: Option<String>

Optional. Date format used for parsing TIME values.

§timestamp_format: Option<String>

Optional. Date format used for parsing TIMESTAMP values.

§source_column_match: SourceColumnMatch

Optional. Controls the strategy used to match loaded columns to the schema. If not set, a sensible default is chosen based on how the schema is provided. If autodetect is used, then columns are matched by name. Otherwise, columns are matched by position. This is done to keep the behavior backward-compatible.

§timestamp_target_precision: Vec<i32>

Precisions (maximum number of total digits in base 10) for seconds of TIMESTAMP types that are allowed to the destination table for autodetection mode.

Available for the formats: CSV, PARQUET, AVRO, and Iceberg External Table.

Possible values include: Not Specified, [], or [6]: timestamp(6) for all auto detected TIMESTAMP columns [6, 12]: timestamp(6) for all auto detected TIMESTAMP columns that have less than 6 digits of subseconds. timestamp(12) for all auto detected TIMESTAMP columns that have more than 6 digits of subseconds. [12]: timestamp(12) for all auto detected TIMESTAMP columns.

The order of the elements in this array is ignored. Inputs that have higher precision than the highest target precision in this array will be truncated.

Implementations§

Source§

impl JobConfigurationLoad

Source

pub fn new() -> Self

Creates a new default instance.

Source

pub fn set_source_uris<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<String>,

Sets the value of source_uris.

§Example
let x = JobConfigurationLoad::new().set_source_uris(["a", "b", "c"]);
Source

pub fn set_file_set_spec_type<T: Into<FileSetSpecType>>(self, v: T) -> Self

Sets the value of file_set_spec_type.

§Example
use google_cloud_bigquery_v2::model::FileSetSpecType;
let x0 = JobConfigurationLoad::new().set_file_set_spec_type(FileSetSpecType::NewLineDelimitedManifest);
Source

pub fn set_schema<T>(self, v: T) -> Self
where T: Into<TableSchema>,

Sets the value of schema.

§Example
use google_cloud_bigquery_v2::model::TableSchema;
let x = JobConfigurationLoad::new().set_schema(TableSchema::default()/* use setters */);
Source

pub fn set_or_clear_schema<T>(self, v: Option<T>) -> Self
where T: Into<TableSchema>,

Sets or clears the value of schema.

§Example
use google_cloud_bigquery_v2::model::TableSchema;
let x = JobConfigurationLoad::new().set_or_clear_schema(Some(TableSchema::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_schema(None::<TableSchema>);
Source

pub fn set_destination_table<T>(self, v: T) -> Self
where T: Into<TableReference>,

Sets the value of destination_table.

§Example
use google_cloud_bigquery_v2::model::TableReference;
let x = JobConfigurationLoad::new().set_destination_table(TableReference::default()/* use setters */);
Source

pub fn set_or_clear_destination_table<T>(self, v: Option<T>) -> Self
where T: Into<TableReference>,

Sets or clears the value of destination_table.

§Example
use google_cloud_bigquery_v2::model::TableReference;
let x = JobConfigurationLoad::new().set_or_clear_destination_table(Some(TableReference::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_destination_table(None::<TableReference>);
Source

pub fn set_destination_table_properties<T>(self, v: T) -> Self

Sets the value of destination_table_properties.

§Example
use google_cloud_bigquery_v2::model::DestinationTableProperties;
let x = JobConfigurationLoad::new().set_destination_table_properties(DestinationTableProperties::default()/* use setters */);
Source

pub fn set_or_clear_destination_table_properties<T>(self, v: Option<T>) -> Self

Sets or clears the value of destination_table_properties.

§Example
use google_cloud_bigquery_v2::model::DestinationTableProperties;
let x = JobConfigurationLoad::new().set_or_clear_destination_table_properties(Some(DestinationTableProperties::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_destination_table_properties(None::<DestinationTableProperties>);
Source

pub fn set_create_disposition<T: Into<String>>(self, v: T) -> Self

Sets the value of create_disposition.

§Example
let x = JobConfigurationLoad::new().set_create_disposition("example");
Source

pub fn set_write_disposition<T: Into<String>>(self, v: T) -> Self

Sets the value of write_disposition.

§Example
let x = JobConfigurationLoad::new().set_write_disposition("example");
Source

pub fn set_null_marker<T>(self, v: T) -> Self
where T: Into<StringValue>,

Sets the value of null_marker.

§Example
use wkt::StringValue;
let x = JobConfigurationLoad::new().set_null_marker(StringValue::default()/* use setters */);
Source

pub fn set_or_clear_null_marker<T>(self, v: Option<T>) -> Self
where T: Into<StringValue>,

Sets or clears the value of null_marker.

§Example
use wkt::StringValue;
let x = JobConfigurationLoad::new().set_or_clear_null_marker(Some(StringValue::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_null_marker(None::<StringValue>);
Source

pub fn set_field_delimiter<T: Into<String>>(self, v: T) -> Self

Sets the value of field_delimiter.

§Example
let x = JobConfigurationLoad::new().set_field_delimiter("example");
Source

pub fn set_skip_leading_rows<T>(self, v: T) -> Self
where T: Into<Int32Value>,

Sets the value of skip_leading_rows.

§Example
use wkt::Int32Value;
let x = JobConfigurationLoad::new().set_skip_leading_rows(Int32Value::default()/* use setters */);
Source

pub fn set_or_clear_skip_leading_rows<T>(self, v: Option<T>) -> Self
where T: Into<Int32Value>,

Sets or clears the value of skip_leading_rows.

§Example
use wkt::Int32Value;
let x = JobConfigurationLoad::new().set_or_clear_skip_leading_rows(Some(Int32Value::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_skip_leading_rows(None::<Int32Value>);
Source

pub fn set_encoding<T: Into<String>>(self, v: T) -> Self

Sets the value of encoding.

§Example
let x = JobConfigurationLoad::new().set_encoding("example");
Source

pub fn set_quote<T>(self, v: T) -> Self
where T: Into<StringValue>,

Sets the value of quote.

§Example
use wkt::StringValue;
let x = JobConfigurationLoad::new().set_quote(StringValue::default()/* use setters */);
Source

pub fn set_or_clear_quote<T>(self, v: Option<T>) -> Self
where T: Into<StringValue>,

Sets or clears the value of quote.

§Example
use wkt::StringValue;
let x = JobConfigurationLoad::new().set_or_clear_quote(Some(StringValue::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_quote(None::<StringValue>);
Source

pub fn set_max_bad_records<T>(self, v: T) -> Self
where T: Into<Int32Value>,

Sets the value of max_bad_records.

§Example
use wkt::Int32Value;
let x = JobConfigurationLoad::new().set_max_bad_records(Int32Value::default()/* use setters */);
Source

pub fn set_or_clear_max_bad_records<T>(self, v: Option<T>) -> Self
where T: Into<Int32Value>,

Sets or clears the value of max_bad_records.

§Example
use wkt::Int32Value;
let x = JobConfigurationLoad::new().set_or_clear_max_bad_records(Some(Int32Value::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_max_bad_records(None::<Int32Value>);
Source

pub fn set_allow_quoted_newlines<T>(self, v: T) -> Self
where T: Into<BoolValue>,

Sets the value of allow_quoted_newlines.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_allow_quoted_newlines(BoolValue::default()/* use setters */);
Source

pub fn set_or_clear_allow_quoted_newlines<T>(self, v: Option<T>) -> Self
where T: Into<BoolValue>,

Sets or clears the value of allow_quoted_newlines.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_or_clear_allow_quoted_newlines(Some(BoolValue::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_allow_quoted_newlines(None::<BoolValue>);
Source

pub fn set_source_format<T: Into<String>>(self, v: T) -> Self

Sets the value of source_format.

§Example
let x = JobConfigurationLoad::new().set_source_format("example");
Source

pub fn set_allow_jagged_rows<T>(self, v: T) -> Self
where T: Into<BoolValue>,

Sets the value of allow_jagged_rows.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_allow_jagged_rows(BoolValue::default()/* use setters */);
Source

pub fn set_or_clear_allow_jagged_rows<T>(self, v: Option<T>) -> Self
where T: Into<BoolValue>,

Sets or clears the value of allow_jagged_rows.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_or_clear_allow_jagged_rows(Some(BoolValue::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_allow_jagged_rows(None::<BoolValue>);
Source

pub fn set_ignore_unknown_values<T>(self, v: T) -> Self
where T: Into<BoolValue>,

Sets the value of ignore_unknown_values.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_ignore_unknown_values(BoolValue::default()/* use setters */);
Source

pub fn set_or_clear_ignore_unknown_values<T>(self, v: Option<T>) -> Self
where T: Into<BoolValue>,

Sets or clears the value of ignore_unknown_values.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_or_clear_ignore_unknown_values(Some(BoolValue::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_ignore_unknown_values(None::<BoolValue>);
Source

pub fn set_projection_fields<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<String>,

Sets the value of projection_fields.

§Example
let x = JobConfigurationLoad::new().set_projection_fields(["a", "b", "c"]);
Source

pub fn set_autodetect<T>(self, v: T) -> Self
where T: Into<BoolValue>,

Sets the value of autodetect.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_autodetect(BoolValue::default()/* use setters */);
Source

pub fn set_or_clear_autodetect<T>(self, v: Option<T>) -> Self
where T: Into<BoolValue>,

Sets or clears the value of autodetect.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_or_clear_autodetect(Some(BoolValue::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_autodetect(None::<BoolValue>);
Source

pub fn set_schema_update_options<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<String>,

Sets the value of schema_update_options.

§Example
let x = JobConfigurationLoad::new().set_schema_update_options(["a", "b", "c"]);
Source

pub fn set_time_partitioning<T>(self, v: T) -> Self

Sets the value of time_partitioning.

§Example
use google_cloud_bigquery_v2::model::TimePartitioning;
let x = JobConfigurationLoad::new().set_time_partitioning(TimePartitioning::default()/* use setters */);
Source

pub fn set_or_clear_time_partitioning<T>(self, v: Option<T>) -> Self

Sets or clears the value of time_partitioning.

§Example
use google_cloud_bigquery_v2::model::TimePartitioning;
let x = JobConfigurationLoad::new().set_or_clear_time_partitioning(Some(TimePartitioning::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_time_partitioning(None::<TimePartitioning>);
Source

pub fn set_range_partitioning<T>(self, v: T) -> Self

Sets the value of range_partitioning.

§Example
use google_cloud_bigquery_v2::model::RangePartitioning;
let x = JobConfigurationLoad::new().set_range_partitioning(RangePartitioning::default()/* use setters */);
Source

pub fn set_or_clear_range_partitioning<T>(self, v: Option<T>) -> Self

Sets or clears the value of range_partitioning.

§Example
use google_cloud_bigquery_v2::model::RangePartitioning;
let x = JobConfigurationLoad::new().set_or_clear_range_partitioning(Some(RangePartitioning::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_range_partitioning(None::<RangePartitioning>);
Source

pub fn set_clustering<T>(self, v: T) -> Self
where T: Into<Clustering>,

Sets the value of clustering.

§Example
use google_cloud_bigquery_v2::model::Clustering;
let x = JobConfigurationLoad::new().set_clustering(Clustering::default()/* use setters */);
Source

pub fn set_or_clear_clustering<T>(self, v: Option<T>) -> Self
where T: Into<Clustering>,

Sets or clears the value of clustering.

§Example
use google_cloud_bigquery_v2::model::Clustering;
let x = JobConfigurationLoad::new().set_or_clear_clustering(Some(Clustering::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_clustering(None::<Clustering>);
Source

pub fn set_destination_encryption_configuration<T>(self, v: T) -> Self

Sets the value of destination_encryption_configuration.

§Example
use google_cloud_bigquery_v2::model::EncryptionConfiguration;
let x = JobConfigurationLoad::new().set_destination_encryption_configuration(EncryptionConfiguration::default()/* use setters */);
Source

pub fn set_or_clear_destination_encryption_configuration<T>( self, v: Option<T>, ) -> Self

Sets or clears the value of destination_encryption_configuration.

§Example
use google_cloud_bigquery_v2::model::EncryptionConfiguration;
let x = JobConfigurationLoad::new().set_or_clear_destination_encryption_configuration(Some(EncryptionConfiguration::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_destination_encryption_configuration(None::<EncryptionConfiguration>);
Source

pub fn set_use_avro_logical_types<T>(self, v: T) -> Self
where T: Into<BoolValue>,

Sets the value of use_avro_logical_types.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_use_avro_logical_types(BoolValue::default()/* use setters */);
Source

pub fn set_or_clear_use_avro_logical_types<T>(self, v: Option<T>) -> Self
where T: Into<BoolValue>,

Sets or clears the value of use_avro_logical_types.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_or_clear_use_avro_logical_types(Some(BoolValue::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_use_avro_logical_types(None::<BoolValue>);
Source

pub fn set_reference_file_schema_uri<T>(self, v: T) -> Self
where T: Into<StringValue>,

Sets the value of reference_file_schema_uri.

§Example
use wkt::StringValue;
let x = JobConfigurationLoad::new().set_reference_file_schema_uri(StringValue::default()/* use setters */);
Source

pub fn set_or_clear_reference_file_schema_uri<T>(self, v: Option<T>) -> Self
where T: Into<StringValue>,

Sets or clears the value of reference_file_schema_uri.

§Example
use wkt::StringValue;
let x = JobConfigurationLoad::new().set_or_clear_reference_file_schema_uri(Some(StringValue::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_reference_file_schema_uri(None::<StringValue>);
Source

pub fn set_hive_partitioning_options<T>(self, v: T) -> Self

Sets the value of hive_partitioning_options.

§Example
use google_cloud_bigquery_v2::model::HivePartitioningOptions;
let x = JobConfigurationLoad::new().set_hive_partitioning_options(HivePartitioningOptions::default()/* use setters */);
Source

pub fn set_or_clear_hive_partitioning_options<T>(self, v: Option<T>) -> Self

Sets or clears the value of hive_partitioning_options.

§Example
use google_cloud_bigquery_v2::model::HivePartitioningOptions;
let x = JobConfigurationLoad::new().set_or_clear_hive_partitioning_options(Some(HivePartitioningOptions::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_hive_partitioning_options(None::<HivePartitioningOptions>);
Source

pub fn set_decimal_target_types<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<DecimalTargetType>,

Sets the value of decimal_target_types.

§Example
use google_cloud_bigquery_v2::model::DecimalTargetType;
let x = JobConfigurationLoad::new().set_decimal_target_types([
    DecimalTargetType::Numeric,
    DecimalTargetType::Bignumeric,
    DecimalTargetType::String,
]);
Source

pub fn set_json_extension<T: Into<JsonExtension>>(self, v: T) -> Self

Sets the value of json_extension.

§Example
use google_cloud_bigquery_v2::model::JsonExtension;
let x0 = JobConfigurationLoad::new().set_json_extension(JsonExtension::Geojson);
Source

pub fn set_parquet_options<T>(self, v: T) -> Self
where T: Into<ParquetOptions>,

Sets the value of parquet_options.

§Example
use google_cloud_bigquery_v2::model::ParquetOptions;
let x = JobConfigurationLoad::new().set_parquet_options(ParquetOptions::default()/* use setters */);
Source

pub fn set_or_clear_parquet_options<T>(self, v: Option<T>) -> Self
where T: Into<ParquetOptions>,

Sets or clears the value of parquet_options.

§Example
use google_cloud_bigquery_v2::model::ParquetOptions;
let x = JobConfigurationLoad::new().set_or_clear_parquet_options(Some(ParquetOptions::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_parquet_options(None::<ParquetOptions>);
Source

pub fn set_preserve_ascii_control_characters<T>(self, v: T) -> Self
where T: Into<BoolValue>,

Sets the value of preserve_ascii_control_characters.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_preserve_ascii_control_characters(BoolValue::default()/* use setters */);
Source

pub fn set_or_clear_preserve_ascii_control_characters<T>( self, v: Option<T>, ) -> Self
where T: Into<BoolValue>,

Sets or clears the value of preserve_ascii_control_characters.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_or_clear_preserve_ascii_control_characters(Some(BoolValue::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_preserve_ascii_control_characters(None::<BoolValue>);
Source

pub fn set_connection_properties<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<ConnectionProperty>,

Sets the value of connection_properties.

§Example
use google_cloud_bigquery_v2::model::ConnectionProperty;
let x = JobConfigurationLoad::new()
    .set_connection_properties([
        ConnectionProperty::default()/* use setters */,
        ConnectionProperty::default()/* use (different) setters */,
    ]);
Source

pub fn set_create_session<T>(self, v: T) -> Self
where T: Into<BoolValue>,

Sets the value of create_session.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_create_session(BoolValue::default()/* use setters */);
Source

pub fn set_or_clear_create_session<T>(self, v: Option<T>) -> Self
where T: Into<BoolValue>,

Sets or clears the value of create_session.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_or_clear_create_session(Some(BoolValue::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_create_session(None::<BoolValue>);
Source

pub fn set_column_name_character_map<T: Into<ColumnNameCharacterMap>>( self, v: T, ) -> Self

Sets the value of column_name_character_map.

§Example
use google_cloud_bigquery_v2::model::job_configuration_load::ColumnNameCharacterMap;
let x0 = JobConfigurationLoad::new().set_column_name_character_map(ColumnNameCharacterMap::Strict);
let x1 = JobConfigurationLoad::new().set_column_name_character_map(ColumnNameCharacterMap::V1);
let x2 = JobConfigurationLoad::new().set_column_name_character_map(ColumnNameCharacterMap::V2);
Source

pub fn set_copy_files_only<T>(self, v: T) -> Self
where T: Into<BoolValue>,

Sets the value of copy_files_only.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_copy_files_only(BoolValue::default()/* use setters */);
Source

pub fn set_or_clear_copy_files_only<T>(self, v: Option<T>) -> Self
where T: Into<BoolValue>,

Sets or clears the value of copy_files_only.

§Example
use wkt::BoolValue;
let x = JobConfigurationLoad::new().set_or_clear_copy_files_only(Some(BoolValue::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_copy_files_only(None::<BoolValue>);
Source

pub fn set_time_zone<T>(self, v: T) -> Self
where T: Into<StringValue>,

Sets the value of time_zone.

§Example
use wkt::StringValue;
let x = JobConfigurationLoad::new().set_time_zone(StringValue::default()/* use setters */);
Source

pub fn set_or_clear_time_zone<T>(self, v: Option<T>) -> Self
where T: Into<StringValue>,

Sets or clears the value of time_zone.

§Example
use wkt::StringValue;
let x = JobConfigurationLoad::new().set_or_clear_time_zone(Some(StringValue::default()/* use setters */));
let x = JobConfigurationLoad::new().set_or_clear_time_zone(None::<StringValue>);
Source

pub fn set_null_markers<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<String>,

Sets the value of null_markers.

§Example
let x = JobConfigurationLoad::new().set_null_markers(["a", "b", "c"]);
Source

pub fn set_date_format<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of date_format.

§Example
let x = JobConfigurationLoad::new().set_date_format("example");
Source

pub fn set_or_clear_date_format<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of date_format.

§Example
let x = JobConfigurationLoad::new().set_or_clear_date_format(Some("example"));
let x = JobConfigurationLoad::new().set_or_clear_date_format(None::<String>);
Source

pub fn set_datetime_format<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of datetime_format.

§Example
let x = JobConfigurationLoad::new().set_datetime_format("example");
Source

pub fn set_or_clear_datetime_format<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of datetime_format.

§Example
let x = JobConfigurationLoad::new().set_or_clear_datetime_format(Some("example"));
let x = JobConfigurationLoad::new().set_or_clear_datetime_format(None::<String>);
Source

pub fn set_time_format<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of time_format.

§Example
let x = JobConfigurationLoad::new().set_time_format("example");
Source

pub fn set_or_clear_time_format<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of time_format.

§Example
let x = JobConfigurationLoad::new().set_or_clear_time_format(Some("example"));
let x = JobConfigurationLoad::new().set_or_clear_time_format(None::<String>);
Source

pub fn set_timestamp_format<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of timestamp_format.

§Example
let x = JobConfigurationLoad::new().set_timestamp_format("example");
Source

pub fn set_or_clear_timestamp_format<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of timestamp_format.

§Example
let x = JobConfigurationLoad::new().set_or_clear_timestamp_format(Some("example"));
let x = JobConfigurationLoad::new().set_or_clear_timestamp_format(None::<String>);
Source

pub fn set_source_column_match<T: Into<SourceColumnMatch>>(self, v: T) -> Self

Sets the value of source_column_match.

§Example
use google_cloud_bigquery_v2::model::job_configuration_load::SourceColumnMatch;
let x0 = JobConfigurationLoad::new().set_source_column_match(SourceColumnMatch::Position);
let x1 = JobConfigurationLoad::new().set_source_column_match(SourceColumnMatch::Name);
Source

pub fn set_timestamp_target_precision<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<i32>,

Sets the value of timestamp_target_precision.

§Example
let x = JobConfigurationLoad::new().set_timestamp_target_precision([1, 2, 3]);

Trait Implementations§

Source§

impl Clone for JobConfigurationLoad

Source§

fn clone(&self) -> JobConfigurationLoad

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JobConfigurationLoad

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for JobConfigurationLoad

Source§

fn default() -> JobConfigurationLoad

Returns the “default value” for a type. Read more
Source§

impl Message for JobConfigurationLoad

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for JobConfigurationLoad

Source§

fn eq(&self, other: &JobConfigurationLoad) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for JobConfigurationLoad

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more