Skip to content

Commit a24568a

Browse files
1 parent 9f66f04 commit a24568a

File tree

5 files changed

+159
-6
lines changed

5 files changed

+159
-6
lines changed

clients/google-api-services-bigquery/v2/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-bigquery</artifactId>
25-
<version>v2-rev20250216-2.0.0</version>
25+
<version>v2-rev20250302-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-bigquery:v2-rev20250216-2.0.0'
38+
implementation 'com.google.apis:google-api-services-bigquery:v2-rev20250302-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-bigquery/v2/2.0.0/com/google/api/services/bigquery/model/CsvOptions.java

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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);

clients/google-api-services-bigquery/v2/2.0.0/com/google/api/services/bigquery/model/JobConfigurationLoad.java

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,18 @@ public final class JobConfigurationLoad extends com.google.api.client.json.Gener
268268
@com.google.api.client.util.Key
269269
private java.lang.String nullMarker;
270270

271+
/**
272+
* Optional. A list of strings represented as SQL NULL value in a CSV file. null_marker and
273+
* null_markers can't be set at the same time. If null_marker is set, null_markers has to be not
274+
* set. If null_markers is set, null_marker has to be not set. If both null_marker and
275+
* null_markers are set at the same time, a user error would be thrown. Any strings listed in
276+
* null_markers, including empty string would be interpreted as SQL NULL. This applies to all
277+
* column types.
278+
* The value may be {@code null}.
279+
*/
280+
@com.google.api.client.util.Key
281+
private java.util.List<java.lang.String> nullMarkers;
282+
271283
/**
272284
* Optional. Additional properties to set if sourceFormat is set to PARQUET.
273285
* The value may be {@code null}.
@@ -377,6 +389,16 @@ public final class JobConfigurationLoad extends com.google.api.client.json.Gener
377389
@com.google.api.client.util.Key
378390
private java.lang.Integer skipLeadingRows;
379391

392+
/**
393+
* Optional. Controls the strategy used to match loaded columns to the schema. If not set, a
394+
* sensible default is chosen based on how the schema is provided. If autodetect is used, then
395+
* columns are matched by name. Otherwise, columns are matched by position. This is done to keep
396+
* the behavior backward-compatible.
397+
* The value may be {@code null}.
398+
*/
399+
@com.google.api.client.util.Key
400+
private java.lang.String sourceColumnMatch;
401+
380402
/**
381403
* Optional. The format of the data files. For CSV files, specify "CSV". For datastore backups,
382404
* specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For
@@ -985,6 +1007,33 @@ public JobConfigurationLoad setNullMarker(java.lang.String nullMarker) {
9851007
return this;
9861008
}
9871009

1010+
/**
1011+
* Optional. A list of strings represented as SQL NULL value in a CSV file. null_marker and
1012+
* null_markers can't be set at the same time. If null_marker is set, null_markers has to be not
1013+
* set. If null_markers is set, null_marker has to be not set. If both null_marker and
1014+
* null_markers are set at the same time, a user error would be thrown. Any strings listed in
1015+
* null_markers, including empty string would be interpreted as SQL NULL. This applies to all
1016+
* column types.
1017+
* @return value or {@code null} for none
1018+
*/
1019+
public java.util.List<java.lang.String> getNullMarkers() {
1020+
return nullMarkers;
1021+
}
1022+
1023+
/**
1024+
* Optional. A list of strings represented as SQL NULL value in a CSV file. null_marker and
1025+
* null_markers can't be set at the same time. If null_marker is set, null_markers has to be not
1026+
* set. If null_markers is set, null_marker has to be not set. If both null_marker and
1027+
* null_markers are set at the same time, a user error would be thrown. Any strings listed in
1028+
* null_markers, including empty string would be interpreted as SQL NULL. This applies to all
1029+
* column types.
1030+
* @param nullMarkers nullMarkers or {@code null} for none
1031+
*/
1032+
public JobConfigurationLoad setNullMarkers(java.util.List<java.lang.String> nullMarkers) {
1033+
this.nullMarkers = nullMarkers;
1034+
return this;
1035+
}
1036+
9881037
/**
9891038
* Optional. Additional properties to set if sourceFormat is set to PARQUET.
9901039
* @return value or {@code null} for none
@@ -1236,6 +1285,29 @@ public JobConfigurationLoad setSkipLeadingRows(java.lang.Integer skipLeadingRows
12361285
return this;
12371286
}
12381287

1288+
/**
1289+
* Optional. Controls the strategy used to match loaded columns to the schema. If not set, a
1290+
* sensible default is chosen based on how the schema is provided. If autodetect is used, then
1291+
* columns are matched by name. Otherwise, columns are matched by position. This is done to keep
1292+
* the behavior backward-compatible.
1293+
* @return value or {@code null} for none
1294+
*/
1295+
public java.lang.String getSourceColumnMatch() {
1296+
return sourceColumnMatch;
1297+
}
1298+
1299+
/**
1300+
* Optional. Controls the strategy used to match loaded columns to the schema. If not set, a
1301+
* sensible default is chosen based on how the schema is provided. If autodetect is used, then
1302+
* columns are matched by name. Otherwise, columns are matched by position. This is done to keep
1303+
* the behavior backward-compatible.
1304+
* @param sourceColumnMatch sourceColumnMatch or {@code null} for none
1305+
*/
1306+
public JobConfigurationLoad setSourceColumnMatch(java.lang.String sourceColumnMatch) {
1307+
this.sourceColumnMatch = sourceColumnMatch;
1308+
return this;
1309+
}
1310+
12391311
/**
12401312
* Optional. The format of the data files. For CSV files, specify "CSV". For datastore backups,
12411313
* specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For

clients/google-api-services-bigquery/v2/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-bigquery</artifactId>
11-
<version>v2-rev20250216-2.0.0</version>
12-
<name>BigQuery API v2-rev20250216-2.0.0</name>
11+
<version>v2-rev20250302-2.0.0</version>
12+
<name>BigQuery API v2-rev20250302-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-bigquery/v2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-bigquery</artifactId>
25-
<version>v2-rev20250216-2.0.0</version>
25+
<version>v2-rev20250302-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-bigquery:v2-rev20250216-2.0.0'
38+
implementation 'com.google.apis:google-api-services-bigquery:v2-rev20250302-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)