Skip to content

Commit a335927

Browse files
deps: update dependency com.google.cloud:sdk-platform-java-config to v3.46.0 (#3753)
* deps: update dependency com.google.cloud:sdk-platform-java-config to v3.46.0 * chore: use latest formatter in lint check * chore: use java 17 in linter job * chore: format java source files --------- Co-authored-by: Diego Marquez <[email protected]>
1 parent bb811c0 commit a335927

37 files changed

+166
-177
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
- uses: actions/setup-java@v4
105105
with:
106106
distribution: temurin
107-
java-version: 11
107+
java-version: 17
108108
- run: java -version
109109
- run: .kokoro/build.sh
110110
env:

.github/workflows/unmanaged_dependency_check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# repository
1818
.kokoro/build.sh
1919
- name: Unmanaged dependency check
20-
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.45.1
20+
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.46.0
2121
with:
2222
# java-bigquery does not produce a BOM. Fortunately the root pom.xml
2323
# defines google-cloud-bigquery in dependencyManagement section. So

.kokoro/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ test)
5252
RETURN_CODE=$?
5353
;;
5454
lint)
55-
mvn com.coveo:fmt-maven-plugin:check -B -ntp
55+
mvn com.spotify.fmt:fmt-maven-plugin:check -B -ntp
5656
RETURN_CODE=$?
5757
;;
5858
javadoc)

.kokoro/continuous/graalvm-native-17.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Configure the docker image for kokoro-trampoline.
44
env_vars: {
55
key: "TRAMPOLINE_IMAGE"
6-
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.45.1"
6+
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.0"
77
}
88

99
env_vars: {

.kokoro/continuous/graalvm-native.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Configure the docker image for kokoro-trampoline.
44
env_vars: {
55
key: "TRAMPOLINE_IMAGE"
6-
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.45.1"
6+
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.0"
77
}
88

99
env_vars: {

.kokoro/presubmit/graalvm-native-17.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Configure the docker image for kokoro-trampoline.
44
env_vars: {
55
key: "TRAMPOLINE_IMAGE"
6-
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.45.1""
6+
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.0""
77
}
88
99
env_vars: {

.kokoro/presubmit/graalvm-native.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Configure the docker image for kokoro-trampoline.
44
env_vars: {
55
key: "TRAMPOLINE_IMAGE"
6-
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.45.1"
6+
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.0"
77
}
88

99
env_vars: {

google-cloud-bigquery-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>com.google.cloud</groupId>
1010
<artifactId>sdk-platform-java-config</artifactId>
11-
<version>3.45.1</version>
11+
<version>3.46.0</version>
1212
<relativePath/>
1313
</parent>
1414

google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Acl.java

Lines changed: 46 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ public static Role valueOf(String constant) {
9292
return type.valueOf(constant);
9393
}
9494

95-
/** @return Return the known values for Role. */
95+
/**
96+
* @return Return the known values for Role.
97+
*/
9698
public static Role[] values() {
9799
return type.values();
98100
}
@@ -184,7 +186,9 @@ public DatasetAclEntity(DatasetId id, List<String> targetTypes) {
184186
this.targetTypes = targetTypes;
185187
}
186188

187-
/** @return Returns DatasetAclEntity's identity. */
189+
/**
190+
* @return Returns DatasetAclEntity's identity.
191+
*/
188192
public DatasetId getId() {
189193
return id;
190194
}
@@ -240,7 +244,9 @@ public Domain(String domain) {
240244
this.domain = domain;
241245
}
242246

243-
/** @return Returns the domain name. */
247+
/**
248+
* @return Returns the domain name.
249+
*/
244250
public String getDomain() {
245251
return domain;
246252
}
@@ -348,22 +354,30 @@ Access toPb() {
348354
}
349355
}
350356

351-
/** @return Returns a Group entity representing all project's owners. */
357+
/**
358+
* @return Returns a Group entity representing all project's owners.
359+
*/
352360
public static Group ofProjectOwners() {
353361
return new Group(PROJECT_OWNERS);
354362
}
355363

356-
/** @return Returns a Group entity representing all project's readers. */
364+
/**
365+
* @return Returns a Group entity representing all project's readers.
366+
*/
357367
public static Group ofProjectReaders() {
358368
return new Group(PROJECT_READERS);
359369
}
360370

361-
/** @return Returns a Group entity representing all project's writers. */
371+
/**
372+
* @return Returns a Group entity representing all project's writers.
373+
*/
362374
public static Group ofProjectWriters() {
363375
return new Group(PROJECT_WRITERS);
364376
}
365377

366-
/** @return Returns a Group entity representing all BigQuery authenticated users. */
378+
/**
379+
* @return Returns a Group entity representing all BigQuery authenticated users.
380+
*/
367381
public static Group ofAllAuthenticatedUsers() {
368382
return new Group(ALL_AUTHENTICATED_USERS);
369383
}
@@ -385,7 +399,9 @@ public User(String email) {
385399
this.email = email;
386400
}
387401

388-
/** @return Returns user's email. */
402+
/**
403+
* @return Returns user's email.
404+
*/
389405
public String getEmail() {
390406
return email;
391407
}
@@ -437,7 +453,9 @@ public View(TableId id) {
437453
this.id = id;
438454
}
439455

440-
/** @return Returns table's identity. */
456+
/**
457+
* @return Returns table's identity.
458+
*/
441459
public TableId getId() {
442460
return id;
443461
}
@@ -489,7 +507,9 @@ public Routine(RoutineId id) {
489507
this.id = id;
490508
}
491509

492-
/** @return Returns routine's identity. */
510+
/**
511+
* @return Returns routine's identity.
512+
*/
493513
public RoutineId getId() {
494514
return id;
495515
}
@@ -537,7 +557,9 @@ public IamMember(String iamMember) {
537557
this.iamMember = iamMember;
538558
}
539559

540-
/** @return Returns iamMember. */
560+
/**
561+
* @return Returns iamMember.
562+
*/
541563
public String getIamMember() {
542564
return iamMember;
543565
}
@@ -574,16 +596,19 @@ Access toPb() {
574596
public static final class Expr implements Serializable {
575597
// Textual representation of an expression in Common Expression Language syntax.
576598
private final String expression;
599+
577600
/**
578601
* Optional. Title for the expression, i.e. a short string describing its purpose. This can be
579602
* used e.g. in UIs which allow to enter the expression.
580603
*/
581604
private final String title;
605+
582606
/**
583607
* Optional. Description of the expression. This is a longer text which describes the
584608
* expression, e.g. when hovered over it in a UI.
585609
*/
586610
private final String description;
611+
587612
/**
588613
* Optional. String indicating the location of the expression for error reporting, e.g. a file
589614
* name and a position in the file.
@@ -713,16 +738,23 @@ private Acl(Entity entity, Role role, Expr condition) {
713738
this.condition = condition;
714739
}
715740

716-
/** @return Returns the entity for this ACL. */
741+
/**
742+
* @return Returns the entity for this ACL.
743+
*/
717744
public Entity getEntity() {
718745
return entity;
719746
}
720747

721-
/** @return Returns the role specified by this ACL. */
748+
/**
749+
* @return Returns the role specified by this ACL.
750+
*/
722751
public Role getRole() {
723752
return role;
724753
}
725-
/** @return Returns the condition specified by this ACL. */
754+
755+
/**
756+
* @return Returns the condition specified by this ACL.
757+
*/
726758
public Expr getCondition() {
727759
return condition;
728760
}

google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,8 +1409,7 @@ public TableResult query(QueryJobConfiguration configuration, JobOption... optio
14091409

14101410
if (getOptions().isQueryPreviewEnabled()) {
14111411
configuration =
1412-
configuration
1413-
.toBuilder()
1412+
configuration.toBuilder()
14141413
.setJobCreationMode(JobCreationMode.JOB_CREATION_OPTIONAL)
14151414
.build();
14161415
}

0 commit comments

Comments
 (0)