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

feat: add field order_by in spanner.proto #3064

Merged
merged 2 commits into from
Jun 25, 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
Original file line number Diff line number Diff line change
Expand Up @@ -4238,6 +4238,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.executor.v1.QueryCancellationAction",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.executor.v1.QueryCancellationAction$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.executor.v1.QueryResult",
"queryAllDeclaredConstructors": true,
Expand Down Expand Up @@ -5363,6 +5381,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.ReadRequest$LockHint",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.ReadRequest$OrderBy",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.RequestOptions",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
* Service Description: Cloud Spanner Database Admin API
*
* <p>The Cloud Spanner Database Admin API can be used to: &#42; create, drop, and list databases
* &#42; update the schema of pre-existing databases &#42; create, delete and list backups for a
* database &#42; restore a database from an existing backup
* &#42; update the schema of pre-existing databases &#42; create, delete, copy and list backups for
* a database &#42; restore a database from an existing backup
*
* <p>This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
Expand Down Expand Up @@ -199,7 +199,7 @@
* </tr>
* <tr>
* <td><p> UpdateDatabaseDdl</td>
* <td><p> Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. The returned [long-running operation][google.longrunning.Operation] will have a name of the format `&lt;database_name&gt;/operations/&lt;operation_id&gt;` and can be used to track execution of the schema change(s). The [metadata][google.longrunning.Operation.metadata] field type is [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.</td>
* <td><p> Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. The returned [long-running operation][google.longrunning.Operation] will have a name of the format `&lt;database_name&gt;/operations/&lt;operation_id&gt;` and can be used to track execution of the schema change(s). The [metadata][google.longrunning.Operation.metadata] field type is [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
Expand Down Expand Up @@ -337,7 +337,7 @@
* </tr>
* <tr>
* <td><p> CopyBackup</td>
* <td><p> Starts copying a Cloud Spanner Backup. The returned backup [long-running operation][google.longrunning.Operation] will have a name of the format `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup&gt;/operations/&lt;operation_id&gt;` and can be used to track copying of the backup. The operation is associated with the destination backup. The [metadata][google.longrunning.Operation.metadata] field type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. The [response][google.longrunning.Operation.response] field type is [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned operation will stop the copying and delete the backup. Concurrent CopyBackup requests can run on the same source backup.</td>
* <td><p> Starts copying a Cloud Spanner Backup. The returned backup [long-running operation][google.longrunning.Operation] will have a name of the format `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup&gt;/operations/&lt;operation_id&gt;` and can be used to track copying of the backup. The operation is associated with the destination backup. The [metadata][google.longrunning.Operation.metadata] field type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. The [response][google.longrunning.Operation.response] field type is [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned operation will stop the copying and delete the destination backup. Concurrent CopyBackup requests can run on the same source backup.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
Expand Down Expand Up @@ -2459,8 +2459,8 @@ public final UnaryCallable<CreateBackupRequest, Operation> createBackupCallable(
* [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. The
* [response][google.longrunning.Operation.response] field type is
* [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned
* operation will stop the copying and delete the backup. Concurrent CopyBackup requests can run
* on the same source backup.
* operation will stop the copying and delete the destination backup. Concurrent CopyBackup
* requests can run on the same source backup.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -2517,8 +2517,8 @@ public final OperationFuture<Backup, CopyBackupMetadata> copyBackupAsync(
* [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. The
* [response][google.longrunning.Operation.response] field type is
* [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned
* operation will stop the copying and delete the backup. Concurrent CopyBackup requests can run
* on the same source backup.
* operation will stop the copying and delete the destination backup. Concurrent CopyBackup
* requests can run on the same source backup.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -2575,8 +2575,8 @@ public final OperationFuture<Backup, CopyBackupMetadata> copyBackupAsync(
* [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. The
* [response][google.longrunning.Operation.response] field type is
* [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned
* operation will stop the copying and delete the backup. Concurrent CopyBackup requests can run
* on the same source backup.
* operation will stop the copying and delete the destination backup. Concurrent CopyBackup
* requests can run on the same source backup.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -2633,8 +2633,8 @@ public final OperationFuture<Backup, CopyBackupMetadata> copyBackupAsync(
* [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. The
* [response][google.longrunning.Operation.response] field type is
* [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned
* operation will stop the copying and delete the backup. Concurrent CopyBackup requests can run
* on the same source backup.
* operation will stop the copying and delete the destination backup. Concurrent CopyBackup
* requests can run on the same source backup.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -2691,8 +2691,8 @@ public final OperationFuture<Backup, CopyBackupMetadata> copyBackupAsync(
* [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. The
* [response][google.longrunning.Operation.response] field type is
* [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned
* operation will stop the copying and delete the backup. Concurrent CopyBackup requests can run
* on the same source backup.
* operation will stop the copying and delete the destination backup. Concurrent CopyBackup
* requests can run on the same source backup.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -2733,8 +2733,8 @@ public final OperationFuture<Backup, CopyBackupMetadata> copyBackupAsync(
* [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. The
* [response][google.longrunning.Operation.response] field type is
* [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned
* operation will stop the copying and delete the backup. Concurrent CopyBackup requests can run
* on the same source backup.
* operation will stop the copying and delete the destination backup. Concurrent CopyBackup
* requests can run on the same source backup.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -2775,8 +2775,8 @@ public final OperationFuture<Backup, CopyBackupMetadata> copyBackupAsync(
* [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. The
* [response][google.longrunning.Operation.response] field type is
* [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned
* operation will stop the copying and delete the backup. Concurrent CopyBackup requests can run
* on the same source backup.
* operation will stop the copying and delete the destination backup. Concurrent CopyBackup
* requests can run on the same source backup.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -4069,7 +4069,7 @@ public final ListBackupOperationsPagedResponse listBackupOperations(
* }</pre>
*
* @param parent Required. The database whose roles should be listed. Values are of the form
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database&gt;/databaseRoles`.
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database&gt;`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListDatabaseRolesPagedResponse listDatabaseRoles(DatabaseName parent) {
Expand Down Expand Up @@ -4101,7 +4101,7 @@ public final ListDatabaseRolesPagedResponse listDatabaseRoles(DatabaseName paren
* }</pre>
*
* @param parent Required. The database whose roles should be listed. Values are of the form
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database&gt;/databaseRoles`.
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database&gt;`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListDatabaseRolesPagedResponse listDatabaseRoles(String parent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* <p>Service Description: Cloud Spanner Database Admin API
*
* <p>The Cloud Spanner Database Admin API can be used to: &#42; create, drop, and list databases
* &#42; update the schema of pre-existing databases &#42; create, delete and list backups for a
* database &#42; restore a database from an existing backup
* &#42; update the schema of pre-existing databases &#42; create, delete, copy and list backups for
* a database &#42; restore a database from an existing backup
*
* <p>Sample for DatabaseAdminClient:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,19 @@ public static class Builder extends StubSettings.Builder<SpannerStubSettings, Bu
ImmutableMap.builder();
definitions.put(
"retry_policy_3_codes",
ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList(StatusCode.Code.UNAVAILABLE)));
ImmutableSet.copyOf(
Lists.<StatusCode.Code>newArrayList(
StatusCode.Code.UNAVAILABLE, StatusCode.Code.RESOURCE_EXHAUSTED)));
definitions.put(
"retry_policy_2_codes",
ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList(StatusCode.Code.UNAVAILABLE)));
ImmutableSet.copyOf(
Lists.<StatusCode.Code>newArrayList(
StatusCode.Code.UNAVAILABLE, StatusCode.Code.RESOURCE_EXHAUSTED)));
definitions.put(
"retry_policy_1_codes",
ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList(StatusCode.Code.UNAVAILABLE)));
ImmutableSet.copyOf(
Lists.<StatusCode.Code>newArrayList(
StatusCode.Code.UNAVAILABLE, StatusCode.Code.RESOURCE_EXHAUSTED)));
definitions.put(
"no_retry_0_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
RETRYABLE_CODE_DEFINITIONS = definitions.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1988,6 +1988,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.ReadRequest$LockHint",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.ReadRequest$OrderBy",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.spanner.v1.RequestOptions",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,7 @@ public void createBackupTest() throws Exception {
.setSizeBytes(-1796325715)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -1144,6 +1145,7 @@ public void createBackupTest2() throws Exception {
.setSizeBytes(-1796325715)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -1207,6 +1209,7 @@ public void copyBackupTest() throws Exception {
.setSizeBytes(-1796325715)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -1273,6 +1276,7 @@ public void copyBackupTest2() throws Exception {
.setSizeBytes(-1796325715)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -1339,6 +1343,7 @@ public void copyBackupTest3() throws Exception {
.setSizeBytes(-1796325715)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -1405,6 +1410,7 @@ public void copyBackupTest4() throws Exception {
.setSizeBytes(-1796325715)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -1471,6 +1477,7 @@ public void getBackupTest() throws Exception {
.setSizeBytes(-1796325715)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -1525,6 +1532,7 @@ public void getBackupTest2() throws Exception {
.setSizeBytes(-1796325715)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -1579,6 +1587,7 @@ public void updateBackupTest() throws Exception {
.setSizeBytes(-1796325715)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
Expand All @@ -1595,6 +1604,7 @@ public void updateBackupTest() throws Exception {
.setSizeBytes(-1796325715)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -1637,6 +1647,7 @@ public void updateBackupExceptionTest() throws Exception {
.setSizeBytes(-1796325715)
.addAllReferencingDatabases(new ArrayList<String>())
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.addAllEncryptionInformation(new ArrayList<EncryptionInfo>())
.setDatabaseDialect(DatabaseDialect.forNumber(0))
.addAllReferencingBackups(new ArrayList<String>())
.setMaxExpireTime(Timestamp.newBuilder().build())
Expand Down
Loading
Loading