No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

211 líneas
9.6 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/servicecontrol/v1/check_error.proto
  3. package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // Error codes for Check responses.
  18. type CheckError_Code int32
  19. const (
  20. // This is never used in `CheckResponse`.
  21. CheckError_ERROR_CODE_UNSPECIFIED CheckError_Code = 0
  22. // The consumer's project id was not found.
  23. // Same as [google.rpc.Code.NOT_FOUND][].
  24. CheckError_NOT_FOUND CheckError_Code = 5
  25. // The consumer doesn't have access to the specified resource.
  26. // Same as [google.rpc.Code.PERMISSION_DENIED][].
  27. CheckError_PERMISSION_DENIED CheckError_Code = 7
  28. // Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
  29. CheckError_RESOURCE_EXHAUSTED CheckError_Code = 8
  30. // The consumer hasn't activated the service.
  31. CheckError_SERVICE_NOT_ACTIVATED CheckError_Code = 104
  32. // The consumer cannot access the service because billing is disabled.
  33. CheckError_BILLING_DISABLED CheckError_Code = 107
  34. // The consumer's project has been marked as deleted (soft deletion).
  35. CheckError_PROJECT_DELETED CheckError_Code = 108
  36. // The consumer's project number or id does not represent a valid project.
  37. CheckError_PROJECT_INVALID CheckError_Code = 114
  38. // The IP address of the consumer is invalid for the specific consumer
  39. // project.
  40. CheckError_IP_ADDRESS_BLOCKED CheckError_Code = 109
  41. // The referer address of the consumer request is invalid for the specific
  42. // consumer project.
  43. CheckError_REFERER_BLOCKED CheckError_Code = 110
  44. // The client application of the consumer request is invalid for the
  45. // specific consumer project.
  46. CheckError_CLIENT_APP_BLOCKED CheckError_Code = 111
  47. // The API targeted by this request is invalid for the specified consumer
  48. // project.
  49. CheckError_API_TARGET_BLOCKED CheckError_Code = 122
  50. // The consumer's API key is invalid.
  51. CheckError_API_KEY_INVALID CheckError_Code = 105
  52. // The consumer's API Key has expired.
  53. CheckError_API_KEY_EXPIRED CheckError_Code = 112
  54. // The consumer's API Key was not found in config record.
  55. CheckError_API_KEY_NOT_FOUND CheckError_Code = 113
  56. // The backend server for looking up project id/number is unavailable.
  57. CheckError_NAMESPACE_LOOKUP_UNAVAILABLE CheckError_Code = 300
  58. // The backend server for checking service status is unavailable.
  59. CheckError_SERVICE_STATUS_UNAVAILABLE CheckError_Code = 301
  60. // The backend server for checking billing status is unavailable.
  61. CheckError_BILLING_STATUS_UNAVAILABLE CheckError_Code = 302
  62. )
  63. var CheckError_Code_name = map[int32]string{
  64. 0: "ERROR_CODE_UNSPECIFIED",
  65. 5: "NOT_FOUND",
  66. 7: "PERMISSION_DENIED",
  67. 8: "RESOURCE_EXHAUSTED",
  68. 104: "SERVICE_NOT_ACTIVATED",
  69. 107: "BILLING_DISABLED",
  70. 108: "PROJECT_DELETED",
  71. 114: "PROJECT_INVALID",
  72. 109: "IP_ADDRESS_BLOCKED",
  73. 110: "REFERER_BLOCKED",
  74. 111: "CLIENT_APP_BLOCKED",
  75. 122: "API_TARGET_BLOCKED",
  76. 105: "API_KEY_INVALID",
  77. 112: "API_KEY_EXPIRED",
  78. 113: "API_KEY_NOT_FOUND",
  79. 300: "NAMESPACE_LOOKUP_UNAVAILABLE",
  80. 301: "SERVICE_STATUS_UNAVAILABLE",
  81. 302: "BILLING_STATUS_UNAVAILABLE",
  82. }
  83. var CheckError_Code_value = map[string]int32{
  84. "ERROR_CODE_UNSPECIFIED": 0,
  85. "NOT_FOUND": 5,
  86. "PERMISSION_DENIED": 7,
  87. "RESOURCE_EXHAUSTED": 8,
  88. "SERVICE_NOT_ACTIVATED": 104,
  89. "BILLING_DISABLED": 107,
  90. "PROJECT_DELETED": 108,
  91. "PROJECT_INVALID": 114,
  92. "IP_ADDRESS_BLOCKED": 109,
  93. "REFERER_BLOCKED": 110,
  94. "CLIENT_APP_BLOCKED": 111,
  95. "API_TARGET_BLOCKED": 122,
  96. "API_KEY_INVALID": 105,
  97. "API_KEY_EXPIRED": 112,
  98. "API_KEY_NOT_FOUND": 113,
  99. "NAMESPACE_LOOKUP_UNAVAILABLE": 300,
  100. "SERVICE_STATUS_UNAVAILABLE": 301,
  101. "BILLING_STATUS_UNAVAILABLE": 302,
  102. }
  103. func (x CheckError_Code) String() string {
  104. return proto.EnumName(CheckError_Code_name, int32(x))
  105. }
  106. func (CheckError_Code) EnumDescriptor() ([]byte, []int) {
  107. return fileDescriptor_check_error_2ee8d2b0b593f635, []int{0, 0}
  108. }
  109. // Defines the errors to be returned in
  110. // [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors].
  111. type CheckError struct {
  112. // The error code.
  113. Code CheckError_Code `protobuf:"varint,1,opt,name=code,proto3,enum=google.api.servicecontrol.v1.CheckError_Code" json:"code,omitempty"`
  114. // Free-form text providing details on the error cause of the error.
  115. Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
  116. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  117. XXX_unrecognized []byte `json:"-"`
  118. XXX_sizecache int32 `json:"-"`
  119. }
  120. func (m *CheckError) Reset() { *m = CheckError{} }
  121. func (m *CheckError) String() string { return proto.CompactTextString(m) }
  122. func (*CheckError) ProtoMessage() {}
  123. func (*CheckError) Descriptor() ([]byte, []int) {
  124. return fileDescriptor_check_error_2ee8d2b0b593f635, []int{0}
  125. }
  126. func (m *CheckError) XXX_Unmarshal(b []byte) error {
  127. return xxx_messageInfo_CheckError.Unmarshal(m, b)
  128. }
  129. func (m *CheckError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  130. return xxx_messageInfo_CheckError.Marshal(b, m, deterministic)
  131. }
  132. func (dst *CheckError) XXX_Merge(src proto.Message) {
  133. xxx_messageInfo_CheckError.Merge(dst, src)
  134. }
  135. func (m *CheckError) XXX_Size() int {
  136. return xxx_messageInfo_CheckError.Size(m)
  137. }
  138. func (m *CheckError) XXX_DiscardUnknown() {
  139. xxx_messageInfo_CheckError.DiscardUnknown(m)
  140. }
  141. var xxx_messageInfo_CheckError proto.InternalMessageInfo
  142. func (m *CheckError) GetCode() CheckError_Code {
  143. if m != nil {
  144. return m.Code
  145. }
  146. return CheckError_ERROR_CODE_UNSPECIFIED
  147. }
  148. func (m *CheckError) GetDetail() string {
  149. if m != nil {
  150. return m.Detail
  151. }
  152. return ""
  153. }
  154. func init() {
  155. proto.RegisterType((*CheckError)(nil), "google.api.servicecontrol.v1.CheckError")
  156. proto.RegisterEnum("google.api.servicecontrol.v1.CheckError_Code", CheckError_Code_name, CheckError_Code_value)
  157. }
  158. func init() {
  159. proto.RegisterFile("google/api/servicecontrol/v1/check_error.proto", fileDescriptor_check_error_2ee8d2b0b593f635)
  160. }
  161. var fileDescriptor_check_error_2ee8d2b0b593f635 = []byte{
  162. // 493 bytes of a gzipped FileDescriptorProto
  163. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x4f, 0x6f, 0xd3, 0x30,
  164. 0x18, 0xc6, 0x49, 0x29, 0x83, 0x59, 0x82, 0x05, 0xc3, 0xaa, 0x51, 0x55, 0xa2, 0xec, 0xb4, 0x0b,
  165. 0x89, 0x06, 0x47, 0x4e, 0xae, 0xfd, 0x76, 0x78, 0xcd, 0x12, 0xcb, 0x4e, 0xaa, 0xc1, 0xc5, 0x0a,
  166. 0x69, 0x94, 0x45, 0xeb, 0xe2, 0x92, 0x56, 0x3d, 0x70, 0xe6, 0xc3, 0x70, 0x00, 0x3e, 0x02, 0x9f,
  167. 0x8b, 0xe3, 0xe4, 0x76, 0xfd, 0x27, 0x4d, 0x3b, 0xe6, 0xe7, 0xdf, 0xfb, 0xbc, 0xca, 0xab, 0x07,
  168. 0x79, 0x85, 0x31, 0xc5, 0x38, 0xf7, 0xd3, 0x49, 0xe9, 0x4f, 0xf3, 0x7a, 0x5e, 0x66, 0x79, 0x66,
  169. 0xaa, 0x59, 0x6d, 0xc6, 0xfe, 0xfc, 0xd4, 0xcf, 0xae, 0xf2, 0xec, 0x5a, 0xe7, 0x75, 0x6d, 0x6a,
  170. 0x6f, 0x52, 0x9b, 0x99, 0xc1, 0x9d, 0xa5, 0xef, 0xa5, 0x93, 0xd2, 0xdb, 0xf5, 0xbd, 0xf9, 0x69,
  171. 0xbb, 0xb3, 0x95, 0x96, 0x56, 0x95, 0x99, 0xa5, 0xb3, 0xd2, 0x54, 0xd3, 0xe5, 0xec, 0xf1, 0xaf,
  172. 0x26, 0x42, 0xd4, 0x26, 0x82, 0x0d, 0xc4, 0x04, 0x35, 0x33, 0x33, 0xca, 0x8f, 0x9c, 0xae, 0x73,
  173. 0xf2, 0xe2, 0xc3, 0x7b, 0xef, 0xa1, 0x64, 0x6f, 0x33, 0xe7, 0x51, 0x33, 0xca, 0xe5, 0x62, 0x14,
  174. 0xb7, 0xd0, 0xde, 0x28, 0x9f, 0xa5, 0xe5, 0xf8, 0xa8, 0xd1, 0x75, 0x4e, 0xf6, 0xe5, 0xdd, 0xd7,
  175. 0xf1, 0xbf, 0xc7, 0xa8, 0x69, 0x35, 0xdc, 0x46, 0x2d, 0x90, 0x32, 0x92, 0x9a, 0x46, 0x0c, 0x74,
  176. 0x12, 0x2a, 0x01, 0x94, 0xf7, 0x39, 0x30, 0xf7, 0x11, 0x7e, 0x8e, 0xf6, 0xc3, 0x28, 0xd6, 0xfd,
  177. 0x28, 0x09, 0x99, 0xfb, 0x04, 0x1f, 0xa2, 0x97, 0x02, 0xe4, 0x05, 0x57, 0x8a, 0x47, 0xa1, 0x66,
  178. 0x10, 0x5a, 0xeb, 0x29, 0x6e, 0x21, 0x2c, 0x41, 0x45, 0x89, 0xa4, 0xa0, 0xe1, 0xf2, 0x33, 0x49,
  179. 0x54, 0x0c, 0xcc, 0x7d, 0x86, 0xdf, 0xa0, 0x43, 0x05, 0x72, 0xc8, 0x29, 0x68, 0x9b, 0x42, 0x68,
  180. 0xcc, 0x87, 0xc4, 0x3e, 0x5d, 0xe1, 0xd7, 0xc8, 0xed, 0xf1, 0x20, 0xe0, 0xe1, 0x99, 0x66, 0x5c,
  181. 0x91, 0x5e, 0x00, 0xcc, 0xbd, 0xc6, 0xaf, 0xd0, 0x81, 0x90, 0xd1, 0x39, 0xd0, 0x58, 0x33, 0x08,
  182. 0xc0, 0xaa, 0xe3, 0x6d, 0xc8, 0xc3, 0x21, 0x09, 0x38, 0x73, 0x6b, 0xbb, 0x92, 0x0b, 0x4d, 0x18,
  183. 0x93, 0xa0, 0x94, 0xee, 0x05, 0x11, 0x1d, 0x00, 0x73, 0x6f, 0xac, 0x2c, 0xa1, 0x0f, 0x12, 0xe4,
  184. 0x1a, 0x56, 0x56, 0xa6, 0x01, 0x87, 0x30, 0xd6, 0x44, 0x88, 0x35, 0x37, 0x96, 0x13, 0xc1, 0x75,
  185. 0x4c, 0xe4, 0x19, 0xc4, 0x6b, 0xfe, 0xc3, 0x86, 0x58, 0x3e, 0x80, 0x2f, 0xeb, 0x8d, 0xe5, 0x36,
  186. 0x84, 0x4b, 0xc1, 0x25, 0x30, 0x77, 0x62, 0x0f, 0xb2, 0x82, 0x9b, 0x3b, 0x7d, 0xc7, 0xef, 0x50,
  187. 0x27, 0x24, 0x17, 0xa0, 0x04, 0xa1, 0xa0, 0x83, 0x28, 0x1a, 0x24, 0x42, 0x27, 0x21, 0x19, 0x12,
  188. 0x1e, 0xd8, 0x5f, 0x75, 0x7f, 0x37, 0xf0, 0x5b, 0xd4, 0x5e, 0xdd, 0x46, 0xc5, 0x24, 0x4e, 0xd4,
  189. 0x8e, 0xf0, 0x67, 0x21, 0xac, 0x2e, 0x74, 0x8f, 0xf0, 0xb7, 0xd1, 0xfb, 0xe9, 0xa0, 0x6e, 0x66,
  190. 0x6e, 0x1e, 0xec, 0x44, 0xef, 0x60, 0x53, 0x0a, 0x61, 0x0b, 0x26, 0x9c, 0xaf, 0xe7, 0x77, 0x03,
  191. 0x85, 0x19, 0xa7, 0x55, 0xe1, 0x99, 0xba, 0xf0, 0x8b, 0xbc, 0x5a, 0xd4, 0xcf, 0x5f, 0x3e, 0xa5,
  192. 0x93, 0x72, 0x7a, 0x7f, 0xdb, 0x3f, 0xed, 0x92, 0xff, 0x8e, 0xf3, 0x6d, 0x6f, 0x31, 0xf9, 0xf1,
  193. 0x36, 0x00, 0x00, 0xff, 0xff, 0x40, 0xf4, 0xc8, 0x44, 0x26, 0x03, 0x00, 0x00,
  194. }