@@ -10,10 +10,10 @@ pub struct GetObjectRequest {
10
10
/// Authorization and billing can also be performed at the `store_id` level.
11
11
#[ prost( string, tag = "1" ) ]
12
12
pub store_id : :: prost:: alloc:: string:: String ,
13
- /// `Key` for which the value is to be fetched.
13
+ /// The key of the value to be fetched.
14
14
///
15
- /// If the specified `key` does not exist, returns `ErrorResponse` with ` NO_SUCH_KEY_EXCEPTION` as
16
- /// `ErrorCode `.
15
+ /// If the specified `key` does not exist, returns `ErrorCode. NO_SUCH_KEY_EXCEPTION` in the
16
+ /// the `ErrorResponse `.
17
17
///
18
18
/// Consistency Guarantee:
19
19
/// Get(read) operations against a `key` are consistent reads and will reflect all previous writes,
@@ -290,18 +290,18 @@ pub struct KeyValue {
290
290
pub enum ErrorCode {
291
291
/// Default protobuf Enum value. Will not be used as `ErrorCode` by server.
292
292
Unknown = 0 ,
293
- /// CONFLICT_EXCEPTION is used when the request contains mismatched version (either key or global)
293
+ /// Used when the request contains mismatched version (either key or global)
294
294
/// in `PutObjectRequest`. For more info refer `PutObjectRequest`.
295
295
ConflictException = 1 ,
296
- /// INVALID_REQUEST_EXCEPTION is used in the following cases:
296
+ /// Used in the following cases:
297
297
/// - The request was missing a required argument.
298
298
/// - The specified argument was invalid, incomplete or in the wrong format.
299
299
/// - The request body of api cannot be deserialized into corresponding protobuf object.
300
300
InvalidRequestException = 2 ,
301
- /// An internal server error occurred, client is probably at no fault and can safely retry this
302
- /// error with exponential backoff.
301
+ /// Used when an internal server error occurred, client is probably at no fault and can safely retry
302
+ /// this error with exponential backoff.
303
303
InternalServerException = 3 ,
304
- /// NO_SUCH_KEY_EXCEPTION is used when the specified `key` in a `GetObjectRequest` does not exist.
304
+ /// Used when the specified `key` in a `GetObjectRequest` does not exist.
305
305
NoSuchKeyException = 4 ,
306
306
}
307
307
impl ErrorCode {
0 commit comments