| // Copyright 2020 Google LLC |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.22.0 |
| // protoc v3.12.2 |
| // source: google/rpc/error_details.proto |
| |
| package errdetails |
| |
| import ( |
| reflect "reflect" |
| sync "sync" |
| |
| proto "github.com/golang/protobuf/proto" |
| duration "github.com/golang/protobuf/ptypes/duration" |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| ) |
| |
| const ( |
| // Verify that this generated code is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| // Verify that runtime/protoimpl is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| ) |
| |
| // This is a compile-time assertion that a sufficiently up-to-date version |
| // of the legacy proto package is being used. |
| const _ = proto.ProtoPackageIsVersion4 |
| |
| // Describes when the clients can retry a failed request. Clients could ignore |
| // the recommendation here or retry when this information is missing from error |
| // responses. |
| // |
| // It's always recommended that clients should use exponential backoff when |
| // retrying. |
| // |
| // Clients should wait until `retry_delay` amount of time has passed since |
| // receiving the error response before retrying. If retrying requests also |
| // fail, clients should use an exponential backoff scheme to gradually increase |
| // the delay between retries based on `retry_delay`, until either a maximum |
| // number of retries have been reached or a maximum retry delay cap has been |
| // reached. |
| type RetryInfo struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Clients should wait at least this long between retrying the same request. |
| RetryDelay *duration.Duration `protobuf:"bytes,1,opt,name=retry_delay,json=retryDelay,proto3" json:"retry_delay,omitempty"` |
| } |
| |
| func (x *RetryInfo) Reset() { |
| *x = RetryInfo{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *RetryInfo) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*RetryInfo) ProtoMessage() {} |
| |
| func (x *RetryInfo) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[0] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use RetryInfo.ProtoReflect.Descriptor instead. |
| func (*RetryInfo) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *RetryInfo) GetRetryDelay() *duration.Duration { |
| if x != nil { |
| return x.RetryDelay |
| } |
| return nil |
| } |
| |
| // Describes additional debugging info. |
| type DebugInfo struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The stack trace entries indicating where the error occurred. |
| StackEntries []string `protobuf:"bytes,1,rep,name=stack_entries,json=stackEntries,proto3" json:"stack_entries,omitempty"` |
| // Additional debugging information provided by the server. |
| Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` |
| } |
| |
| func (x *DebugInfo) Reset() { |
| *x = DebugInfo{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DebugInfo) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DebugInfo) ProtoMessage() {} |
| |
| func (x *DebugInfo) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[1] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use DebugInfo.ProtoReflect.Descriptor instead. |
| func (*DebugInfo) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *DebugInfo) GetStackEntries() []string { |
| if x != nil { |
| return x.StackEntries |
| } |
| return nil |
| } |
| |
| func (x *DebugInfo) GetDetail() string { |
| if x != nil { |
| return x.Detail |
| } |
| return "" |
| } |
| |
| // Describes how a quota check failed. |
| // |
| // For example if a daily limit was exceeded for the calling project, |
| // a service could respond with a QuotaFailure detail containing the project |
| // id and the description of the quota limit that was exceeded. If the |
| // calling project hasn't enabled the service in the developer console, then |
| // a service could respond with the project id and set `service_disabled` |
| // to true. |
| // |
| // Also see RetryInfo and Help types for other details about handling a |
| // quota failure. |
| type QuotaFailure struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Describes all quota violations. |
| Violations []*QuotaFailure_Violation `protobuf:"bytes,1,rep,name=violations,proto3" json:"violations,omitempty"` |
| } |
| |
| func (x *QuotaFailure) Reset() { |
| *x = QuotaFailure{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *QuotaFailure) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*QuotaFailure) ProtoMessage() {} |
| |
| func (x *QuotaFailure) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[2] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use QuotaFailure.ProtoReflect.Descriptor instead. |
| func (*QuotaFailure) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *QuotaFailure) GetViolations() []*QuotaFailure_Violation { |
| if x != nil { |
| return x.Violations |
| } |
| return nil |
| } |
| |
| // Describes the cause of the error with structured details. |
| // |
| // Example of an error when contacting the "pubsub.googleapis.com" API when it |
| // is not enabled: |
| // { "reason": "API_DISABLED" |
| // "domain": "googleapis.com" |
| // "metadata": { |
| // "resource": "projects/123", |
| // "service": "pubsub.googleapis.com" |
| // } |
| // } |
| // This response indicates that the pubsub.googleapis.com API is not enabled. |
| // |
| // Example of an error that is returned when attempting to create a Spanner |
| // instance in a region that is out of stock: |
| // { "reason": "STOCKOUT" |
| // "domain": "spanner.googleapis.com", |
| // "metadata": { |
| // "availableRegions": "us-central1,us-east2" |
| // } |
| // } |
| // |
| type ErrorInfo struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The reason of the error. This is a constant value that identifies the |
| // proximate cause of the error. Error reasons are unique within a particular |
| // domain of errors. This should be at most 63 characters and match |
| // /[A-Z0-9_]+/. |
| Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` |
| // The logical grouping to which the "reason" belongs. Often "domain" will |
| // contain the registered service name of the tool or product that is the |
| // source of the error. Example: "pubsub.googleapis.com". If the error is |
| // common across many APIs, the first segment of the example above will be |
| // omitted. The value will be, "googleapis.com". |
| Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` |
| // Additional structured details about this error. |
| // |
| // Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in |
| // length. When identifying the current value of an exceeded limit, the units |
| // should be contained in the key, not the value. For example, rather than |
| // {"instanceLimit": "100/request"}, should be returned as, |
| // {"instanceLimitPerRequest": "100"}, if the client exceeds the number of |
| // instances that can be created in a single (batch) request. |
| 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"` |
| } |
| |
| func (x *ErrorInfo) Reset() { |
| *x = ErrorInfo{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ErrorInfo) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ErrorInfo) ProtoMessage() {} |
| |
| func (x *ErrorInfo) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[3] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ErrorInfo.ProtoReflect.Descriptor instead. |
| func (*ErrorInfo) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{3} |
| } |
| |
| func (x *ErrorInfo) GetReason() string { |
| if x != nil { |
| return x.Reason |
| } |
| return "" |
| } |
| |
| func (x *ErrorInfo) GetDomain() string { |
| if x != nil { |
| return x.Domain |
| } |
| return "" |
| } |
| |
| func (x *ErrorInfo) GetMetadata() map[string]string { |
| if x != nil { |
| return x.Metadata |
| } |
| return nil |
| } |
| |
| // Describes what preconditions have failed. |
| // |
| // For example, if an RPC failed because it required the Terms of Service to be |
| // acknowledged, it could list the terms of service violation in the |
| // PreconditionFailure message. |
| type PreconditionFailure struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Describes all precondition violations. |
| Violations []*PreconditionFailure_Violation `protobuf:"bytes,1,rep,name=violations,proto3" json:"violations,omitempty"` |
| } |
| |
| func (x *PreconditionFailure) Reset() { |
| *x = PreconditionFailure{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *PreconditionFailure) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*PreconditionFailure) ProtoMessage() {} |
| |
| func (x *PreconditionFailure) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[4] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use PreconditionFailure.ProtoReflect.Descriptor instead. |
| func (*PreconditionFailure) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{4} |
| } |
| |
| func (x *PreconditionFailure) GetViolations() []*PreconditionFailure_Violation { |
| if x != nil { |
| return x.Violations |
| } |
| return nil |
| } |
| |
| // Describes violations in a client request. This error type focuses on the |
| // syntactic aspects of the request. |
| type BadRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Describes all violations in a client request. |
| FieldViolations []*BadRequest_FieldViolation `protobuf:"bytes,1,rep,name=field_violations,json=fieldViolations,proto3" json:"field_violations,omitempty"` |
| } |
| |
| func (x *BadRequest) Reset() { |
| *x = BadRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *BadRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*BadRequest) ProtoMessage() {} |
| |
| func (x *BadRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[5] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use BadRequest.ProtoReflect.Descriptor instead. |
| func (*BadRequest) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{5} |
| } |
| |
| func (x *BadRequest) GetFieldViolations() []*BadRequest_FieldViolation { |
| if x != nil { |
| return x.FieldViolations |
| } |
| return nil |
| } |
| |
| // Contains metadata about the request that clients can attach when filing a bug |
| // or providing other forms of feedback. |
| type RequestInfo struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // An opaque string that should only be interpreted by the service generating |
| // it. For example, it can be used to identify requests in the service's logs. |
| RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` |
| // Any data that was used to serve this request. For example, an encrypted |
| // stack trace that can be sent back to the service provider for debugging. |
| ServingData string `protobuf:"bytes,2,opt,name=serving_data,json=servingData,proto3" json:"serving_data,omitempty"` |
| } |
| |
| func (x *RequestInfo) Reset() { |
| *x = RequestInfo{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[6] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *RequestInfo) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*RequestInfo) ProtoMessage() {} |
| |
| func (x *RequestInfo) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[6] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use RequestInfo.ProtoReflect.Descriptor instead. |
| func (*RequestInfo) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{6} |
| } |
| |
| func (x *RequestInfo) GetRequestId() string { |
| if x != nil { |
| return x.RequestId |
| } |
| return "" |
| } |
| |
| func (x *RequestInfo) GetServingData() string { |
| if x != nil { |
| return x.ServingData |
| } |
| return "" |
| } |
| |
| // Describes the resource that is being accessed. |
| type ResourceInfo struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // A name for the type of resource being accessed, e.g. "sql table", |
| // "cloud storage bucket", "file", "Google calendar"; or the type URL |
| // of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". |
| ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` |
| // The name of the resource being accessed. For example, a shared calendar |
| // name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current |
| // error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. |
| ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` |
| // The owner of the resource (optional). |
| // For example, "user:<owner email>" or "project:<Google developer project |
| // id>". |
| Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` |
| // Describes what error is encountered when accessing this resource. |
| // For example, updating a cloud project may require the `writer` permission |
| // on the developer console project. |
| Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` |
| } |
| |
| func (x *ResourceInfo) Reset() { |
| *x = ResourceInfo{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[7] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *ResourceInfo) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ResourceInfo) ProtoMessage() {} |
| |
| func (x *ResourceInfo) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[7] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ResourceInfo.ProtoReflect.Descriptor instead. |
| func (*ResourceInfo) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{7} |
| } |
| |
| func (x *ResourceInfo) GetResourceType() string { |
| if x != nil { |
| return x.ResourceType |
| } |
| return "" |
| } |
| |
| func (x *ResourceInfo) GetResourceName() string { |
| if x != nil { |
| return x.ResourceName |
| } |
| return "" |
| } |
| |
| func (x *ResourceInfo) GetOwner() string { |
| if x != nil { |
| return x.Owner |
| } |
| return "" |
| } |
| |
| func (x *ResourceInfo) GetDescription() string { |
| if x != nil { |
| return x.Description |
| } |
| return "" |
| } |
| |
| // Provides links to documentation or for performing an out of band action. |
| // |
| // For example, if a quota check failed with an error indicating the calling |
| // project hasn't enabled the accessed service, this can contain a URL pointing |
| // directly to the right place in the developer console to flip the bit. |
| type Help struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // URL(s) pointing to additional information on handling the current error. |
| Links []*Help_Link `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"` |
| } |
| |
| func (x *Help) Reset() { |
| *x = Help{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[8] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *Help) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Help) ProtoMessage() {} |
| |
| func (x *Help) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[8] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Help.ProtoReflect.Descriptor instead. |
| func (*Help) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{8} |
| } |
| |
| func (x *Help) GetLinks() []*Help_Link { |
| if x != nil { |
| return x.Links |
| } |
| return nil |
| } |
| |
| // Provides a localized error message that is safe to return to the user |
| // which can be attached to an RPC error. |
| type LocalizedMessage struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The locale used following the specification defined at |
| // http://www.rfc-editor.org/rfc/bcp/bcp47.txt. |
| // Examples are: "en-US", "fr-CH", "es-MX" |
| Locale string `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"` |
| // The localized error message in the above locale. |
| Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` |
| } |
| |
| func (x *LocalizedMessage) Reset() { |
| *x = LocalizedMessage{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[9] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *LocalizedMessage) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*LocalizedMessage) ProtoMessage() {} |
| |
| func (x *LocalizedMessage) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[9] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use LocalizedMessage.ProtoReflect.Descriptor instead. |
| func (*LocalizedMessage) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{9} |
| } |
| |
| func (x *LocalizedMessage) GetLocale() string { |
| if x != nil { |
| return x.Locale |
| } |
| return "" |
| } |
| |
| func (x *LocalizedMessage) GetMessage() string { |
| if x != nil { |
| return x.Message |
| } |
| return "" |
| } |
| |
| // A message type used to describe a single quota violation. For example, a |
| // daily quota or a custom quota that was exceeded. |
| type QuotaFailure_Violation struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The subject on which the quota check failed. |
| // For example, "clientip:<ip address of client>" or "project:<Google |
| // developer project id>". |
| Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` |
| // A description of how the quota check failed. Clients can use this |
| // description to find more about the quota configuration in the service's |
| // public documentation, or find the relevant quota limit to adjust through |
| // developer console. |
| // |
| // For example: "Service disabled" or "Daily Limit for read operations |
| // exceeded". |
| Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` |
| } |
| |
| func (x *QuotaFailure_Violation) Reset() { |
| *x = QuotaFailure_Violation{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[10] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *QuotaFailure_Violation) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*QuotaFailure_Violation) ProtoMessage() {} |
| |
| func (x *QuotaFailure_Violation) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[10] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use QuotaFailure_Violation.ProtoReflect.Descriptor instead. |
| func (*QuotaFailure_Violation) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{2, 0} |
| } |
| |
| func (x *QuotaFailure_Violation) GetSubject() string { |
| if x != nil { |
| return x.Subject |
| } |
| return "" |
| } |
| |
| func (x *QuotaFailure_Violation) GetDescription() string { |
| if x != nil { |
| return x.Description |
| } |
| return "" |
| } |
| |
| // A message type used to describe a single precondition failure. |
| type PreconditionFailure_Violation struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The type of PreconditionFailure. We recommend using a service-specific |
| // enum type to define the supported precondition violation subjects. For |
| // example, "TOS" for "Terms of Service violation". |
| Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` |
| // The subject, relative to the type, that failed. |
| // For example, "google.com/cloud" relative to the "TOS" type would indicate |
| // which terms of service is being referenced. |
| Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` |
| // A description of how the precondition failed. Developers can use this |
| // description to understand how to fix the failure. |
| // |
| // For example: "Terms of service not accepted". |
| Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` |
| } |
| |
| func (x *PreconditionFailure_Violation) Reset() { |
| *x = PreconditionFailure_Violation{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[12] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *PreconditionFailure_Violation) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*PreconditionFailure_Violation) ProtoMessage() {} |
| |
| func (x *PreconditionFailure_Violation) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[12] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use PreconditionFailure_Violation.ProtoReflect.Descriptor instead. |
| func (*PreconditionFailure_Violation) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{4, 0} |
| } |
| |
| func (x *PreconditionFailure_Violation) GetType() string { |
| if x != nil { |
| return x.Type |
| } |
| return "" |
| } |
| |
| func (x *PreconditionFailure_Violation) GetSubject() string { |
| if x != nil { |
| return x.Subject |
| } |
| return "" |
| } |
| |
| func (x *PreconditionFailure_Violation) GetDescription() string { |
| if x != nil { |
| return x.Description |
| } |
| return "" |
| } |
| |
| // A message type used to describe a single bad request field. |
| type BadRequest_FieldViolation struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // A path leading to a field in the request body. The value will be a |
| // sequence of dot-separated identifiers that identify a protocol buffer |
| // field. E.g., "field_violations.field" would identify this field. |
| Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` |
| // A description of why the request element is bad. |
| Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` |
| } |
| |
| func (x *BadRequest_FieldViolation) Reset() { |
| *x = BadRequest_FieldViolation{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[13] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *BadRequest_FieldViolation) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*BadRequest_FieldViolation) ProtoMessage() {} |
| |
| func (x *BadRequest_FieldViolation) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[13] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use BadRequest_FieldViolation.ProtoReflect.Descriptor instead. |
| func (*BadRequest_FieldViolation) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{5, 0} |
| } |
| |
| func (x *BadRequest_FieldViolation) GetField() string { |
| if x != nil { |
| return x.Field |
| } |
| return "" |
| } |
| |
| func (x *BadRequest_FieldViolation) GetDescription() string { |
| if x != nil { |
| return x.Description |
| } |
| return "" |
| } |
| |
| // Describes a URL link. |
| type Help_Link struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Describes what the link offers. |
| Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` |
| // The URL of the link. |
| Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` |
| } |
| |
| func (x *Help_Link) Reset() { |
| *x = Help_Link{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_rpc_error_details_proto_msgTypes[14] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *Help_Link) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Help_Link) ProtoMessage() {} |
| |
| func (x *Help_Link) ProtoReflect() protoreflect.Message { |
| mi := &file_google_rpc_error_details_proto_msgTypes[14] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Help_Link.ProtoReflect.Descriptor instead. |
| func (*Help_Link) Descriptor() ([]byte, []int) { |
| return file_google_rpc_error_details_proto_rawDescGZIP(), []int{8, 0} |
| } |
| |
| func (x *Help_Link) GetDescription() string { |
| if x != nil { |
| return x.Description |
| } |
| return "" |
| } |
| |
| func (x *Help_Link) GetUrl() string { |
| if x != nil { |
| return x.Url |
| } |
| return "" |
| } |
| |
| var File_google_rpc_error_details_proto protoreflect.FileDescriptor |
| |
| var file_google_rpc_error_details_proto_rawDesc = []byte{ |
| 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x65, 0x72, 0x72, |
| 0x6f, 0x72, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x1a, 0x1e, 0x67, 0x6f, |
| 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, |
| 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x47, 0x0a, 0x09, |
| 0x52, 0x65, 0x74, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3a, 0x0a, 0x0b, 0x72, 0x65, 0x74, |
| 0x72, 0x79, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, |
| 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, |
| 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, |
| 0x44, 0x65, 0x6c, 0x61, 0x79, 0x22, 0x48, 0x0a, 0x09, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, |
| 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72, |
| 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x63, 0x6b, |
| 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, |
| 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, |
| 0x9b, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, |
| 0x12, 0x42, 0x0a, 0x0a, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, |
| 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, |
| 0x63, 0x2e, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x2e, 0x56, |
| 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, |
| 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x47, 0x0a, 0x09, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, |
| 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, |
| 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, |
| 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, |
| 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb9, 0x01, |
| 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x72, |
| 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, |
| 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, |
| 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3f, 0x0a, 0x08, 0x6d, |
| 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, |
| 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, |
| 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, |
| 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d, |
| 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, |
| 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, |
| 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, |
| 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xbd, 0x01, 0x0a, 0x13, 0x50, 0x72, |
| 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, |
| 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, |
| 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, |
| 0x70, 0x63, 0x2e, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46, |
| 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x2e, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 0x52, 0x0a, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x5b, 0x0a, 0x09, |
| 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, |
| 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, |
| 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, |
| 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, |
| 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, |
| 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0x01, 0x0a, 0x0a, 0x42, 0x61, |
| 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x10, 0x66, 0x69, 0x65, 0x6c, |
| 0x64, 0x5f, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, |
| 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, |
| 0x42, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, |
| 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x48, 0x0a, 0x0e, 0x46, 0x69, |
| 0x65, 0x6c, 0x64, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, |
| 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, |
| 0x6c, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, |
| 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, |
| 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4f, 0x0a, 0x0b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, |
| 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, |
| 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x61, |
| 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, |
| 0x67, 0x44, 0x61, 0x74, 0x61, 0x22, 0x90, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, |
| 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, |
| 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, |
| 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, |
| 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, |
| 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, |
| 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, |
| 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, |
| 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6f, 0x0a, 0x04, 0x48, 0x65, 0x6c, 0x70, |
| 0x12, 0x2b, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, |
| 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x65, 0x6c, |
| 0x70, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x1a, 0x3a, 0x0a, |
| 0x04, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, |
| 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, |
| 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, |
| 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x44, 0x0a, 0x10, 0x4c, 0x6f, 0x63, |
| 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, |
| 0x06, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, |
| 0x6f, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, |
| 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, |
| 0x6c, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, |
| 0x63, 0x42, 0x11, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x50, |
| 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, |
| 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, |
| 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x72, 0x70, |
| 0x63, 0x2f, 0x65, 0x72, 0x72, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x3b, 0x65, 0x72, 0x72, |
| 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0xa2, 0x02, 0x03, 0x52, 0x50, 0x43, 0x62, 0x06, 0x70, |
| 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| } |
| |
| var ( |
| file_google_rpc_error_details_proto_rawDescOnce sync.Once |
| file_google_rpc_error_details_proto_rawDescData = file_google_rpc_error_details_proto_rawDesc |
| ) |
| |
| func file_google_rpc_error_details_proto_rawDescGZIP() []byte { |
| file_google_rpc_error_details_proto_rawDescOnce.Do(func() { |
| file_google_rpc_error_details_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_rpc_error_details_proto_rawDescData) |
| }) |
| return file_google_rpc_error_details_proto_rawDescData |
| } |
| |
| var file_google_rpc_error_details_proto_msgTypes = make([]protoimpl.MessageInfo, 15) |
| var file_google_rpc_error_details_proto_goTypes = []interface{}{ |
| (*RetryInfo)(nil), // 0: google.rpc.RetryInfo |
| (*DebugInfo)(nil), // 1: google.rpc.DebugInfo |
| (*QuotaFailure)(nil), // 2: google.rpc.QuotaFailure |
| (*ErrorInfo)(nil), // 3: google.rpc.ErrorInfo |
| (*PreconditionFailure)(nil), // 4: google.rpc.PreconditionFailure |
| (*BadRequest)(nil), // 5: google.rpc.BadRequest |
| (*RequestInfo)(nil), // 6: google.rpc.RequestInfo |
| (*ResourceInfo)(nil), // 7: google.rpc.ResourceInfo |
| (*Help)(nil), // 8: google.rpc.Help |
| (*LocalizedMessage)(nil), // 9: google.rpc.LocalizedMessage |
| (*QuotaFailure_Violation)(nil), // 10: google.rpc.QuotaFailure.Violation |
| nil, // 11: google.rpc.ErrorInfo.MetadataEntry |
| (*PreconditionFailure_Violation)(nil), // 12: google.rpc.PreconditionFailure.Violation |
| (*BadRequest_FieldViolation)(nil), // 13: google.rpc.BadRequest.FieldViolation |
| (*Help_Link)(nil), // 14: google.rpc.Help.Link |
| (*duration.Duration)(nil), // 15: google.protobuf.Duration |
| } |
| var file_google_rpc_error_details_proto_depIdxs = []int32{ |
| 15, // 0: google.rpc.RetryInfo.retry_delay:type_name -> google.protobuf.Duration |
| 10, // 1: google.rpc.QuotaFailure.violations:type_name -> google.rpc.QuotaFailure.Violation |
| 11, // 2: google.rpc.ErrorInfo.metadata:type_name -> google.rpc.ErrorInfo.MetadataEntry |
| 12, // 3: google.rpc.PreconditionFailure.violations:type_name -> google.rpc.PreconditionFailure.Violation |
| 13, // 4: google.rpc.BadRequest.field_violations:type_name -> google.rpc.BadRequest.FieldViolation |
| 14, // 5: google.rpc.Help.links:type_name -> google.rpc.Help.Link |
| 6, // [6:6] is the sub-list for method output_type |
| 6, // [6:6] is the sub-list for method input_type |
| 6, // [6:6] is the sub-list for extension type_name |
| 6, // [6:6] is the sub-list for extension extendee |
| 0, // [0:6] is the sub-list for field type_name |
| } |
| |
| func init() { file_google_rpc_error_details_proto_init() } |
| func file_google_rpc_error_details_proto_init() { |
| if File_google_rpc_error_details_proto != nil { |
| return |
| } |
| if !protoimpl.UnsafeEnabled { |
| file_google_rpc_error_details_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*RetryInfo); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DebugInfo); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*QuotaFailure); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ErrorInfo); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*PreconditionFailure); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*BadRequest); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*RequestInfo); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*ResourceInfo); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*Help); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*LocalizedMessage); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*QuotaFailure_Violation); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*PreconditionFailure_Violation); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*BadRequest_FieldViolation); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_rpc_error_details_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*Help_Link); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_google_rpc_error_details_proto_rawDesc, |
| NumEnums: 0, |
| NumMessages: 15, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_google_rpc_error_details_proto_goTypes, |
| DependencyIndexes: file_google_rpc_error_details_proto_depIdxs, |
| MessageInfos: file_google_rpc_error_details_proto_msgTypes, |
| }.Build() |
| File_google_rpc_error_details_proto = out.File |
| file_google_rpc_error_details_proto_rawDesc = nil |
| file_google_rpc_error_details_proto_goTypes = nil |
| file_google_rpc_error_details_proto_depIdxs = nil |
| } |