Skip to content

Commit 0d3873f

Browse files
1 parent 3ca0f47 commit 0d3873f

File tree

6 files changed

+105
-159
lines changed

6 files changed

+105
-159
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-rev20240727-2.0.0</version>
25+
<version>v2-rev20240803-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-rev20240727-2.0.0'
38+
implementation 'com.google.apis:google-api-services-bigquery:v2-rev20240803-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.bigquery.model;
18+
19+
/**
20+
* Data policy option proto, it currently supports name only, will support precedence later.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the BigQuery API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class DataPolicyOption extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Data policy resource name in the form of
34+
* projects/project_id/locations/location_id/dataPolicies/data_policy_id.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String name;
39+
40+
/**
41+
* Data policy resource name in the form of
42+
* projects/project_id/locations/location_id/dataPolicies/data_policy_id.
43+
* @return value or {@code null} for none
44+
*/
45+
public java.lang.String getName() {
46+
return name;
47+
}
48+
49+
/**
50+
* Data policy resource name in the form of
51+
* projects/project_id/locations/location_id/dataPolicies/data_policy_id.
52+
* @param name name or {@code null} for none
53+
*/
54+
public DataPolicyOption setName(java.lang.String name) {
55+
this.name = name;
56+
return this;
57+
}
58+
59+
@Override
60+
public DataPolicyOption set(String fieldName, Object value) {
61+
return (DataPolicyOption) super.set(fieldName, value);
62+
}
63+
64+
@Override
65+
public DataPolicyOption clone() {
66+
return (DataPolicyOption) super.clone();
67+
}
68+
69+
}

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

Lines changed: 0 additions & 123 deletions
This file was deleted.

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

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@ public final class TableFieldSchema extends com.google.api.client.json.GenericJs
4545
@com.google.api.client.util.Key
4646
private java.lang.String collation;
4747

48+
/**
49+
* Optional. Data policy options, will replace the data_policies.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.util.List<DataPolicyOption> dataPolicies;
54+
55+
static {
56+
// hack to force ProGuard to consider DataPolicyOption used, since otherwise it would be stripped out
57+
// see https://github.com/google/google-api-java-client/issues/543
58+
com.google.api.client.util.Data.nullOf(DataPolicyOption.class);
59+
}
60+
4861
/**
4962
* Optional. A SQL expression to specify the [default value]
5063
* (https://cloud.google.com/bigquery/docs/default-values) for this field.
@@ -75,15 +88,6 @@ public final class TableFieldSchema extends com.google.api.client.json.GenericJs
7588
@com.google.api.client.util.Key
7689
private java.lang.String foreignTypeDefinition;
7790

78-
/**
79-
* Optional. Definition of how values are generated for the field. Setting this option means that
80-
* the field is an identity column. Only valid for top-level schema INTEGER fields (not nested
81-
* fields).
82-
* The value may be {@code null}.
83-
*/
84-
@com.google.api.client.util.Key
85-
private IdentityColumnInfo identityColumnInfo;
86-
8791
/**
8892
* Optional. Maximum length of values of this field for STRINGS or BYTES. If max_length is not
8993
* specified, no maximum length constraint is imposed on this field. If type = "STRING", then
@@ -209,6 +213,23 @@ public TableFieldSchema setCollation(java.lang.String collation) {
209213
return this;
210214
}
211215

216+
/**
217+
* Optional. Data policy options, will replace the data_policies.
218+
* @return value or {@code null} for none
219+
*/
220+
public java.util.List<DataPolicyOption> getDataPolicies() {
221+
return dataPolicies;
222+
}
223+
224+
/**
225+
* Optional. Data policy options, will replace the data_policies.
226+
* @param dataPolicies dataPolicies or {@code null} for none
227+
*/
228+
public TableFieldSchema setDataPolicies(java.util.List<DataPolicyOption> dataPolicies) {
229+
this.dataPolicies = dataPolicies;
230+
return this;
231+
}
232+
212233
/**
213234
* Optional. A SQL expression to specify the [default value]
214235
* (https://cloud.google.com/bigquery/docs/default-values) for this field.
@@ -281,27 +302,6 @@ public TableFieldSchema setForeignTypeDefinition(java.lang.String foreignTypeDef
281302
return this;
282303
}
283304

284-
/**
285-
* Optional. Definition of how values are generated for the field. Setting this option means that
286-
* the field is an identity column. Only valid for top-level schema INTEGER fields (not nested
287-
* fields).
288-
* @return value or {@code null} for none
289-
*/
290-
public IdentityColumnInfo getIdentityColumnInfo() {
291-
return identityColumnInfo;
292-
}
293-
294-
/**
295-
* Optional. Definition of how values are generated for the field. Setting this option means that
296-
* the field is an identity column. Only valid for top-level schema INTEGER fields (not nested
297-
* fields).
298-
* @param identityColumnInfo identityColumnInfo or {@code null} for none
299-
*/
300-
public TableFieldSchema setIdentityColumnInfo(IdentityColumnInfo identityColumnInfo) {
301-
this.identityColumnInfo = identityColumnInfo;
302-
return this;
303-
}
304-
305305
/**
306306
* Optional. Maximum length of values of this field for STRINGS or BYTES. If max_length is not
307307
* specified, no maximum length constraint is imposed on this field. If type = "STRING", then

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-rev20240727-2.0.0</version>
12-
<name>BigQuery API v2-rev20240727-2.0.0</name>
11+
<version>v2-rev20240803-2.0.0</version>
12+
<name>BigQuery API v2-rev20240803-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-rev20240727-2.0.0</version>
25+
<version>v2-rev20240803-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-rev20240727-2.0.0'
38+
implementation 'com.google.apis:google-api-services-bigquery:v2-rev20240803-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)