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

deps: Update gapic-generator-java to 2.21.0 #1760

Merged
merged 2 commits into from Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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