Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): Update the Java code generator (gapic-generator-java) to 2.30.0 #2703

Merged
merged 8 commits into from
Dec 1, 2023
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.25.0')
implementation platform('com.google.cloud:libraries-bom:26.27.0')

implementation 'com.google.cloud:google-cloud-spanner'
```
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-spanner:6.52.1'
implementation 'com.google.cloud:google-cloud-spanner:6.54.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.52.1"
libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.54.0"
```
<!-- {x-version-update-end} -->

Expand Down Expand Up @@ -432,7 +432,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-spanner/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-spanner.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.52.1
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.54.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,7 @@ public final UnaryCallable<DeleteSessionRequest, Empty> deleteSessionCallable()
* .setSeqno(109325920)
* .setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build())
* .setRequestOptions(RequestOptions.newBuilder().build())
* .setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
* .setDataBoostEnabled(true)
* .build();
* ResultSet response = spannerClient.executeSql(request);
Expand Down Expand Up @@ -990,6 +991,7 @@ public final ResultSet executeSql(ExecuteSqlRequest request) {
* .setSeqno(109325920)
* .setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build())
* .setRequestOptions(RequestOptions.newBuilder().build())
* .setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
* .setDataBoostEnabled(true)
* .build();
* ApiFuture<ResultSet> future = spannerClient.executeSqlCallable().futureCall(request);
Expand Down Expand Up @@ -1031,6 +1033,7 @@ public final UnaryCallable<ExecuteSqlRequest, ResultSet> executeSqlCallable() {
* .setSeqno(109325920)
* .setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build())
* .setRequestOptions(RequestOptions.newBuilder().build())
* .setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
* .setDataBoostEnabled(true)
* .build();
* ServerStream<PartialResultSet> stream =
Expand Down Expand Up @@ -1167,6 +1170,7 @@ public final ExecuteBatchDmlResponse executeBatchDml(ExecuteBatchDmlRequest requ
* .setResumeToken(ByteString.EMPTY)
* .setPartitionToken(ByteString.EMPTY)
* .setRequestOptions(RequestOptions.newBuilder().build())
* .setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
* .setDataBoostEnabled(true)
* .build();
* ResultSet response = spannerClient.read(request);
Expand Down Expand Up @@ -1216,6 +1220,7 @@ public final ResultSet read(ReadRequest request) {
* .setResumeToken(ByteString.EMPTY)
* .setPartitionToken(ByteString.EMPTY)
* .setRequestOptions(RequestOptions.newBuilder().build())
* .setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
* .setDataBoostEnabled(true)
* .build();
* ApiFuture<ResultSet> future = spannerClient.readCallable().futureCall(request);
Expand Down Expand Up @@ -1257,6 +1262,7 @@ public final UnaryCallable<ReadRequest, ResultSet> readCallable() {
* .setResumeToken(ByteString.EMPTY)
* .setPartitionToken(ByteString.EMPTY)
* .setRequestOptions(RequestOptions.newBuilder().build())
* .setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
* .setDataBoostEnabled(true)
* .build();
* ServerStream<PartialResultSet> stream = spannerClient.streamingReadCallable().call(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1322,6 +1322,87 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.DirectedReadOptions",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.DirectedReadOptions$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.DirectedReadOptions$ExcludeReplicas",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.DirectedReadOptions$ExcludeReplicas$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.DirectedReadOptions$IncludeReplicas",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.DirectedReadOptions$IncludeReplicas$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.DirectedReadOptions$ReplicaSelection",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.DirectedReadOptions$ReplicaSelection$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.DirectedReadOptions$ReplicaSelection$Type",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.ExecuteBatchDmlRequest",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import com.google.spanner.v1.BatchCreateSessionsResponse;
import com.google.spanner.v1.CommitResponse;
import com.google.spanner.v1.DatabaseName;
import com.google.spanner.v1.DirectedReadOptions;
import com.google.spanner.v1.ExecuteBatchDmlRequest;
import com.google.spanner.v1.ExecuteBatchDmlResponse;
import com.google.spanner.v1.ExecuteSqlRequest;
Expand Down Expand Up @@ -598,6 +599,7 @@ public void executeSqlTest() throws Exception {
.setSeqno(109325920)
.setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build())
.setRequestOptions(RequestOptions.newBuilder().build())
.setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
.setDataBoostEnabled(true)
.build();

Expand Down Expand Up @@ -640,6 +642,7 @@ public void executeSqlExceptionTest() throws Exception {
.setSeqno(109325920)
.setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build())
.setRequestOptions(RequestOptions.newBuilder().build())
.setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
.setDataBoostEnabled(true)
.build();
client.executeSql(request);
Expand Down Expand Up @@ -744,6 +747,7 @@ public void readTest() throws Exception {
.setResumeToken(ByteString.EMPTY)
.setPartitionToken(ByteString.EMPTY)
.setRequestOptions(RequestOptions.newBuilder().build())
.setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
.setDataBoostEnabled(true)
.build();

Expand Down Expand Up @@ -786,6 +790,7 @@ public void readExceptionTest() throws Exception {
.setResumeToken(ByteString.EMPTY)
.setPartitionToken(ByteString.EMPTY)
.setRequestOptions(RequestOptions.newBuilder().build())
.setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
.setDataBoostEnabled(true)
.build();
client.read(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import com.google.spanner.v1.CreateSessionRequest;
import com.google.spanner.v1.DatabaseName;
import com.google.spanner.v1.DeleteSessionRequest;
import com.google.spanner.v1.DirectedReadOptions;
import com.google.spanner.v1.ExecuteBatchDmlRequest;
import com.google.spanner.v1.ExecuteBatchDmlResponse;
import com.google.spanner.v1.ExecuteSqlRequest;
Expand Down Expand Up @@ -556,6 +557,7 @@ public void executeSqlTest() throws Exception {
.setSeqno(109325920)
.setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build())
.setRequestOptions(RequestOptions.newBuilder().build())
.setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
.setDataBoostEnabled(true)
.build();

Expand All @@ -577,6 +579,7 @@ public void executeSqlTest() throws Exception {
Assert.assertEquals(request.getSeqno(), actualRequest.getSeqno());
Assert.assertEquals(request.getQueryOptions(), actualRequest.getQueryOptions());
Assert.assertEquals(request.getRequestOptions(), actualRequest.getRequestOptions());
Assert.assertEquals(request.getDirectedReadOptions(), actualRequest.getDirectedReadOptions());
Assert.assertEquals(request.getDataBoostEnabled(), actualRequest.getDataBoostEnabled());
Assert.assertTrue(
channelProvider.isHeaderSent(
Expand All @@ -603,6 +606,7 @@ public void executeSqlExceptionTest() throws Exception {
.setSeqno(109325920)
.setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build())
.setRequestOptions(RequestOptions.newBuilder().build())
.setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
.setDataBoostEnabled(true)
.build();
client.executeSql(request);
Expand Down Expand Up @@ -636,6 +640,7 @@ public void executeStreamingSqlTest() throws Exception {
.setSeqno(109325920)
.setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build())
.setRequestOptions(RequestOptions.newBuilder().build())
.setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
.setDataBoostEnabled(true)
.build();

Expand Down Expand Up @@ -667,6 +672,7 @@ public void executeStreamingSqlExceptionTest() throws Exception {
.setSeqno(109325920)
.setQueryOptions(ExecuteSqlRequest.QueryOptions.newBuilder().build())
.setRequestOptions(RequestOptions.newBuilder().build())
.setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
.setDataBoostEnabled(true)
.build();

Expand Down Expand Up @@ -768,6 +774,7 @@ public void readTest() throws Exception {
.setResumeToken(ByteString.EMPTY)
.setPartitionToken(ByteString.EMPTY)
.setRequestOptions(RequestOptions.newBuilder().build())
.setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
.setDataBoostEnabled(true)
.build();

Expand All @@ -788,6 +795,7 @@ public void readTest() throws Exception {
Assert.assertEquals(request.getResumeToken(), actualRequest.getResumeToken());
Assert.assertEquals(request.getPartitionToken(), actualRequest.getPartitionToken());
Assert.assertEquals(request.getRequestOptions(), actualRequest.getRequestOptions());
Assert.assertEquals(request.getDirectedReadOptions(), actualRequest.getDirectedReadOptions());
Assert.assertEquals(request.getDataBoostEnabled(), actualRequest.getDataBoostEnabled());
Assert.assertTrue(
channelProvider.isHeaderSent(
Expand All @@ -814,6 +822,7 @@ public void readExceptionTest() throws Exception {
.setResumeToken(ByteString.EMPTY)
.setPartitionToken(ByteString.EMPTY)
.setRequestOptions(RequestOptions.newBuilder().build())
.setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
.setDataBoostEnabled(true)
.build();
client.read(request);
Expand Down Expand Up @@ -847,6 +856,7 @@ public void streamingReadTest() throws Exception {
.setResumeToken(ByteString.EMPTY)
.setPartitionToken(ByteString.EMPTY)
.setRequestOptions(RequestOptions.newBuilder().build())
.setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
.setDataBoostEnabled(true)
.build();

Expand Down Expand Up @@ -878,6 +888,7 @@ public void streamingReadExceptionTest() throws Exception {
.setResumeToken(ByteString.EMPTY)
.setPartitionToken(ByteString.EMPTY)
.setRequestOptions(RequestOptions.newBuilder().build())
.setDirectedReadOptions(DirectedReadOptions.newBuilder().build())
.setDataBoostEnabled(true)
.build();

Expand Down
Loading
Loading