github.com/resonatecoop/user-api@v1.0.0-13.0.20220915120639-05dc9c04014a/proto/google/rpc/errdetails/error_details.pb.go (about) 1 // Copyright 2020 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.25.0-devel 18 // protoc v3.13.0 19 // source: google/rpc/error_details.proto 20 21 package errdetails 22 23 import ( 24 duration "github.com/golang/protobuf/ptypes/duration" 25 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 26 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 27 reflect "reflect" 28 sync "sync" 29 ) 30 31 const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36 ) 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 retries have been reached or a maximum retry delay cap has been 50 // reached. 51 type RetryInfo struct { 52 state protoimpl.MessageState 53 sizeCache protoimpl.SizeCache 54 unknownFields protoimpl.UnknownFields 55 56 // Clients should wait at least this long between retrying the same request. 57 RetryDelay *duration.Duration `protobuf:"bytes,1,opt,name=retry_delay,json=retryDelay,proto3" json:"retry_delay,omitempty"` 58 } 59 60 func (x *RetryInfo) Reset() { 61 *x = RetryInfo{} 62 if protoimpl.UnsafeEnabled { 63 mi := &file_google_rpc_error_details_proto_msgTypes[0] 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 ms.StoreMessageInfo(mi) 66 } 67 } 68 69 func (x *RetryInfo) String() string { 70 return protoimpl.X.MessageStringOf(x) 71 } 72 73 func (*RetryInfo) ProtoMessage() {} 74 75 func (x *RetryInfo) ProtoReflect() protoreflect.Message { 76 mi := &file_google_rpc_error_details_proto_msgTypes[0] 77 if protoimpl.UnsafeEnabled && x != nil { 78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 79 if ms.LoadMessageInfo() == nil { 80 ms.StoreMessageInfo(mi) 81 } 82 return ms 83 } 84 return mi.MessageOf(x) 85 } 86 87 // Deprecated: Use RetryInfo.ProtoReflect.Descriptor instead. 88 func (*RetryInfo) Descriptor() ([]byte, []int) { 89 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{0} 90 } 91 92 func (x *RetryInfo) GetRetryDelay() *duration.Duration { 93 if x != nil { 94 return x.RetryDelay 95 } 96 return nil 97 } 98 99 // Describes additional debugging info. 100 type DebugInfo struct { 101 state protoimpl.MessageState 102 sizeCache protoimpl.SizeCache 103 unknownFields protoimpl.UnknownFields 104 105 // The stack trace entries indicating where the error occurred. 106 StackEntries []string `protobuf:"bytes,1,rep,name=stack_entries,json=stackEntries,proto3" json:"stack_entries,omitempty"` 107 // Additional debugging information provided by the server. 108 Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` 109 } 110 111 func (x *DebugInfo) Reset() { 112 *x = DebugInfo{} 113 if protoimpl.UnsafeEnabled { 114 mi := &file_google_rpc_error_details_proto_msgTypes[1] 115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 116 ms.StoreMessageInfo(mi) 117 } 118 } 119 120 func (x *DebugInfo) String() string { 121 return protoimpl.X.MessageStringOf(x) 122 } 123 124 func (*DebugInfo) ProtoMessage() {} 125 126 func (x *DebugInfo) ProtoReflect() protoreflect.Message { 127 mi := &file_google_rpc_error_details_proto_msgTypes[1] 128 if protoimpl.UnsafeEnabled && x != nil { 129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 130 if ms.LoadMessageInfo() == nil { 131 ms.StoreMessageInfo(mi) 132 } 133 return ms 134 } 135 return mi.MessageOf(x) 136 } 137 138 // Deprecated: Use DebugInfo.ProtoReflect.Descriptor instead. 139 func (*DebugInfo) Descriptor() ([]byte, []int) { 140 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{1} 141 } 142 143 func (x *DebugInfo) GetStackEntries() []string { 144 if x != nil { 145 return x.StackEntries 146 } 147 return nil 148 } 149 150 func (x *DebugInfo) GetDetail() string { 151 if x != nil { 152 return x.Detail 153 } 154 return "" 155 } 156 157 // Describes how a quota check failed. 158 // 159 // For example if a daily limit was exceeded for the calling project, 160 // a service could respond with a QuotaFailure detail containing the project 161 // id and the description of the quota limit that was exceeded. If the 162 // calling project hasn't enabled the service in the developer console, then 163 // a service could respond with the project id and set `service_disabled` 164 // to true. 165 // 166 // Also see RetryInfo and Help types for other details about handling a 167 // quota failure. 168 type QuotaFailure struct { 169 state protoimpl.MessageState 170 sizeCache protoimpl.SizeCache 171 unknownFields protoimpl.UnknownFields 172 173 // Describes all quota violations. 174 Violations []*QuotaFailure_Violation `protobuf:"bytes,1,rep,name=violations,proto3" json:"violations,omitempty"` 175 } 176 177 func (x *QuotaFailure) Reset() { 178 *x = QuotaFailure{} 179 if protoimpl.UnsafeEnabled { 180 mi := &file_google_rpc_error_details_proto_msgTypes[2] 181 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 182 ms.StoreMessageInfo(mi) 183 } 184 } 185 186 func (x *QuotaFailure) String() string { 187 return protoimpl.X.MessageStringOf(x) 188 } 189 190 func (*QuotaFailure) ProtoMessage() {} 191 192 func (x *QuotaFailure) ProtoReflect() protoreflect.Message { 193 mi := &file_google_rpc_error_details_proto_msgTypes[2] 194 if protoimpl.UnsafeEnabled && x != nil { 195 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 196 if ms.LoadMessageInfo() == nil { 197 ms.StoreMessageInfo(mi) 198 } 199 return ms 200 } 201 return mi.MessageOf(x) 202 } 203 204 // Deprecated: Use QuotaFailure.ProtoReflect.Descriptor instead. 205 func (*QuotaFailure) Descriptor() ([]byte, []int) { 206 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{2} 207 } 208 209 func (x *QuotaFailure) GetViolations() []*QuotaFailure_Violation { 210 if x != nil { 211 return x.Violations 212 } 213 return nil 214 } 215 216 // Describes the cause of the error with structured details. 217 // 218 // Example of an error when contacting the "pubsub.googleapis.com" API when it 219 // is not enabled: 220 // 221 // { "reason": "API_DISABLED" 222 // "domain": "googleapis.com" 223 // "metadata": { 224 // "resource": "projects/123", 225 // "service": "pubsub.googleapis.com" 226 // } 227 // } 228 // 229 // This response indicates that the pubsub.googleapis.com API is not enabled. 230 // 231 // Example of an error that is returned when attempting to create a Spanner 232 // instance in a region that is out of stock: 233 // 234 // { "reason": "STOCKOUT" 235 // "domain": "spanner.googleapis.com", 236 // "metadata": { 237 // "availableRegions": "us-central1,us-east2" 238 // } 239 // } 240 type ErrorInfo struct { 241 state protoimpl.MessageState 242 sizeCache protoimpl.SizeCache 243 unknownFields protoimpl.UnknownFields 244 245 // The reason of the error. This is a constant value that identifies the 246 // proximate cause of the error. Error reasons are unique within a particular 247 // domain of errors. This should be at most 63 characters and match 248 // /[A-Z0-9_]+/. 249 Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` 250 // The logical grouping to which the "reason" belongs. The error domain 251 // is typically the registered service name of the tool or product that 252 // generates the error. Example: "pubsub.googleapis.com". If the error is 253 // generated by some common infrastructure, the error domain must be a 254 // globally unique value that identifies the infrastructure. For Google API 255 // infrastructure, the error domain is "googleapis.com". 256 Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` 257 // Additional structured details about this error. 258 // 259 // Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in 260 // length. When identifying the current value of an exceeded limit, the units 261 // should be contained in the key, not the value. For example, rather than 262 // {"instanceLimit": "100/request"}, should be returned as, 263 // {"instanceLimitPerRequest": "100"}, if the client exceeds the number of 264 // instances that can be created in a single (batch) request. 265 Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 266 } 267 268 func (x *ErrorInfo) Reset() { 269 *x = ErrorInfo{} 270 if protoimpl.UnsafeEnabled { 271 mi := &file_google_rpc_error_details_proto_msgTypes[3] 272 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 273 ms.StoreMessageInfo(mi) 274 } 275 } 276 277 func (x *ErrorInfo) String() string { 278 return protoimpl.X.MessageStringOf(x) 279 } 280 281 func (*ErrorInfo) ProtoMessage() {} 282 283 func (x *ErrorInfo) ProtoReflect() protoreflect.Message { 284 mi := &file_google_rpc_error_details_proto_msgTypes[3] 285 if protoimpl.UnsafeEnabled && x != nil { 286 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 287 if ms.LoadMessageInfo() == nil { 288 ms.StoreMessageInfo(mi) 289 } 290 return ms 291 } 292 return mi.MessageOf(x) 293 } 294 295 // Deprecated: Use ErrorInfo.ProtoReflect.Descriptor instead. 296 func (*ErrorInfo) Descriptor() ([]byte, []int) { 297 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{3} 298 } 299 300 func (x *ErrorInfo) GetReason() string { 301 if x != nil { 302 return x.Reason 303 } 304 return "" 305 } 306 307 func (x *ErrorInfo) GetDomain() string { 308 if x != nil { 309 return x.Domain 310 } 311 return "" 312 } 313 314 func (x *ErrorInfo) GetMetadata() map[string]string { 315 if x != nil { 316 return x.Metadata 317 } 318 return nil 319 } 320 321 // Describes what preconditions have failed. 322 // 323 // For example, if an RPC failed because it required the Terms of Service to be 324 // acknowledged, it could list the terms of service violation in the 325 // PreconditionFailure message. 326 type PreconditionFailure struct { 327 state protoimpl.MessageState 328 sizeCache protoimpl.SizeCache 329 unknownFields protoimpl.UnknownFields 330 331 // Describes all precondition violations. 332 Violations []*PreconditionFailure_Violation `protobuf:"bytes,1,rep,name=violations,proto3" json:"violations,omitempty"` 333 } 334 335 func (x *PreconditionFailure) Reset() { 336 *x = PreconditionFailure{} 337 if protoimpl.UnsafeEnabled { 338 mi := &file_google_rpc_error_details_proto_msgTypes[4] 339 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 340 ms.StoreMessageInfo(mi) 341 } 342 } 343 344 func (x *PreconditionFailure) String() string { 345 return protoimpl.X.MessageStringOf(x) 346 } 347 348 func (*PreconditionFailure) ProtoMessage() {} 349 350 func (x *PreconditionFailure) ProtoReflect() protoreflect.Message { 351 mi := &file_google_rpc_error_details_proto_msgTypes[4] 352 if protoimpl.UnsafeEnabled && x != nil { 353 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 354 if ms.LoadMessageInfo() == nil { 355 ms.StoreMessageInfo(mi) 356 } 357 return ms 358 } 359 return mi.MessageOf(x) 360 } 361 362 // Deprecated: Use PreconditionFailure.ProtoReflect.Descriptor instead. 363 func (*PreconditionFailure) Descriptor() ([]byte, []int) { 364 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{4} 365 } 366 367 func (x *PreconditionFailure) GetViolations() []*PreconditionFailure_Violation { 368 if x != nil { 369 return x.Violations 370 } 371 return nil 372 } 373 374 // Describes violations in a client request. This error type focuses on the 375 // syntactic aspects of the request. 376 type BadRequest struct { 377 state protoimpl.MessageState 378 sizeCache protoimpl.SizeCache 379 unknownFields protoimpl.UnknownFields 380 381 // Describes all violations in a client request. 382 FieldViolations []*BadRequest_FieldViolation `protobuf:"bytes,1,rep,name=field_violations,json=fieldViolations,proto3" json:"field_violations,omitempty"` 383 } 384 385 func (x *BadRequest) Reset() { 386 *x = BadRequest{} 387 if protoimpl.UnsafeEnabled { 388 mi := &file_google_rpc_error_details_proto_msgTypes[5] 389 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 390 ms.StoreMessageInfo(mi) 391 } 392 } 393 394 func (x *BadRequest) String() string { 395 return protoimpl.X.MessageStringOf(x) 396 } 397 398 func (*BadRequest) ProtoMessage() {} 399 400 func (x *BadRequest) ProtoReflect() protoreflect.Message { 401 mi := &file_google_rpc_error_details_proto_msgTypes[5] 402 if protoimpl.UnsafeEnabled && x != nil { 403 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 404 if ms.LoadMessageInfo() == nil { 405 ms.StoreMessageInfo(mi) 406 } 407 return ms 408 } 409 return mi.MessageOf(x) 410 } 411 412 // Deprecated: Use BadRequest.ProtoReflect.Descriptor instead. 413 func (*BadRequest) Descriptor() ([]byte, []int) { 414 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{5} 415 } 416 417 func (x *BadRequest) GetFieldViolations() []*BadRequest_FieldViolation { 418 if x != nil { 419 return x.FieldViolations 420 } 421 return nil 422 } 423 424 // Contains metadata about the request that clients can attach when filing a bug 425 // or providing other forms of feedback. 426 type RequestInfo struct { 427 state protoimpl.MessageState 428 sizeCache protoimpl.SizeCache 429 unknownFields protoimpl.UnknownFields 430 431 // An opaque string that should only be interpreted by the service generating 432 // it. For example, it can be used to identify requests in the service's logs. 433 RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` 434 // Any data that was used to serve this request. For example, an encrypted 435 // stack trace that can be sent back to the service provider for debugging. 436 ServingData string `protobuf:"bytes,2,opt,name=serving_data,json=servingData,proto3" json:"serving_data,omitempty"` 437 } 438 439 func (x *RequestInfo) Reset() { 440 *x = RequestInfo{} 441 if protoimpl.UnsafeEnabled { 442 mi := &file_google_rpc_error_details_proto_msgTypes[6] 443 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 444 ms.StoreMessageInfo(mi) 445 } 446 } 447 448 func (x *RequestInfo) String() string { 449 return protoimpl.X.MessageStringOf(x) 450 } 451 452 func (*RequestInfo) ProtoMessage() {} 453 454 func (x *RequestInfo) ProtoReflect() protoreflect.Message { 455 mi := &file_google_rpc_error_details_proto_msgTypes[6] 456 if protoimpl.UnsafeEnabled && x != nil { 457 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 458 if ms.LoadMessageInfo() == nil { 459 ms.StoreMessageInfo(mi) 460 } 461 return ms 462 } 463 return mi.MessageOf(x) 464 } 465 466 // Deprecated: Use RequestInfo.ProtoReflect.Descriptor instead. 467 func (*RequestInfo) Descriptor() ([]byte, []int) { 468 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{6} 469 } 470 471 func (x *RequestInfo) GetRequestId() string { 472 if x != nil { 473 return x.RequestId 474 } 475 return "" 476 } 477 478 func (x *RequestInfo) GetServingData() string { 479 if x != nil { 480 return x.ServingData 481 } 482 return "" 483 } 484 485 // Describes the resource that is being accessed. 486 type ResourceInfo struct { 487 state protoimpl.MessageState 488 sizeCache protoimpl.SizeCache 489 unknownFields protoimpl.UnknownFields 490 491 // A name for the type of resource being accessed, e.g. "sql table", 492 // "cloud storage bucket", "file", "Google calendar"; or the type URL 493 // of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". 494 ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` 495 // The name of the resource being accessed. For example, a shared calendar 496 // name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current 497 // error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. 498 ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 499 // The owner of the resource (optional). 500 // For example, "user:<owner email>" or "project:<Google developer project 501 // id>". 502 Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` 503 // Describes what error is encountered when accessing this resource. 504 // For example, updating a cloud project may require the `writer` permission 505 // on the developer console project. 506 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` 507 } 508 509 func (x *ResourceInfo) Reset() { 510 *x = ResourceInfo{} 511 if protoimpl.UnsafeEnabled { 512 mi := &file_google_rpc_error_details_proto_msgTypes[7] 513 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 514 ms.StoreMessageInfo(mi) 515 } 516 } 517 518 func (x *ResourceInfo) String() string { 519 return protoimpl.X.MessageStringOf(x) 520 } 521 522 func (*ResourceInfo) ProtoMessage() {} 523 524 func (x *ResourceInfo) ProtoReflect() protoreflect.Message { 525 mi := &file_google_rpc_error_details_proto_msgTypes[7] 526 if protoimpl.UnsafeEnabled && x != nil { 527 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 528 if ms.LoadMessageInfo() == nil { 529 ms.StoreMessageInfo(mi) 530 } 531 return ms 532 } 533 return mi.MessageOf(x) 534 } 535 536 // Deprecated: Use ResourceInfo.ProtoReflect.Descriptor instead. 537 func (*ResourceInfo) Descriptor() ([]byte, []int) { 538 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{7} 539 } 540 541 func (x *ResourceInfo) GetResourceType() string { 542 if x != nil { 543 return x.ResourceType 544 } 545 return "" 546 } 547 548 func (x *ResourceInfo) GetResourceName() string { 549 if x != nil { 550 return x.ResourceName 551 } 552 return "" 553 } 554 555 func (x *ResourceInfo) GetOwner() string { 556 if x != nil { 557 return x.Owner 558 } 559 return "" 560 } 561 562 func (x *ResourceInfo) GetDescription() string { 563 if x != nil { 564 return x.Description 565 } 566 return "" 567 } 568 569 // Provides links to documentation or for performing an out of band action. 570 // 571 // For example, if a quota check failed with an error indicating the calling 572 // project hasn't enabled the accessed service, this can contain a URL pointing 573 // directly to the right place in the developer console to flip the bit. 574 type Help struct { 575 state protoimpl.MessageState 576 sizeCache protoimpl.SizeCache 577 unknownFields protoimpl.UnknownFields 578 579 // URL(s) pointing to additional information on handling the current error. 580 Links []*Help_Link `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"` 581 } 582 583 func (x *Help) Reset() { 584 *x = Help{} 585 if protoimpl.UnsafeEnabled { 586 mi := &file_google_rpc_error_details_proto_msgTypes[8] 587 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 588 ms.StoreMessageInfo(mi) 589 } 590 } 591 592 func (x *Help) String() string { 593 return protoimpl.X.MessageStringOf(x) 594 } 595 596 func (*Help) ProtoMessage() {} 597 598 func (x *Help) ProtoReflect() protoreflect.Message { 599 mi := &file_google_rpc_error_details_proto_msgTypes[8] 600 if protoimpl.UnsafeEnabled && x != nil { 601 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 602 if ms.LoadMessageInfo() == nil { 603 ms.StoreMessageInfo(mi) 604 } 605 return ms 606 } 607 return mi.MessageOf(x) 608 } 609 610 // Deprecated: Use Help.ProtoReflect.Descriptor instead. 611 func (*Help) Descriptor() ([]byte, []int) { 612 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{8} 613 } 614 615 func (x *Help) GetLinks() []*Help_Link { 616 if x != nil { 617 return x.Links 618 } 619 return nil 620 } 621 622 // Provides a localized error message that is safe to return to the user 623 // which can be attached to an RPC error. 624 type LocalizedMessage struct { 625 state protoimpl.MessageState 626 sizeCache protoimpl.SizeCache 627 unknownFields protoimpl.UnknownFields 628 629 // The locale used following the specification defined at 630 // http://www.rfc-editor.org/rfc/bcp/bcp47.txt. 631 // Examples are: "en-US", "fr-CH", "es-MX" 632 Locale string `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"` 633 // The localized error message in the above locale. 634 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 635 } 636 637 func (x *LocalizedMessage) Reset() { 638 *x = LocalizedMessage{} 639 if protoimpl.UnsafeEnabled { 640 mi := &file_google_rpc_error_details_proto_msgTypes[9] 641 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 642 ms.StoreMessageInfo(mi) 643 } 644 } 645 646 func (x *LocalizedMessage) String() string { 647 return protoimpl.X.MessageStringOf(x) 648 } 649 650 func (*LocalizedMessage) ProtoMessage() {} 651 652 func (x *LocalizedMessage) ProtoReflect() protoreflect.Message { 653 mi := &file_google_rpc_error_details_proto_msgTypes[9] 654 if protoimpl.UnsafeEnabled && x != nil { 655 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 656 if ms.LoadMessageInfo() == nil { 657 ms.StoreMessageInfo(mi) 658 } 659 return ms 660 } 661 return mi.MessageOf(x) 662 } 663 664 // Deprecated: Use LocalizedMessage.ProtoReflect.Descriptor instead. 665 func (*LocalizedMessage) Descriptor() ([]byte, []int) { 666 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{9} 667 } 668 669 func (x *LocalizedMessage) GetLocale() string { 670 if x != nil { 671 return x.Locale 672 } 673 return "" 674 } 675 676 func (x *LocalizedMessage) GetMessage() string { 677 if x != nil { 678 return x.Message 679 } 680 return "" 681 } 682 683 // A message type used to describe a single quota violation. For example, a 684 // daily quota or a custom quota that was exceeded. 685 type QuotaFailure_Violation struct { 686 state protoimpl.MessageState 687 sizeCache protoimpl.SizeCache 688 unknownFields protoimpl.UnknownFields 689 690 // The subject on which the quota check failed. 691 // For example, "clientip:<ip address of client>" or "project:<Google 692 // developer project id>". 693 Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 694 // A description of how the quota check failed. Clients can use this 695 // description to find more about the quota configuration in the service's 696 // public documentation, or find the relevant quota limit to adjust through 697 // developer console. 698 // 699 // For example: "Service disabled" or "Daily Limit for read operations 700 // exceeded". 701 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 702 } 703 704 func (x *QuotaFailure_Violation) Reset() { 705 *x = QuotaFailure_Violation{} 706 if protoimpl.UnsafeEnabled { 707 mi := &file_google_rpc_error_details_proto_msgTypes[10] 708 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 709 ms.StoreMessageInfo(mi) 710 } 711 } 712 713 func (x *QuotaFailure_Violation) String() string { 714 return protoimpl.X.MessageStringOf(x) 715 } 716 717 func (*QuotaFailure_Violation) ProtoMessage() {} 718 719 func (x *QuotaFailure_Violation) ProtoReflect() protoreflect.Message { 720 mi := &file_google_rpc_error_details_proto_msgTypes[10] 721 if protoimpl.UnsafeEnabled && x != nil { 722 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 723 if ms.LoadMessageInfo() == nil { 724 ms.StoreMessageInfo(mi) 725 } 726 return ms 727 } 728 return mi.MessageOf(x) 729 } 730 731 // Deprecated: Use QuotaFailure_Violation.ProtoReflect.Descriptor instead. 732 func (*QuotaFailure_Violation) Descriptor() ([]byte, []int) { 733 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{2, 0} 734 } 735 736 func (x *QuotaFailure_Violation) GetSubject() string { 737 if x != nil { 738 return x.Subject 739 } 740 return "" 741 } 742 743 func (x *QuotaFailure_Violation) GetDescription() string { 744 if x != nil { 745 return x.Description 746 } 747 return "" 748 } 749 750 // A message type used to describe a single precondition failure. 751 type PreconditionFailure_Violation struct { 752 state protoimpl.MessageState 753 sizeCache protoimpl.SizeCache 754 unknownFields protoimpl.UnknownFields 755 756 // The type of PreconditionFailure. We recommend using a service-specific 757 // enum type to define the supported precondition violation subjects. For 758 // example, "TOS" for "Terms of Service violation". 759 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 760 // The subject, relative to the type, that failed. 761 // For example, "google.com/cloud" relative to the "TOS" type would indicate 762 // which terms of service is being referenced. 763 Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` 764 // A description of how the precondition failed. Developers can use this 765 // description to understand how to fix the failure. 766 // 767 // For example: "Terms of service not accepted". 768 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` 769 } 770 771 func (x *PreconditionFailure_Violation) Reset() { 772 *x = PreconditionFailure_Violation{} 773 if protoimpl.UnsafeEnabled { 774 mi := &file_google_rpc_error_details_proto_msgTypes[12] 775 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 776 ms.StoreMessageInfo(mi) 777 } 778 } 779 780 func (x *PreconditionFailure_Violation) String() string { 781 return protoimpl.X.MessageStringOf(x) 782 } 783 784 func (*PreconditionFailure_Violation) ProtoMessage() {} 785 786 func (x *PreconditionFailure_Violation) ProtoReflect() protoreflect.Message { 787 mi := &file_google_rpc_error_details_proto_msgTypes[12] 788 if protoimpl.UnsafeEnabled && x != nil { 789 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 790 if ms.LoadMessageInfo() == nil { 791 ms.StoreMessageInfo(mi) 792 } 793 return ms 794 } 795 return mi.MessageOf(x) 796 } 797 798 // Deprecated: Use PreconditionFailure_Violation.ProtoReflect.Descriptor instead. 799 func (*PreconditionFailure_Violation) Descriptor() ([]byte, []int) { 800 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{4, 0} 801 } 802 803 func (x *PreconditionFailure_Violation) GetType() string { 804 if x != nil { 805 return x.Type 806 } 807 return "" 808 } 809 810 func (x *PreconditionFailure_Violation) GetSubject() string { 811 if x != nil { 812 return x.Subject 813 } 814 return "" 815 } 816 817 func (x *PreconditionFailure_Violation) GetDescription() string { 818 if x != nil { 819 return x.Description 820 } 821 return "" 822 } 823 824 // A message type used to describe a single bad request field. 825 type BadRequest_FieldViolation struct { 826 state protoimpl.MessageState 827 sizeCache protoimpl.SizeCache 828 unknownFields protoimpl.UnknownFields 829 830 // A path leading to a field in the request body. The value will be a 831 // sequence of dot-separated identifiers that identify a protocol buffer 832 // field. E.g., "field_violations.field" would identify this field. 833 Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` 834 // A description of why the request element is bad. 835 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 836 } 837 838 func (x *BadRequest_FieldViolation) Reset() { 839 *x = BadRequest_FieldViolation{} 840 if protoimpl.UnsafeEnabled { 841 mi := &file_google_rpc_error_details_proto_msgTypes[13] 842 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 843 ms.StoreMessageInfo(mi) 844 } 845 } 846 847 func (x *BadRequest_FieldViolation) String() string { 848 return protoimpl.X.MessageStringOf(x) 849 } 850 851 func (*BadRequest_FieldViolation) ProtoMessage() {} 852 853 func (x *BadRequest_FieldViolation) ProtoReflect() protoreflect.Message { 854 mi := &file_google_rpc_error_details_proto_msgTypes[13] 855 if protoimpl.UnsafeEnabled && x != nil { 856 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 857 if ms.LoadMessageInfo() == nil { 858 ms.StoreMessageInfo(mi) 859 } 860 return ms 861 } 862 return mi.MessageOf(x) 863 } 864 865 // Deprecated: Use BadRequest_FieldViolation.ProtoReflect.Descriptor instead. 866 func (*BadRequest_FieldViolation) Descriptor() ([]byte, []int) { 867 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{5, 0} 868 } 869 870 func (x *BadRequest_FieldViolation) GetField() string { 871 if x != nil { 872 return x.Field 873 } 874 return "" 875 } 876 877 func (x *BadRequest_FieldViolation) GetDescription() string { 878 if x != nil { 879 return x.Description 880 } 881 return "" 882 } 883 884 // Describes a URL link. 885 type Help_Link struct { 886 state protoimpl.MessageState 887 sizeCache protoimpl.SizeCache 888 unknownFields protoimpl.UnknownFields 889 890 // Describes what the link offers. 891 Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` 892 // The URL of the link. 893 Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` 894 } 895 896 func (x *Help_Link) Reset() { 897 *x = Help_Link{} 898 if protoimpl.UnsafeEnabled { 899 mi := &file_google_rpc_error_details_proto_msgTypes[14] 900 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 901 ms.StoreMessageInfo(mi) 902 } 903 } 904 905 func (x *Help_Link) String() string { 906 return protoimpl.X.MessageStringOf(x) 907 } 908 909 func (*Help_Link) ProtoMessage() {} 910 911 func (x *Help_Link) ProtoReflect() protoreflect.Message { 912 mi := &file_google_rpc_error_details_proto_msgTypes[14] 913 if protoimpl.UnsafeEnabled && x != nil { 914 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 915 if ms.LoadMessageInfo() == nil { 916 ms.StoreMessageInfo(mi) 917 } 918 return ms 919 } 920 return mi.MessageOf(x) 921 } 922 923 // Deprecated: Use Help_Link.ProtoReflect.Descriptor instead. 924 func (*Help_Link) Descriptor() ([]byte, []int) { 925 return file_google_rpc_error_details_proto_rawDescGZIP(), []int{8, 0} 926 } 927 928 func (x *Help_Link) GetDescription() string { 929 if x != nil { 930 return x.Description 931 } 932 return "" 933 } 934 935 func (x *Help_Link) GetUrl() string { 936 if x != nil { 937 return x.Url 938 } 939 return "" 940 } 941 942 var File_google_rpc_error_details_proto protoreflect.FileDescriptor 943 944 var file_google_rpc_error_details_proto_rawDesc = []byte{ 945 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x65, 0x72, 0x72, 946 0x6f, 0x72, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 947 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x1a, 0x1e, 0x67, 0x6f, 948 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 949 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x47, 0x0a, 0x09, 950 0x52, 0x65, 0x74, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3a, 0x0a, 0x0b, 0x72, 0x65, 0x74, 951 0x72, 0x79, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 952 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 953 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, 954 0x44, 0x65, 0x6c, 0x61, 0x79, 0x22, 0x48, 0x0a, 0x09, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 955 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72, 956 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x63, 0x6b, 957 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 958 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 959 0x9b, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 960 0x12, 0x42, 0x0a, 0x0a, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 961 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 962 0x63, 0x2e, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x2e, 0x56, 963 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 964 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x47, 0x0a, 0x09, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 965 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 966 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 967 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 968 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb9, 0x01, 969 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x72, 970 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 971 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 972 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3f, 0x0a, 0x08, 0x6d, 973 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 974 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 975 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 976 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d, 977 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 978 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 979 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 980 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xbd, 0x01, 0x0a, 0x13, 0x50, 0x72, 981 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 982 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 983 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 984 0x70, 0x63, 0x2e, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46, 985 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x2e, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 986 0x52, 0x0a, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x5b, 0x0a, 0x09, 987 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 988 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 989 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 990 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 991 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 992 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0x01, 0x0a, 0x0a, 0x42, 0x61, 993 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x10, 0x66, 0x69, 0x65, 0x6c, 994 0x64, 0x5f, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 995 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 996 0x42, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 997 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x66, 0x69, 0x65, 0x6c, 0x64, 998 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x48, 0x0a, 0x0e, 0x46, 0x69, 999 0x65, 0x6c, 0x64, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 1000 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, 1001 0x6c, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 1002 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 1003 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4f, 0x0a, 0x0b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 1004 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 1005 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 1006 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x61, 1007 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 1008 0x67, 0x44, 0x61, 0x74, 0x61, 0x22, 0x90, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 1009 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 1010 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 1011 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 1012 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 1013 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 1014 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 1015 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 1016 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 1017 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6f, 0x0a, 0x04, 0x48, 0x65, 0x6c, 0x70, 1018 0x12, 0x2b, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 1019 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x65, 0x6c, 1020 0x70, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x1a, 0x3a, 0x0a, 1021 0x04, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 1022 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 1023 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 1024 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x44, 0x0a, 0x10, 0x4c, 0x6f, 0x63, 1025 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 1026 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 1027 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 1028 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 1029 0x6c, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 1030 0x63, 0x42, 0x11, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x50, 1031 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 1032 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 1033 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x72, 0x70, 1034 0x63, 0x2f, 0x65, 0x72, 0x72, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x3b, 0x65, 0x72, 0x72, 1035 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0xa2, 0x02, 0x03, 0x52, 0x50, 0x43, 0x62, 0x06, 0x70, 1036 0x72, 0x6f, 0x74, 0x6f, 0x33, 1037 } 1038 1039 var ( 1040 file_google_rpc_error_details_proto_rawDescOnce sync.Once 1041 file_google_rpc_error_details_proto_rawDescData = file_google_rpc_error_details_proto_rawDesc 1042 ) 1043 1044 func file_google_rpc_error_details_proto_rawDescGZIP() []byte { 1045 file_google_rpc_error_details_proto_rawDescOnce.Do(func() { 1046 file_google_rpc_error_details_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_rpc_error_details_proto_rawDescData) 1047 }) 1048 return file_google_rpc_error_details_proto_rawDescData 1049 } 1050 1051 var file_google_rpc_error_details_proto_msgTypes = make([]protoimpl.MessageInfo, 15) 1052 var file_google_rpc_error_details_proto_goTypes = []interface{}{ 1053 (*RetryInfo)(nil), // 0: google.rpc.RetryInfo 1054 (*DebugInfo)(nil), // 1: google.rpc.DebugInfo 1055 (*QuotaFailure)(nil), // 2: google.rpc.QuotaFailure 1056 (*ErrorInfo)(nil), // 3: google.rpc.ErrorInfo 1057 (*PreconditionFailure)(nil), // 4: google.rpc.PreconditionFailure 1058 (*BadRequest)(nil), // 5: google.rpc.BadRequest 1059 (*RequestInfo)(nil), // 6: google.rpc.RequestInfo 1060 (*ResourceInfo)(nil), // 7: google.rpc.ResourceInfo 1061 (*Help)(nil), // 8: google.rpc.Help 1062 (*LocalizedMessage)(nil), // 9: google.rpc.LocalizedMessage 1063 (*QuotaFailure_Violation)(nil), // 10: google.rpc.QuotaFailure.Violation 1064 nil, // 11: google.rpc.ErrorInfo.MetadataEntry 1065 (*PreconditionFailure_Violation)(nil), // 12: google.rpc.PreconditionFailure.Violation 1066 (*BadRequest_FieldViolation)(nil), // 13: google.rpc.BadRequest.FieldViolation 1067 (*Help_Link)(nil), // 14: google.rpc.Help.Link 1068 (*duration.Duration)(nil), // 15: google.protobuf.Duration 1069 } 1070 var file_google_rpc_error_details_proto_depIdxs = []int32{ 1071 15, // 0: google.rpc.RetryInfo.retry_delay:type_name -> google.protobuf.Duration 1072 10, // 1: google.rpc.QuotaFailure.violations:type_name -> google.rpc.QuotaFailure.Violation 1073 11, // 2: google.rpc.ErrorInfo.metadata:type_name -> google.rpc.ErrorInfo.MetadataEntry 1074 12, // 3: google.rpc.PreconditionFailure.violations:type_name -> google.rpc.PreconditionFailure.Violation 1075 13, // 4: google.rpc.BadRequest.field_violations:type_name -> google.rpc.BadRequest.FieldViolation 1076 14, // 5: google.rpc.Help.links:type_name -> google.rpc.Help.Link 1077 6, // [6:6] is the sub-list for method output_type 1078 6, // [6:6] is the sub-list for method input_type 1079 6, // [6:6] is the sub-list for extension type_name 1080 6, // [6:6] is the sub-list for extension extendee 1081 0, // [0:6] is the sub-list for field type_name 1082 } 1083 1084 func init() { file_google_rpc_error_details_proto_init() } 1085 func file_google_rpc_error_details_proto_init() { 1086 if File_google_rpc_error_details_proto != nil { 1087 return 1088 } 1089 if !protoimpl.UnsafeEnabled { 1090 file_google_rpc_error_details_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1091 switch v := v.(*RetryInfo); i { 1092 case 0: 1093 return &v.state 1094 case 1: 1095 return &v.sizeCache 1096 case 2: 1097 return &v.unknownFields 1098 default: 1099 return nil 1100 } 1101 } 1102 file_google_rpc_error_details_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1103 switch v := v.(*DebugInfo); i { 1104 case 0: 1105 return &v.state 1106 case 1: 1107 return &v.sizeCache 1108 case 2: 1109 return &v.unknownFields 1110 default: 1111 return nil 1112 } 1113 } 1114 file_google_rpc_error_details_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1115 switch v := v.(*QuotaFailure); i { 1116 case 0: 1117 return &v.state 1118 case 1: 1119 return &v.sizeCache 1120 case 2: 1121 return &v.unknownFields 1122 default: 1123 return nil 1124 } 1125 } 1126 file_google_rpc_error_details_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1127 switch v := v.(*ErrorInfo); i { 1128 case 0: 1129 return &v.state 1130 case 1: 1131 return &v.sizeCache 1132 case 2: 1133 return &v.unknownFields 1134 default: 1135 return nil 1136 } 1137 } 1138 file_google_rpc_error_details_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1139 switch v := v.(*PreconditionFailure); i { 1140 case 0: 1141 return &v.state 1142 case 1: 1143 return &v.sizeCache 1144 case 2: 1145 return &v.unknownFields 1146 default: 1147 return nil 1148 } 1149 } 1150 file_google_rpc_error_details_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1151 switch v := v.(*BadRequest); i { 1152 case 0: 1153 return &v.state 1154 case 1: 1155 return &v.sizeCache 1156 case 2: 1157 return &v.unknownFields 1158 default: 1159 return nil 1160 } 1161 } 1162 file_google_rpc_error_details_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1163 switch v := v.(*RequestInfo); i { 1164 case 0: 1165 return &v.state 1166 case 1: 1167 return &v.sizeCache 1168 case 2: 1169 return &v.unknownFields 1170 default: 1171 return nil 1172 } 1173 } 1174 file_google_rpc_error_details_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1175 switch v := v.(*ResourceInfo); i { 1176 case 0: 1177 return &v.state 1178 case 1: 1179 return &v.sizeCache 1180 case 2: 1181 return &v.unknownFields 1182 default: 1183 return nil 1184 } 1185 } 1186 file_google_rpc_error_details_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1187 switch v := v.(*Help); i { 1188 case 0: 1189 return &v.state 1190 case 1: 1191 return &v.sizeCache 1192 case 2: 1193 return &v.unknownFields 1194 default: 1195 return nil 1196 } 1197 } 1198 file_google_rpc_error_details_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1199 switch v := v.(*LocalizedMessage); i { 1200 case 0: 1201 return &v.state 1202 case 1: 1203 return &v.sizeCache 1204 case 2: 1205 return &v.unknownFields 1206 default: 1207 return nil 1208 } 1209 } 1210 file_google_rpc_error_details_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1211 switch v := v.(*QuotaFailure_Violation); i { 1212 case 0: 1213 return &v.state 1214 case 1: 1215 return &v.sizeCache 1216 case 2: 1217 return &v.unknownFields 1218 default: 1219 return nil 1220 } 1221 } 1222 file_google_rpc_error_details_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1223 switch v := v.(*PreconditionFailure_Violation); i { 1224 case 0: 1225 return &v.state 1226 case 1: 1227 return &v.sizeCache 1228 case 2: 1229 return &v.unknownFields 1230 default: 1231 return nil 1232 } 1233 } 1234 file_google_rpc_error_details_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1235 switch v := v.(*BadRequest_FieldViolation); i { 1236 case 0: 1237 return &v.state 1238 case 1: 1239 return &v.sizeCache 1240 case 2: 1241 return &v.unknownFields 1242 default: 1243 return nil 1244 } 1245 } 1246 file_google_rpc_error_details_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { 1247 switch v := v.(*Help_Link); i { 1248 case 0: 1249 return &v.state 1250 case 1: 1251 return &v.sizeCache 1252 case 2: 1253 return &v.unknownFields 1254 default: 1255 return nil 1256 } 1257 } 1258 } 1259 type x struct{} 1260 out := protoimpl.TypeBuilder{ 1261 File: protoimpl.DescBuilder{ 1262 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1263 RawDescriptor: file_google_rpc_error_details_proto_rawDesc, 1264 NumEnums: 0, 1265 NumMessages: 15, 1266 NumExtensions: 0, 1267 NumServices: 0, 1268 }, 1269 GoTypes: file_google_rpc_error_details_proto_goTypes, 1270 DependencyIndexes: file_google_rpc_error_details_proto_depIdxs, 1271 MessageInfos: file_google_rpc_error_details_proto_msgTypes, 1272 }.Build() 1273 File_google_rpc_error_details_proto = out.File 1274 file_google_rpc_error_details_proto_rawDesc = nil 1275 file_google_rpc_error_details_proto_goTypes = nil 1276 file_google_rpc_error_details_proto_depIdxs = nil 1277 }