// Code generated by protoc-gen-go.
// source: google/api/servicecontrol/v1/check_error.proto
// DO NOT EDIT!

/*
Package servicecontrol is a generated protocol buffer package.

It is generated from these files:
	google/api/servicecontrol/v1/check_error.proto
	google/api/servicecontrol/v1/distribution.proto
	google/api/servicecontrol/v1/log_entry.proto
	google/api/servicecontrol/v1/metric_value.proto
	google/api/servicecontrol/v1/operation.proto
	google/api/servicecontrol/v1/quota_properties.proto
	google/api/servicecontrol/v1/service_controller.proto

It has these top-level messages:
	CheckError
	Distribution
	LogEntry
	MetricValue
	MetricValueSet
	Operation
	QuotaProperties
	CheckRequest
	CheckResponse
	ReportRequest
	ReportResponse
*/
package servicecontrol

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google/api"

// 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.ProtoPackageIsVersion2 // please upgrade the proto package

// Error codes for the check errors.
type CheckError_Code int32

const (
	// This is never used in `CheckResponse`.
	CheckError_ERROR_CODE_UNSPECIFIED CheckError_Code = 0
	// The consumer's project id is 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
	// Budget check failed.
	CheckError_BUDGET_EXCEEDED CheckError_Code = 100
	// The request has been flagged as a DoS attack.
	CheckError_DENIAL_OF_SERVICE_DETECTED CheckError_Code = 101
	// The request should be rejected in order to protect the service from
	// being overloaded.
	CheckError_LOAD_SHEDDING CheckError_Code = 102
	// 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 due to visibility configuration.
	CheckError_VISIBILITY_DENIED CheckError_Code = 106
	// The consumer cannot access the service because billing is disabled.
	CheckError_BILLING_DISABLED CheckError_Code = 107
	// Consumer's project has been marked as deleted (soft deletion).
	CheckError_PROJECT_DELETED CheckError_Code = 108
	// Consumer's project number or id does not represent a valid project.
	CheckError_PROJECT_INVALID CheckError_Code = 114
	// Consumer's project does not allow requests from this IP address.
	CheckError_IP_ADDRESS_BLOCKED CheckError_Code = 109
	// Consumer's project does not allow requests from this referer address.
	CheckError_REFERER_BLOCKED CheckError_Code = 110
	// Consumer's project does not allow requests from this client application.
	CheckError_CLIENT_APP_BLOCKED CheckError_Code = 111
	// The consumer's API key is invalid.
	CheckError_API_KEY_INVALID CheckError_Code = 105
	// Consumer's API Key has expired.
	CheckError_API_KEY_EXPIRED CheckError_Code = 112
	// Consumer's API Key not found in config record.
	CheckError_API_KEY_NOT_FOUND CheckError_Code = 113
	// Consumer's spatula header is invalid.
	CheckError_SPATULA_HEADER_INVALID CheckError_Code = 115
	// 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 quota check feature is temporarily unavailable:
	//  Could be due to either internal config error or server error
	CheckError_QUOTA_CHECK_UNAVAILABLE CheckError_Code = 303
)

var CheckError_Code_name = map[int32]string{
	0:   "ERROR_CODE_UNSPECIFIED",
	5:   "NOT_FOUND",
	7:   "PERMISSION_DENIED",
	8:   "RESOURCE_EXHAUSTED",
	100: "BUDGET_EXCEEDED",
	101: "DENIAL_OF_SERVICE_DETECTED",
	102: "LOAD_SHEDDING",
	103: "ABUSER_DETECTED",
	104: "SERVICE_NOT_ACTIVATED",
	106: "VISIBILITY_DENIED",
	107: "BILLING_DISABLED",
	108: "PROJECT_DELETED",
	114: "PROJECT_INVALID",
	109: "IP_ADDRESS_BLOCKED",
	110: "REFERER_BLOCKED",
	111: "CLIENT_APP_BLOCKED",
	105: "API_KEY_INVALID",
	112: "API_KEY_EXPIRED",
	113: "API_KEY_NOT_FOUND",
	115: "SPATULA_HEADER_INVALID",
	300: "NAMESPACE_LOOKUP_UNAVAILABLE",
	301: "SERVICE_STATUS_UNAVAILABLE",
	302: "BILLING_STATUS_UNAVAILABLE",
	303: "QUOTA_CHECK_UNAVAILABLE",
}
var CheckError_Code_value = map[string]int32{
	"ERROR_CODE_UNSPECIFIED":       0,
	"NOT_FOUND":                    5,
	"PERMISSION_DENIED":            7,
	"RESOURCE_EXHAUSTED":           8,
	"BUDGET_EXCEEDED":              100,
	"DENIAL_OF_SERVICE_DETECTED":   101,
	"LOAD_SHEDDING":                102,
	"ABUSER_DETECTED":              103,
	"SERVICE_NOT_ACTIVATED":        104,
	"VISIBILITY_DENIED":            106,
	"BILLING_DISABLED":             107,
	"PROJECT_DELETED":              108,
	"PROJECT_INVALID":              114,
	"IP_ADDRESS_BLOCKED":           109,
	"REFERER_BLOCKED":              110,
	"CLIENT_APP_BLOCKED":           111,
	"API_KEY_INVALID":              105,
	"API_KEY_EXPIRED":              112,
	"API_KEY_NOT_FOUND":            113,
	"SPATULA_HEADER_INVALID":       115,
	"NAMESPACE_LOOKUP_UNAVAILABLE": 300,
	"SERVICE_STATUS_UNAVAILABLE":   301,
	"BILLING_STATUS_UNAVAILABLE":   302,
	"QUOTA_CHECK_UNAVAILABLE":      303,
}

func (x CheckError_Code) String() string {
	return proto.EnumName(CheckError_Code_name, int32(x))
}
func (CheckError_Code) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []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,enum=google.api.servicecontrol.v1.CheckError_Code" json:"code,omitempty"`
	// The error detail.
	//
	Detail string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"`
}

func (m *CheckError) Reset()                    { *m = CheckError{} }
func (m *CheckError) String() string            { return proto.CompactTextString(m) }
func (*CheckError) ProtoMessage()               {}
func (*CheckError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }

func init() {
	proto.RegisterType((*CheckError)(nil), "google.api.servicecontrol.v1.CheckError")
	proto.RegisterEnum("google.api.servicecontrol.v1.CheckError_Code", CheckError_Code_name, CheckError_Code_value)
}

func init() { proto.RegisterFile("google/api/servicecontrol/v1/check_error.proto", fileDescriptor0) }

var fileDescriptor0 = []byte{
	// 549 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x93, 0xcf, 0x4e, 0x1b, 0x3b,
	0x14, 0x87, 0xef, 0x44, 0xc0, 0x2d, 0x96, 0x28, 0x83, 0x5b, 0x28, 0x8d, 0xa2, 0x96, 0xb2, 0x62,
	0xd3, 0x89, 0x68, 0x37, 0xdd, 0x7a, 0xec, 0x13, 0xe2, 0xc6, 0x8c, 0x5d, 0xdb, 0x13, 0xc1, 0xca,
	0x4a, 0x27, 0x53, 0x98, 0x12, 0xe2, 0x74, 0x88, 0x78, 0xaa, 0xfe, 0x79, 0x83, 0x3e, 0x45, 0x1f,
	0xa6, 0xcb, 0xca, 0xa1, 0x49, 0x88, 0x54, 0xb1, 0x9c, 0xe3, 0xef, 0xf7, 0xe9, 0x1c, 0xfb, 0x0c,
	0x4a, 0x2e, 0xbc, 0xbf, 0x18, 0x95, 0xed, 0xc1, 0xa4, 0x6a, 0xdf, 0x94, 0xf5, 0x6d, 0x55, 0x94,
	0x85, 0x1f, 0x4f, 0x6b, 0x3f, 0x6a, 0xdf, 0x1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