| 1 |
// Code generated by "stringer -type=ErrorCode"; DO NOT EDIT. |
| 2 |
|
| 3 |
package gcerr |
| 4 |
|
| 5 |
import "strconv" |
| 6 |
|
| 7 |
const _ErrorCode_name = "OKUnknownNotFoundAlreadyExistsInvalidArgumentInternalUnimplementedFailedPreconditionPermissionDeniedResourceExhaustedCanceledDeadlineExceeded" |
| 8 |
|
| 9 |
var _ErrorCode_index = [...]uint8{0, 2, 9, 17, 30, 45, 53, 66, 84, 100, 117, 125, 141} |
| 10 |
|
| 11 |
func (i ErrorCode) String() string { |
| 12 |
if i < 0 || i >= ErrorCode(len(_ErrorCode_index)-1) { |
| 13 |
return "ErrorCode(" + strconv.FormatInt(int64(i), 10) + ")" |
| 14 |
} |
| 15 |
return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]] |
| 16 |
} |