1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
|
// Code generated by protoc-gen-go.
// source: google.golang.org/genproto/googleapis/api/servicecontrol/v1/check_error.proto
// DO NOT EDIT!
/*
Package google_api_servicecontrol_v1 is a generated protocol buffer package.
It is generated from these files:
google.golang.org/genproto/googleapis/api/servicecontrol/v1/check_error.proto
google.golang.org/genproto/googleapis/api/servicecontrol/v1/distribution.proto
google.golang.org/genproto/googleapis/api/servicecontrol/v1/log_entry.proto
google.golang.org/genproto/googleapis/api/servicecontrol/v1/metric_value.proto
google.golang.org/genproto/googleapis/api/servicecontrol/v1/operation.proto
google.golang.org/genproto/googleapis/api/servicecontrol/v1/service_controller.proto
It has these top-level messages:
CheckError
Distribution
LogEntry
MetricValue
MetricValueSet
Operation
CheckRequest
CheckResponse
ReportRequest
ReportResponse
*/
package google_api_servicecontrol_v1 // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/serviceconfig"
// 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 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 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 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 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
// 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
)
var CheckError_Code_name = map[int32]string{
0: "ERROR_CODE_UNSPECIFIED",
5: "NOT_FOUND",
7: "PERMISSION_DENIED",
8: "RESOURCE_EXHAUSTED",
104: "SERVICE_NOT_ACTIVATED",
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",
300: "NAMESPACE_LOOKUP_UNAVAILABLE",
301: "SERVICE_STATUS_UNAVAILABLE",
302: "BILLING_STATUS_UNAVAILABLE",
}
var CheckError_Code_value = map[string]int32{
"ERROR_CODE_UNSPECIFIED": 0,
"NOT_FOUND": 5,
"PERMISSION_DENIED": 7,
"RESOURCE_EXHAUSTED": 8,
"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_KEY_INVALID": 105,
"API_KEY_EXPIRED": 112,
"API_KEY_NOT_FOUND": 113,
"NAMESPACE_LOOKUP_UNAVAILABLE": 300,
"SERVICE_STATUS_UNAVAILABLE": 301,
"BILLING_STATUS_UNAVAILABLE": 302,
}
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"`
// Free-form text providing details on the error cause of the error.
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.golang.org/genproto/googleapis/api/servicecontrol/v1/check_error.proto", fileDescriptor0)
}
var fileDescriptor0 = []byte{
// 478 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x92, 0x4f, 0x6f, 0xd3, 0x3e,
0x18, 0xc7, 0x7f, 0xe9, 0xaf, 0x0c, 0x66, 0x09, 0x16, 0x0c, 0xab, 0x46, 0x35, 0x89, 0xb2, 0xd3,
0x2e, 0x24, 0x1a, 0x5c, 0xb8, 0xba, 0xf6, 0x53, 0x30, 0x4d, 0x63, 0xcb, 0x4e, 0xaa, 0x71, 0xb2,
0x42, 0x1a, 0xb2, 0x68, 0x5d, 0x5c, 0xd2, 0xa8, 0xaf, 0x83, 0x57, 0xc1, 0x09, 0x78, 0x7d, 0x1c,
0x91, 0xbb, 0xb5, 0xdd, 0x24, 0xb4, 0x03, 0x47, 0x7f, 0x9f, 0xcf, 0xf3, 0x7c, 0xfd, 0xfc, 0x41,
0x93, 0xd2, 0xda, 0x72, 0x5e, 0x04, 0xa5, 0x9d, 0x67, 0x75, 0x19, 0xd8, 0xa6, 0x0c, 0xcb, 0xa2,
0x5e, 0x34, 0xb6, 0xb5, 0xe1, 0x75, 0x28, 0x5b, 0x54, 0xcb, 0x30, 0x5b, 0x54, 0xe1, 0xb2, 0x68,
0x56, 0x55, 0x5e, 0xe4, 0xb6, 0x6e, 0x1b, 0x3b, 0x0f, 0x57, 0x67, 0x61, 0x7e, 0x51, 0xe4, 0x97,
0xa6, 0x68, 0x1a, 0xdb, 0x04, 0xeb, 0x14, 0x7c, 0x7c, 0x53, 0x2e, 0x5b, 0x54, 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