Skip to content

Commit 51ff87f

Browse files
Google APIscopybara-github
authored andcommitted
feat: Added a new field ComposeObjectRequest.delete_source_objects field
docs: Updated documentation for `BidiReadObject`, `ReadObjectRequest`, and `ObjectContexts` PiperOrigin-RevId: 863087065
1 parent fa4dc54 commit 51ff87f

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

google/storage/v2/storage.proto

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -410,13 +410,12 @@ service Storage {
410410

411411
// Reads an object's data.
412412
//
413-
// This bi-directional API reads data from an object, allowing you to
414-
// request multiple data ranges within a single stream, even across
415-
// several messages. If an error occurs with any request, the stream
416-
// closes with a relevant error code. Since you can have multiple
417-
// outstanding requests, the error response includes a
418-
// `BidiReadObjectRangesError` field detailing the specific error for
419-
// each pending `read_id`.
413+
// This bi-directional API reads data from an object, allowing you to request
414+
// multiple data ranges within a single stream, even across several messages.
415+
// If an error occurs with any request, the stream closes with a relevant
416+
// error code. Since you can have multiple outstanding requests, the error
417+
// response includes a `BidiReadObjectError` proto in its `details` field,
418+
// reporting the specific error, if any, for each pending `read_id`.
420419
//
421420
// **IAM Permissions**:
422421
//
@@ -883,6 +882,9 @@ message ComposeObjectRequest {
883882
// the combined checksums of the component objects.
884883
ObjectChecksums object_checksums = 10
885884
[(google.api.field_behavior) = OPTIONAL];
885+
886+
// Whether the source objects should be deleted in the compose request.
887+
optional bool delete_source_objects = 11;
886888
}
887889

888890
// Request message for deleting an object.
@@ -1296,16 +1298,16 @@ message ReadRange {
12961298
// length is 15 bytes, a `ReadObjectRequest` with `read_offset` = -5 and
12971299
// `read_length` = 3 would return bytes 10 through 12 of the object.
12981300
// Requesting a negative offset with magnitude larger than the size of the
1299-
// object returns the entire object. A `read_offset` larger than the size
1300-
// of the object results in an `OutOfRange` error.
1301+
// object is equivalent to `read_offset` = 0. A `read_offset` larger than the
1302+
// size of the object results in an `OutOfRange` error.
13011303
int64 read_offset = 1 [(google.api.field_behavior) = REQUIRED];
13021304

13031305
// Optional. The maximum number of data bytes the server is allowed to return
13041306
// across all response messages with the same `read_id`. A `read_length` of
13051307
// zero indicates to read until the resource end, and a negative `read_length`
1306-
// causes an error. If the stream returns fewer bytes than allowed by the
1307-
// `read_length` and no error occurred, the stream includes all data from the
1308-
// `read_offset` to the resource end.
1308+
// causes an `OutOfRange` error. If the stream returns fewer bytes than
1309+
// allowed by the `read_length` and no error occurred, the stream includes all
1310+
// data from the `read_offset` to the resource end.
13091311
int64 read_length = 2 [(google.api.field_behavior) = OPTIONAL];
13101312

13111313
// Required. Read identifier provided by the client. When the client issues
@@ -2825,6 +2827,9 @@ message ObjectCustomContextPayload {
28252827
// All contexts of an object grouped by type.
28262828
message ObjectContexts {
28272829
// Optional. User-defined object contexts.
2830+
// The maximum key or value size is `256` characters.
2831+
// The maximum number of entries is `50`.
2832+
// The maximum total serialized size of all entries is `25KiB`.
28282833
map<string, ObjectCustomContextPayload> custom = 1
28292834
[(google.api.field_behavior) = OPTIONAL];
28302835
}

0 commit comments

Comments
 (0)