Skip to content

Commit ae0254f

Browse files
Google APIscopybara-github
authored andcommitted
docs: Updated ChecksummedData message definition to specify ctype=CORD, and removed incorrect earlier attempt that set that annotation in the ReadObjectResponse message definition
docs: Clarified behavior of resumable upload cancellation PiperOrigin-RevId: 520467605
1 parent cf01552 commit ae0254f

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

google/storage/v2/storage.proto

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,13 @@ service Storage {
240240
}
241241

242242
// Cancels an in-progress resumable upload.
243+
//
244+
// Any attempts to write to the resumable upload after cancelling the upload
245+
// will fail.
246+
//
247+
// The behavior for currently in progress write operations is not guaranteed -
248+
// they could either complete before the cancellation or fail if the
249+
// cancellation completes first.
243250
rpc CancelResumableWrite(CancelResumableWriteRequest)
244251
returns (CancelResumableWriteResponse) {
245252
option (google.api.routing) = {
@@ -903,7 +910,7 @@ message ReadObjectResponse {
903910
// empty for any given `ReadResponse`. This enables the service to inform the
904911
// client that the request is still live while it is running an operation to
905912
// generate more data.
906-
ChecksummedData checksummed_data = 1 [ctype = CORD];
913+
ChecksummedData checksummed_data = 1;
907914

908915
// The checksums of the complete object. The client should compute one of
909916
// these checksums over the downloaded object and compare it against the value
@@ -2008,7 +2015,7 @@ message BucketAccessControl {
20082015
// checksum.
20092016
message ChecksummedData {
20102017
// The data.
2011-
bytes content = 1;
2018+
bytes content = 1 [ctype = CORD];
20122019

20132020
// If set, the CRC32C digest of the content field.
20142021
optional fixed32 crc32c = 2;

0 commit comments

Comments
 (0)