Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
c82c22b
chore: Update generation configuration at Wed Jul 16 02:37:49 UTC 2025
cloud-java-bot Jul 16, 2025
2f6ddfb
chore: Update generation configuration at Thu Jul 17 02:38:10 UTC 2025
cloud-java-bot Jul 17, 2025
852472f
chore: merge main into generate-libraries-main
cloud-java-bot Jul 19, 2025
b4a1042
chore: Update generation configuration at Sat Jul 19 02:34:24 UTC 2025
cloud-java-bot Jul 19, 2025
9ec75ef
chore: generate libraries at Sat Jul 19 02:34:54 UTC 2025
cloud-java-bot Jul 19, 2025
078881a
chore: Update generation configuration at Tue Jul 22 02:39:04 UTC 2025
cloud-java-bot Jul 22, 2025
6d7b322
chore: Update generation configuration at Wed Jul 23 02:39:47 UTC 2025
cloud-java-bot Jul 23, 2025
1a41bf1
chore: generate libraries at Wed Jul 23 02:40:21 UTC 2025
cloud-java-bot Jul 23, 2025
97375b0
chore: Update generation configuration at Thu Jul 24 02:39:12 UTC 2025
cloud-java-bot Jul 24, 2025
f2c4227
chore: Update generation configuration at Thu Jul 24 18:52:26 UTC 2025
cloud-java-bot Jul 24, 2025
54b986c
chore: generate libraries at Thu Jul 24 18:52:55 UTC 2025
cloud-java-bot Jul 24, 2025
bbb5802
chore: Update generation configuration at Sat Jul 26 02:35:28 UTC 2025
cloud-java-bot Jul 26, 2025
9c283d5
chore: merge main into generate-libraries-main
cloud-java-bot Jul 28, 2025
51a7f4e
chore: Update generation configuration at Mon Jul 28 15:11:57 UTC 2025
cloud-java-bot Jul 28, 2025
53052af
chore: generate libraries at Mon Jul 28 15:12:33 UTC 2025
cloud-java-bot Jul 28, 2025
a61df92
Merge branch 'main' into generate-libraries-main
sakthivelmanii Jul 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/scripts/update_generation_config.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -ex
set -e
# This script should be run at the root of the repository.
# This script is used to update googleapis_commitish, gapic_generator_version,
# and libraries_bom_version in generation configuration at the time of running
Expand Down Expand Up @@ -174,4 +174,4 @@ if [ -z "${pr_num}" ]; then
else
git push
gh pr edit "${pr_num}" --title "${title}" --body "${title}"
fi
fi
2 changes: 1 addition & 1 deletion .github/workflows/hermetic_library_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
- uses: googleapis/sdk-platform-java/.github/[email protected].1
- uses: googleapis/sdk-platform-java/.github/[email protected].2
if: env.SHOULD_RUN == 'true'
with:
base_ref: ${{ github.base_ref }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/update_generation_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:

jobs:
update-generation-config:
runs-on: ubuntu-24.04
Expand All @@ -42,4 +43,5 @@ jobs:
--base_branch "${base_branch}" \
--repo ${{ github.repository }}
env:
GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}

2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-a.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current}
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current}
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-b.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current}
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current}
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-c.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current}
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current}
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ If you are using Maven without the BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.61.0')
implementation platform('com.google.cloud:libraries-bom:26.64.0')

implementation 'com.google.cloud:google-cloud-spanner'
```
Expand Down
6 changes: 3 additions & 3 deletions generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gapic_generator_version: 2.59.0
googleapis_commitish: e5b0e779491e106ddac0b72b79222673a846fdc9
libraries_bom_version: 26.61.0
gapic_generator_version: 2.60.2
googleapis_commitish: 6588689155df35bb46974c477505990f0034f569
libraries_bom_version: 26.64.0
libraries:
- api_shortname: spanner
name_pretty: Cloud Spanner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2330,6 +2330,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.database.v1.ListBackupOperationsRequest",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
import com.google.spanner.admin.database.v1.GetDatabaseDdlResponse;
import com.google.spanner.admin.database.v1.GetDatabaseRequest;
import com.google.spanner.admin.database.v1.InstanceName;
import com.google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest;
import com.google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse;
import com.google.spanner.admin.database.v1.ListBackupOperationsRequest;
import com.google.spanner.admin.database.v1.ListBackupOperationsResponse;
import com.google.spanner.admin.database.v1.ListBackupSchedulesRequest;
Expand Down Expand Up @@ -640,6 +642,25 @@
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> InternalUpdateGraphOperation</td>
* <td><p> This is an internal API called by Spanner Graph jobs. You should never need to call this API directly.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> internalUpdateGraphOperation(InternalUpdateGraphOperationRequest request)
* </ul>
* <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>
* <ul>
* <li><p> internalUpdateGraphOperation(DatabaseName database, String operationId)
* <li><p> internalUpdateGraphOperation(String database, String operationId)
* </ul>
* <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>
* <ul>
* <li><p> internalUpdateGraphOperationCallable()
* </ul>
* </td>
* </tr>
* </table>
*
* <p>See the individual methods for example code.
Expand Down Expand Up @@ -5119,6 +5140,146 @@ public final ListBackupSchedulesPagedResponse listBackupSchedules(
return stub.listBackupSchedulesCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* This is an internal API called by Spanner Graph jobs. You should never need to call this API
* directly.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) {
* DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
* String operationId = "operationId129704162";
* InternalUpdateGraphOperationResponse response =
* databaseAdminClient.internalUpdateGraphOperation(database, operationId);
* }
* }</pre>
*
* @param database Internal field, do not use directly.
* @param operationId Internal field, do not use directly.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final InternalUpdateGraphOperationResponse internalUpdateGraphOperation(
DatabaseName database, String operationId) {
InternalUpdateGraphOperationRequest request =
InternalUpdateGraphOperationRequest.newBuilder()
.setDatabase(database == null ? null : database.toString())
.setOperationId(operationId)
.build();
return internalUpdateGraphOperation(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* This is an internal API called by Spanner Graph jobs. You should never need to call this API
* directly.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) {
* String database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString();
* String operationId = "operationId129704162";
* InternalUpdateGraphOperationResponse response =
* databaseAdminClient.internalUpdateGraphOperation(database, operationId);
* }
* }</pre>
*
* @param database Internal field, do not use directly.
* @param operationId Internal field, do not use directly.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final InternalUpdateGraphOperationResponse internalUpdateGraphOperation(
String database, String operationId) {
InternalUpdateGraphOperationRequest request =
InternalUpdateGraphOperationRequest.newBuilder()
.setDatabase(database)
.setOperationId(operationId)
.build();
return internalUpdateGraphOperation(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* This is an internal API called by Spanner Graph jobs. You should never need to call this API
* directly.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) {
* InternalUpdateGraphOperationRequest request =
* InternalUpdateGraphOperationRequest.newBuilder()
* .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString())
* .setOperationId("operationId129704162")
* .setVmIdentityToken("vmIdentityToken-417652124")
* .setProgress(-1001078227)
* .setStatus(Status.newBuilder().build())
* .build();
* InternalUpdateGraphOperationResponse response =
* databaseAdminClient.internalUpdateGraphOperation(request);
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final InternalUpdateGraphOperationResponse internalUpdateGraphOperation(
InternalUpdateGraphOperationRequest request) {
return internalUpdateGraphOperationCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* This is an internal API called by Spanner Graph jobs. You should never need to call this API
* directly.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) {
* InternalUpdateGraphOperationRequest request =
* InternalUpdateGraphOperationRequest.newBuilder()
* .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString())
* .setOperationId("operationId129704162")
* .setVmIdentityToken("vmIdentityToken-417652124")
* .setProgress(-1001078227)
* .setStatus(Status.newBuilder().build())
* .build();
* ApiFuture<InternalUpdateGraphOperationResponse> future =
* databaseAdminClient.internalUpdateGraphOperationCallable().futureCall(request);
* // Do something.
* InternalUpdateGraphOperationResponse response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<
InternalUpdateGraphOperationRequest, InternalUpdateGraphOperationResponse>
internalUpdateGraphOperationCallable() {
return stub.internalUpdateGraphOperationCallable();
}

@Override
public final void close() {
stub.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
import com.google.spanner.admin.database.v1.GetDatabaseDdlRequest;
import com.google.spanner.admin.database.v1.GetDatabaseDdlResponse;
import com.google.spanner.admin.database.v1.GetDatabaseRequest;
import com.google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest;
import com.google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse;
import com.google.spanner.admin.database.v1.ListBackupOperationsRequest;
import com.google.spanner.admin.database.v1.ListBackupOperationsResponse;
import com.google.spanner.admin.database.v1.ListBackupSchedulesRequest;
Expand Down Expand Up @@ -348,6 +350,13 @@ public UnaryCallSettings<DeleteBackupScheduleRequest, Empty> deleteBackupSchedul
return ((DatabaseAdminStubSettings) getStubSettings()).listBackupSchedulesSettings();
}

/** Returns the object with the settings used for calls to internalUpdateGraph. */
public UnaryCallSettings<
InternalUpdateGraphOperationRequest, InternalUpdateGraphOperationResponse>
internalUpdateGraphOperationSettings() {
return ((DatabaseAdminStubSettings) getStubSettings()).internalUpdateGraphOperationSettings();
}

public static final DatabaseAdminSettings create(DatabaseAdminStubSettings stub)
throws IOException {
return new DatabaseAdminSettings.Builder(stub.toBuilder()).build();
Expand Down Expand Up @@ -652,6 +661,13 @@ public UnaryCallSettings.Builder<RestoreDatabaseRequest, Operation> restoreDatab
return getStubSettingsBuilder().listBackupSchedulesSettings();
}

/** Returns the builder for the settings used for calls to internalUpdateGraph. */
public UnaryCallSettings.Builder<
InternalUpdateGraphOperationRequest, InternalUpdateGraphOperationResponse>
internalUpdateGraphOperationSettings() {
return getStubSettingsBuilder().internalUpdateGraphOperationSettings();
}

@Override
public DatabaseAdminSettings build() throws IOException {
return new DatabaseAdminSettings(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
"GetIamPolicy": {
"methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
},
"InternalUpdateGraphOperation": {
"methods": ["internalUpdateGraphOperation", "internalUpdateGraphOperation", "internalUpdateGraphOperation", "internalUpdateGraphOperationCallable"]
},
"ListBackupOperations": {
"methods": ["listBackupOperations", "listBackupOperations", "listBackupOperations", "listBackupOperationsPagedCallable", "listBackupOperationsCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
import com.google.spanner.admin.database.v1.GetDatabaseDdlRequest;
import com.google.spanner.admin.database.v1.GetDatabaseDdlResponse;
import com.google.spanner.admin.database.v1.GetDatabaseRequest;
import com.google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest;
import com.google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse;
import com.google.spanner.admin.database.v1.ListBackupOperationsRequest;
import com.google.spanner.admin.database.v1.ListBackupOperationsResponse;
import com.google.spanner.admin.database.v1.ListBackupSchedulesRequest;
Expand Down Expand Up @@ -263,6 +265,12 @@ public UnaryCallable<DeleteBackupScheduleRequest, Empty> deleteBackupScheduleCal
throw new UnsupportedOperationException("Not implemented: listBackupSchedulesCallable()");
}

public UnaryCallable<InternalUpdateGraphOperationRequest, InternalUpdateGraphOperationResponse>
internalUpdateGraphOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: internalUpdateGraphOperationCallable()");
}

@Override
public abstract void close();
}
Loading
Loading