Why an operation failed.
INVALID_KEY
INVALID_OPTION
NaN
1.5
VALUE_TOO_LARGE
maxValueBytes
UNSERIALIZABLE
Date
VALIDATION_FAILED
CORRUPT_DATA
legacy
INCOMPATIBLE_VERSION
EXPIRED
getOrCreateSecret
UNSUPPORTED
DRIVER_ERROR
cause
Why an operation failed.
INVALID_KEY: the key or namespace is empty, too long or contains a control character.INVALID_OPTION: an option is out of range, for example a TTL ofNaNor a version of1.5.VALUE_TOO_LARGE: the encoded value is larger thanmaxValueBytes.UNSERIALIZABLE: the value contains something that cannot be stored, such as a function, a class instance, a circular reference or an invalidDate.VALIDATION_FAILED: the schema rejected the value.CORRUPT_DATA: the stored text is not a record this library wrote and nolegacyreader accepted it.INCOMPATIBLE_VERSION: the stored record was written by a newer schema version, or a migration step is missing.EXPIRED:getOrCreateSecretfound a stored secret whose lifetime has passed; it is left in place rather than replaced.UNSUPPORTED: the driver cannot do this, for example list keys.DRIVER_ERROR: the underlying storage threw; the original error is incause.