OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / rpc / errdetails / error_details.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/rpc/error_details.proto
3
4 /*
5 Package errdetails is a generated protocol buffer package.
6
7 It is generated from these files:
8         google/rpc/error_details.proto
9
10 It has these top-level messages:
11         RetryInfo
12         DebugInfo
13         QuotaFailure
14         BadRequest
15         RequestInfo
16         ResourceInfo
17         Help
18         LocalizedMessage
19 */
20 package errdetails
21
22 import proto "github.com/golang/protobuf/proto"
23 import fmt "fmt"
24 import math "math"
25 import google_protobuf "github.com/golang/protobuf/ptypes/duration"
26
27 // Reference imports to suppress errors if they are not otherwise used.
28 var _ = proto.Marshal
29 var _ = fmt.Errorf
30 var _ = math.Inf
31
32 // This is a compile-time assertion to ensure that this generated file
33 // is compatible with the proto package it is being compiled against.
34 // A compilation error at this line likely means your copy of the
35 // proto package needs to be updated.
36 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
37
38 // Describes when the clients can retry a failed request. Clients could ignore
39 // the recommendation here or retry when this information is missing from error
40 // responses.
41 //
42 // It's always recommended that clients should use exponential backoff when
43 // retrying.
44 //
45 // Clients should wait until `retry_delay` amount of time has passed since
46 // receiving the error response before retrying.  If retrying requests also
47 // fail, clients should use an exponential backoff scheme to gradually increase
48 // the delay between retries based on `retry_delay`, until either a maximum
49 // number of retires have been reached or a maximum retry delay cap has been
50 // reached.
51 type RetryInfo struct {
52         // Clients should wait at least this long between retrying the same request.
53         RetryDelay *google_protobuf.Duration `protobuf:"bytes,1,opt,name=retry_delay,json=retryDelay" json:"retry_delay,omitempty"`
54 }
55
56 func (m *RetryInfo) Reset()                    { *m = RetryInfo{} }
57 func (m *RetryInfo) String() string            { return proto.CompactTextString(m) }
58 func (*RetryInfo) ProtoMessage()               {}
59 func (*RetryInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
60
61 func (m *RetryInfo) GetRetryDelay() *google_protobuf.Duration {
62         if m != nil {
63                 return m.RetryDelay
64         }
65         return nil
66 }
67
68 // Describes additional debugging info.
69 type DebugInfo struct {
70         // The stack trace entries indicating where the error occurred.
71         StackEntries []string `protobuf:"bytes,1,rep,name=stack_entries,json=stackEntries" json:"stack_entries,omitempty"`
72         // Additional debugging information provided by the server.
73         Detail string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"`
74 }
75
76 func (m *DebugInfo) Reset()                    { *m = DebugInfo{} }
77 func (m *DebugInfo) String() string            { return proto.CompactTextString(m) }
78 func (*DebugInfo) ProtoMessage()               {}
79 func (*DebugInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
80
81 func (m *DebugInfo) GetStackEntries() []string {
82         if m != nil {
83                 return m.StackEntries
84         }
85         return nil
86 }
87
88 func (m *DebugInfo) GetDetail() string {
89         if m != nil {
90                 return m.Detail
91         }
92         return ""
93 }
94
95 // Describes how a quota check failed.
96 //
97 // For example if a daily limit was exceeded for the calling project,
98 // a service could respond with a QuotaFailure detail containing the project
99 // id and the description of the quota limit that was exceeded.  If the
100 // calling project hasn't enabled the service in the developer console, then
101 // a service could respond with the project id and set `service_disabled`
102 // to true.
103 //
104 // Also see RetryDetail and Help types for other details about handling a
105 // quota failure.
106 type QuotaFailure struct {
107         // Describes all quota violations.
108         Violations []*QuotaFailure_Violation `protobuf:"bytes,1,rep,name=violations" json:"violations,omitempty"`
109 }
110
111 func (m *QuotaFailure) Reset()                    { *m = QuotaFailure{} }
112 func (m *QuotaFailure) String() string            { return proto.CompactTextString(m) }
113 func (*QuotaFailure) ProtoMessage()               {}
114 func (*QuotaFailure) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
115
116 func (m *QuotaFailure) GetViolations() []*QuotaFailure_Violation {
117         if m != nil {
118                 return m.Violations
119         }
120         return nil
121 }
122
123 // A message type used to describe a single quota violation.  For example, a
124 // daily quota or a custom quota that was exceeded.
125 type QuotaFailure_Violation struct {
126         // The subject on which the quota check failed.
127         // For example, "clientip:<ip address of client>" or "project:<Google
128         // developer project id>".
129         Subject string `protobuf:"bytes,1,opt,name=subject" json:"subject,omitempty"`
130         // A description of how the quota check failed. Clients can use this
131         // description to find more about the quota configuration in the service's
132         // public documentation, or find the relevant quota limit to adjust through
133         // developer console.
134         //
135         // For example: "Service disabled" or "Daily Limit for read operations
136         // exceeded".
137         Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
138 }
139
140 func (m *QuotaFailure_Violation) Reset()                    { *m = QuotaFailure_Violation{} }
141 func (m *QuotaFailure_Violation) String() string            { return proto.CompactTextString(m) }
142 func (*QuotaFailure_Violation) ProtoMessage()               {}
143 func (*QuotaFailure_Violation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
144
145 func (m *QuotaFailure_Violation) GetSubject() string {
146         if m != nil {
147                 return m.Subject
148         }
149         return ""
150 }
151
152 func (m *QuotaFailure_Violation) GetDescription() string {
153         if m != nil {
154                 return m.Description
155         }
156         return ""
157 }
158
159 // Describes violations in a client request. This error type focuses on the
160 // syntactic aspects of the request.
161 type BadRequest struct {
162         // Describes all violations in a client request.
163         FieldViolations []*BadRequest_FieldViolation `protobuf:"bytes,1,rep,name=field_violations,json=fieldViolations" json:"field_violations,omitempty"`
164 }
165
166 func (m *BadRequest) Reset()                    { *m = BadRequest{} }
167 func (m *BadRequest) String() string            { return proto.CompactTextString(m) }
168 func (*BadRequest) ProtoMessage()               {}
169 func (*BadRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
170
171 func (m *BadRequest) GetFieldViolations() []*BadRequest_FieldViolation {
172         if m != nil {
173                 return m.FieldViolations
174         }
175         return nil
176 }
177
178 // A message type used to describe a single bad request field.
179 type BadRequest_FieldViolation struct {
180         // A path leading to a field in the request body. The value will be a
181         // sequence of dot-separated identifiers that identify a protocol buffer
182         // field. E.g., "field_violations.field" would identify this field.
183         Field string `protobuf:"bytes,1,opt,name=field" json:"field,omitempty"`
184         // A description of why the request element is bad.
185         Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
186 }
187
188 func (m *BadRequest_FieldViolation) Reset()                    { *m = BadRequest_FieldViolation{} }
189 func (m *BadRequest_FieldViolation) String() string            { return proto.CompactTextString(m) }
190 func (*BadRequest_FieldViolation) ProtoMessage()               {}
191 func (*BadRequest_FieldViolation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} }
192
193 func (m *BadRequest_FieldViolation) GetField() string {
194         if m != nil {
195                 return m.Field
196         }
197         return ""
198 }
199
200 func (m *BadRequest_FieldViolation) GetDescription() string {
201         if m != nil {
202                 return m.Description
203         }
204         return ""
205 }
206
207 // Contains metadata about the request that clients can attach when filing a bug
208 // or providing other forms of feedback.
209 type RequestInfo struct {
210         // An opaque string that should only be interpreted by the service generating
211         // it. For example, it can be used to identify requests in the service's logs.
212         RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId" json:"request_id,omitempty"`
213         // Any data that was used to serve this request. For example, an encrypted
214         // stack trace that can be sent back to the service provider for debugging.
215         ServingData string `protobuf:"bytes,2,opt,name=serving_data,json=servingData" json:"serving_data,omitempty"`
216 }
217
218 func (m *RequestInfo) Reset()                    { *m = RequestInfo{} }
219 func (m *RequestInfo) String() string            { return proto.CompactTextString(m) }
220 func (*RequestInfo) ProtoMessage()               {}
221 func (*RequestInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
222
223 func (m *RequestInfo) GetRequestId() string {
224         if m != nil {
225                 return m.RequestId
226         }
227         return ""
228 }
229
230 func (m *RequestInfo) GetServingData() string {
231         if m != nil {
232                 return m.ServingData
233         }
234         return ""
235 }
236
237 // Describes the resource that is being accessed.
238 type ResourceInfo struct {
239         // A name for the type of resource being accessed, e.g. "sql table",
240         // "cloud storage bucket", "file", "Google calendar"; or the type URL
241         // of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
242         ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType" json:"resource_type,omitempty"`
243         // The name of the resource being accessed.  For example, a shared calendar
244         // name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
245         // error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
246         ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName" json:"resource_name,omitempty"`
247         // The owner of the resource (optional).
248         // For example, "user:<owner email>" or "project:<Google developer project
249         // id>".
250         Owner string `protobuf:"bytes,3,opt,name=owner" json:"owner,omitempty"`
251         // Describes what error is encountered when accessing this resource.
252         // For example, updating a cloud project may require the `writer` permission
253         // on the developer console project.
254         Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
255 }
256
257 func (m *ResourceInfo) Reset()                    { *m = ResourceInfo{} }
258 func (m *ResourceInfo) String() string            { return proto.CompactTextString(m) }
259 func (*ResourceInfo) ProtoMessage()               {}
260 func (*ResourceInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
261
262 func (m *ResourceInfo) GetResourceType() string {
263         if m != nil {
264                 return m.ResourceType
265         }
266         return ""
267 }
268
269 func (m *ResourceInfo) GetResourceName() string {
270         if m != nil {
271                 return m.ResourceName
272         }
273         return ""
274 }
275
276 func (m *ResourceInfo) GetOwner() string {
277         if m != nil {
278                 return m.Owner
279         }
280         return ""
281 }
282
283 func (m *ResourceInfo) GetDescription() string {
284         if m != nil {
285                 return m.Description
286         }
287         return ""
288 }
289
290 // Provides links to documentation or for performing an out of band action.
291 //
292 // For example, if a quota check failed with an error indicating the calling
293 // project hasn't enabled the accessed service, this can contain a URL pointing
294 // directly to the right place in the developer console to flip the bit.
295 type Help struct {
296         // URL(s) pointing to additional information on handling the current error.
297         Links []*Help_Link `protobuf:"bytes,1,rep,name=links" json:"links,omitempty"`
298 }
299
300 func (m *Help) Reset()                    { *m = Help{} }
301 func (m *Help) String() string            { return proto.CompactTextString(m) }
302 func (*Help) ProtoMessage()               {}
303 func (*Help) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
304
305 func (m *Help) GetLinks() []*Help_Link {
306         if m != nil {
307                 return m.Links
308         }
309         return nil
310 }
311
312 // Describes a URL link.
313 type Help_Link struct {
314         // Describes what the link offers.
315         Description string `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
316         // The URL of the link.
317         Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"`
318 }
319
320 func (m *Help_Link) Reset()                    { *m = Help_Link{} }
321 func (m *Help_Link) String() string            { return proto.CompactTextString(m) }
322 func (*Help_Link) ProtoMessage()               {}
323 func (*Help_Link) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6, 0} }
324
325 func (m *Help_Link) GetDescription() string {
326         if m != nil {
327                 return m.Description
328         }
329         return ""
330 }
331
332 func (m *Help_Link) GetUrl() string {
333         if m != nil {
334                 return m.Url
335         }
336         return ""
337 }
338
339 // Provides a localized error message that is safe to return to the user
340 // which can be attached to an RPC error.
341 type LocalizedMessage struct {
342         // The locale used following the specification defined at
343         // http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
344         // Examples are: "en-US", "fr-CH", "es-MX"
345         Locale string `protobuf:"bytes,1,opt,name=locale" json:"locale,omitempty"`
346         // The localized error message in the above locale.
347         Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
348 }
349
350 func (m *LocalizedMessage) Reset()                    { *m = LocalizedMessage{} }
351 func (m *LocalizedMessage) String() string            { return proto.CompactTextString(m) }
352 func (*LocalizedMessage) ProtoMessage()               {}
353 func (*LocalizedMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
354
355 func (m *LocalizedMessage) GetLocale() string {
356         if m != nil {
357                 return m.Locale
358         }
359         return ""
360 }
361
362 func (m *LocalizedMessage) GetMessage() string {
363         if m != nil {
364                 return m.Message
365         }
366         return ""
367 }
368
369 func init() {
370         proto.RegisterType((*RetryInfo)(nil), "google.rpc.RetryInfo")
371         proto.RegisterType((*DebugInfo)(nil), "google.rpc.DebugInfo")
372         proto.RegisterType((*QuotaFailure)(nil), "google.rpc.QuotaFailure")
373         proto.RegisterType((*QuotaFailure_Violation)(nil), "google.rpc.QuotaFailure.Violation")
374         proto.RegisterType((*BadRequest)(nil), "google.rpc.BadRequest")
375         proto.RegisterType((*BadRequest_FieldViolation)(nil), "google.rpc.BadRequest.FieldViolation")
376         proto.RegisterType((*RequestInfo)(nil), "google.rpc.RequestInfo")
377         proto.RegisterType((*ResourceInfo)(nil), "google.rpc.ResourceInfo")
378         proto.RegisterType((*Help)(nil), "google.rpc.Help")
379         proto.RegisterType((*Help_Link)(nil), "google.rpc.Help.Link")
380         proto.RegisterType((*LocalizedMessage)(nil), "google.rpc.LocalizedMessage")
381 }
382
383 func init() { proto.RegisterFile("google/rpc/error_details.proto", fileDescriptor0) }
384
385 var fileDescriptor0 = []byte{
386         // 551 bytes of a gzipped FileDescriptorProto
387         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xc1, 0x6f, 0xd3, 0x3e,
388         0x14, 0xc7, 0x95, 0x75, 0xdb, 0x4f, 0x79, 0xed, 0x6f, 0x94, 0x08, 0x50, 0xa9, 0x04, 0x2a, 0x41,
389         0x48, 0x95, 0x90, 0x52, 0x69, 0xdc, 0xc6, 0x01, 0xa9, 0x64, 0x5b, 0x27, 0x0d, 0x28, 0x11, 0xe2,
390         0xc0, 0x25, 0x72, 0x93, 0xd7, 0xc8, 0xd4, 0x8d, 0x83, 0xed, 0x0c, 0x95, 0xbf, 0x82, 0x3b, 0x37,
391         0x4e, 0xfc, 0x99, 0xc8, 0xb1, 0xbd, 0xa6, 0xeb, 0x85, 0x5b, 0xbe, 0xcf, 0x1f, 0x7f, 0xf3, 0x7d,
392         0x89, 0x9f, 0xe1, 0x69, 0xc1, 0x79, 0xc1, 0x70, 0x22, 0xaa, 0x6c, 0x82, 0x42, 0x70, 0x91, 0xe6,
393         0xa8, 0x08, 0x65, 0x32, 0xaa, 0x04, 0x57, 0x3c, 0x00, 0xb3, 0x1e, 0x89, 0x2a, 0x1b, 0x3a, 0xb6,
394         0x59, 0x59, 0xd4, 0xcb, 0x49, 0x5e, 0x0b, 0xa2, 0x28, 0x2f, 0x0d, 0x1b, 0x5e, 0x82, 0x9f, 0xa0,
395         0x12, 0x9b, 0xab, 0x72, 0xc9, 0x83, 0x33, 0xe8, 0x0a, 0x2d, 0xd2, 0x1c, 0x19, 0xd9, 0x0c, 0xbc,
396         0x91, 0x37, 0xee, 0x9e, 0x3e, 0x8e, 0xac, 0x9d, 0xb3, 0x88, 0x62, 0x6b, 0x91, 0x40, 0x43, 0xc7,
397         0x1a, 0x0e, 0x67, 0xe0, 0xc7, 0xb8, 0xa8, 0x8b, 0xc6, 0xe8, 0x39, 0xfc, 0x2f, 0x15, 0xc9, 0x56,
398         0x29, 0x96, 0x4a, 0x50, 0x94, 0x03, 0x6f, 0xd4, 0x19, 0xfb, 0x49, 0xaf, 0x29, 0x9e, 0x9b, 0x5a,
399         0xf0, 0x08, 0x8e, 0x4d, 0xee, 0xc1, 0xc1, 0xc8, 0x1b, 0xfb, 0x89, 0x55, 0xe1, 0x2f, 0x0f, 0x7a,
400         0x1f, 0x6b, 0xae, 0xc8, 0x05, 0xa1, 0xac, 0x16, 0x18, 0x4c, 0x01, 0x6e, 0x28, 0x67, 0xcd, 0x3b,
401         0x8d, 0x55, 0xf7, 0x34, 0x8c, 0xb6, 0x4d, 0x46, 0x6d, 0x3a, 0xfa, 0xec, 0xd0, 0xa4, 0xb5, 0x6b,
402         0x78, 0x09, 0xfe, 0xed, 0x42, 0x30, 0x80, 0xff, 0x64, 0xbd, 0xf8, 0x8a, 0x99, 0x6a, 0x7a, 0xf4,
403         0x13, 0x27, 0x83, 0x11, 0x74, 0x73, 0x94, 0x99, 0xa0, 0x95, 0x06, 0x6d, 0xb0, 0x76, 0x29, 0xfc,
404         0xe3, 0x01, 0x4c, 0x49, 0x9e, 0xe0, 0xb7, 0x1a, 0xa5, 0x0a, 0xe6, 0xd0, 0x5f, 0x52, 0x64, 0x79,
405         0xba, 0x97, 0xf0, 0x45, 0x3b, 0xe1, 0x76, 0x47, 0x74, 0xa1, 0xf1, 0x6d, 0xc8, 0x7b, 0xcb, 0x1d,
406         0x2d, 0x87, 0x33, 0x38, 0xd9, 0x45, 0x82, 0x07, 0x70, 0xd4, 0x40, 0x36, 0xac, 0x11, 0xff, 0x10,
407         0xf5, 0x03, 0x74, 0xed, 0x4b, 0x9b, 0x9f, 0xf2, 0x04, 0x40, 0x18, 0x99, 0x52, 0xe7, 0xe5, 0xdb,
408         0xca, 0x55, 0x1e, 0x3c, 0x83, 0x9e, 0x44, 0x71, 0x43, 0xcb, 0x22, 0xcd, 0x89, 0x22, 0xce, 0xd0,
409         0xd6, 0x62, 0xa2, 0x48, 0xf8, 0xd3, 0x83, 0x5e, 0x82, 0x92, 0xd7, 0x22, 0x43, 0xf7, 0x9f, 0x85,
410         0xd5, 0xa9, 0xda, 0x54, 0x68, 0x5d, 0x7b, 0xae, 0xf8, 0x69, 0x53, 0xe1, 0x0e, 0x54, 0x92, 0x35,
411         0x5a, 0xe7, 0x5b, 0xe8, 0x3d, 0x59, 0xa3, 0xee, 0x91, 0x7f, 0x2f, 0x51, 0x0c, 0x3a, 0xa6, 0xc7,
412         0x46, 0xdc, 0xed, 0xf1, 0x70, 0xbf, 0x47, 0x0e, 0x87, 0x33, 0x64, 0x55, 0xf0, 0x12, 0x8e, 0x18,
413         0x2d, 0x57, 0xee, 0xe3, 0x3f, 0x6c, 0x7f, 0x7c, 0x0d, 0x44, 0xd7, 0xb4, 0x5c, 0x25, 0x86, 0x19,
414         0x9e, 0xc1, 0xa1, 0x96, 0x77, 0xed, 0xbd, 0x3d, 0xfb, 0xa0, 0x0f, 0x9d, 0x5a, 0xb8, 0x03, 0xaa,
415         0x1f, 0xc3, 0x18, 0xfa, 0xd7, 0x3c, 0x23, 0x8c, 0xfe, 0xc0, 0xfc, 0x1d, 0x4a, 0x49, 0x0a, 0xd4,
416         0x27, 0x99, 0xe9, 0x9a, 0xeb, 0xdf, 0x2a, 0x7d, 0xce, 0xd6, 0x06, 0xb1, 0x0e, 0x4e, 0x4e, 0x19,
417         0x9c, 0x64, 0x7c, 0xdd, 0x0a, 0x39, 0xbd, 0x7f, 0xae, 0x27, 0x39, 0x36, 0x83, 0x3c, 0xd7, 0xa3,
418         0x36, 0xf7, 0xbe, 0xbc, 0xb1, 0x40, 0xc1, 0x19, 0x29, 0x8b, 0x88, 0x8b, 0x62, 0x52, 0x60, 0xd9,
419         0x0c, 0xe2, 0xc4, 0x2c, 0x91, 0x8a, 0x4a, 0x77, 0x11, 0xd8, 0x5b, 0xe0, 0xf5, 0xf6, 0xf1, 0xf7,
420         0x41, 0x27, 0x99, 0xbf, 0x5d, 0x1c, 0x37, 0x3b, 0x5e, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xc0,
421         0x5e, 0xc6, 0x6f, 0x39, 0x04, 0x00, 0x00,
422 }