Skip to content

Commit a5ebcd3

Browse files
chore: Update generation configuration at Mon Feb 3 02:22:12 UTC 2025 (#3624)
* chore: Update generation configuration at Sat Feb 1 02:23:56 UTC 2025 * chore: generate libraries at Sat Feb 1 02:24:38 UTC 2025 * chore: Update generation configuration at Mon Feb 3 02:22:12 UTC 2025
1 parent 32190d7 commit a5ebcd3

File tree

22 files changed

+5901
-300
lines changed

22 files changed

+5901
-300
lines changed

generation_config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
gapic_generator_version: 2.52.0
2-
googleapis_commitish: 2a3db2e19f48a139db9f40278c0217df110add9b
2+
googleapis_commitish: 3cf61b2df20eace09e6336c23f9e08859c0d87ae
33
libraries_bom_version: 26.53.0
44
libraries:
55
- api_shortname: spanner

google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json

+72
Original file line numberDiff line numberDiff line change
@@ -1700,6 +1700,42 @@
17001700
"allDeclaredClasses": true,
17011701
"allPublicClasses": true
17021702
},
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+
},
17031739
{
17041740
"name": "com.google.spanner.admin.database.v1.Backup",
17051741
"queryAllDeclaredConstructors": true,
@@ -2618,6 +2654,42 @@
26182654
"allDeclaredClasses": true,
26192655
"allPublicClasses": true
26202656
},
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+
},
26212693
{
26222694
"name": "com.google.spanner.admin.database.v1.UpdateBackupRequest",
26232695
"queryAllDeclaredConstructors": true,

google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java

+153
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
import com.google.protobuf.Empty;
4242
import com.google.protobuf.FieldMask;
4343
import com.google.protobuf.Timestamp;
44+
import com.google.spanner.admin.database.v1.AddSplitPointsRequest;
45+
import com.google.spanner.admin.database.v1.AddSplitPointsResponse;
4446
import com.google.spanner.admin.database.v1.Backup;
4547
import com.google.spanner.admin.database.v1.BackupName;
4648
import com.google.spanner.admin.database.v1.BackupSchedule;
@@ -78,6 +80,7 @@
7880
import com.google.spanner.admin.database.v1.ListDatabasesResponse;
7981
import com.google.spanner.admin.database.v1.RestoreDatabaseMetadata;
8082
import com.google.spanner.admin.database.v1.RestoreDatabaseRequest;
83+
import com.google.spanner.admin.database.v1.SplitPoints;
8184
import com.google.spanner.admin.database.v1.UpdateBackupRequest;
8285
import com.google.spanner.admin.database.v1.UpdateBackupScheduleRequest;
8386
import com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata;
@@ -524,6 +527,25 @@
524527
* </td>
525528
* </tr>
526529
* <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&lt;SplitPoints&gt; splitPoints)
540+
* <li><p> addSplitPoints(String database, List&lt;SplitPoints&gt; 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>
527549
* <td><p> CreateBackupSchedule</td>
528550
* <td><p> Creates a new backup schedule.</td>
529551
* <td>
@@ -4318,6 +4340,137 @@ public final ListDatabaseRolesPagedResponse listDatabaseRoles(ListDatabaseRolesR
43184340
return stub.listDatabaseRolesCallable();
43194341
}
43204342

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/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database&gt;`.
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/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database&gt;`.
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+
43214474
// AUTO-GENERATED DOCUMENTATION AND METHOD.
43224475
/**
43234476
* Creates a new backup schedule.

google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java

+13
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
import com.google.iam.v1.TestIamPermissionsResponse;
4545
import com.google.longrunning.Operation;
4646
import com.google.protobuf.Empty;
47+
import com.google.spanner.admin.database.v1.AddSplitPointsRequest;
48+
import com.google.spanner.admin.database.v1.AddSplitPointsResponse;
4749
import com.google.spanner.admin.database.v1.Backup;
4850
import com.google.spanner.admin.database.v1.BackupSchedule;
4951
import com.google.spanner.admin.database.v1.CopyBackupMetadata;
@@ -312,6 +314,11 @@ public UnaryCallSettings<RestoreDatabaseRequest, Operation> restoreDatabaseSetti
312314
return ((DatabaseAdminStubSettings) getStubSettings()).listDatabaseRolesSettings();
313315
}
314316

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+
315322
/** Returns the object with the settings used for calls to createBackupSchedule. */
316323
public UnaryCallSettings<CreateBackupScheduleRequest, BackupSchedule>
317324
createBackupScheduleSettings() {
@@ -606,6 +613,12 @@ public UnaryCallSettings.Builder<RestoreDatabaseRequest, Operation> restoreDatab
606613
return getStubSettingsBuilder().listDatabaseRolesSettings();
607614
}
608615

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+
609622
/** Returns the builder for the settings used for calls to createBackupSchedule. */
610623
public UnaryCallSettings.Builder<CreateBackupScheduleRequest, BackupSchedule>
611624
createBackupScheduleSettings() {

google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/gapic_metadata.json

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"grpc": {
1111
"libraryClient": "DatabaseAdminClient",
1212
"rpcs": {
13+
"AddSplitPoints": {
14+
"methods": ["addSplitPoints", "addSplitPoints", "addSplitPoints", "addSplitPointsCallable"]
15+
},
1316
"CopyBackup": {
1417
"methods": ["copyBackupAsync", "copyBackupAsync", "copyBackupAsync", "copyBackupAsync", "copyBackupAsync", "copyBackupOperationCallable", "copyBackupCallable"]
1518
},

google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
import com.google.longrunning.Operation;
3535
import com.google.longrunning.stub.OperationsStub;
3636
import com.google.protobuf.Empty;
37+
import com.google.spanner.admin.database.v1.AddSplitPointsRequest;
38+
import com.google.spanner.admin.database.v1.AddSplitPointsResponse;
3739
import com.google.spanner.admin.database.v1.Backup;
3840
import com.google.spanner.admin.database.v1.BackupSchedule;
3941
import com.google.spanner.admin.database.v1.CopyBackupMetadata;
@@ -231,6 +233,10 @@ public UnaryCallable<RestoreDatabaseRequest, Operation> restoreDatabaseCallable(
231233
throw new UnsupportedOperationException("Not implemented: listDatabaseRolesCallable()");
232234
}
233235

236+
public UnaryCallable<AddSplitPointsRequest, AddSplitPointsResponse> addSplitPointsCallable() {
237+
throw new UnsupportedOperationException("Not implemented: addSplitPointsCallable()");
238+
}
239+
234240
public UnaryCallable<CreateBackupScheduleRequest, BackupSchedule> createBackupScheduleCallable() {
235241
throw new UnsupportedOperationException("Not implemented: createBackupScheduleCallable()");
236242
}

0 commit comments

Comments
 (0)