Skip to content

Commit

Permalink
chore: generate libraries at Wed Oct 9 10:12:45 UTC 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-java-bot committed Oct 9, 2024
1 parent 59f1090 commit b06f8eb
Show file tree
Hide file tree
Showing 30 changed files with 4,249 additions and 239 deletions.
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

0 comments on commit b06f8eb

Please sign in to comment.