blob: a15f3db43ddd5080f0a5c3d3bcfcd8edce90f59a [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/api/servicecontrol/v1/check_error.proto
package servicecontrol
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Error codes for Check responses.
type CheckError_Code int32
const (
// This is never used in `CheckResponse`.
CheckError_ERROR_CODE_UNSPECIFIED CheckError_Code = 0
// The consumer's project id, network container, or resource container was
// not found. Same as [google.rpc.Code.NOT_FOUND][].
CheckError_NOT_FOUND CheckError_Code = 5
// The consumer doesn't have access to the specified resource.
// Same as [google.rpc.Code.PERMISSION_DENIED][].
CheckError_PERMISSION_DENIED CheckError_Code = 7
// Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
CheckError_RESOURCE_EXHAUSTED CheckError_Code = 8
// The consumer has been flagged as an abuser.
CheckError_ABUSER_DETECTED CheckError_Code = 103
// The consumer hasn't activated the service.
CheckError_SERVICE_NOT_ACTIVATED CheckError_Code = 104
// The consumer cannot access the service because billing is disabled.
CheckError_BILLING_DISABLED CheckError_Code = 107
// The consumer's project has been marked as deleted (soft deletion).
CheckError_PROJECT_DELETED CheckError_Code = 108
// The consumer's project number or id does not represent a valid project.
CheckError_PROJECT_INVALID CheckError_Code = 114
// The IP address of the consumer is invalid for the specific consumer
// project.
CheckError_IP_ADDRESS_BLOCKED CheckError_Code = 109
// The referer address of the consumer request is invalid for the specific
// consumer project.
CheckError_REFERER_BLOCKED CheckError_Code = 110
// The client application of the consumer request is invalid for the
// specific consumer project.
CheckError_CLIENT_APP_BLOCKED CheckError_Code = 111
// The API targeted by this request is invalid for the specified consumer
// project.
CheckError_API_TARGET_BLOCKED CheckError_Code = 122
// The consumer's API key is invalid.
CheckError_API_KEY_INVALID CheckError_Code = 105
// The consumer's API Key has expired.
CheckError_API_KEY_EXPIRED CheckError_Code = 112
// The consumer's API Key was not found in config record.
CheckError_API_KEY_NOT_FOUND CheckError_Code = 113
// Request is not allowed as per security policies defined in Org Policy.
CheckError_SECURITY_POLICY_VIOLATED CheckError_Code = 121
// The credential in the request can not be verified.
CheckError_INVALID_CREDENTIAL CheckError_Code = 123
// Request is not allowed as per location policies defined in Org Policy.
CheckError_LOCATION_POLICY_VIOLATED CheckError_Code = 124
// The input consumer info does not represent a valid consumer folder or
// organization.
CheckError_CONSUMER_INVALID CheckError_Code = 125
// The backend server for looking up project id/number is unavailable.
CheckError_NAMESPACE_LOOKUP_UNAVAILABLE CheckError_Code = 300
// The backend server for checking service status is unavailable.
CheckError_SERVICE_STATUS_UNAVAILABLE CheckError_Code = 301
// The backend server for checking billing status is unavailable.
CheckError_BILLING_STATUS_UNAVAILABLE CheckError_Code = 302
// The backend server for checking quota limits is unavailable.
CheckError_QUOTA_CHECK_UNAVAILABLE CheckError_Code = 303
// Cloud Resource Manager backend server is unavailable.
CheckError_CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE CheckError_Code = 305
// Backend server for evaluating security policy is unavailable.
CheckError_SECURITY_POLICY_BACKEND_UNAVAILABLE CheckError_Code = 306
// Backend server for evaluating location policy is unavailable.
CheckError_LOCATION_POLICY_BACKEND_UNAVAILABLE CheckError_Code = 307
)
var CheckError_Code_name = map[int32]string{
0: "ERROR_CODE_UNSPECIFIED",
5: "NOT_FOUND",
7: "PERMISSION_DENIED",
8: "RESOURCE_EXHAUSTED",
103: "ABUSER_DETECTED",
104: "SERVICE_NOT_ACTIVATED",
107: "BILLING_DISABLED",
108: "PROJECT_DELETED",
114: "PROJECT_INVALID",
109: "IP_ADDRESS_BLOCKED",
110: "REFERER_BLOCKED",
111: "CLIENT_APP_BLOCKED",
122: "API_TARGET_BLOCKED",
105: "API_KEY_INVALID",
112: "API_KEY_EXPIRED",
113: "API_KEY_NOT_FOUND",
121: "SECURITY_POLICY_VIOLATED",
123: "INVALID_CREDENTIAL",
124: "LOCATION_POLICY_VIOLATED",
125: "CONSUMER_INVALID",
300: "NAMESPACE_LOOKUP_UNAVAILABLE",
301: "SERVICE_STATUS_UNAVAILABLE",
302: "BILLING_STATUS_UNAVAILABLE",
303: "QUOTA_CHECK_UNAVAILABLE",
305: "CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE",
306: "SECURITY_POLICY_BACKEND_UNAVAILABLE",
307: "LOCATION_POLICY_BACKEND_UNAVAILABLE",
}
var CheckError_Code_value = map[string]int32{
"ERROR_CODE_UNSPECIFIED": 0,
"NOT_FOUND": 5,
"PERMISSION_DENIED": 7,
"RESOURCE_EXHAUSTED": 8,
"ABUSER_DETECTED": 103,
"SERVICE_NOT_ACTIVATED": 104,
"BILLING_DISABLED": 107,
"PROJECT_DELETED": 108,
"PROJECT_INVALID": 114,
"IP_ADDRESS_BLOCKED": 109,
"REFERER_BLOCKED": 110,
"CLIENT_APP_BLOCKED": 111,
"API_TARGET_BLOCKED": 122,
"API_KEY_INVALID": 105,
"API_KEY_EXPIRED": 112,
"API_KEY_NOT_FOUND": 113,
"SECURITY_POLICY_VIOLATED": 121,
"INVALID_CREDENTIAL": 123,
"LOCATION_POLICY_VIOLATED": 124,
"CONSUMER_INVALID": 125,
"NAMESPACE_LOOKUP_UNAVAILABLE": 300,
"SERVICE_STATUS_UNAVAILABLE": 301,
"BILLING_STATUS_UNAVAILABLE": 302,
"QUOTA_CHECK_UNAVAILABLE": 303,
"CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE": 305,
"SECURITY_POLICY_BACKEND_UNAVAILABLE": 306,
"LOCATION_POLICY_BACKEND_UNAVAILABLE": 307,
}
func (x CheckError_Code) String() string {
return proto.EnumName(CheckError_Code_name, int32(x))
}
func (CheckError_Code) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_abfa738e19256db6, []int{0, 0}
}
// Defines the errors to be returned in
// [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors].
type CheckError struct {
// The error code.
Code CheckError_Code `protobuf:"varint,1,opt,name=code,proto3,enum=google.api.servicecontrol.v1.CheckError_Code" json:"code,omitempty"`
// Free-form text providing details on the error cause of the error.
Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CheckError) Reset() { *m = CheckError{} }
func (m *CheckError) String() string { return proto.CompactTextString(m) }
func (*CheckError) ProtoMessage() {}
func (*CheckError) Descriptor() ([]byte, []int) {
return fileDescriptor_abfa738e19256db6, []int{0}
}
func (m *CheckError) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CheckError.Unmarshal(m, b)
}
func (m *CheckError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CheckError.Marshal(b, m, deterministic)
}
func (m *CheckError) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckError.Merge(m, src)
}
func (m *CheckError) XXX_Size() int {
return xxx_messageInfo_CheckError.Size(m)
}
func (m *CheckError) XXX_DiscardUnknown() {
xxx_messageInfo_CheckError.DiscardUnknown(m)
}
var xxx_messageInfo_CheckError proto.InternalMessageInfo
func (m *CheckError) GetCode() CheckError_Code {
if m != nil {
return m.Code
}
return CheckError_ERROR_CODE_UNSPECIFIED
}
func (m *CheckError) GetDetail() string {
if m != nil {
return m.Detail
}
return ""
}
func init() {
proto.RegisterEnum("google.api.servicecontrol.v1.CheckError_Code", CheckError_Code_name, CheckError_Code_value)
proto.RegisterType((*CheckError)(nil), "google.api.servicecontrol.v1.CheckError")
}
func init() {
proto.RegisterFile("google/api/servicecontrol/v1/check_error.proto", fileDescriptor_abfa738e19256db6)
}
var fileDescriptor_abfa738e19256db6 = []byte{
// 626 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xcd, 0x4e, 0x1b, 0x3d,
0x18, 0x85, 0xbf, 0x44, 0xc0, 0x57, 0x2c, 0xb5, 0x4c, 0xdd, 0x42, 0x29, 0x8a, 0x54, 0x4a, 0x37,
0xa8, 0x52, 0x27, 0xa2, 0x5d, 0x76, 0xe5, 0xd8, 0x2f, 0x60, 0x32, 0xb1, 0x5d, 0xdb, 0x13, 0x41,
0x37, 0x56, 0x1a, 0x46, 0x21, 0x22, 0x8c, 0xd3, 0x21, 0x42, 0xea, 0xdf, 0xae, 0x97, 0xd3, 0x1f,
0xb5, 0xbd, 0x8b, 0x5e, 0x45, 0x2f, 0xa3, 0xcb, 0xca, 0x13, 0x08, 0x04, 0x45, 0x2c, 0xe7, 0xf8,
0x39, 0x67, 0xec, 0xe3, 0x79, 0x07, 0xc5, 0x3d, 0xef, 0x7b, 0x83, 0xac, 0xde, 0x19, 0xf6, 0xeb,
0xa7, 0x59, 0x71, 0xd6, 0xef, 0x66, 0x5d, 0x9f, 0x8f, 0x0a, 0x3f, 0xa8, 0x9f, 0x6d, 0xd5, 0xbb,
0x47, 0x59, 0xf7, 0xd8, 0x65, 0x45, 0xe1, 0x8b, 0x78, 0x58, 0xf8, 0x91, 0xc7, 0xb5, 0x31, 0x1f,
0x77, 0x86, 0xfd, 0x78, 0x9a, 0x8f, 0xcf, 0xb6, 0xd6, 0x6a, 0x57, 0xd2, 0x3a, 0x79, 0xee, 0x47,
0x9d, 0x51, 0xdf, 0xe7, 0xa7, 0x63, 0xef, 0xc6, 0xef, 0x05, 0x84, 0x68, 0x48, 0x84, 0x10, 0x88,
0x09, 0x9a, 0xeb, 0xfa, 0xc3, 0x6c, 0xb5, 0xb2, 0x5e, 0xd9, 0xbc, 0xf3, 0xfc, 0x59, 0x7c, 0x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