Skip to content

Commit d73dfb3

Browse files
Google APIscopybara-github
authored andcommitted
feat: populate the persisted_data_checksums field with object checksums on write object / query write status responses
docs: improve wording around `object_checksums` in bidi write object requests PiperOrigin-RevId: 895357062
1 parent 544bab0 commit d73dfb3

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

google/storage/v2/storage.proto

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,9 @@ message WriteObjectResponse {
14611461
// the upload has finalized.
14621462
Object resource = 2;
14631463
}
1464+
1465+
// If persisted_size is set, contains checksums of persisted data.
1466+
ObjectChecksums persisted_data_checksums = 3;
14641467
}
14651468

14661469
// Describes an attempt to append to an object, possibly over multiple requests.
@@ -1543,9 +1546,9 @@ message BidiWriteObjectRequest {
15431546
}
15441547

15451548
// Optional. Checksums for the complete object. If the checksums computed by
1546-
// the service don't match the specified checksums the call fails. Might only
1547-
// be provided in the first request or the last request (with finish_write
1548-
// set).
1549+
// the service don't match the specified checksums the call fails. May be
1550+
// provided in the last request (with finish_write set). For non-appendable
1551+
// objects only, may also be provided in the first request.
15491552
ObjectChecksums object_checksums = 6 [(google.api.field_behavior) = OPTIONAL];
15501553

15511554
// Optional. For each `BidiWriteObjectRequest` where `state_lookup` is `true`
@@ -1593,6 +1596,9 @@ message BidiWriteObjectResponse {
15931596
Object resource = 2;
15941597
}
15951598

1599+
// If persisted_size is set, contains checksums of persisted data.
1600+
ObjectChecksums persisted_data_checksums = 4;
1601+
15961602
// An optional write handle that is returned periodically in response
15971603
// messages. Clients should save it for later use in establishing a new stream
15981604
// if a connection is interrupted.
@@ -1704,6 +1710,9 @@ message QueryWriteStatusResponse {
17041710
// the upload has finalized.
17051711
Object resource = 2;
17061712
}
1713+
1714+
// If persisted_size is set, contains checksums of persisted data.
1715+
ObjectChecksums persisted_data_checksums = 3;
17071716
}
17081717

17091718
// Request message for [RewriteObject][google.storage.v2.Storage.RewriteObject].

0 commit comments

Comments
 (0)