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.
 
 
 

766 lines
30 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/rpc/error_details.proto
  3. package errdetails // import "google.golang.org/genproto/googleapis/rpc/errdetails"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import duration "github.com/golang/protobuf/ptypes/duration"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // Describes when the clients can retry a failed request. Clients could ignore
  18. // the recommendation here or retry when this information is missing from error
  19. // responses.
  20. //
  21. // It's always recommended that clients should use exponential backoff when
  22. // retrying.
  23. //
  24. // Clients should wait until `retry_delay` amount of time has passed since
  25. // receiving the error response before retrying. If retrying requests also
  26. // fail, clients should use an exponential backoff scheme to gradually increase
  27. // the delay between retries based on `retry_delay`, until either a maximum
  28. // number of retires have been reached or a maximum retry delay cap has been
  29. // reached.
  30. type RetryInfo struct {
  31. // Clients should wait at least this long between retrying the same request.
  32. RetryDelay *duration.Duration `protobuf:"bytes,1,opt,name=retry_delay,json=retryDelay,proto3" json:"retry_delay,omitempty"`
  33. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  34. XXX_unrecognized []byte `json:"-"`
  35. XXX_sizecache int32 `json:"-"`
  36. }
  37. func (m *RetryInfo) Reset() { *m = RetryInfo{} }
  38. func (m *RetryInfo) String() string { return proto.CompactTextString(m) }
  39. func (*RetryInfo) ProtoMessage() {}
  40. func (*RetryInfo) Descriptor() ([]byte, []int) {
  41. return fileDescriptor_error_details_0786ccff29c8b842, []int{0}
  42. }
  43. func (m *RetryInfo) XXX_Unmarshal(b []byte) error {
  44. return xxx_messageInfo_RetryInfo.Unmarshal(m, b)
  45. }
  46. func (m *RetryInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  47. return xxx_messageInfo_RetryInfo.Marshal(b, m, deterministic)
  48. }
  49. func (dst *RetryInfo) XXX_Merge(src proto.Message) {
  50. xxx_messageInfo_RetryInfo.Merge(dst, src)
  51. }
  52. func (m *RetryInfo) XXX_Size() int {
  53. return xxx_messageInfo_RetryInfo.Size(m)
  54. }
  55. func (m *RetryInfo) XXX_DiscardUnknown() {
  56. xxx_messageInfo_RetryInfo.DiscardUnknown(m)
  57. }
  58. var xxx_messageInfo_RetryInfo proto.InternalMessageInfo
  59. func (m *RetryInfo) GetRetryDelay() *duration.Duration {
  60. if m != nil {
  61. return m.RetryDelay
  62. }
  63. return nil
  64. }
  65. // Describes additional debugging info.
  66. type DebugInfo struct {
  67. // The stack trace entries indicating where the error occurred.
  68. StackEntries []string `protobuf:"bytes,1,rep,name=stack_entries,json=stackEntries,proto3" json:"stack_entries,omitempty"`
  69. // Additional debugging information provided by the server.
  70. Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
  71. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  72. XXX_unrecognized []byte `json:"-"`
  73. XXX_sizecache int32 `json:"-"`
  74. }
  75. func (m *DebugInfo) Reset() { *m = DebugInfo{} }
  76. func (m *DebugInfo) String() string { return proto.CompactTextString(m) }
  77. func (*DebugInfo) ProtoMessage() {}
  78. func (*DebugInfo) Descriptor() ([]byte, []int) {
  79. return fileDescriptor_error_details_0786ccff29c8b842, []int{1}
  80. }
  81. func (m *DebugInfo) XXX_Unmarshal(b []byte) error {
  82. return xxx_messageInfo_DebugInfo.Unmarshal(m, b)
  83. }
  84. func (m *DebugInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  85. return xxx_messageInfo_DebugInfo.Marshal(b, m, deterministic)
  86. }
  87. func (dst *DebugInfo) XXX_Merge(src proto.Message) {
  88. xxx_messageInfo_DebugInfo.Merge(dst, src)
  89. }
  90. func (m *DebugInfo) XXX_Size() int {
  91. return xxx_messageInfo_DebugInfo.Size(m)
  92. }
  93. func (m *DebugInfo) XXX_DiscardUnknown() {
  94. xxx_messageInfo_DebugInfo.DiscardUnknown(m)
  95. }
  96. var xxx_messageInfo_DebugInfo proto.InternalMessageInfo
  97. func (m *DebugInfo) GetStackEntries() []string {
  98. if m != nil {
  99. return m.StackEntries
  100. }
  101. return nil
  102. }
  103. func (m *DebugInfo) GetDetail() string {
  104. if m != nil {
  105. return m.Detail
  106. }
  107. return ""
  108. }
  109. // Describes how a quota check failed.
  110. //
  111. // For example if a daily limit was exceeded for the calling project,
  112. // a service could respond with a QuotaFailure detail containing the project
  113. // id and the description of the quota limit that was exceeded. If the
  114. // calling project hasn't enabled the service in the developer console, then
  115. // a service could respond with the project id and set `service_disabled`
  116. // to true.
  117. //
  118. // Also see RetryDetail and Help types for other details about handling a
  119. // quota failure.
  120. type QuotaFailure struct {
  121. // Describes all quota violations.
  122. Violations []*QuotaFailure_Violation `protobuf:"bytes,1,rep,name=violations,proto3" json:"violations,omitempty"`
  123. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  124. XXX_unrecognized []byte `json:"-"`
  125. XXX_sizecache int32 `json:"-"`
  126. }
  127. func (m *QuotaFailure) Reset() { *m = QuotaFailure{} }
  128. func (m *QuotaFailure) String() string { return proto.CompactTextString(m) }
  129. func (*QuotaFailure) ProtoMessage() {}
  130. func (*QuotaFailure) Descriptor() ([]byte, []int) {
  131. return fileDescriptor_error_details_0786ccff29c8b842, []int{2}
  132. }
  133. func (m *QuotaFailure) XXX_Unmarshal(b []byte) error {
  134. return xxx_messageInfo_QuotaFailure.Unmarshal(m, b)
  135. }
  136. func (m *QuotaFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  137. return xxx_messageInfo_QuotaFailure.Marshal(b, m, deterministic)
  138. }
  139. func (dst *QuotaFailure) XXX_Merge(src proto.Message) {
  140. xxx_messageInfo_QuotaFailure.Merge(dst, src)
  141. }
  142. func (m *QuotaFailure) XXX_Size() int {
  143. return xxx_messageInfo_QuotaFailure.Size(m)
  144. }
  145. func (m *QuotaFailure) XXX_DiscardUnknown() {
  146. xxx_messageInfo_QuotaFailure.DiscardUnknown(m)
  147. }
  148. var xxx_messageInfo_QuotaFailure proto.InternalMessageInfo
  149. func (m *QuotaFailure) GetViolations() []*QuotaFailure_Violation {
  150. if m != nil {
  151. return m.Violations
  152. }
  153. return nil
  154. }
  155. // A message type used to describe a single quota violation. For example, a
  156. // daily quota or a custom quota that was exceeded.
  157. type QuotaFailure_Violation struct {
  158. // The subject on which the quota check failed.
  159. // For example, "clientip:<ip address of client>" or "project:<Google
  160. // developer project id>".
  161. Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
  162. // A description of how the quota check failed. Clients can use this
  163. // description to find more about the quota configuration in the service's
  164. // public documentation, or find the relevant quota limit to adjust through
  165. // developer console.
  166. //
  167. // For example: "Service disabled" or "Daily Limit for read operations
  168. // exceeded".
  169. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  170. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  171. XXX_unrecognized []byte `json:"-"`
  172. XXX_sizecache int32 `json:"-"`
  173. }
  174. func (m *QuotaFailure_Violation) Reset() { *m = QuotaFailure_Violation{} }
  175. func (m *QuotaFailure_Violation) String() string { return proto.CompactTextString(m) }
  176. func (*QuotaFailure_Violation) ProtoMessage() {}
  177. func (*QuotaFailure_Violation) Descriptor() ([]byte, []int) {
  178. return fileDescriptor_error_details_0786ccff29c8b842, []int{2, 0}
  179. }
  180. func (m *QuotaFailure_Violation) XXX_Unmarshal(b []byte) error {
  181. return xxx_messageInfo_QuotaFailure_Violation.Unmarshal(m, b)
  182. }
  183. func (m *QuotaFailure_Violation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  184. return xxx_messageInfo_QuotaFailure_Violation.Marshal(b, m, deterministic)
  185. }
  186. func (dst *QuotaFailure_Violation) XXX_Merge(src proto.Message) {
  187. xxx_messageInfo_QuotaFailure_Violation.Merge(dst, src)
  188. }
  189. func (m *QuotaFailure_Violation) XXX_Size() int {
  190. return xxx_messageInfo_QuotaFailure_Violation.Size(m)
  191. }
  192. func (m *QuotaFailure_Violation) XXX_DiscardUnknown() {
  193. xxx_messageInfo_QuotaFailure_Violation.DiscardUnknown(m)
  194. }
  195. var xxx_messageInfo_QuotaFailure_Violation proto.InternalMessageInfo
  196. func (m *QuotaFailure_Violation) GetSubject() string {
  197. if m != nil {
  198. return m.Subject
  199. }
  200. return ""
  201. }
  202. func (m *QuotaFailure_Violation) GetDescription() string {
  203. if m != nil {
  204. return m.Description
  205. }
  206. return ""
  207. }
  208. // Describes what preconditions have failed.
  209. //
  210. // For example, if an RPC failed because it required the Terms of Service to be
  211. // acknowledged, it could list the terms of service violation in the
  212. // PreconditionFailure message.
  213. type PreconditionFailure struct {
  214. // Describes all precondition violations.
  215. Violations []*PreconditionFailure_Violation `protobuf:"bytes,1,rep,name=violations,proto3" json:"violations,omitempty"`
  216. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  217. XXX_unrecognized []byte `json:"-"`
  218. XXX_sizecache int32 `json:"-"`
  219. }
  220. func (m *PreconditionFailure) Reset() { *m = PreconditionFailure{} }
  221. func (m *PreconditionFailure) String() string { return proto.CompactTextString(m) }
  222. func (*PreconditionFailure) ProtoMessage() {}
  223. func (*PreconditionFailure) Descriptor() ([]byte, []int) {
  224. return fileDescriptor_error_details_0786ccff29c8b842, []int{3}
  225. }
  226. func (m *PreconditionFailure) XXX_Unmarshal(b []byte) error {
  227. return xxx_messageInfo_PreconditionFailure.Unmarshal(m, b)
  228. }
  229. func (m *PreconditionFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  230. return xxx_messageInfo_PreconditionFailure.Marshal(b, m, deterministic)
  231. }
  232. func (dst *PreconditionFailure) XXX_Merge(src proto.Message) {
  233. xxx_messageInfo_PreconditionFailure.Merge(dst, src)
  234. }
  235. func (m *PreconditionFailure) XXX_Size() int {
  236. return xxx_messageInfo_PreconditionFailure.Size(m)
  237. }
  238. func (m *PreconditionFailure) XXX_DiscardUnknown() {
  239. xxx_messageInfo_PreconditionFailure.DiscardUnknown(m)
  240. }
  241. var xxx_messageInfo_PreconditionFailure proto.InternalMessageInfo
  242. func (m *PreconditionFailure) GetViolations() []*PreconditionFailure_Violation {
  243. if m != nil {
  244. return m.Violations
  245. }
  246. return nil
  247. }
  248. // A message type used to describe a single precondition failure.
  249. type PreconditionFailure_Violation struct {
  250. // The type of PreconditionFailure. We recommend using a service-specific
  251. // enum type to define the supported precondition violation types. For
  252. // example, "TOS" for "Terms of Service violation".
  253. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  254. // The subject, relative to the type, that failed.
  255. // For example, "google.com/cloud" relative to the "TOS" type would
  256. // indicate which terms of service is being referenced.
  257. Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
  258. // A description of how the precondition failed. Developers can use this
  259. // description to understand how to fix the failure.
  260. //
  261. // For example: "Terms of service not accepted".
  262. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  263. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  264. XXX_unrecognized []byte `json:"-"`
  265. XXX_sizecache int32 `json:"-"`
  266. }
  267. func (m *PreconditionFailure_Violation) Reset() { *m = PreconditionFailure_Violation{} }
  268. func (m *PreconditionFailure_Violation) String() string { return proto.CompactTextString(m) }
  269. func (*PreconditionFailure_Violation) ProtoMessage() {}
  270. func (*PreconditionFailure_Violation) Descriptor() ([]byte, []int) {
  271. return fileDescriptor_error_details_0786ccff29c8b842, []int{3, 0}
  272. }
  273. func (m *PreconditionFailure_Violation) XXX_Unmarshal(b []byte) error {
  274. return xxx_messageInfo_PreconditionFailure_Violation.Unmarshal(m, b)
  275. }
  276. func (m *PreconditionFailure_Violation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  277. return xxx_messageInfo_PreconditionFailure_Violation.Marshal(b, m, deterministic)
  278. }
  279. func (dst *PreconditionFailure_Violation) XXX_Merge(src proto.Message) {
  280. xxx_messageInfo_PreconditionFailure_Violation.Merge(dst, src)
  281. }
  282. func (m *PreconditionFailure_Violation) XXX_Size() int {
  283. return xxx_messageInfo_PreconditionFailure_Violation.Size(m)
  284. }
  285. func (m *PreconditionFailure_Violation) XXX_DiscardUnknown() {
  286. xxx_messageInfo_PreconditionFailure_Violation.DiscardUnknown(m)
  287. }
  288. var xxx_messageInfo_PreconditionFailure_Violation proto.InternalMessageInfo
  289. func (m *PreconditionFailure_Violation) GetType() string {
  290. if m != nil {
  291. return m.Type
  292. }
  293. return ""
  294. }
  295. func (m *PreconditionFailure_Violation) GetSubject() string {
  296. if m != nil {
  297. return m.Subject
  298. }
  299. return ""
  300. }
  301. func (m *PreconditionFailure_Violation) GetDescription() string {
  302. if m != nil {
  303. return m.Description
  304. }
  305. return ""
  306. }
  307. // Describes violations in a client request. This error type focuses on the
  308. // syntactic aspects of the request.
  309. type BadRequest struct {
  310. // Describes all violations in a client request.
  311. FieldViolations []*BadRequest_FieldViolation `protobuf:"bytes,1,rep,name=field_violations,json=fieldViolations,proto3" json:"field_violations,omitempty"`
  312. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  313. XXX_unrecognized []byte `json:"-"`
  314. XXX_sizecache int32 `json:"-"`
  315. }
  316. func (m *BadRequest) Reset() { *m = BadRequest{} }
  317. func (m *BadRequest) String() string { return proto.CompactTextString(m) }
  318. func (*BadRequest) ProtoMessage() {}
  319. func (*BadRequest) Descriptor() ([]byte, []int) {
  320. return fileDescriptor_error_details_0786ccff29c8b842, []int{4}
  321. }
  322. func (m *BadRequest) XXX_Unmarshal(b []byte) error {
  323. return xxx_messageInfo_BadRequest.Unmarshal(m, b)
  324. }
  325. func (m *BadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  326. return xxx_messageInfo_BadRequest.Marshal(b, m, deterministic)
  327. }
  328. func (dst *BadRequest) XXX_Merge(src proto.Message) {
  329. xxx_messageInfo_BadRequest.Merge(dst, src)
  330. }
  331. func (m *BadRequest) XXX_Size() int {
  332. return xxx_messageInfo_BadRequest.Size(m)
  333. }
  334. func (m *BadRequest) XXX_DiscardUnknown() {
  335. xxx_messageInfo_BadRequest.DiscardUnknown(m)
  336. }
  337. var xxx_messageInfo_BadRequest proto.InternalMessageInfo
  338. func (m *BadRequest) GetFieldViolations() []*BadRequest_FieldViolation {
  339. if m != nil {
  340. return m.FieldViolations
  341. }
  342. return nil
  343. }
  344. // A message type used to describe a single bad request field.
  345. type BadRequest_FieldViolation struct {
  346. // A path leading to a field in the request body. The value will be a
  347. // sequence of dot-separated identifiers that identify a protocol buffer
  348. // field. E.g., "field_violations.field" would identify this field.
  349. Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
  350. // A description of why the request element is bad.
  351. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  352. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  353. XXX_unrecognized []byte `json:"-"`
  354. XXX_sizecache int32 `json:"-"`
  355. }
  356. func (m *BadRequest_FieldViolation) Reset() { *m = BadRequest_FieldViolation{} }
  357. func (m *BadRequest_FieldViolation) String() string { return proto.CompactTextString(m) }
  358. func (*BadRequest_FieldViolation) ProtoMessage() {}
  359. func (*BadRequest_FieldViolation) Descriptor() ([]byte, []int) {
  360. return fileDescriptor_error_details_0786ccff29c8b842, []int{4, 0}
  361. }
  362. func (m *BadRequest_FieldViolation) XXX_Unmarshal(b []byte) error {
  363. return xxx_messageInfo_BadRequest_FieldViolation.Unmarshal(m, b)
  364. }
  365. func (m *BadRequest_FieldViolation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  366. return xxx_messageInfo_BadRequest_FieldViolation.Marshal(b, m, deterministic)
  367. }
  368. func (dst *BadRequest_FieldViolation) XXX_Merge(src proto.Message) {
  369. xxx_messageInfo_BadRequest_FieldViolation.Merge(dst, src)
  370. }
  371. func (m *BadRequest_FieldViolation) XXX_Size() int {
  372. return xxx_messageInfo_BadRequest_FieldViolation.Size(m)
  373. }
  374. func (m *BadRequest_FieldViolation) XXX_DiscardUnknown() {
  375. xxx_messageInfo_BadRequest_FieldViolation.DiscardUnknown(m)
  376. }
  377. var xxx_messageInfo_BadRequest_FieldViolation proto.InternalMessageInfo
  378. func (m *BadRequest_FieldViolation) GetField() string {
  379. if m != nil {
  380. return m.Field
  381. }
  382. return ""
  383. }
  384. func (m *BadRequest_FieldViolation) GetDescription() string {
  385. if m != nil {
  386. return m.Description
  387. }
  388. return ""
  389. }
  390. // Contains metadata about the request that clients can attach when filing a bug
  391. // or providing other forms of feedback.
  392. type RequestInfo struct {
  393. // An opaque string that should only be interpreted by the service generating
  394. // it. For example, it can be used to identify requests in the service's logs.
  395. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
  396. // Any data that was used to serve this request. For example, an encrypted
  397. // stack trace that can be sent back to the service provider for debugging.
  398. ServingData string `protobuf:"bytes,2,opt,name=serving_data,json=servingData,proto3" json:"serving_data,omitempty"`
  399. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  400. XXX_unrecognized []byte `json:"-"`
  401. XXX_sizecache int32 `json:"-"`
  402. }
  403. func (m *RequestInfo) Reset() { *m = RequestInfo{} }
  404. func (m *RequestInfo) String() string { return proto.CompactTextString(m) }
  405. func (*RequestInfo) ProtoMessage() {}
  406. func (*RequestInfo) Descriptor() ([]byte, []int) {
  407. return fileDescriptor_error_details_0786ccff29c8b842, []int{5}
  408. }
  409. func (m *RequestInfo) XXX_Unmarshal(b []byte) error {
  410. return xxx_messageInfo_RequestInfo.Unmarshal(m, b)
  411. }
  412. func (m *RequestInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  413. return xxx_messageInfo_RequestInfo.Marshal(b, m, deterministic)
  414. }
  415. func (dst *RequestInfo) XXX_Merge(src proto.Message) {
  416. xxx_messageInfo_RequestInfo.Merge(dst, src)
  417. }
  418. func (m *RequestInfo) XXX_Size() int {
  419. return xxx_messageInfo_RequestInfo.Size(m)
  420. }
  421. func (m *RequestInfo) XXX_DiscardUnknown() {
  422. xxx_messageInfo_RequestInfo.DiscardUnknown(m)
  423. }
  424. var xxx_messageInfo_RequestInfo proto.InternalMessageInfo
  425. func (m *RequestInfo) GetRequestId() string {
  426. if m != nil {
  427. return m.RequestId
  428. }
  429. return ""
  430. }
  431. func (m *RequestInfo) GetServingData() string {
  432. if m != nil {
  433. return m.ServingData
  434. }
  435. return ""
  436. }
  437. // Describes the resource that is being accessed.
  438. type ResourceInfo struct {
  439. // A name for the type of resource being accessed, e.g. "sql table",
  440. // "cloud storage bucket", "file", "Google calendar"; or the type URL
  441. // of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
  442. ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
  443. // The name of the resource being accessed. For example, a shared calendar
  444. // name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
  445. // error is
  446. // [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
  447. ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  448. // The owner of the resource (optional).
  449. // For example, "user:<owner email>" or "project:<Google developer project
  450. // id>".
  451. Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
  452. // Describes what error is encountered when accessing this resource.
  453. // For example, updating a cloud project may require the `writer` permission
  454. // on the developer console project.
  455. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
  456. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  457. XXX_unrecognized []byte `json:"-"`
  458. XXX_sizecache int32 `json:"-"`
  459. }
  460. func (m *ResourceInfo) Reset() { *m = ResourceInfo{} }
  461. func (m *ResourceInfo) String() string { return proto.CompactTextString(m) }
  462. func (*ResourceInfo) ProtoMessage() {}
  463. func (*ResourceInfo) Descriptor() ([]byte, []int) {
  464. return fileDescriptor_error_details_0786ccff29c8b842, []int{6}
  465. }
  466. func (m *ResourceInfo) XXX_Unmarshal(b []byte) error {
  467. return xxx_messageInfo_ResourceInfo.Unmarshal(m, b)
  468. }
  469. func (m *ResourceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  470. return xxx_messageInfo_ResourceInfo.Marshal(b, m, deterministic)
  471. }
  472. func (dst *ResourceInfo) XXX_Merge(src proto.Message) {
  473. xxx_messageInfo_ResourceInfo.Merge(dst, src)
  474. }
  475. func (m *ResourceInfo) XXX_Size() int {
  476. return xxx_messageInfo_ResourceInfo.Size(m)
  477. }
  478. func (m *ResourceInfo) XXX_DiscardUnknown() {
  479. xxx_messageInfo_ResourceInfo.DiscardUnknown(m)
  480. }
  481. var xxx_messageInfo_ResourceInfo proto.InternalMessageInfo
  482. func (m *ResourceInfo) GetResourceType() string {
  483. if m != nil {
  484. return m.ResourceType
  485. }
  486. return ""
  487. }
  488. func (m *ResourceInfo) GetResourceName() string {
  489. if m != nil {
  490. return m.ResourceName
  491. }
  492. return ""
  493. }
  494. func (m *ResourceInfo) GetOwner() string {
  495. if m != nil {
  496. return m.Owner
  497. }
  498. return ""
  499. }
  500. func (m *ResourceInfo) GetDescription() string {
  501. if m != nil {
  502. return m.Description
  503. }
  504. return ""
  505. }
  506. // Provides links to documentation or for performing an out of band action.
  507. //
  508. // For example, if a quota check failed with an error indicating the calling
  509. // project hasn't enabled the accessed service, this can contain a URL pointing
  510. // directly to the right place in the developer console to flip the bit.
  511. type Help struct {
  512. // URL(s) pointing to additional information on handling the current error.
  513. Links []*Help_Link `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"`
  514. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  515. XXX_unrecognized []byte `json:"-"`
  516. XXX_sizecache int32 `json:"-"`
  517. }
  518. func (m *Help) Reset() { *m = Help{} }
  519. func (m *Help) String() string { return proto.CompactTextString(m) }
  520. func (*Help) ProtoMessage() {}
  521. func (*Help) Descriptor() ([]byte, []int) {
  522. return fileDescriptor_error_details_0786ccff29c8b842, []int{7}
  523. }
  524. func (m *Help) XXX_Unmarshal(b []byte) error {
  525. return xxx_messageInfo_Help.Unmarshal(m, b)
  526. }
  527. func (m *Help) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  528. return xxx_messageInfo_Help.Marshal(b, m, deterministic)
  529. }
  530. func (dst *Help) XXX_Merge(src proto.Message) {
  531. xxx_messageInfo_Help.Merge(dst, src)
  532. }
  533. func (m *Help) XXX_Size() int {
  534. return xxx_messageInfo_Help.Size(m)
  535. }
  536. func (m *Help) XXX_DiscardUnknown() {
  537. xxx_messageInfo_Help.DiscardUnknown(m)
  538. }
  539. var xxx_messageInfo_Help proto.InternalMessageInfo
  540. func (m *Help) GetLinks() []*Help_Link {
  541. if m != nil {
  542. return m.Links
  543. }
  544. return nil
  545. }
  546. // Describes a URL link.
  547. type Help_Link struct {
  548. // Describes what the link offers.
  549. Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
  550. // The URL of the link.
  551. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
  552. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  553. XXX_unrecognized []byte `json:"-"`
  554. XXX_sizecache int32 `json:"-"`
  555. }
  556. func (m *Help_Link) Reset() { *m = Help_Link{} }
  557. func (m *Help_Link) String() string { return proto.CompactTextString(m) }
  558. func (*Help_Link) ProtoMessage() {}
  559. func (*Help_Link) Descriptor() ([]byte, []int) {
  560. return fileDescriptor_error_details_0786ccff29c8b842, []int{7, 0}
  561. }
  562. func (m *Help_Link) XXX_Unmarshal(b []byte) error {
  563. return xxx_messageInfo_Help_Link.Unmarshal(m, b)
  564. }
  565. func (m *Help_Link) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  566. return xxx_messageInfo_Help_Link.Marshal(b, m, deterministic)
  567. }
  568. func (dst *Help_Link) XXX_Merge(src proto.Message) {
  569. xxx_messageInfo_Help_Link.Merge(dst, src)
  570. }
  571. func (m *Help_Link) XXX_Size() int {
  572. return xxx_messageInfo_Help_Link.Size(m)
  573. }
  574. func (m *Help_Link) XXX_DiscardUnknown() {
  575. xxx_messageInfo_Help_Link.DiscardUnknown(m)
  576. }
  577. var xxx_messageInfo_Help_Link proto.InternalMessageInfo
  578. func (m *Help_Link) GetDescription() string {
  579. if m != nil {
  580. return m.Description
  581. }
  582. return ""
  583. }
  584. func (m *Help_Link) GetUrl() string {
  585. if m != nil {
  586. return m.Url
  587. }
  588. return ""
  589. }
  590. // Provides a localized error message that is safe to return to the user
  591. // which can be attached to an RPC error.
  592. type LocalizedMessage struct {
  593. // The locale used following the specification defined at
  594. // http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
  595. // Examples are: "en-US", "fr-CH", "es-MX"
  596. Locale string `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"`
  597. // The localized error message in the above locale.
  598. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  599. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  600. XXX_unrecognized []byte `json:"-"`
  601. XXX_sizecache int32 `json:"-"`
  602. }
  603. func (m *LocalizedMessage) Reset() { *m = LocalizedMessage{} }
  604. func (m *LocalizedMessage) String() string { return proto.CompactTextString(m) }
  605. func (*LocalizedMessage) ProtoMessage() {}
  606. func (*LocalizedMessage) Descriptor() ([]byte, []int) {
  607. return fileDescriptor_error_details_0786ccff29c8b842, []int{8}
  608. }
  609. func (m *LocalizedMessage) XXX_Unmarshal(b []byte) error {
  610. return xxx_messageInfo_LocalizedMessage.Unmarshal(m, b)
  611. }
  612. func (m *LocalizedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  613. return xxx_messageInfo_LocalizedMessage.Marshal(b, m, deterministic)
  614. }
  615. func (dst *LocalizedMessage) XXX_Merge(src proto.Message) {
  616. xxx_messageInfo_LocalizedMessage.Merge(dst, src)
  617. }
  618. func (m *LocalizedMessage) XXX_Size() int {
  619. return xxx_messageInfo_LocalizedMessage.Size(m)
  620. }
  621. func (m *LocalizedMessage) XXX_DiscardUnknown() {
  622. xxx_messageInfo_LocalizedMessage.DiscardUnknown(m)
  623. }
  624. var xxx_messageInfo_LocalizedMessage proto.InternalMessageInfo
  625. func (m *LocalizedMessage) GetLocale() string {
  626. if m != nil {
  627. return m.Locale
  628. }
  629. return ""
  630. }
  631. func (m *LocalizedMessage) GetMessage() string {
  632. if m != nil {
  633. return m.Message
  634. }
  635. return ""
  636. }
  637. func init() {
  638. proto.RegisterType((*RetryInfo)(nil), "google.rpc.RetryInfo")
  639. proto.RegisterType((*DebugInfo)(nil), "google.rpc.DebugInfo")
  640. proto.RegisterType((*QuotaFailure)(nil), "google.rpc.QuotaFailure")
  641. proto.RegisterType((*QuotaFailure_Violation)(nil), "google.rpc.QuotaFailure.Violation")
  642. proto.RegisterType((*PreconditionFailure)(nil), "google.rpc.PreconditionFailure")
  643. proto.RegisterType((*PreconditionFailure_Violation)(nil), "google.rpc.PreconditionFailure.Violation")
  644. proto.RegisterType((*BadRequest)(nil), "google.rpc.BadRequest")
  645. proto.RegisterType((*BadRequest_FieldViolation)(nil), "google.rpc.BadRequest.FieldViolation")
  646. proto.RegisterType((*RequestInfo)(nil), "google.rpc.RequestInfo")
  647. proto.RegisterType((*ResourceInfo)(nil), "google.rpc.ResourceInfo")
  648. proto.RegisterType((*Help)(nil), "google.rpc.Help")
  649. proto.RegisterType((*Help_Link)(nil), "google.rpc.Help.Link")
  650. proto.RegisterType((*LocalizedMessage)(nil), "google.rpc.LocalizedMessage")
  651. }
  652. func init() {
  653. proto.RegisterFile("google/rpc/error_details.proto", fileDescriptor_error_details_0786ccff29c8b842)
  654. }
  655. var fileDescriptor_error_details_0786ccff29c8b842 = []byte{
  656. // 595 bytes of a gzipped FileDescriptorProto
  657. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0xd3, 0x4c,
  658. 0x14, 0x95, 0x9b, 0xb4, 0x9f, 0x7c, 0x93, 0xaf, 0x14, 0xf3, 0xa3, 0x10, 0x09, 0x14, 0x8c, 0x90,
  659. 0x8a, 0x90, 0x1c, 0xa9, 0xec, 0xca, 0x02, 0x29, 0xb8, 0x7f, 0x52, 0x81, 0x60, 0x21, 0x16, 0xb0,
  660. 0xb0, 0x26, 0xf6, 0x8d, 0x35, 0x74, 0xe2, 0x31, 0x33, 0xe3, 0xa2, 0xf0, 0x14, 0xec, 0xd9, 0xb1,
  661. 0xe2, 0x25, 0x78, 0x37, 0x34, 0x9e, 0x99, 0xc6, 0x6d, 0x0a, 0x62, 0x37, 0xe7, 0xcc, 0x99, 0xe3,
  662. 0x73, 0xaf, 0xae, 0x2f, 0x3c, 0x28, 0x38, 0x2f, 0x18, 0x8e, 0x45, 0x95, 0x8d, 0x51, 0x08, 0x2e,
  663. 0xd2, 0x1c, 0x15, 0xa1, 0x4c, 0x46, 0x95, 0xe0, 0x8a, 0x07, 0x60, 0xee, 0x23, 0x51, 0x65, 0x43,
  664. 0xa7, 0x6d, 0x6e, 0x66, 0xf5, 0x7c, 0x9c, 0xd7, 0x82, 0x28, 0xca, 0x4b, 0xa3, 0x0d, 0x8f, 0xc0,
  665. 0x4f, 0x50, 0x89, 0xe5, 0x49, 0x39, 0xe7, 0xc1, 0x3e, 0xf4, 0x84, 0x06, 0x69, 0x8e, 0x8c, 0x2c,
  666. 0x07, 0xde, 0xc8, 0xdb, 0xed, 0xed, 0xdd, 0x8b, 0xac, 0x9d, 0xb3, 0x88, 0x62, 0x6b, 0x91, 0x40,
  667. 0xa3, 0x8e, 0xb5, 0x38, 0x3c, 0x06, 0x3f, 0xc6, 0x59, 0x5d, 0x34, 0x46, 0x8f, 0xe0, 0x7f, 0xa9,
  668. 0x48, 0x76, 0x96, 0x62, 0xa9, 0x04, 0x45, 0x39, 0xf0, 0x46, 0x9d, 0x5d, 0x3f, 0xe9, 0x37, 0xe4,
  669. 0x81, 0xe1, 0x82, 0xbb, 0xb0, 0x65, 0x72, 0x0f, 0x36, 0x46, 0xde, 0xae, 0x9f, 0x58, 0x14, 0x7e,
  670. 0xf7, 0xa0, 0xff, 0xb6, 0xe6, 0x8a, 0x1c, 0x12, 0xca, 0x6a, 0x81, 0xc1, 0x04, 0xe0, 0x9c, 0x72,
  671. 0xd6, 0x7c, 0xd3, 0x58, 0xf5, 0xf6, 0xc2, 0x68, 0x55, 0x64, 0xd4, 0x56, 0x47, 0xef, 0x9d, 0x34,
  672. 0x69, 0xbd, 0x1a, 0x1e, 0x81, 0x7f, 0x71, 0x11, 0x0c, 0xe0, 0x3f, 0x59, 0xcf, 0x3e, 0x61, 0xa6,
  673. 0x9a, 0x1a, 0xfd, 0xc4, 0xc1, 0x60, 0x04, 0xbd, 0x1c, 0x65, 0x26, 0x68, 0xa5, 0x85, 0x36, 0x58,
  674. 0x9b, 0x0a, 0x7f, 0x79, 0x70, 0x6b, 0x2a, 0x30, 0xe3, 0x65, 0x4e, 0x35, 0xe1, 0x42, 0x9e, 0x5c,
  675. 0x13, 0xf2, 0x49, 0x3b, 0xe4, 0x35, 0x8f, 0xfe, 0x90, 0xf5, 0x63, 0x3b, 0x6b, 0x00, 0x5d, 0xb5,
  676. 0xac, 0xd0, 0x06, 0x6d, 0xce, 0xed, 0xfc, 0x1b, 0x7f, 0xcd, 0xdf, 0x59, 0xcf, 0xff, 0xd3, 0x03,
  677. 0x98, 0x90, 0x3c, 0xc1, 0xcf, 0x35, 0x4a, 0x15, 0x4c, 0x61, 0x67, 0x4e, 0x91, 0xe5, 0xe9, 0x5a,
  678. 0xf8, 0xc7, 0xed, 0xf0, 0xab, 0x17, 0xd1, 0xa1, 0x96, 0xaf, 0x82, 0xdf, 0x98, 0x5f, 0xc2, 0x72,
  679. 0x78, 0x0c, 0xdb, 0x97, 0x25, 0xc1, 0x6d, 0xd8, 0x6c, 0x44, 0xb6, 0x06, 0x03, 0xfe, 0xa1, 0xd5,
  680. 0x6f, 0xa0, 0x67, 0x3f, 0xda, 0x0c, 0xd5, 0x7d, 0x00, 0x61, 0x60, 0x4a, 0x9d, 0x97, 0x6f, 0x99,
  681. 0x93, 0x3c, 0x78, 0x08, 0x7d, 0x89, 0xe2, 0x9c, 0x96, 0x45, 0x9a, 0x13, 0x45, 0x9c, 0xa1, 0xe5,
  682. 0x62, 0xa2, 0x48, 0xf8, 0xcd, 0x83, 0x7e, 0x82, 0x92, 0xd7, 0x22, 0x43, 0x37, 0xa7, 0xc2, 0xe2,
  683. 0xb4, 0xd5, 0xe5, 0xbe, 0x23, 0xdf, 0xe9, 0x6e, 0xb7, 0x45, 0x25, 0x59, 0xa0, 0x75, 0xbe, 0x10,
  684. 0xbd, 0x26, 0x0b, 0xd4, 0x35, 0xf2, 0x2f, 0x25, 0x0a, 0xdb, 0x72, 0x03, 0xae, 0xd6, 0xd8, 0x5d,
  685. 0xaf, 0x91, 0x43, 0xf7, 0x18, 0x59, 0x15, 0x3c, 0x85, 0x4d, 0x46, 0xcb, 0x33, 0xd7, 0xfc, 0x3b,
  686. 0xed, 0xe6, 0x6b, 0x41, 0x74, 0x4a, 0xcb, 0xb3, 0xc4, 0x68, 0x86, 0xfb, 0xd0, 0xd5, 0xf0, 0xaa,
  687. 0xbd, 0xb7, 0x66, 0x1f, 0xec, 0x40, 0xa7, 0x16, 0xee, 0x07, 0xd3, 0xc7, 0x30, 0x86, 0x9d, 0x53,
  688. 0x9e, 0x11, 0x46, 0xbf, 0x62, 0xfe, 0x0a, 0xa5, 0x24, 0x05, 0xea, 0x3f, 0x91, 0x69, 0xce, 0xd5,
  689. 0x6f, 0x91, 0x9e, 0xb3, 0x85, 0x91, 0xb8, 0x39, 0xb3, 0x70, 0xc2, 0x60, 0x3b, 0xe3, 0x8b, 0x56,
  690. 0xc8, 0xc9, 0xcd, 0x03, 0xbd, 0x89, 0x62, 0xb3, 0x88, 0xa6, 0x7a, 0x55, 0x4c, 0xbd, 0x0f, 0x2f,
  691. 0xac, 0xa0, 0xe0, 0x8c, 0x94, 0x45, 0xc4, 0x45, 0x31, 0x2e, 0xb0, 0x6c, 0x16, 0xc9, 0xd8, 0x5c,
  692. 0x91, 0x8a, 0x4a, 0xb7, 0xc8, 0xec, 0x16, 0x7b, 0xbe, 0x3a, 0xfe, 0xd8, 0xe8, 0x24, 0xd3, 0x97,
  693. 0xb3, 0xad, 0xe6, 0xc5, 0xb3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x90, 0x15, 0x46, 0x2d, 0xf9,
  694. 0x04, 0x00, 0x00,
  695. }