Skip to content

Commit 380e770

Browse files
feat: proto changes for an internal api (#2356)
* feat: proto changes for an internal api PiperOrigin-RevId: 786045230 Source-Link: googleapis/googleapis@2a2ea87 Source-Link: googleapis/googleapis-gen@a0a01cf Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTBhMDFjZjE5ZjllZTZkMmM4YzRmOGNiMTFmZDM3OTBjODFmMmU3MyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 0875cd8 commit 380e770

File tree

7 files changed

+1074
-0
lines changed

7 files changed

+1074
-0
lines changed

protos/google/spanner/admin/database/v1/spanner_database_admin.proto

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import "google/protobuf/empty.proto";
2727
import "google/protobuf/field_mask.proto";
2828
import "google/protobuf/struct.proto";
2929
import "google/protobuf/timestamp.proto";
30+
import "google/rpc/status.proto";
3031
import "google/spanner/admin/database/v1/backup.proto";
3132
import "google/spanner/admin/database/v1/backup_schedule.proto";
3233
import "google/spanner/admin/database/v1/common.proto";
@@ -485,6 +486,13 @@ service DatabaseAdmin {
485486
};
486487
option (google.api.method_signature) = "parent";
487488
}
489+
490+
// This is an internal API called by Spanner Graph jobs. You should never need
491+
// to call this API directly.
492+
rpc InternalUpdateGraphOperation(InternalUpdateGraphOperationRequest)
493+
returns (InternalUpdateGraphOperationResponse) {
494+
option (google.api.method_signature) = "database,operation_id";
495+
}
488496
}
489497

490498
// Information about the database restore.
@@ -1282,3 +1290,25 @@ message SplitPoints {
12821290
google.protobuf.Timestamp expire_time = 5
12831291
[(google.api.field_behavior) = OPTIONAL];
12841292
}
1293+
1294+
// Internal request proto, do not use directly.
1295+
message InternalUpdateGraphOperationRequest {
1296+
// Internal field, do not use directly.
1297+
string database = 1 [
1298+
(google.api.field_behavior) = REQUIRED,
1299+
(google.api.resource_reference) = {
1300+
type: "spanner.googleapis.com/Database"
1301+
}
1302+
];
1303+
// Internal field, do not use directly.
1304+
string operation_id = 2 [(google.api.field_behavior) = REQUIRED];
1305+
// Internal field, do not use directly.
1306+
string vm_identity_token = 5 [(google.api.field_behavior) = REQUIRED];
1307+
// Internal field, do not use directly.
1308+
double progress = 3 [(google.api.field_behavior) = OPTIONAL];
1309+
// Internal field, do not use directly.
1310+
google.rpc.Status status = 6 [(google.api.field_behavior) = OPTIONAL];
1311+
}
1312+
1313+
// Internal response proto, do not use directly.
1314+
message InternalUpdateGraphOperationResponse {}

protos/protos.d.ts

Lines changed: 233 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)