1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/servicecontrol/v1/check_error.proto
5 Package servicecontrol is a generated protocol buffer package.
7 It is generated from these files:
8 google/api/servicecontrol/v1/check_error.proto
9 google/api/servicecontrol/v1/distribution.proto
10 google/api/servicecontrol/v1/log_entry.proto
11 google/api/servicecontrol/v1/metric_value.proto
12 google/api/servicecontrol/v1/operation.proto
13 google/api/servicecontrol/v1/service_controller.proto
15 It has these top-level messages:
27 package servicecontrol
29 import proto "github.com/golang/protobuf/proto"
32 import _ "google.golang.org/genproto/googleapis/api/annotations"
34 // Reference imports to suppress errors if they are not otherwise used.
39 // This is a compile-time assertion to ensure that this generated file
40 // is compatible with the proto package it is being compiled against.
41 // A compilation error at this line likely means your copy of the
42 // proto package needs to be updated.
43 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
45 // Error codes for Check responses.
46 type CheckError_Code int32
49 // This is never used in `CheckResponse`.
50 CheckError_ERROR_CODE_UNSPECIFIED CheckError_Code = 0
51 // The consumer's project id was not found.
52 // Same as [google.rpc.Code.NOT_FOUND][].
53 CheckError_NOT_FOUND CheckError_Code = 5
54 // The consumer doesn't have access to the specified resource.
55 // Same as [google.rpc.Code.PERMISSION_DENIED][].
56 CheckError_PERMISSION_DENIED CheckError_Code = 7
57 // Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
58 CheckError_RESOURCE_EXHAUSTED CheckError_Code = 8
59 // The consumer hasn't activated the service.
60 CheckError_SERVICE_NOT_ACTIVATED CheckError_Code = 104
61 // The consumer cannot access the service because billing is disabled.
62 CheckError_BILLING_DISABLED CheckError_Code = 107
63 // The consumer's project has been marked as deleted (soft deletion).
64 CheckError_PROJECT_DELETED CheckError_Code = 108
65 // The consumer's project number or id does not represent a valid project.
66 CheckError_PROJECT_INVALID CheckError_Code = 114
67 // The IP address of the consumer is invalid for the specific consumer
69 CheckError_IP_ADDRESS_BLOCKED CheckError_Code = 109
70 // The referer address of the consumer request is invalid for the specific
72 CheckError_REFERER_BLOCKED CheckError_Code = 110
73 // The client application of the consumer request is invalid for the
74 // specific consumer project.
75 CheckError_CLIENT_APP_BLOCKED CheckError_Code = 111
76 // The consumer's API key is invalid.
77 CheckError_API_KEY_INVALID CheckError_Code = 105
78 // The consumer's API Key has expired.
79 CheckError_API_KEY_EXPIRED CheckError_Code = 112
80 // The consumer's API Key was not found in config record.
81 CheckError_API_KEY_NOT_FOUND CheckError_Code = 113
82 // The backend server for looking up project id/number is unavailable.
83 CheckError_NAMESPACE_LOOKUP_UNAVAILABLE CheckError_Code = 300
84 // The backend server for checking service status is unavailable.
85 CheckError_SERVICE_STATUS_UNAVAILABLE CheckError_Code = 301
86 // The backend server for checking billing status is unavailable.
87 CheckError_BILLING_STATUS_UNAVAILABLE CheckError_Code = 302
90 var CheckError_Code_name = map[int32]string{
91 0: "ERROR_CODE_UNSPECIFIED",
93 7: "PERMISSION_DENIED",
94 8: "RESOURCE_EXHAUSTED",
95 104: "SERVICE_NOT_ACTIVATED",
96 107: "BILLING_DISABLED",
97 108: "PROJECT_DELETED",
98 114: "PROJECT_INVALID",
99 109: "IP_ADDRESS_BLOCKED",
100 110: "REFERER_BLOCKED",
101 111: "CLIENT_APP_BLOCKED",
102 105: "API_KEY_INVALID",
103 112: "API_KEY_EXPIRED",
104 113: "API_KEY_NOT_FOUND",
105 300: "NAMESPACE_LOOKUP_UNAVAILABLE",
106 301: "SERVICE_STATUS_UNAVAILABLE",
107 302: "BILLING_STATUS_UNAVAILABLE",
109 var CheckError_Code_value = map[string]int32{
110 "ERROR_CODE_UNSPECIFIED": 0,
112 "PERMISSION_DENIED": 7,
113 "RESOURCE_EXHAUSTED": 8,
114 "SERVICE_NOT_ACTIVATED": 104,
115 "BILLING_DISABLED": 107,
116 "PROJECT_DELETED": 108,
117 "PROJECT_INVALID": 114,
118 "IP_ADDRESS_BLOCKED": 109,
119 "REFERER_BLOCKED": 110,
120 "CLIENT_APP_BLOCKED": 111,
121 "API_KEY_INVALID": 105,
122 "API_KEY_EXPIRED": 112,
123 "API_KEY_NOT_FOUND": 113,
124 "NAMESPACE_LOOKUP_UNAVAILABLE": 300,
125 "SERVICE_STATUS_UNAVAILABLE": 301,
126 "BILLING_STATUS_UNAVAILABLE": 302,
129 func (x CheckError_Code) String() string {
130 return proto.EnumName(CheckError_Code_name, int32(x))
132 func (CheckError_Code) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
134 // Defines the errors to be returned in
135 // [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors].
136 type CheckError struct {
138 Code CheckError_Code `protobuf:"varint,1,opt,name=code,enum=google.api.servicecontrol.v1.CheckError_Code" json:"code,omitempty"`
139 // Free-form text providing details on the error cause of the error.
140 Detail string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"`
143 func (m *CheckError) Reset() { *m = CheckError{} }
144 func (m *CheckError) String() string { return proto.CompactTextString(m) }
145 func (*CheckError) ProtoMessage() {}
146 func (*CheckError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
148 func (m *CheckError) GetCode() CheckError_Code {
152 return CheckError_ERROR_CODE_UNSPECIFIED
155 func (m *CheckError) GetDetail() string {
163 proto.RegisterType((*CheckError)(nil), "google.api.servicecontrol.v1.CheckError")
164 proto.RegisterEnum("google.api.servicecontrol.v1.CheckError_Code", CheckError_Code_name, CheckError_Code_value)
167 func init() { proto.RegisterFile("google/api/servicecontrol/v1/check_error.proto", fileDescriptor0) }
169 var fileDescriptor0 = []byte{
170 // 484 bytes of a gzipped FileDescriptorProto
171 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xdd, 0x6e, 0xd3, 0x3e,
172 0x18, 0xc6, 0xff, 0xe9, 0xbf, 0x0c, 0x66, 0x09, 0x16, 0x0c, 0xab, 0x46, 0x55, 0x89, 0xb2, 0xa3,
173 0x9d, 0x90, 0x68, 0x70,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b9, 0xff, 0xe1, 0xa7, 0xe8, 0x30, 0x8c, 0x62, 0x3d, 0x8c,
185 0x92, 0x90, 0xb9, 0x8f, 0xf0, 0x31, 0x7a, 0x2e, 0x40, 0x5e, 0x72, 0xa5, 0x78, 0x14, 0x6a, 0x06,
186 0xa1, 0xa5, 0x1e, 0xe3, 0x0e, 0xc2, 0x12, 0x54, 0x94, 0x48, 0x0a, 0x1a, 0xae, 0x3e, 0x91, 0x44,
187 0xc5, 0xc0, 0xdc, 0x27, 0xf8, 0x15, 0x3a, 0x56, 0x20, 0xc7, 0x9c, 0x82, 0xb6, 0x29, 0x84, 0xc6,
188 0x7c, 0x4c, 0x6c, 0xe9, 0x1a, 0xbf, 0x44, 0xee, 0x80, 0x07, 0x01, 0x0f, 0x3f, 0x6a, 0xc6, 0x15,
189 0x19, 0x04, 0xc0, 0xdc, 0x1b, 0xfc, 0x02, 0x1d, 0x09, 0x19, 0x5d, 0x00, 0x8d, 0x35, 0x83, 0x00,
190 0x2c, 0x3a, 0xdd, 0x15, 0x79, 0x38, 0x26, 0x01, 0x67, 0x6e, 0x6d, 0xbf, 0xe4, 0x42, 0x13, 0xc6,
191 0x24, 0x28, 0xa5, 0x07, 0x41, 0x44, 0x47, 0xc0, 0xdc, 0x5b, 0x0b, 0x4b, 0x18, 0x82, 0x04, 0xb9,
192 0x11, 0x2b, 0x0b, 0xd3, 0x80, 0x43, 0x18, 0x6b, 0x22, 0xc4, 0x46, 0x37, 0x16, 0x26, 0x82, 0xeb,
193 0x11, 0x7c, 0xde, 0x24, 0x97, 0xbb, 0x22, 0x5c, 0x09, 0x2e, 0x81, 0xb9, 0x33, 0xdb, 0xf8, 0x5a,
194 0xdc, 0xce, 0xe3, 0x1b, 0x7e, 0x83, 0x7a, 0x21, 0xb9, 0x04, 0x25, 0x08, 0x05, 0x1d, 0x44, 0xd1,
195 0x28, 0x11, 0x3a, 0x09, 0xc9, 0x98, 0xf0, 0xc0, 0xb6, 0xe4, 0xfe, 0x6a,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