Skip to content

Commit 7340527

Browse files
chore: update googleapis commit at Wed Mar 5 02:26:37 UTC 2025 (#2503)
This pull request is generated with proto changes between [googleapis/googleapis@da30f52](https://togithub.com/googleapis/googleapis/commit/da30f52583f070f676ed886ed9e33d84a646f74c) (exclusive) and [googleapis/googleapis@c57048e](https://togithub.com/googleapis/googleapis/commit/c57048e5e01822cbac85d8d16660cd096454d00f) (inclusive). BEGIN_COMMIT_OVERRIDE BEGIN_NESTED_COMMIT chore: Add grpc service config for ExecuteQuery API PiperOrigin-RevId: 733462032 Source Link: [googleapis/googleapis@03183b7](https://togithub.com/googleapis/googleapis/commit/03183b76c8c37b7442e4f20dc50c3d1ab65c4e4d) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: Fixed formatting of resource path strings PiperOrigin-RevId: 733415839 Source Link: [googleapis/googleapis@da20dfe](https://togithub.com/googleapis/googleapis/commit/da20dfe4f5bb94a0aeb178d90847c1410f5416dc) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add MaterializedViews and LogicalViews APIs PiperOrigin-RevId: 733101782 Source Link: [googleapis/googleapis@05f571e](https://togithub.com/googleapis/googleapis/commit/05f571eb755baad00ed592fb946004fc9c12d2cc) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: publish row_key_schema fields in table proto and relevant admin APIs to setup a table with a row_key_schema PiperOrigin-RevId: 732197624 Source Link: [googleapis/googleapis@33b23a7](https://togithub.com/googleapis/googleapis/commit/33b23a795cf6fa480df56074540fc2f9a7936012) END_NESTED_COMMIT BEGIN_NESTED_COMMIT chore: update copyright year for auto-generated protos PiperOrigin-RevId: 732130682 Source Link: [googleapis/googleapis@9415ba0](https://togithub.com/googleapis/googleapis/commit/9415ba048aa587b1b2df2b96fc00aa009c831597) END_NESTED_COMMIT END_COMMIT_OVERRIDE
1 parent 91e4369 commit 7340527

File tree

54 files changed

+22475
-4141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+22475
-4141
lines changed

generation_config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
gapic_generator_version: 2.54.0
2-
googleapis_commitish: da30f52583f070f676ed886ed9e33d84a646f74c
2+
googleapis_commitish: c57048e5e01822cbac85d8d16660cd096454d00f
33
libraries_bom_version: 26.51.0
44
template_excludes:
55
- .gitignore

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java

+72-2
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public final OperationsClient getOperationsClient() {
185185
* @param clusters Required. The clusters to be created within the instance, mapped by desired
186186
* cluster ID, e.g., just `mycluster` rather than
187187
* `projects/myproject/instances/myinstance/clusters/mycluster`. Fields marked `OutputOnly`
188-
* must be left blank. Currently, at most four clusters can be specified.
188+
* must be left blank.
189189
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
190190
*/
191191
public final OperationFuture<Instance, CreateInstanceMetadata> createInstanceAsync(
@@ -239,7 +239,7 @@ public final OperationFuture<Instance, CreateInstanceMetadata> createInstanceAsy
239239
* @param clusters Required. The clusters to be created within the instance, mapped by desired
240240
* cluster ID, e.g., just `mycluster` rather than
241241
* `projects/myproject/instances/myinstance/clusters/mycluster`. Fields marked `OutputOnly`
242-
* must be left blank. Currently, at most four clusters can be specified.
242+
* must be left blank.
243243
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
244244
*/
245245
public final OperationFuture<Instance, CreateInstanceMetadata> createInstanceAsync(
@@ -623,6 +623,7 @@ public final UnaryCallable<ListInstancesRequest, ListInstancesResponse> listInst
623623
* .putAllLabels(new HashMap<String, String>())
624624
* .setCreateTime(Timestamp.newBuilder().build())
625625
* .setSatisfiesPzs(true)
626+
* .setSatisfiesPzi(true)
626627
* .build();
627628
* Instance response = baseBigtableInstanceAdminClient.updateInstance(request);
628629
* }
@@ -657,6 +658,7 @@ public final Instance updateInstance(Instance request) {
657658
* .putAllLabels(new HashMap<String, String>())
658659
* .setCreateTime(Timestamp.newBuilder().build())
659660
* .setSatisfiesPzs(true)
661+
* .setSatisfiesPzi(true)
660662
* .build();
661663
* ApiFuture<Instance> future =
662664
* baseBigtableInstanceAdminClient.updateInstanceCallable().futureCall(request);
@@ -2385,6 +2387,74 @@ public final void deleteAppProfile(String name) {
23852387
deleteAppProfile(request);
23862388
}
23872389

2390+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
2391+
/**
2392+
* Deletes an app profile from an instance.
2393+
*
2394+
* <p>Sample code:
2395+
*
2396+
* <pre>{@code
2397+
* // This snippet has been automatically generated and should be regarded as a code template only.
2398+
* // It will require modifications to work:
2399+
* // - It may require correct/in-range values for request initialization.
2400+
* // - It may require specifying regional endpoints when creating the service client as shown in
2401+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2402+
* try (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
2403+
* BaseBigtableInstanceAdminClient.create()) {
2404+
* AppProfileName name = AppProfileName.of("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]");
2405+
* boolean ignoreWarnings = true;
2406+
* baseBigtableInstanceAdminClient.deleteAppProfile(name, ignoreWarnings);
2407+
* }
2408+
* }</pre>
2409+
*
2410+
* @param name Required. The unique name of the app profile to be deleted. Values are of the form
2411+
* `projects/{project}/instances/{instance}/appProfiles/{app_profile}`.
2412+
* @param ignoreWarnings Required. If true, ignore safety checks when deleting the app profile.
2413+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
2414+
*/
2415+
public final void deleteAppProfile(AppProfileName name, boolean ignoreWarnings) {
2416+
DeleteAppProfileRequest request =
2417+
DeleteAppProfileRequest.newBuilder()
2418+
.setName(name == null ? null : name.toString())
2419+
.setIgnoreWarnings(ignoreWarnings)
2420+
.build();
2421+
deleteAppProfile(request);
2422+
}
2423+
2424+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
2425+
/**
2426+
* Deletes an app profile from an instance.
2427+
*
2428+
* <p>Sample code:
2429+
*
2430+
* <pre>{@code
2431+
* // This snippet has been automatically generated and should be regarded as a code template only.
2432+
* // It will require modifications to work:
2433+
* // - It may require correct/in-range values for request initialization.
2434+
* // - It may require specifying regional endpoints when creating the service client as shown in
2435+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2436+
* try (BaseBigtableInstanceAdminClient baseBigtableInstanceAdminClient =
2437+
* BaseBigtableInstanceAdminClient.create()) {
2438+
* String name = AppProfileName.of("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]").toString();
2439+
* boolean ignoreWarnings = true;
2440+
* baseBigtableInstanceAdminClient.deleteAppProfile(name, ignoreWarnings);
2441+
* }
2442+
* }</pre>
2443+
*
2444+
* @param name Required. The unique name of the app profile to be deleted. Values are of the form
2445+
* `projects/{project}/instances/{instance}/appProfiles/{app_profile}`.
2446+
* @param ignoreWarnings Required. If true, ignore safety checks when deleting the app profile.
2447+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
2448+
*/
2449+
public final void deleteAppProfile(String name, boolean ignoreWarnings) {
2450+
DeleteAppProfileRequest request =
2451+
DeleteAppProfileRequest.newBuilder()
2452+
.setName(name)
2453+
.setIgnoreWarnings(ignoreWarnings)
2454+
.build();
2455+
deleteAppProfile(request);
2456+
}
2457+
23882458
// AUTO-GENERATED DOCUMENTATION AND METHOD.
23892459
/**
23902460
* Deletes an app profile from an instance.

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java

+4
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,7 @@ public final UnaryCallable<GetTableRequest, Table> getTableCallable() {
944944
* <li>`change_stream_config`
945945
* <li>`change_stream_config.retention_period`
946946
* <li>`deletion_protection`
947+
* <li>`row_key_schema`
947948
* </ul>
948949
* <p>If `column_families` is set in `update_mask`, it will return an UNIMPLEMENTED error.
949950
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -973,6 +974,7 @@ public final OperationFuture<Table, UpdateTableMetadata> updateTableAsync(
973974
* UpdateTableRequest.newBuilder()
974975
* .setTable(Table.newBuilder().build())
975976
* .setUpdateMask(FieldMask.newBuilder().build())
977+
* .setIgnoreWarnings(true)
976978
* .build();
977979
* Table response = baseBigtableTableAdminClient.updateTableAsync(request).get();
978980
* }
@@ -1004,6 +1006,7 @@ public final OperationFuture<Table, UpdateTableMetadata> updateTableAsync(
10041006
* UpdateTableRequest.newBuilder()
10051007
* .setTable(Table.newBuilder().build())
10061008
* .setUpdateMask(FieldMask.newBuilder().build())
1009+
* .setIgnoreWarnings(true)
10071010
* .build();
10081011
* OperationFuture<Table, UpdateTableMetadata> future =
10091012
* baseBigtableTableAdminClient.updateTableOperationCallable().futureCall(request);
@@ -1035,6 +1038,7 @@ public final OperationFuture<Table, UpdateTableMetadata> updateTableAsync(
10351038
* UpdateTableRequest.newBuilder()
10361039
* .setTable(Table.newBuilder().build())
10371040
* .setUpdateMask(FieldMask.newBuilder().build())
1041+
* .setIgnoreWarnings(true)
10381042
* .build();
10391043
* ApiFuture<Operation> future =
10401044
* baseBigtableTableAdminClient.updateTableCallable().futureCall(request);

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/gapic_metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"methods": ["createInstanceAsync", "createInstanceAsync", "createInstanceAsync", "createInstanceOperationCallable", "createInstanceCallable"]
2121
},
2222
"DeleteAppProfile": {
23-
"methods": ["deleteAppProfile", "deleteAppProfile", "deleteAppProfile", "deleteAppProfileCallable"]
23+
"methods": ["deleteAppProfile", "deleteAppProfile", "deleteAppProfile", "deleteAppProfile", "deleteAppProfile", "deleteAppProfileCallable"]
2424
},
2525
"DeleteCluster": {
2626
"methods": ["deleteCluster", "deleteCluster", "deleteCluster", "deleteClusterCallable"]

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java

+30-14
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public static class Builder extends StubSettings.Builder<BigtableStubSettings, B
287287
definitions.put(
288288
"no_retry_1_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
289289
definitions.put(
290-
"retry_policy_4_codes",
290+
"retry_policy_5_codes",
291291
ImmutableSet.copyOf(
292292
Lists.<StatusCode.Code>newArrayList(
293293
StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED)));
@@ -296,10 +296,15 @@ public static class Builder extends StubSettings.Builder<BigtableStubSettings, B
296296
definitions.put(
297297
"no_retry_0_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
298298
definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
299-
definitions.put(
300-
"no_retry_5_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
301299
definitions.put(
302300
"no_retry_6_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
301+
definitions.put(
302+
"no_retry_7_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
303+
definitions.put(
304+
"retry_policy_4_codes",
305+
ImmutableSet.copyOf(
306+
Lists.<StatusCode.Code>newArrayList(
307+
StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED)));
303308
RETRYABLE_CODE_DEFINITIONS = definitions.build();
304309
}
305310

@@ -334,7 +339,7 @@ public static class Builder extends StubSettings.Builder<BigtableStubSettings, B
334339
.setMaxRpcTimeoutDuration(Duration.ofMillis(60000L))
335340
.setTotalTimeoutDuration(Duration.ofMillis(60000L))
336341
.build();
337-
definitions.put("retry_policy_4_params", settings);
342+
definitions.put("retry_policy_5_params", settings);
338343
settings =
339344
RetrySettings.newBuilder()
340345
.setInitialRpcTimeoutDuration(Duration.ofMillis(600000L))
@@ -360,15 +365,26 @@ public static class Builder extends StubSettings.Builder<BigtableStubSettings, B
360365
.setMaxRpcTimeoutDuration(Duration.ofMillis(60000L))
361366
.setTotalTimeoutDuration(Duration.ofMillis(60000L))
362367
.build();
363-
definitions.put("no_retry_5_params", settings);
368+
definitions.put("no_retry_6_params", settings);
364369
settings =
365370
RetrySettings.newBuilder()
366371
.setInitialRpcTimeoutDuration(Duration.ofMillis(43200000L))
367372
.setRpcTimeoutMultiplier(1.0)
368373
.setMaxRpcTimeoutDuration(Duration.ofMillis(43200000L))
369374
.setTotalTimeoutDuration(Duration.ofMillis(43200000L))
370375
.build();
371-
definitions.put("no_retry_6_params", settings);
376+
definitions.put("no_retry_7_params", settings);
377+
settings =
378+
RetrySettings.newBuilder()
379+
.setInitialRetryDelayDuration(Duration.ofMillis(10L))
380+
.setRetryDelayMultiplier(2.0)
381+
.setMaxRetryDelayDuration(Duration.ofMillis(60000L))
382+
.setInitialRpcTimeoutDuration(Duration.ofMillis(43200000L))
383+
.setRpcTimeoutMultiplier(1.0)
384+
.setMaxRpcTimeoutDuration(Duration.ofMillis(43200000L))
385+
.setTotalTimeoutDuration(Duration.ofMillis(43200000L))
386+
.build();
387+
definitions.put("retry_policy_4_params", settings);
372388
RETRY_PARAM_DEFINITIONS = definitions.build();
373389
}
374390

@@ -447,8 +463,8 @@ private static Builder initDefaults(Builder builder) {
447463

448464
builder
449465
.mutateRowSettings()
450-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes"))
451-
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params"));
466+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes"))
467+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params"));
452468

453469
builder
454470
.mutateRowsSettings()
@@ -472,18 +488,18 @@ private static Builder initDefaults(Builder builder) {
472488

473489
builder
474490
.generateInitialChangeStreamPartitionsSettings()
475-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes"))
476-
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params"));
491+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes"))
492+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params"));
477493

478494
builder
479495
.readChangeStreamSettings()
480-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes"))
481-
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params"));
496+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes"))
497+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params"));
482498

483499
builder
484500
.executeQuerySettings()
485-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
486-
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
501+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes"))
502+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params"));
487503

488504
return builder;
489505
}

0 commit comments

Comments
 (0)