You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

247 regels
10 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/rpc/code.proto
  3. package code // import "google.golang.org/genproto/googleapis/rpc/code"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. // The canonical error codes for Google APIs.
  17. //
  18. //
  19. // Sometimes multiple error codes may apply. Services should return
  20. // the most specific error code that applies. For example, prefer
  21. // `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
  22. // Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
  23. type Code int32
  24. const (
  25. // Not an error; returned on success
  26. //
  27. // HTTP Mapping: 200 OK
  28. Code_OK Code = 0
  29. // The operation was cancelled, typically by the caller.
  30. //
  31. // HTTP Mapping: 499 Client Closed Request
  32. Code_CANCELLED Code = 1
  33. // Unknown error. For example, this error may be returned when
  34. // a `Status` value received from another address space belongs to
  35. // an error space that is not known in this address space. Also
  36. // errors raised by APIs that do not return enough error information
  37. // may be converted to this error.
  38. //
  39. // HTTP Mapping: 500 Internal Server Error
  40. Code_UNKNOWN Code = 2
  41. // The client specified an invalid argument. Note that this differs
  42. // from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
  43. // that are problematic regardless of the state of the system
  44. // (e.g., a malformed file name).
  45. //
  46. // HTTP Mapping: 400 Bad Request
  47. Code_INVALID_ARGUMENT Code = 3
  48. // The deadline expired before the operation could complete. For operations
  49. // that change the state of the system, this error may be returned
  50. // even if the operation has completed successfully. For example, a
  51. // successful response from a server could have been delayed long
  52. // enough for the deadline to expire.
  53. //
  54. // HTTP Mapping: 504 Gateway Timeout
  55. Code_DEADLINE_EXCEEDED Code = 4
  56. // Some requested entity (e.g., file or directory) was not found.
  57. //
  58. // Note to server developers: if a request is denied for an entire class
  59. // of users, such as gradual feature rollout or undocumented whitelist,
  60. // `NOT_FOUND` may be used. If a request is denied for some users within
  61. // a class of users, such as user-based access control, `PERMISSION_DENIED`
  62. // must be used.
  63. //
  64. // HTTP Mapping: 404 Not Found
  65. Code_NOT_FOUND Code = 5
  66. // The entity that a client attempted to create (e.g., file or directory)
  67. // already exists.
  68. //
  69. // HTTP Mapping: 409 Conflict
  70. Code_ALREADY_EXISTS Code = 6
  71. // The caller does not have permission to execute the specified
  72. // operation. `PERMISSION_DENIED` must not be used for rejections
  73. // caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
  74. // instead for those errors). `PERMISSION_DENIED` must not be
  75. // used if the caller can not be identified (use `UNAUTHENTICATED`
  76. // instead for those errors). This error code does not imply the
  77. // request is valid or the requested entity exists or satisfies
  78. // other pre-conditions.
  79. //
  80. // HTTP Mapping: 403 Forbidden
  81. Code_PERMISSION_DENIED Code = 7
  82. // The request does not have valid authentication credentials for the
  83. // operation.
  84. //
  85. // HTTP Mapping: 401 Unauthorized
  86. Code_UNAUTHENTICATED Code = 16
  87. // Some resource has been exhausted, perhaps a per-user quota, or
  88. // perhaps the entire file system is out of space.
  89. //
  90. // HTTP Mapping: 429 Too Many Requests
  91. Code_RESOURCE_EXHAUSTED Code = 8
  92. // The operation was rejected because the system is not in a state
  93. // required for the operation's execution. For example, the directory
  94. // to be deleted is non-empty, an rmdir operation is applied to
  95. // a non-directory, etc.
  96. //
  97. // Service implementors can use the following guidelines to decide
  98. // between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
  99. // (a) Use `UNAVAILABLE` if the client can retry just the failing call.
  100. // (b) Use `ABORTED` if the client should retry at a higher level
  101. // (e.g., when a client-specified test-and-set fails, indicating the
  102. // client should restart a read-modify-write sequence).
  103. // (c) Use `FAILED_PRECONDITION` if the client should not retry until
  104. // the system state has been explicitly fixed. E.g., if an "rmdir"
  105. // fails because the directory is non-empty, `FAILED_PRECONDITION`
  106. // should be returned since the client should not retry unless
  107. // the files are deleted from the directory.
  108. //
  109. // HTTP Mapping: 400 Bad Request
  110. Code_FAILED_PRECONDITION Code = 9
  111. // The operation was aborted, typically due to a concurrency issue such as
  112. // a sequencer check failure or transaction abort.
  113. //
  114. // See the guidelines above for deciding between `FAILED_PRECONDITION`,
  115. // `ABORTED`, and `UNAVAILABLE`.
  116. //
  117. // HTTP Mapping: 409 Conflict
  118. Code_ABORTED Code = 10
  119. // The operation was attempted past the valid range. E.g., seeking or
  120. // reading past end-of-file.
  121. //
  122. // Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
  123. // be fixed if the system state changes. For example, a 32-bit file
  124. // system will generate `INVALID_ARGUMENT` if asked to read at an
  125. // offset that is not in the range [0,2^32-1], but it will generate
  126. // `OUT_OF_RANGE` if asked to read from an offset past the current
  127. // file size.
  128. //
  129. // There is a fair bit of overlap between `FAILED_PRECONDITION` and
  130. // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
  131. // error) when it applies so that callers who are iterating through
  132. // a space can easily look for an `OUT_OF_RANGE` error to detect when
  133. // they are done.
  134. //
  135. // HTTP Mapping: 400 Bad Request
  136. Code_OUT_OF_RANGE Code = 11
  137. // The operation is not implemented or is not supported/enabled in this
  138. // service.
  139. //
  140. // HTTP Mapping: 501 Not Implemented
  141. Code_UNIMPLEMENTED Code = 12
  142. // Internal errors. This means that some invariants expected by the
  143. // underlying system have been broken. This error code is reserved
  144. // for serious errors.
  145. //
  146. // HTTP Mapping: 500 Internal Server Error
  147. Code_INTERNAL Code = 13
  148. // The service is currently unavailable. This is most likely a
  149. // transient condition, which can be corrected by retrying with
  150. // a backoff.
  151. //
  152. // See the guidelines above for deciding between `FAILED_PRECONDITION`,
  153. // `ABORTED`, and `UNAVAILABLE`.
  154. //
  155. // HTTP Mapping: 503 Service Unavailable
  156. Code_UNAVAILABLE Code = 14
  157. // Unrecoverable data loss or corruption.
  158. //
  159. // HTTP Mapping: 500 Internal Server Error
  160. Code_DATA_LOSS Code = 15
  161. )
  162. var Code_name = map[int32]string{
  163. 0: "OK",
  164. 1: "CANCELLED",
  165. 2: "UNKNOWN",
  166. 3: "INVALID_ARGUMENT",
  167. 4: "DEADLINE_EXCEEDED",
  168. 5: "NOT_FOUND",
  169. 6: "ALREADY_EXISTS",
  170. 7: "PERMISSION_DENIED",
  171. 16: "UNAUTHENTICATED",
  172. 8: "RESOURCE_EXHAUSTED",
  173. 9: "FAILED_PRECONDITION",
  174. 10: "ABORTED",
  175. 11: "OUT_OF_RANGE",
  176. 12: "UNIMPLEMENTED",
  177. 13: "INTERNAL",
  178. 14: "UNAVAILABLE",
  179. 15: "DATA_LOSS",
  180. }
  181. var Code_value = map[string]int32{
  182. "OK": 0,
  183. "CANCELLED": 1,
  184. "UNKNOWN": 2,
  185. "INVALID_ARGUMENT": 3,
  186. "DEADLINE_EXCEEDED": 4,
  187. "NOT_FOUND": 5,
  188. "ALREADY_EXISTS": 6,
  189. "PERMISSION_DENIED": 7,
  190. "UNAUTHENTICATED": 16,
  191. "RESOURCE_EXHAUSTED": 8,
  192. "FAILED_PRECONDITION": 9,
  193. "ABORTED": 10,
  194. "OUT_OF_RANGE": 11,
  195. "UNIMPLEMENTED": 12,
  196. "INTERNAL": 13,
  197. "UNAVAILABLE": 14,
  198. "DATA_LOSS": 15,
  199. }
  200. func (x Code) String() string {
  201. return proto.EnumName(Code_name, int32(x))
  202. }
  203. func (Code) EnumDescriptor() ([]byte, []int) {
  204. return fileDescriptor_code_8ba741a7091890dd, []int{0}
  205. }
  206. func init() {
  207. proto.RegisterEnum("google.rpc.Code", Code_name, Code_value)
  208. }
  209. func init() { proto.RegisterFile("google/rpc/code.proto", fileDescriptor_code_8ba741a7091890dd) }
  210. var fileDescriptor_code_8ba741a7091890dd = []byte{
  211. // 362 bytes of a gzipped FileDescriptorProto
  212. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x51, 0xcd, 0x6e, 0x93, 0x31,
  213. 0x10, 0xa4, 0x69, 0x49, 0x9b, 0xcd, 0xdf, 0xd6, 0xa5, 0xf0, 0x0e, 0x1c, 0x92, 0x43, 0x8f, 0x9c,
  214. 0x36, 0x9f, 0x37, 0xad, 0x55, 0x67, 0xfd, 0xc9, 0x3f, 0x25, 0x70, 0xb1, 0x4a, 0x1a, 0x7d, 0x42,
  215. 0x2a, 0x75, 0xf4, 0xc1, 0x13, 0xf1, 0x12, 0xbc, 0x1e, 0x72, 0x8b, 0xe8, 0xc5, 0x87, 0x99, 0xf1,
  216. 0xee, 0xce, 0x0c, 0x5c, 0x76, 0xa5, 0x74, 0x8f, 0xfb, 0x65, 0x7f, 0xd8, 0x2d, 0x77, 0xe5, 0x61,
  217. 0xbf, 0x38, 0xf4, 0xe5, 0x57, 0x51, 0xf0, 0x02, 0x2f, 0xfa, 0xc3, 0xee, 0xe3, 0x9f, 0x01, 0x9c,
  218. 0x34, 0xe5, 0x61, 0xaf, 0x86, 0x30, 0x70, 0xb7, 0xf8, 0x46, 0x4d, 0x61, 0xd4, 0x90, 0x34, 0x6c,
  219. 0x2d, 0x6b, 0x3c, 0x52, 0x63, 0x38, 0x4d, 0x72, 0x2b, 0xee, 0xb3, 0xe0, 0x40, 0xbd, 0x03, 0x34,
  220. 0x72, 0x47, 0xd6, 0xe8, 0x4c, 0xfe, 0x3a, 0x6d, 0x58, 0x22, 0x1e, 0xab, 0x4b, 0x38, 0xd7, 0x4c,
  221. 0xda, 0x1a, 0xe1, 0xcc, 0xdb, 0x86, 0x59, 0xb3, 0xc6, 0x93, 0x3a, 0x48, 0x5c, 0xcc, 0x6b, 0x97,
  222. 0x44, 0xe3, 0x5b, 0xa5, 0x60, 0x46, 0xd6, 0x33, 0xe9, 0x2f, 0x99, 0xb7, 0x26, 0xc4, 0x80, 0xc3,
  223. 0xfa, 0xb3, 0x65, 0xbf, 0x31, 0x21, 0x18, 0x27, 0x59, 0xb3, 0x18, 0xd6, 0x78, 0xaa, 0x2e, 0x60,
  224. 0x9e, 0x84, 0x52, 0xbc, 0x61, 0x89, 0xa6, 0xa1, 0xc8, 0x1a, 0x51, 0xbd, 0x07, 0xe5, 0x39, 0xb8,
  225. 0xe4, 0x9b, 0xba, 0xe5, 0x86, 0x52, 0xa8, 0xf8, 0x99, 0xfa, 0x00, 0x17, 0x6b, 0x32, 0x96, 0x75,
  226. 0x6e, 0x3d, 0x37, 0x4e, 0xb4, 0x89, 0xc6, 0x09, 0x8e, 0xea, 0xe5, 0xb4, 0x72, 0xbe, 0xaa, 0x40,
  227. 0x21, 0x4c, 0x5c, 0x8a, 0xd9, 0xad, 0xb3, 0x27, 0xb9, 0x66, 0x1c, 0xab, 0x73, 0x98, 0x26, 0x31,
  228. 0x9b, 0xd6, 0x72, 0xb5, 0xc1, 0x1a, 0x27, 0x6a, 0x02, 0x67, 0x46, 0x22, 0x7b, 0x21, 0x8b, 0x53,
  229. 0x35, 0x87, 0x71, 0x12, 0xba, 0x23, 0x63, 0x69, 0x65, 0x19, 0x67, 0xd5, 0x90, 0xa6, 0x48, 0xd9,
  230. 0xba, 0x10, 0x70, 0xbe, 0xda, 0xc2, 0x6c, 0x57, 0x7e, 0x2c, 0x5e, 0xb3, 0x5c, 0x8d, 0x6a, 0x90,
  231. 0x6d, 0x8d, 0xb8, 0x3d, 0xfa, 0x7a, 0xf5, 0x8f, 0xe8, 0xca, 0xe3, 0xfd, 0x53, 0xb7, 0x28, 0x7d,
  232. 0xb7, 0xec, 0xf6, 0x4f, 0xcf, 0x05, 0x2c, 0x5f, 0xa8, 0xfb, 0xc3, 0xf7, 0x9f, 0xff, 0xab, 0xf9,
  233. 0x54, 0x9f, 0xdf, 0x83, 0x63, 0xdf, 0x36, 0xdf, 0x86, 0xcf, 0xaa, 0xab, 0xbf, 0x01, 0x00, 0x00,
  234. 0xff, 0xff, 0x8e, 0x97, 0x77, 0xc2, 0xbf, 0x01, 0x00, 0x00,
  235. }