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

chore: Update generation configuration at Sat Aug 3 02:14:47 UTC 2024 #3223

Merged
merged 12 commits into from
Aug 5, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"api_description": "is a fully managed, mission-critical, relational database service that offers transactional consistency at global scale, \\nschemas, SQL (ANSI 2011 with extensions), and automatic, synchronous replication \\nfor high availability.\\n\\nBe sure to activate the Cloud Spanner API on the Developer's Console to\\nuse Cloud Spanner from your project.",
"client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-spanner/latest/history",
"release_level": "stable",
"transport": "both",
"transport": "grpc",
"language": "java",
"repo": "googleapis/java-spanner",
"repo_short": "java-spanner",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr

## Transport

Cloud Spanner uses both gRPC and HTTP/JSON for the transport layer.
Cloud Spanner uses gRPC for the transport layer.

## Supported Java Versions

Expand Down
4 changes: 2 additions & 2 deletions generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
gapic_generator_version: 2.42.0
googleapis_commitish: 19577edb4d439db98d2fb1f6f48f2e1b29fba099
gapic_generator_version: 2.43.0
googleapis_commitish: bc05924644a4bb93c0ac5973a07b83387a93b71f
libraries_bom_version: 26.43.0
libraries:
- api_shortname: spanner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.google.cloud.spanner.executor.v1.stub;

import com.google.api.core.ApiFunction;
import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
Expand Down Expand Up @@ -119,6 +120,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}

/** Returns the default service endpoint. */
@ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "spanner-cloud-executor.googleapis.com:443";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2222,6 +2222,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.database.v1.IncrementalBackupSpec",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.database.v1.IncrementalBackupSpec$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 @@ -26,6 +26,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
Expand Down Expand Up @@ -774,6 +775,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}

/** Returns the default service endpoint. */
@ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "spanner.googleapis.com:443";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
Expand Down Expand Up @@ -738,6 +739,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}

/** Returns the default service endpoint. */
@ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "spanner.googleapis.com:443";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
Expand Down Expand Up @@ -311,6 +312,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}

/** Returns the default service endpoint. */
@ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "spanner.googleapis.com:443";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2159,6 +2159,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.database.v1.IncrementalBackupSpec",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.admin.database.v1.IncrementalBackupSpec$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 @@ -1086,13 +1086,17 @@ public void createBackupTest() throws Exception {
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString())
.setCreateTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setFreeableSizeBytes(1302251206)
.setExclusiveSizeBytes(-1085921554)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
.addAllBackupSchedules(new ArrayList<String>())
.setIncrementalBackupChainId("incrementalBackupChainId1926005216")
.setOldestVersionTime(Timestamp.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -1151,13 +1155,17 @@ public void createBackupTest2() throws Exception {
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString())
.setCreateTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setFreeableSizeBytes(1302251206)
.setExclusiveSizeBytes(-1085921554)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
.addAllBackupSchedules(new ArrayList<String>())
.setIncrementalBackupChainId("incrementalBackupChainId1926005216")
.setOldestVersionTime(Timestamp.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -1216,13 +1224,17 @@ public void copyBackupTest() throws Exception {
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString())
.setCreateTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setFreeableSizeBytes(1302251206)
.setExclusiveSizeBytes(-1085921554)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
.addAllBackupSchedules(new ArrayList<String>())
.setIncrementalBackupChainId("incrementalBackupChainId1926005216")
.setOldestVersionTime(Timestamp.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -1284,13 +1296,17 @@ public void copyBackupTest2() throws Exception {
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString())
.setCreateTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setFreeableSizeBytes(1302251206)
.setExclusiveSizeBytes(-1085921554)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
.addAllBackupSchedules(new ArrayList<String>())
.setIncrementalBackupChainId("incrementalBackupChainId1926005216")
.setOldestVersionTime(Timestamp.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -1352,13 +1368,17 @@ public void copyBackupTest3() throws Exception {
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString())
.setCreateTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setFreeableSizeBytes(1302251206)
.setExclusiveSizeBytes(-1085921554)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
.addAllBackupSchedules(new ArrayList<String>())
.setIncrementalBackupChainId("incrementalBackupChainId1926005216")
.setOldestVersionTime(Timestamp.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -1420,13 +1440,17 @@ public void copyBackupTest4() throws Exception {
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString())
.setCreateTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setFreeableSizeBytes(1302251206)
.setExclusiveSizeBytes(-1085921554)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
.addAllBackupSchedules(new ArrayList<String>())
.setIncrementalBackupChainId("incrementalBackupChainId1926005216")
.setOldestVersionTime(Timestamp.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -1488,13 +1512,17 @@ public void getBackupTest() throws Exception {
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString())
.setCreateTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setFreeableSizeBytes(1302251206)
.setExclusiveSizeBytes(-1085921554)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
.addAllBackupSchedules(new ArrayList<String>())
.setIncrementalBackupChainId("incrementalBackupChainId1926005216")
.setOldestVersionTime(Timestamp.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -1544,13 +1572,17 @@ public void getBackupTest2() throws Exception {
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString())
.setCreateTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setFreeableSizeBytes(1302251206)
.setExclusiveSizeBytes(-1085921554)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
.addAllBackupSchedules(new ArrayList<String>())
.setIncrementalBackupChainId("incrementalBackupChainId1926005216")
.setOldestVersionTime(Timestamp.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -1600,13 +1632,17 @@ public void updateBackupTest() throws Exception {
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString())
.setCreateTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setFreeableSizeBytes(1302251206)
.setExclusiveSizeBytes(-1085921554)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
.addAllBackupSchedules(new ArrayList<String>())
.setIncrementalBackupChainId("incrementalBackupChainId1926005216")
.setOldestVersionTime(Timestamp.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -1618,13 +1654,17 @@ public void updateBackupTest() throws Exception {
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString())
.setCreateTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setFreeableSizeBytes(1302251206)
.setExclusiveSizeBytes(-1085921554)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
.addAllBackupSchedules(new ArrayList<String>())
.setIncrementalBackupChainId("incrementalBackupChainId1926005216")
.setOldestVersionTime(Timestamp.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();

Expand Down Expand Up @@ -1662,13 +1702,17 @@ public void updateBackupExceptionTest() throws Exception {
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[BACKUP]").toString())
.setCreateTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setFreeableSizeBytes(1302251206)
.setExclusiveSizeBytes(-1085921554)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
.addAllBackupSchedules(new ArrayList<String>())
.setIncrementalBackupChainId("incrementalBackupChainId1926005216")
.setOldestVersionTime(Timestamp.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
client.updateBackup(backup, updateMask);
Expand Down
Loading
Loading