OSDN Git Service

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