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

chore: Update generation configuration at Thu Oct 10 02:24:36 UTC 2024 #3385

Merged
merged 9 commits into from
Oct 10, 2024
Merged
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.47.0</version>
<version>26.48.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
gapic_generator_version: 2.46.1
googleapis_commitish: b6a27d13a2f0223051ef720e4e9d0d52323560e6
gapic_generator_version: 2.47.0
googleapis_commitish: 10b8dc3b54c9a609dcfda8060b8c4c734a942e8c
libraries_bom_version: 26.48.0
libraries:
- api_shortname: spanner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5471,6 +5471,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.MultiplexedSessionPrecommitToken",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.MultiplexedSessionPrecommitToken$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.Mutation",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,7 @@ public final Transaction beginTransaction(String session, TransactionOptions opt
* SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString())
* .setOptions(TransactionOptions.newBuilder().build())
* .setRequestOptions(RequestOptions.newBuilder().build())
* .setMutationKey(Mutation.newBuilder().build())
* .build();
* Transaction response = spannerClient.beginTransaction(request);
* }
Expand Down Expand Up @@ -1662,6 +1663,7 @@ public final Transaction beginTransaction(BeginTransactionRequest request) {
* SessionName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SESSION]").toString())
* .setOptions(TransactionOptions.newBuilder().build())
* .setRequestOptions(RequestOptions.newBuilder().build())
* .setMutationKey(Mutation.newBuilder().build())
* .build();
* ApiFuture<Transaction> future = spannerClient.beginTransactionCallable().futureCall(request);
* // Do something.
Expand Down Expand Up @@ -1911,6 +1913,7 @@ public final CommitResponse commit(
* .setReturnCommitStats(true)
* .setMaxCommitDelay(Duration.newBuilder().build())
* .setRequestOptions(RequestOptions.newBuilder().build())
* .setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
* .build();
* CommitResponse response = spannerClient.commit(request);
* }
Expand Down Expand Up @@ -1955,6 +1958,7 @@ public final CommitResponse commit(CommitRequest request) {
* .setReturnCommitStats(true)
* .setMaxCommitDelay(Duration.newBuilder().build())
* .setRequestOptions(RequestOptions.newBuilder().build())
* .setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
* .build();
* ApiFuture<CommitResponse> future = spannerClient.commitCallable().futureCall(request);
* // Do something.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.MultiplexedSessionPrecommitToken",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.MultiplexedSessionPrecommitToken$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.Mutation",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import com.google.spanner.v1.ExecuteSqlRequest;
import com.google.spanner.v1.KeySet;
import com.google.spanner.v1.ListSessionsResponse;
import com.google.spanner.v1.MultiplexedSessionPrecommitToken;
import com.google.spanner.v1.Mutation;
import com.google.spanner.v1.Partition;
import com.google.spanner.v1.PartitionOptions;
Expand Down Expand Up @@ -587,6 +588,7 @@ public void executeSqlTest() throws Exception {
.setMetadata(ResultSetMetadata.newBuilder().build())
.addAllRows(new ArrayList<ListValue>())
.setStats(ResultSetStats.newBuilder().build())
.setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -673,6 +675,7 @@ public void executeBatchDmlTest() throws Exception {
ExecuteBatchDmlResponse.newBuilder()
.addAllResultSets(new ArrayList<ResultSet>())
.setStatus(Status.newBuilder().build())
.setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -735,6 +738,7 @@ public void readTest() throws Exception {
.setMetadata(ResultSetMetadata.newBuilder().build())
.addAllRows(new ArrayList<ListValue>())
.setStats(ResultSetStats.newBuilder().build())
.setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -821,6 +825,7 @@ public void beginTransactionTest() throws Exception {
Transaction.newBuilder()
.setId(ByteString.EMPTY)
.setReadTimestamp(Timestamp.newBuilder().build())
.setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -868,6 +873,7 @@ public void beginTransactionTest2() throws Exception {
Transaction.newBuilder()
.setId(ByteString.EMPTY)
.setReadTimestamp(Timestamp.newBuilder().build())
.setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import com.google.spanner.v1.KeySet;
import com.google.spanner.v1.ListSessionsRequest;
import com.google.spanner.v1.ListSessionsResponse;
import com.google.spanner.v1.MultiplexedSessionPrecommitToken;
import com.google.spanner.v1.Mutation;
import com.google.spanner.v1.PartialResultSet;
import com.google.spanner.v1.Partition;
Expand Down Expand Up @@ -545,6 +546,7 @@ public void executeSqlTest() throws Exception {
.setMetadata(ResultSetMetadata.newBuilder().build())
.addAllRows(new ArrayList<ListValue>())
.setStats(ResultSetStats.newBuilder().build())
.setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
.build();
mockSpanner.addResponse(expectedResponse);

Expand Down Expand Up @@ -629,6 +631,7 @@ public void executeStreamingSqlTest() throws Exception {
.setChunkedValue(true)
.setResumeToken(ByteString.EMPTY)
.setStats(ResultSetStats.newBuilder().build())
.setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
.build();
mockSpanner.addResponse(expectedResponse);
ExecuteSqlRequest request =
Expand Down Expand Up @@ -702,6 +705,7 @@ public void executeBatchDmlTest() throws Exception {
ExecuteBatchDmlResponse.newBuilder()
.addAllResultSets(new ArrayList<ResultSet>())
.setStatus(Status.newBuilder().build())
.setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
.build();
mockSpanner.addResponse(expectedResponse);

Expand Down Expand Up @@ -762,6 +766,7 @@ public void readTest() throws Exception {
.setMetadata(ResultSetMetadata.newBuilder().build())
.addAllRows(new ArrayList<ListValue>())
.setStats(ResultSetStats.newBuilder().build())
.setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
.build();
mockSpanner.addResponse(expectedResponse);

Expand Down Expand Up @@ -847,6 +852,7 @@ public void streamingReadTest() throws Exception {
.setChunkedValue(true)
.setResumeToken(ByteString.EMPTY)
.setStats(ResultSetStats.newBuilder().build())
.setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
.build();
mockSpanner.addResponse(expectedResponse);
ReadRequest request =
Expand Down Expand Up @@ -920,6 +926,7 @@ public void beginTransactionTest() throws Exception {
Transaction.newBuilder()
.setId(ByteString.EMPTY)
.setReadTimestamp(Timestamp.newBuilder().build())
.setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
.build();
mockSpanner.addResponse(expectedResponse);

Expand Down Expand Up @@ -962,6 +969,7 @@ public void beginTransactionTest2() throws Exception {
Transaction.newBuilder()
.setId(ByteString.EMPTY)
.setReadTimestamp(Timestamp.newBuilder().build())
.setPrecommitToken(MultiplexedSessionPrecommitToken.newBuilder().build())
.build();
mockSpanner.addResponse(expectedResponse);

Expand Down
Loading
Loading