| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 32190d7 commit a5ebcd3
22 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | gapic_generator_version: 2.52.0 | |
| 2 | - googleapis_commitish: 2a3db2e19f48a139db9f40278c0217df110add9b | ||
| 2 | + googleapis_commitish: 3cf61b2df20eace09e6336c23f9e08859c0d87ae | ||
| 3 | 3 | libraries_bom_version: 26.53.0 | |
| 4 | 4 | libraries: | |
| 5 | 5 | - api_shortname: spanner | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1700,6 +1700,42 @@ | |||
| 1700 | 1700 | "allDeclaredClasses": true, | |
| 1701 | 1701 | "allPublicClasses": true | |
| 1702 | 1702 | }, | |
| 1703 | + { | ||
| 1704 | + "name": "com.google.spanner.admin.database.v1.AddSplitPointsRequest", | ||
| 1705 | + "queryAllDeclaredConstructors": true, | ||
| 1706 | + "queryAllPublicConstructors": true, | ||
| 1707 | + "queryAllDeclaredMethods": true, | ||
| 1708 | + "allPublicMethods": true, | ||
| 1709 | + "allDeclaredClasses": true, | ||
| 1710 | + "allPublicClasses": true | ||
| 1711 | + }, | ||
| 1712 | + { | ||
| 1713 | + "name": "com.google.spanner.admin.database.v1.AddSplitPointsRequest$Builder", | ||
| 1714 | + "queryAllDeclaredConstructors": true, | ||
| 1715 | + "queryAllPublicConstructors": true, | ||
| 1716 | + "queryAllDeclaredMethods": true, | ||
| 1717 | + "allPublicMethods": true, | ||
| 1718 | + "allDeclaredClasses": true, | ||
| 1719 | + "allPublicClasses": true | ||
| 1720 | + }, | ||
| 1721 | + { | ||
| 1722 | + "name": "com.google.spanner.admin.database.v1.AddSplitPointsResponse", | ||
| 1723 | + "queryAllDeclaredConstructors": true, | ||
| 1724 | + "queryAllPublicConstructors": true, | ||
| 1725 | + "queryAllDeclaredMethods": true, | ||
| 1726 | + "allPublicMethods": true, | ||
| 1727 | + "allDeclaredClasses": true, | ||
| 1728 | + "allPublicClasses": true | ||
| 1729 | + }, | ||
| 1730 | + { | ||
| 1731 | + "name": "com.google.spanner.admin.database.v1.AddSplitPointsResponse$Builder", | ||
| 1732 | + "queryAllDeclaredConstructors": true, | ||
| 1733 | + "queryAllPublicConstructors": true, | ||
| 1734 | + "queryAllDeclaredMethods": true, | ||
| 1735 | + "allPublicMethods": true, | ||
| 1736 | + "allDeclaredClasses": true, | ||
| 1737 | + "allPublicClasses": true | ||
| 1738 | + }, | ||
| 1703 | 1739 | { | |
| 1704 | 1740 | "name": "com.google.spanner.admin.database.v1.Backup", | |
| 1705 | 1741 | "queryAllDeclaredConstructors": true, | |
@@ -2618,6 +2654,42 @@ | |||
| 2618 | 2654 | "allDeclaredClasses": true, | |
| 2619 | 2655 | "allPublicClasses": true | |
| 2620 | 2656 | }, | |
| 2657 | + { | ||
| 2658 | + "name": "com.google.spanner.admin.database.v1.SplitPoints", | ||
| 2659 | + "queryAllDeclaredConstructors": true, | ||
| 2660 | + "queryAllPublicConstructors": true, | ||
| 2661 | + "queryAllDeclaredMethods": true, | ||
| 2662 | + "allPublicMethods": true, | ||
| 2663 | + "allDeclaredClasses": true, | ||
| 2664 | + "allPublicClasses": true | ||
| 2665 | + }, | ||
| 2666 | + { | ||
| 2667 | + "name": "com.google.spanner.admin.database.v1.SplitPoints$Builder", | ||
| 2668 | + "queryAllDeclaredConstructors": true, | ||
| 2669 | + "queryAllPublicConstructors": true, | ||
| 2670 | + "queryAllDeclaredMethods": true, | ||
| 2671 | + "allPublicMethods": true, | ||
| 2672 | + "allDeclaredClasses": true, | ||
| 2673 | + "allPublicClasses": true | ||
| 2674 | + }, | ||
| 2675 | + { | ||
| 2676 | + "name": "com.google.spanner.admin.database.v1.SplitPoints$Key", | ||
| 2677 | + "queryAllDeclaredConstructors": true, | ||
| 2678 | + "queryAllPublicConstructors": true, | ||
| 2679 | + "queryAllDeclaredMethods": true, | ||
| 2680 | + "allPublicMethods": true, | ||
| 2681 | + "allDeclaredClasses": true, | ||
| 2682 | + "allPublicClasses": true | ||
| 2683 | + }, | ||
| 2684 | + { | ||
| 2685 | + "name": "com.google.spanner.admin.database.v1.SplitPoints$Key$Builder", | ||
| 2686 | + "queryAllDeclaredConstructors": true, | ||
| 2687 | + "queryAllPublicConstructors": true, | ||
| 2688 | + "queryAllDeclaredMethods": true, | ||
| 2689 | + "allPublicMethods": true, | ||
| 2690 | + "allDeclaredClasses": true, | ||
| 2691 | + "allPublicClasses": true | ||
| 2692 | + }, | ||
| 2621 | 2693 | { | |
| 2622 | 2694 | "name": "com.google.spanner.admin.database.v1.UpdateBackupRequest", | |
| 2623 | 2695 | "queryAllDeclaredConstructors": true, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,6 +41,8 @@ | |||
| 41 | 41 | import com.google.protobuf.Empty; | |
| 42 | 42 | import com.google.protobuf.FieldMask; | |
| 43 | 43 | import com.google.protobuf.Timestamp; | |
| 44 | + import com.google.spanner.admin.database.v1.AddSplitPointsRequest; | ||
| 45 | + import com.google.spanner.admin.database.v1.AddSplitPointsResponse; | ||
| 44 | 46 | import com.google.spanner.admin.database.v1.Backup; | |
| 45 | 47 | import com.google.spanner.admin.database.v1.BackupName; | |
| 46 | 48 | import com.google.spanner.admin.database.v1.BackupSchedule; | |
@@ -78,6 +80,7 @@ | |||
| 78 | 80 | import com.google.spanner.admin.database.v1.ListDatabasesResponse; | |
| 79 | 81 | import com.google.spanner.admin.database.v1.RestoreDatabaseMetadata; | |
| 80 | 82 | import com.google.spanner.admin.database.v1.RestoreDatabaseRequest; | |
| 83 | + import com.google.spanner.admin.database.v1.SplitPoints; | ||
| 81 | 84 | import com.google.spanner.admin.database.v1.UpdateBackupRequest; | |
| 82 | 85 | import com.google.spanner.admin.database.v1.UpdateBackupScheduleRequest; | |
| 83 | 86 | import com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata; | |
@@ -524,6 +527,25 @@ | |||
| 524 | 527 | * </td> | |
| 525 | 528 | * </tr> | |
| 526 | 529 | * <tr> | |
| 530 | + * <td><p> AddSplitPoints</td> | ||
| 531 | + * <td><p> Adds split points to specified tables, indexes of a database.</td> | ||
| 532 | + * <td> | ||
| 533 | + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> | ||
| 534 | + * <ul> | ||
| 535 | + * <li><p> addSplitPoints(AddSplitPointsRequest request) | ||
| 536 | + * </ul> | ||
| 537 | + * <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> | ||
| 538 | + * <ul> | ||
| 539 | + * <li><p> addSplitPoints(DatabaseName database, List<SplitPoints> splitPoints) | ||
| 540 | + * <li><p> addSplitPoints(String database, List<SplitPoints> splitPoints) | ||
| 541 | + * </ul> | ||
| 542 | + * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> | ||
| 543 | + * <ul> | ||
| 544 | + * <li><p> addSplitPointsCallable() | ||
| 545 | + * </ul> | ||
| 546 | + * </td> | ||
| 547 | + * </tr> | ||
| 548 | + * <tr> | ||
| 527 | 549 | * <td><p> CreateBackupSchedule</td> | |
| 528 | 550 | * <td><p> Creates a new backup schedule.</td> | |
| 529 | 551 | * <td> | |
@@ -4318,6 +4340,137 @@ public final ListDatabaseRolesPagedResponse listDatabaseRoles(ListDatabaseRolesR | |||
| 4318 | 4340 | return stub.listDatabaseRolesCallable(); | |
| 4319 | 4341 | } | |
| 4320 | 4342 | ||
| 4343 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. | ||
| 4344 | + /** | ||
| 4345 | + * Adds split points to specified tables, indexes of a database. | ||
| 4346 | + * | ||
| 4347 | + * <p>Sample code: | ||
| 4348 | + * | ||
| 4349 | + * <pre>{@code | ||
| 4350 | + * // This snippet has been automatically generated and should be regarded as a code template only. | ||
| 4351 | + * // It will require modifications to work: | ||
| 4352 | + * // - It may require correct/in-range values for request initialization. | ||
| 4353 | + * // - It may require specifying regional endpoints when creating the service client as shown in | ||
| 4354 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library | ||
| 4355 | + * try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) { | ||
| 4356 | + * DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); | ||
| 4357 | + * List<SplitPoints> splitPoints = new ArrayList<>(); | ||
| 4358 | + * AddSplitPointsResponse response = databaseAdminClient.addSplitPoints(database, splitPoints); | ||
| 4359 | + * } | ||
| 4360 | + * }</pre> | ||
| 4361 | + * | ||
| 4362 | + * @param database Required. The database on whose tables/indexes split points are to be added. | ||
| 4363 | + * Values are of the form | ||
| 4364 | + * `projects/<project>/instances/<instance>/databases/<database>`. | ||
| 4365 | + * @param splitPoints Required. The split points to add. | ||
| 4366 | + * @throws com.google.api.gax.rpc.ApiException if the remote call fails | ||
| 4367 | + */ | ||
| 4368 | + public final AddSplitPointsResponse addSplitPoints( | ||
| 4369 | + DatabaseName database, List<SplitPoints> splitPoints) { | ||
| 4370 | + AddSplitPointsRequest request = | ||
| 4371 | + AddSplitPointsRequest.newBuilder() | ||
| 4372 | + .setDatabase(database == null ? null : database.toString()) | ||
| 4373 | + .addAllSplitPoints(splitPoints) | ||
| 4374 | + .build(); | ||
| 4375 | + return addSplitPoints(request); | ||
| 4376 | + } | ||
| 4377 | + | ||
| 4378 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. | ||
| 4379 | + /** | ||
| 4380 | + * Adds split points to specified tables, indexes of a database. | ||
| 4381 | + * | ||
| 4382 | + * <p>Sample code: | ||
| 4383 | + * | ||
| 4384 | + * <pre>{@code | ||
| 4385 | + * // This snippet has been automatically generated and should be regarded as a code template only. | ||
| 4386 | + * // It will require modifications to work: | ||
| 4387 | + * // - It may require correct/in-range values for request initialization. | ||
| 4388 | + * // - It may require specifying regional endpoints when creating the service client as shown in | ||
| 4389 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library | ||
| 4390 | + * try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) { | ||
| 4391 | + * String database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString(); | ||
| 4392 | + * List<SplitPoints> splitPoints = new ArrayList<>(); | ||
| 4393 | + * AddSplitPointsResponse response = databaseAdminClient.addSplitPoints(database, splitPoints); | ||
| 4394 | + * } | ||
| 4395 | + * }</pre> | ||
| 4396 | + * | ||
| 4397 | + * @param database Required. The database on whose tables/indexes split points are to be added. | ||
| 4398 | + * Values are of the form | ||
| 4399 | + * `projects/<project>/instances/<instance>/databases/<database>`. | ||
| 4400 | + * @param splitPoints Required. The split points to add. | ||
| 4401 | + * @throws com.google.api.gax.rpc.ApiException if the remote call fails | ||
| 4402 | + */ | ||
| 4403 | + public final AddSplitPointsResponse addSplitPoints( | ||
| 4404 | + String database, List<SplitPoints> splitPoints) { | ||
| 4405 | + AddSplitPointsRequest request = | ||
| 4406 | + AddSplitPointsRequest.newBuilder() | ||
| 4407 | + .setDatabase(database) | ||
| 4408 | + .addAllSplitPoints(splitPoints) | ||
| 4409 | + .build(); | ||
| 4410 | + return addSplitPoints(request); | ||
| 4411 | + } | ||
| 4412 | + | ||
| 4413 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. | ||
| 4414 | + /** | ||
| 4415 | + * Adds split points to specified tables, indexes of a database. | ||
| 4416 | + * | ||
| 4417 | + * <p>Sample code: | ||
| 4418 | + * | ||
| 4419 | + * <pre>{@code | ||
| 4420 | + * // This snippet has been automatically generated and should be regarded as a code template only. | ||
| 4421 | + * // It will require modifications to work: | ||
| 4422 | + * // - It may require correct/in-range values for request initialization. | ||
| 4423 | + * // - It may require specifying regional endpoints when creating the service client as shown in | ||
| 4424 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library | ||
| 4425 | + * try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) { | ||
| 4426 | + * AddSplitPointsRequest request = | ||
| 4427 | + * AddSplitPointsRequest.newBuilder() | ||
| 4428 | + * .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) | ||
| 4429 | + * .addAllSplitPoints(new ArrayList<SplitPoints>()) | ||
| 4430 | + * .setInitiator("initiator-248987089") | ||
| 4431 | + * .build(); | ||
| 4432 | + * AddSplitPointsResponse response = databaseAdminClient.addSplitPoints(request); | ||
| 4433 | + * } | ||
| 4434 | + * }</pre> | ||
| 4435 | + * | ||
| 4436 | + * @param request The request object containing all of the parameters for the API call. | ||
| 4437 | + * @throws com.google.api.gax.rpc.ApiException if the remote call fails | ||
| 4438 | + */ | ||
| 4439 | + public final AddSplitPointsResponse addSplitPoints(AddSplitPointsRequest request) { | ||
| 4440 | + return addSplitPointsCallable().call(request); | ||
| 4441 | + } | ||
| 4442 | + | ||
| 4443 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. | ||
| 4444 | + /** | ||
| 4445 | + * Adds split points to specified tables, indexes of a database. | ||
| 4446 | + * | ||
| 4447 | + * <p>Sample code: | ||
| 4448 | + * | ||
| 4449 | + * <pre>{@code | ||
| 4450 | + * // This snippet has been automatically generated and should be regarded as a code template only. | ||
| 4451 | + * // It will require modifications to work: | ||
| 4452 | + * // - It may require correct/in-range values for request initialization. | ||
| 4453 | + * // - It may require specifying regional endpoints when creating the service client as shown in | ||
| 4454 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library | ||
| 4455 | + * try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) { | ||
| 4456 | + * AddSplitPointsRequest request = | ||
| 4457 | + * AddSplitPointsRequest.newBuilder() | ||
| 4458 | + * .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) | ||
| 4459 | + * .addAllSplitPoints(new ArrayList<SplitPoints>()) | ||
| 4460 | + * .setInitiator("initiator-248987089") | ||
| 4461 | + * .build(); | ||
| 4462 | + * ApiFuture<AddSplitPointsResponse> future = | ||
| 4463 | + * databaseAdminClient.addSplitPointsCallable().futureCall(request); | ||
| 4464 | + * // Do something. | ||
| 4465 | + * AddSplitPointsResponse response = future.get(); | ||
| 4466 | + * } | ||
| 4467 | + * }</pre> | ||
| 4468 | + */ | ||
| 4469 | + public final UnaryCallable<AddSplitPointsRequest, AddSplitPointsResponse> | ||
| 4470 | + addSplitPointsCallable() { | ||
| 4471 | + return stub.addSplitPointsCallable(); | ||
| 4472 | + } | ||
| 4473 | + | ||
| 4321 | 4474 | // AUTO-GENERATED DOCUMENTATION AND METHOD. | |
| 4322 | 4475 | /** | |
| 4323 | 4476 | * Creates a new backup schedule. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,6 +44,8 @@ | |||
| 44 | 44 | import com.google.iam.v1.TestIamPermissionsResponse; | |
| 45 | 45 | import com.google.longrunning.Operation; | |
| 46 | 46 | import com.google.protobuf.Empty; | |
| 47 | + import com.google.spanner.admin.database.v1.AddSplitPointsRequest; | ||
| 48 | + import com.google.spanner.admin.database.v1.AddSplitPointsResponse; | ||
| 47 | 49 | import com.google.spanner.admin.database.v1.Backup; | |
| 48 | 50 | import com.google.spanner.admin.database.v1.BackupSchedule; | |
| 49 | 51 | import com.google.spanner.admin.database.v1.CopyBackupMetadata; | |
@@ -312,6 +314,11 @@ public UnaryCallSettings<RestoreDatabaseRequest, Operation> restoreDatabaseSetti | |||
| 312 | 314 | return ((DatabaseAdminStubSettings) getStubSettings()).listDatabaseRolesSettings(); | |
| 313 | 315 | } | |
| 314 | 316 | ||
| 317 | + /** Returns the object with the settings used for calls to addSplitPoints. */ | ||
| 318 | + public UnaryCallSettings<AddSplitPointsRequest, AddSplitPointsResponse> addSplitPointsSettings() { | ||
| 319 | + return ((DatabaseAdminStubSettings) getStubSettings()).addSplitPointsSettings(); | ||
| 320 | + } | ||
| 321 | + | ||
| 315 | 322 | /** Returns the object with the settings used for calls to createBackupSchedule. */ | |
| 316 | 323 | public UnaryCallSettings<CreateBackupScheduleRequest, BackupSchedule> | |
| 317 | 324 | createBackupScheduleSettings() { | |
@@ -606,6 +613,12 @@ public UnaryCallSettings.Builder<RestoreDatabaseRequest, Operation> restoreDatab | |||
| 606 | 613 | return getStubSettingsBuilder().listDatabaseRolesSettings(); | |
| 607 | 614 | } | |
| 608 | 615 | ||
| 616 | + /** Returns the builder for the settings used for calls to addSplitPoints. */ | ||
| 617 | + public UnaryCallSettings.Builder<AddSplitPointsRequest, AddSplitPointsResponse> | ||
| 618 | + addSplitPointsSettings() { | ||
| 619 | + return getStubSettingsBuilder().addSplitPointsSettings(); | ||
| 620 | + } | ||
| 621 | + | ||
| 609 | 622 | /** Returns the builder for the settings used for calls to createBackupSchedule. */ | |
| 610 | 623 | public UnaryCallSettings.Builder<CreateBackupScheduleRequest, BackupSchedule> | |
| 611 | 624 | createBackupScheduleSettings() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,9 @@ | |||
| 10 | 10 | "grpc": { | |
| 11 | 11 | "libraryClient": "DatabaseAdminClient", | |
| 12 | 12 | "rpcs": { | |
| 13 | + "AddSplitPoints": { | ||
| 14 | + "methods": ["addSplitPoints", "addSplitPoints", "addSplitPoints", "addSplitPointsCallable"] | ||
| 15 | + }, | ||
| 13 | 16 | "CopyBackup": { | |
| 14 | 17 | "methods": ["copyBackupAsync", "copyBackupAsync", "copyBackupAsync", "copyBackupAsync", "copyBackupAsync", "copyBackupOperationCallable", "copyBackupCallable"] | |
| 15 | 18 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,6 +34,8 @@ | |||
| 34 | 34 | import com.google.longrunning.Operation; | |
| 35 | 35 | import com.google.longrunning.stub.OperationsStub; | |
| 36 | 36 | import com.google.protobuf.Empty; | |
| 37 | + import com.google.spanner.admin.database.v1.AddSplitPointsRequest; | ||
| 38 | + import com.google.spanner.admin.database.v1.AddSplitPointsResponse; | ||
| 37 | 39 | import com.google.spanner.admin.database.v1.Backup; | |
| 38 | 40 | import com.google.spanner.admin.database.v1.BackupSchedule; | |
| 39 | 41 | import com.google.spanner.admin.database.v1.CopyBackupMetadata; | |
@@ -231,6 +233,10 @@ public UnaryCallable<RestoreDatabaseRequest, Operation> restoreDatabaseCallable( | |||
| 231 | 233 | throw new UnsupportedOperationException("Not implemented: listDatabaseRolesCallable()"); | |
| 232 | 234 | } | |
| 233 | 235 | ||
| 236 | + public UnaryCallable<AddSplitPointsRequest, AddSplitPointsResponse> addSplitPointsCallable() { | ||
| 237 | + throw new UnsupportedOperationException("Not implemented: addSplitPointsCallable()"); | ||
| 238 | + } | ||
| 239 | + | ||
| 234 | 240 | public UnaryCallable<CreateBackupScheduleRequest, BackupSchedule> createBackupScheduleCallable() { | |
| 235 | 241 | throw new UnsupportedOperationException("Not implemented: createBackupScheduleCallable()"); | |
| 236 | 242 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments