|
1 | | -// Copyright 2025 Google LLC |
| 1 | +// Copyright 2026 Google LLC |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -410,13 +410,12 @@ service Storage { |
410 | 410 |
|
411 | 411 | // Reads an object's data. |
412 | 412 | // |
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`. |
420 | 419 | // |
421 | 420 | // **IAM Permissions**: |
422 | 421 | // |
@@ -883,6 +882,9 @@ message ComposeObjectRequest { |
883 | 882 | // the combined checksums of the component objects. |
884 | 883 | ObjectChecksums object_checksums = 10 |
885 | 884 | [(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; |
886 | 888 | } |
887 | 889 |
|
888 | 890 | // Request message for deleting an object. |
@@ -1296,16 +1298,16 @@ message ReadRange { |
1296 | 1298 | // length is 15 bytes, a `ReadObjectRequest` with `read_offset` = -5 and |
1297 | 1299 | // `read_length` = 3 would return bytes 10 through 12 of the object. |
1298 | 1300 | // 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. |
1301 | 1303 | int64 read_offset = 1 [(google.api.field_behavior) = REQUIRED]; |
1302 | 1304 |
|
1303 | 1305 | // Optional. The maximum number of data bytes the server is allowed to return |
1304 | 1306 | // across all response messages with the same `read_id`. A `read_length` of |
1305 | 1307 | // 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. |
1309 | 1311 | int64 read_length = 2 [(google.api.field_behavior) = OPTIONAL]; |
1310 | 1312 |
|
1311 | 1313 | // Required. Read identifier provided by the client. When the client issues |
@@ -2825,6 +2827,9 @@ message ObjectCustomContextPayload { |
2825 | 2827 | // All contexts of an object grouped by type. |
2826 | 2828 | message ObjectContexts { |
2827 | 2829 | // 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`. |
2828 | 2833 | map<string, ObjectCustomContextPayload> custom = 1 |
2829 | 2834 | [(google.api.field_behavior) = OPTIONAL]; |
2830 | 2835 | } |
|
0 commit comments