Skip to content

Commit

Permalink
deps: Update gapic-generator-java to 2.21.0 (#1760)
Browse files Browse the repository at this point in the history
* chore(deps): Update gapic-generator-java to 2.21.0

PiperOrigin-RevId: 538365689

Source-Link: googleapis/googleapis@7ac8a24

Source-Link: googleapis/googleapis-gen@e58eedb
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTU4ZWVkYjc1ZDNjMDc4NzgwOTdjZGZiZmQzZmZkYjc2NDY3NjNhMyJ9

chore: upgrading protobuf to 23.2 for code generation

PiperOrigin-RevId: 537035741

Source-Link: googleapis/googleapis@640f743

Source-Link: googleapis/googleapis-gen@5ec02ed
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWVjMDJlZDIwMjI4NzhmOTljOTRjNzYzMDYwZmY2YTAxODg5NmI2ZSJ9

feat: add ChangeStreamConfig to CreateTable and UpdateTable

PiperOrigin-RevId: 534836567

Source-Link: googleapis/googleapis@eb2d1f1

Source-Link: googleapis/googleapis-gen@64cebcf
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjRjZWJjZmMyNzY1YmZmNWFmYjE5YzE0MGQ0YjE2MDBkZmRhZWJhZCJ9

chore: upgrading Protobuf to 23.1 and gRPC to 1.55.0 in code generation

PiperOrigin-RevId: 534084593

Source-Link: googleapis/googleapis@aa4559a

Source-Link: googleapis/googleapis-gen@370325a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzcwMzI1YWY4MjM2NzMyZjU4ODVmNTk0MGUwZWY0ODFmZWU4MzAwMyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jun 8, 2023
1 parent 739d768 commit 05545f8
Show file tree
Hide file tree
Showing 185 changed files with 2,996 additions and 1,910 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -924,11 +924,15 @@ public final UnaryCallable<GetTableRequest, Table> getTableCallable() {
* @param table Required. The table to update. The table's `name` field is used to identify the
* table to update.
* @param updateMask Required. The list of fields to update. A mask specifying which fields (e.g.
* `deletion_protection`) in the `table` field should be updated. This mask is relative to the
* `table` field, not to the request message. The wildcard (&#42;) path is currently not
* supported. Currently UpdateTable is only supported for the following field: &#42;
* `deletion_protection` If `column_families` is set in `update_mask`, it will return an
* UNIMPLEMENTED error.
* `change_stream_config`) in the `table` field should be updated. This mask is relative to
* the `table` field, not to the request message. The wildcard (&#42;) path is currently not
* supported. Currently UpdateTable is only supported for the following fields:
* <ul>
* <li>`change_stream_config`
* <li>`change_stream_config.retention_period`
* <li>`deletion_protection`
* </ul>
* <p>If `column_families` is set in `update_mask`, it will return an UNIMPLEMENTED error.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Table, UpdateTableMetadata> updateTableAsync(
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

Large diffs are not rendered by default.

@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

Large diffs are not rendered by default.

@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -44,7 +44,6 @@
import com.google.bigtable.v2.ReadRowsResponse;
import com.google.bigtable.v2.SampleRowKeysRequest;
import com.google.bigtable.v2.SampleRowKeysResponse;
import com.google.common.collect.ImmutableMap;
import com.google.longrunning.stub.GrpcOperationsStub;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
Expand Down Expand Up @@ -350,9 +349,9 @@ protected GrpcBigtableStub(
.setMethodDescriptor(generateInitialChangeStreamPartitionsMethodDescriptor)
.setParamsExtractor(
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("table_name", String.valueOf(request.getTableName()));
return params.build();
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("table_name", String.valueOf(request.getTableName()));
return builder.build();
})
.build();
GrpcCallSettings<ReadChangeStreamRequest, ReadChangeStreamResponse>
Expand All @@ -361,9 +360,9 @@ protected GrpcBigtableStub(
.setMethodDescriptor(readChangeStreamMethodDescriptor)
.setParamsExtractor(
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("table_name", String.valueOf(request.getTableName()));
return params.build();
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("table_name", String.valueOf(request.getTableName()));
return builder.build();
})
.build();

Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -31,6 +31,7 @@
import com.google.api.resourcenames.ResourceName;
import com.google.bigtable.admin.v2.Backup;
import com.google.bigtable.admin.v2.BackupName;
import com.google.bigtable.admin.v2.ChangeStreamConfig;
import com.google.bigtable.admin.v2.CheckConsistencyRequest;
import com.google.bigtable.admin.v2.CheckConsistencyResponse;
import com.google.bigtable.admin.v2.ClusterName;
Expand Down Expand Up @@ -143,6 +144,7 @@ public void createTableTest() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
mockBigtableTableAdmin.addResponse(expectedResponse);
Expand Down Expand Up @@ -191,6 +193,7 @@ public void createTableTest2() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
mockBigtableTableAdmin.addResponse(expectedResponse);
Expand Down Expand Up @@ -239,6 +242,7 @@ public void createTableFromSnapshotTest() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
Operation resultOperation =
Expand Down Expand Up @@ -299,6 +303,7 @@ public void createTableFromSnapshotTest2() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
Operation resultOperation =
Expand Down Expand Up @@ -357,6 +362,7 @@ public void createTableFromSnapshotTest3() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
Operation resultOperation =
Expand Down Expand Up @@ -417,6 +423,7 @@ public void createTableFromSnapshotTest4() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
Operation resultOperation =
Expand Down Expand Up @@ -563,6 +570,7 @@ public void getTableTest() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
mockBigtableTableAdmin.addResponse(expectedResponse);
Expand Down Expand Up @@ -605,6 +613,7 @@ public void getTableTest2() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
mockBigtableTableAdmin.addResponse(expectedResponse);
Expand Down Expand Up @@ -647,6 +656,7 @@ public void updateTableTest() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
Operation resultOperation =
Expand Down Expand Up @@ -768,6 +778,7 @@ public void undeleteTableTest() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
Operation resultOperation =
Expand Down Expand Up @@ -818,6 +829,7 @@ public void undeleteTableTest2() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
Operation resultOperation =
Expand Down Expand Up @@ -868,6 +880,7 @@ public void modifyColumnFamiliesTest() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
mockBigtableTableAdmin.addResponse(expectedResponse);
Expand Down Expand Up @@ -914,6 +927,7 @@ public void modifyColumnFamiliesTest2() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
mockBigtableTableAdmin.addResponse(expectedResponse);
Expand Down Expand Up @@ -2058,6 +2072,7 @@ public void restoreTableTest() throws Exception {
.putAllClusterStates(new HashMap<String, Table.ClusterState>())
.putAllColumnFamilies(new HashMap<String, ColumnFamily>())
.setRestoreInfo(RestoreInfo.newBuilder().build())
.setChangeStreamConfig(ChangeStreamConfig.newBuilder().build())
.setDeletionProtection(true)
.build();
Operation resultOperation =
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 05545f8

Please sign in to comment.