1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package code
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39
40
41
42
43
44 type Code int32
45
46 const (
47
48
49
50 Code_OK Code = 0
51
52
53
54 Code_CANCELLED Code = 1
55
56
57
58
59
60
61
62 Code_UNKNOWN Code = 2
63
64
65
66
67
68
69 Code_INVALID_ARGUMENT Code = 3
70
71
72
73
74
75
76
77 Code_DEADLINE_EXCEEDED Code = 4
78
79
80
81
82
83
84
85
86
87 Code_NOT_FOUND Code = 5
88
89
90
91
92 Code_ALREADY_EXISTS Code = 6
93
94
95
96
97
98
99
100
101
102
103 Code_PERMISSION_DENIED Code = 7
104
105
106
107
108 Code_UNAUTHENTICATED Code = 16
109
110
111
112
113 Code_RESOURCE_EXHAUSTED Code = 8
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133 Code_FAILED_PRECONDITION Code = 9
134
135
136
137
138
139
140
141 Code_ABORTED Code = 10
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159 Code_OUT_OF_RANGE Code = 11
160
161
162
163
164 Code_UNIMPLEMENTED Code = 12
165
166
167
168
169
170 Code_INTERNAL Code = 13
171
172
173
174
175
176
177
178
179
180 Code_UNAVAILABLE Code = 14
181
182
183
184 Code_DATA_LOSS Code = 15
185 )
186
187
188 var (
189 Code_name = map[int32]string{
190 0: "OK",
191 1: "CANCELLED",
192 2: "UNKNOWN",
193 3: "INVALID_ARGUMENT",
194 4: "DEADLINE_EXCEEDED",
195 5: "NOT_FOUND",
196 6: "ALREADY_EXISTS",
197 7: "PERMISSION_DENIED",
198 16: "UNAUTHENTICATED",
199 8: "RESOURCE_EXHAUSTED",
200 9: "FAILED_PRECONDITION",
201 10: "ABORTED",
202 11: "OUT_OF_RANGE",
203 12: "UNIMPLEMENTED",
204 13: "INTERNAL",
205 14: "UNAVAILABLE",
206 15: "DATA_LOSS",
207 }
208 Code_value = map[string]int32{
209 "OK": 0,
210 "CANCELLED": 1,
211 "UNKNOWN": 2,
212 "INVALID_ARGUMENT": 3,
213 "DEADLINE_EXCEEDED": 4,
214 "NOT_FOUND": 5,
215 "ALREADY_EXISTS": 6,
216 "PERMISSION_DENIED": 7,
217 "UNAUTHENTICATED": 16,
218 "RESOURCE_EXHAUSTED": 8,
219 "FAILED_PRECONDITION": 9,
220 "ABORTED": 10,
221 "OUT_OF_RANGE": 11,
222 "UNIMPLEMENTED": 12,
223 "INTERNAL": 13,
224 "UNAVAILABLE": 14,
225 "DATA_LOSS": 15,
226 }
227 )
228
229 func (x Code) Enum() *Code {
230 p := new(Code)
231 *p = x
232 return p
233 }
234
235 func (x Code) String() string {
236 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
237 }
238
239 func (Code) Descriptor() protoreflect.EnumDescriptor {
240 return file_google_rpc_code_proto_enumTypes[0].Descriptor()
241 }
242
243 func (Code) Type() protoreflect.EnumType {
244 return &file_google_rpc_code_proto_enumTypes[0]
245 }
246
247 func (x Code) Number() protoreflect.EnumNumber {
248 return protoreflect.EnumNumber(x)
249 }
250
251
252 func (Code) EnumDescriptor() ([]byte, []int) {
253 return file_google_rpc_code_proto_rawDescGZIP(), []int{0}
254 }
255
256 var File_google_rpc_code_proto protoreflect.FileDescriptor
257
258 var file_google_rpc_code_proto_rawDesc = []byte{
259 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x64,
260 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
261 0x72, 0x70, 0x63, 0x2a, 0xb7, 0x02, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 0x02,
262 0x4f, 0x4b, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45,
263 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x02,
264 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55,
265 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x45, 0x41, 0x44, 0x4c, 0x49,
266 0x4e, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0d, 0x0a,
267 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e,
268 0x41, 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x06,
269 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x44,
270 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x4e, 0x41, 0x55, 0x54,
271 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x10, 0x12, 0x16, 0x0a, 0x12,
272 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x58, 0x48, 0x41, 0x55, 0x53, 0x54,
273 0x45, 0x44, 0x10, 0x08, 0x12, 0x17, 0x0a, 0x13, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x50,
274 0x52, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x09, 0x12, 0x0b, 0x0a,
275 0x07, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x55,
276 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x0b, 0x12, 0x11, 0x0a, 0x0d,
277 0x55, 0x4e, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x0c, 0x12,
278 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x0d, 0x12, 0x0f, 0x0a,
279 0x0b, 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x0e, 0x12, 0x0d,
280 0x0a, 0x09, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x10, 0x0f, 0x42, 0x58, 0x0a,
281 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x42,
282 0x09, 0x43, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x6f,
283 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
284 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
285 0x70, 0x69, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x3b, 0x63, 0x6f, 0x64,
286 0x65, 0xa2, 0x02, 0x03, 0x52, 0x50, 0x43, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
287 }
288
289 var (
290 file_google_rpc_code_proto_rawDescOnce sync.Once
291 file_google_rpc_code_proto_rawDescData = file_google_rpc_code_proto_rawDesc
292 )
293
294 func file_google_rpc_code_proto_rawDescGZIP() []byte {
295 file_google_rpc_code_proto_rawDescOnce.Do(func() {
296 file_google_rpc_code_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_rpc_code_proto_rawDescData)
297 })
298 return file_google_rpc_code_proto_rawDescData
299 }
300
301 var file_google_rpc_code_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
302 var file_google_rpc_code_proto_goTypes = []interface{}{
303 (Code)(0),
304 }
305 var file_google_rpc_code_proto_depIdxs = []int32{
306 0,
307 0,
308 0,
309 0,
310 0,
311 }
312
313 func init() { file_google_rpc_code_proto_init() }
314 func file_google_rpc_code_proto_init() {
315 if File_google_rpc_code_proto != nil {
316 return
317 }
318 type x struct{}
319 out := protoimpl.TypeBuilder{
320 File: protoimpl.DescBuilder{
321 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
322 RawDescriptor: file_google_rpc_code_proto_rawDesc,
323 NumEnums: 1,
324 NumMessages: 0,
325 NumExtensions: 0,
326 NumServices: 0,
327 },
328 GoTypes: file_google_rpc_code_proto_goTypes,
329 DependencyIndexes: file_google_rpc_code_proto_depIdxs,
330 EnumInfos: file_google_rpc_code_proto_enumTypes,
331 }.Build()
332 File_google_rpc_code_proto = out.File
333 file_google_rpc_code_proto_rawDesc = nil
334 file_google_rpc_code_proto_goTypes = nil
335 file_google_rpc_code_proto_depIdxs = nil
336 }
337
View as plain text