@@ -81,6 +81,18 @@ public final class CsvOptions extends com.google.api.client.json.GenericJson {
8181 @ com .google .api .client .util .Key
8282 private java .lang .String nullMarker ;
8383
84+ /**
85+ * Optional. A list of strings represented as SQL NULL value in a CSV file. null_marker and
86+ * null_markers can't be set at the same time. If null_marker is set, null_markers has to be not
87+ * set. If null_markers is set, null_marker has to be not set. If both null_marker and
88+ * null_markers are set at the same time, a user error would be thrown. Any strings listed in
89+ * null_markers, including empty string would be interpreted as SQL NULL. This applies to all
90+ * column types.
91+ * The value may be {@code null}.
92+ */
93+ @ com .google .api .client .util .Key
94+ private java .util .List <java .lang .String > nullMarkers ;
95+
8496 /**
8597 * Optional. Indicates if the embedded ASCII control characters (the first 32 characters in the
8698 * ASCII-table, from '\x00' to '\x1F') are preserved.
@@ -118,6 +130,19 @@ public final class CsvOptions extends com.google.api.client.json.GenericJson {
118130 @ com .google .api .client .util .Key @ com .google .api .client .json .JsonString
119131 private java .lang .Long skipLeadingRows ;
120132
133+ /**
134+ * Optional. Controls the strategy used to match loaded columns to the schema. If not set, a
135+ * sensible default is chosen based on how the schema is provided. If autodetect is used, then
136+ * columns are matched by name. Otherwise, columns are matched by position. This is done to keep
137+ * the behavior backward-compatible. Acceptable values are: POSITION - matches by position. This
138+ * assumes that the columns are ordered the same way as the schema. NAME - matches by name. This
139+ * reads the header row as column names and reorders columns to match the field names in the
140+ * schema.
141+ * The value may be {@code null}.
142+ */
143+ @ com .google .api .client .util .Key
144+ private java .lang .String sourceColumnMatch ;
145+
121146 /**
122147 * Optional. Indicates if BigQuery should accept rows that are missing trailing optional columns.
123148 * If true, BigQuery treats missing trailing columns as null values. If false, records with
@@ -237,6 +262,33 @@ public CsvOptions setNullMarker(java.lang.String nullMarker) {
237262 return this ;
238263 }
239264
265+ /**
266+ * Optional. A list of strings represented as SQL NULL value in a CSV file. null_marker and
267+ * null_markers can't be set at the same time. If null_marker is set, null_markers has to be not
268+ * set. If null_markers is set, null_marker has to be not set. If both null_marker and
269+ * null_markers are set at the same time, a user error would be thrown. Any strings listed in
270+ * null_markers, including empty string would be interpreted as SQL NULL. This applies to all
271+ * column types.
272+ * @return value or {@code null} for none
273+ */
274+ public java .util .List <java .lang .String > getNullMarkers () {
275+ return nullMarkers ;
276+ }
277+
278+ /**
279+ * Optional. A list of strings represented as SQL NULL value in a CSV file. null_marker and
280+ * null_markers can't be set at the same time. If null_marker is set, null_markers has to be not
281+ * set. If null_markers is set, null_marker has to be not set. If both null_marker and
282+ * null_markers are set at the same time, a user error would be thrown. Any strings listed in
283+ * null_markers, including empty string would be interpreted as SQL NULL. This applies to all
284+ * column types.
285+ * @param nullMarkers nullMarkers or {@code null} for none
286+ */
287+ public CsvOptions setNullMarkers (java .util .List <java .lang .String > nullMarkers ) {
288+ this .nullMarkers = nullMarkers ;
289+ return this ;
290+ }
291+
240292 /**
241293 * Optional. Indicates if the embedded ASCII control characters (the first 32 characters in the
242294 * ASCII-table, from '\x00' to '\x1F') are preserved.
@@ -320,6 +372,35 @@ public CsvOptions setSkipLeadingRows(java.lang.Long skipLeadingRows) {
320372 return this ;
321373 }
322374
375+ /**
376+ * Optional. Controls the strategy used to match loaded columns to the schema. If not set, a
377+ * sensible default is chosen based on how the schema is provided. If autodetect is used, then
378+ * columns are matched by name. Otherwise, columns are matched by position. This is done to keep
379+ * the behavior backward-compatible. Acceptable values are: POSITION - matches by position. This
380+ * assumes that the columns are ordered the same way as the schema. NAME - matches by name. This
381+ * reads the header row as column names and reorders columns to match the field names in the
382+ * schema.
383+ * @return value or {@code null} for none
384+ */
385+ public java .lang .String getSourceColumnMatch () {
386+ return sourceColumnMatch ;
387+ }
388+
389+ /**
390+ * Optional. Controls the strategy used to match loaded columns to the schema. If not set, a
391+ * sensible default is chosen based on how the schema is provided. If autodetect is used, then
392+ * columns are matched by name. Otherwise, columns are matched by position. This is done to keep
393+ * the behavior backward-compatible. Acceptable values are: POSITION - matches by position. This
394+ * assumes that the columns are ordered the same way as the schema. NAME - matches by name. This
395+ * reads the header row as column names and reorders columns to match the field names in the
396+ * schema.
397+ * @param sourceColumnMatch sourceColumnMatch or {@code null} for none
398+ */
399+ public CsvOptions setSourceColumnMatch (java .lang .String sourceColumnMatch ) {
400+ this .sourceColumnMatch = sourceColumnMatch ;
401+ return this ;
402+ }
403+
323404 @ Override
324405 public CsvOptions set (String fieldName , Object value ) {
325406 return (CsvOptions ) super .set (fieldName , value );
0 commit comments