errors.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.9
  5. // source: backend/common/errors.proto
  6. package commonPb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type Error_Code int32
  20. const (
  21. Error_OK Error_Code = 0
  22. // 鉴权
  23. Error_UNAUTHORIZED Error_Code = 10000
  24. // 通用请求错误
  25. Error_BAD_REQUEST Error_Code = 11000
  26. Error_INVALID_CONTENT_TYPE Error_Code = 11001
  27. Error_INVALID_CONTENT_ENCODING Error_Code = 11002
  28. Error_TOO_MANY_REQUESTS Error_Code = 11003
  29. // Config
  30. Error_INVALID_STORAGE_TYPE Error_Code = 11100
  31. // DataEvent
  32. Error_INVALID_DE_DATA Error_Code = 11200
  33. // Checkin
  34. Error_CHECKIN_REPEATED Error_Code = 20000
  35. // Course
  36. Error_COURSE_NOT_FOUND Error_Code = 21000
  37. // 课程没有权益
  38. Error_COURSE_NOT_INTEREST Error_Code = 21001
  39. // Recommend
  40. Error_MODULE_NOT_FOUND Error_Code = 22000
  41. // User Course
  42. Error_USER_COURSE_ALREADY_ADDED Error_Code = 23000
  43. Error_USER_COURSE_NOT_FOUND Error_Code = 23001
  44. // PT
  45. Error_PT_LIMITED Error_Code = 24000
  46. // 无效的价格
  47. Error_INVALID_PRICE Error_Code = 24100
  48. // 无效的 product ID
  49. Error_INVALID_PRODUCT_ID Error_Code = 24101
  50. // 无效的订单号
  51. Error_INVALID_ORDER_NUMBER Error_Code = 24102
  52. // 无效的用户 ID
  53. Error_INVALID_USER_ID Error_Code = 24103
  54. // 无效的收据
  55. Error_INVALID_RECEIPT Error_Code = 24104
  56. // 异常的 iOS 收据,需要客户端 check 和重试
  57. Error_EMPTY_IOS_RECEIPT Error_Code = 24105
  58. // UserPlan 相关
  59. // 免费用户限制 plan 课程数量
  60. Error_USER_PLAN_LIMITED_COURSE_COUNT Error_Code = 24300
  61. // ========= SYSTEM =========
  62. // 服务自身错误
  63. Error_INTERNAL_ERROR Error_Code = 90000
  64. // JSONPB encoding/decoding with error
  65. Error_JSONPB_ERROR Error_Code = 90100
  66. // JSON encoding/decoding with error
  67. Error_JSON_ERROR Error_Code = 90101
  68. // PB encoding/decoding with error
  69. Error_PB_ERROR Error_Code = 90102
  70. // 依赖服务错误
  71. Error_EXTERNAL_ERROR Error_Code = 91000
  72. )
  73. // Enum value maps for Error_Code.
  74. var (
  75. Error_Code_name = map[int32]string{
  76. 0: "OK",
  77. 10000: "UNAUTHORIZED",
  78. 11000: "BAD_REQUEST",
  79. 11001: "INVALID_CONTENT_TYPE",
  80. 11002: "INVALID_CONTENT_ENCODING",
  81. 11003: "TOO_MANY_REQUESTS",
  82. 11100: "INVALID_STORAGE_TYPE",
  83. 11200: "INVALID_DE_DATA",
  84. 20000: "CHECKIN_REPEATED",
  85. 21000: "COURSE_NOT_FOUND",
  86. 21001: "COURSE_NOT_INTEREST",
  87. 22000: "MODULE_NOT_FOUND",
  88. 23000: "USER_COURSE_ALREADY_ADDED",
  89. 23001: "USER_COURSE_NOT_FOUND",
  90. 24000: "PT_LIMITED",
  91. 24100: "INVALID_PRICE",
  92. 24101: "INVALID_PRODUCT_ID",
  93. 24102: "INVALID_ORDER_NUMBER",
  94. 24103: "INVALID_USER_ID",
  95. 24104: "INVALID_RECEIPT",
  96. 24105: "EMPTY_IOS_RECEIPT",
  97. 24300: "USER_PLAN_LIMITED_COURSE_COUNT",
  98. 90000: "INTERNAL_ERROR",
  99. 90100: "JSONPB_ERROR",
  100. 90101: "JSON_ERROR",
  101. 90102: "PB_ERROR",
  102. 91000: "EXTERNAL_ERROR",
  103. }
  104. Error_Code_value = map[string]int32{
  105. "OK": 0,
  106. "UNAUTHORIZED": 10000,
  107. "BAD_REQUEST": 11000,
  108. "INVALID_CONTENT_TYPE": 11001,
  109. "INVALID_CONTENT_ENCODING": 11002,
  110. "TOO_MANY_REQUESTS": 11003,
  111. "INVALID_STORAGE_TYPE": 11100,
  112. "INVALID_DE_DATA": 11200,
  113. "CHECKIN_REPEATED": 20000,
  114. "COURSE_NOT_FOUND": 21000,
  115. "COURSE_NOT_INTEREST": 21001,
  116. "MODULE_NOT_FOUND": 22000,
  117. "USER_COURSE_ALREADY_ADDED": 23000,
  118. "USER_COURSE_NOT_FOUND": 23001,
  119. "PT_LIMITED": 24000,
  120. "INVALID_PRICE": 24100,
  121. "INVALID_PRODUCT_ID": 24101,
  122. "INVALID_ORDER_NUMBER": 24102,
  123. "INVALID_USER_ID": 24103,
  124. "INVALID_RECEIPT": 24104,
  125. "EMPTY_IOS_RECEIPT": 24105,
  126. "USER_PLAN_LIMITED_COURSE_COUNT": 24300,
  127. "INTERNAL_ERROR": 90000,
  128. "JSONPB_ERROR": 90100,
  129. "JSON_ERROR": 90101,
  130. "PB_ERROR": 90102,
  131. "EXTERNAL_ERROR": 91000,
  132. }
  133. )
  134. func (x Error_Code) Enum() *Error_Code {
  135. p := new(Error_Code)
  136. *p = x
  137. return p
  138. }
  139. func (x Error_Code) String() string {
  140. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  141. }
  142. func (Error_Code) Descriptor() protoreflect.EnumDescriptor {
  143. return file_backend_common_errors_proto_enumTypes[0].Descriptor()
  144. }
  145. func (Error_Code) Type() protoreflect.EnumType {
  146. return &file_backend_common_errors_proto_enumTypes[0]
  147. }
  148. func (x Error_Code) Number() protoreflect.EnumNumber {
  149. return protoreflect.EnumNumber(x)
  150. }
  151. // Deprecated: Use Error_Code.Descriptor instead.
  152. func (Error_Code) EnumDescriptor() ([]byte, []int) {
  153. return file_backend_common_errors_proto_rawDescGZIP(), []int{0, 0}
  154. }
  155. type Error struct {
  156. state protoimpl.MessageState
  157. sizeCache protoimpl.SizeCache
  158. unknownFields protoimpl.UnknownFields
  159. // 业务错误码
  160. Code Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=backend.common.Error_Code" json:"code,omitempty"`
  161. // 错误信息
  162. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  163. // 补充错误信息
  164. // @optional
  165. Errors []string `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"`
  166. }
  167. func (x *Error) Reset() {
  168. *x = Error{}
  169. if protoimpl.UnsafeEnabled {
  170. mi := &file_backend_common_errors_proto_msgTypes[0]
  171. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  172. ms.StoreMessageInfo(mi)
  173. }
  174. }
  175. func (x *Error) String() string {
  176. return protoimpl.X.MessageStringOf(x)
  177. }
  178. func (*Error) ProtoMessage() {}
  179. func (x *Error) ProtoReflect() protoreflect.Message {
  180. mi := &file_backend_common_errors_proto_msgTypes[0]
  181. if protoimpl.UnsafeEnabled && x != nil {
  182. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  183. if ms.LoadMessageInfo() == nil {
  184. ms.StoreMessageInfo(mi)
  185. }
  186. return ms
  187. }
  188. return mi.MessageOf(x)
  189. }
  190. // Deprecated: Use Error.ProtoReflect.Descriptor instead.
  191. func (*Error) Descriptor() ([]byte, []int) {
  192. return file_backend_common_errors_proto_rawDescGZIP(), []int{0}
  193. }
  194. func (x *Error) GetCode() Error_Code {
  195. if x != nil {
  196. return x.Code
  197. }
  198. return Error_OK
  199. }
  200. func (x *Error) GetMsg() string {
  201. if x != nil {
  202. return x.Msg
  203. }
  204. return ""
  205. }
  206. func (x *Error) GetErrors() []string {
  207. if x != nil {
  208. return x.Errors
  209. }
  210. return nil
  211. }
  212. var File_backend_common_errors_proto protoreflect.FileDescriptor
  213. var file_backend_common_errors_proto_rawDesc = []byte{
  214. 0x0a, 0x1b, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  215. 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62,
  216. 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0xf5, 0x06,
  217. 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
  218. 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e,
  219. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x43, 0x6f, 0x64,
  220. 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02,
  221. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72,
  222. 0x6f, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72,
  223. 0x73, 0x22, 0x91, 0x06, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b,
  224. 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0c, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a,
  225. 0x45, 0x44, 0x10, 0x90, 0x4e, 0x12, 0x10, 0x0a, 0x0b, 0x42, 0x41, 0x44, 0x5f, 0x52, 0x45, 0x51,
  226. 0x55, 0x45, 0x53, 0x54, 0x10, 0xf8, 0x55, 0x12, 0x19, 0x0a, 0x14, 0x49, 0x4e, 0x56, 0x41, 0x4c,
  227. 0x49, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10,
  228. 0xf9, 0x55, 0x12, 0x1d, 0x0a, 0x18, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x43, 0x4f,
  229. 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x10, 0xfa,
  230. 0x55, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x4f, 0x4f, 0x5f, 0x4d, 0x41, 0x4e, 0x59, 0x5f, 0x52, 0x45,
  231. 0x51, 0x55, 0x45, 0x53, 0x54, 0x53, 0x10, 0xfb, 0x55, 0x12, 0x19, 0x0a, 0x14, 0x49, 0x4e, 0x56,
  232. 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50,
  233. 0x45, 0x10, 0xdc, 0x56, 0x12, 0x14, 0x0a, 0x0f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f,
  234. 0x44, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0xc0, 0x57, 0x12, 0x16, 0x0a, 0x10, 0x43, 0x48,
  235. 0x45, 0x43, 0x4b, 0x49, 0x4e, 0x5f, 0x52, 0x45, 0x50, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0xa0,
  236. 0x9c, 0x01, 0x12, 0x16, 0x0a, 0x10, 0x43, 0x4f, 0x55, 0x52, 0x53, 0x45, 0x5f, 0x4e, 0x4f, 0x54,
  237. 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x88, 0xa4, 0x01, 0x12, 0x19, 0x0a, 0x13, 0x43, 0x4f,
  238. 0x55, 0x52, 0x53, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x45, 0x53,
  239. 0x54, 0x10, 0x89, 0xa4, 0x01, 0x12, 0x16, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x55, 0x4c, 0x45, 0x5f,
  240. 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0xf0, 0xab, 0x01, 0x12, 0x1f, 0x0a,
  241. 0x19, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x55, 0x52, 0x53, 0x45, 0x5f, 0x41, 0x4c, 0x52,
  242. 0x45, 0x41, 0x44, 0x59, 0x5f, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10, 0xd8, 0xb3, 0x01, 0x12, 0x1b,
  243. 0x0a, 0x15, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x55, 0x52, 0x53, 0x45, 0x5f, 0x4e, 0x4f,
  244. 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0xd9, 0xb3, 0x01, 0x12, 0x10, 0x0a, 0x0a, 0x50,
  245. 0x54, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, 0xc0, 0xbb, 0x01, 0x12, 0x13, 0x0a,
  246. 0x0d, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x50, 0x52, 0x49, 0x43, 0x45, 0x10, 0xa4,
  247. 0xbc, 0x01, 0x12, 0x18, 0x0a, 0x12, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x50, 0x52,
  248. 0x4f, 0x44, 0x55, 0x43, 0x54, 0x5f, 0x49, 0x44, 0x10, 0xa5, 0xbc, 0x01, 0x12, 0x1a, 0x0a, 0x14,
  249. 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x4e, 0x55,
  250. 0x4d, 0x42, 0x45, 0x52, 0x10, 0xa6, 0xbc, 0x01, 0x12, 0x15, 0x0a, 0x0f, 0x49, 0x4e, 0x56, 0x41,
  251. 0x4c, 0x49, 0x44, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x49, 0x44, 0x10, 0xa7, 0xbc, 0x01, 0x12,
  252. 0x15, 0x0a, 0x0f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x52, 0x45, 0x43, 0x45, 0x49,
  253. 0x50, 0x54, 0x10, 0xa8, 0xbc, 0x01, 0x12, 0x17, 0x0a, 0x11, 0x45, 0x4d, 0x50, 0x54, 0x59, 0x5f,
  254. 0x49, 0x4f, 0x53, 0x5f, 0x52, 0x45, 0x43, 0x45, 0x49, 0x50, 0x54, 0x10, 0xa9, 0xbc, 0x01, 0x12,
  255. 0x24, 0x0a, 0x1e, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x50, 0x4c, 0x41, 0x4e, 0x5f, 0x4c, 0x49, 0x4d,
  256. 0x49, 0x54, 0x45, 0x44, 0x5f, 0x43, 0x4f, 0x55, 0x52, 0x53, 0x45, 0x5f, 0x43, 0x4f, 0x55, 0x4e,
  257. 0x54, 0x10, 0xec, 0xbd, 0x01, 0x12, 0x14, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41,
  258. 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x90, 0xbf, 0x05, 0x12, 0x12, 0x0a, 0x0c, 0x4a,
  259. 0x53, 0x4f, 0x4e, 0x50, 0x42, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0xf4, 0xbf, 0x05, 0x12,
  260. 0x10, 0x0a, 0x0a, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0xf5, 0xbf,
  261. 0x05, 0x12, 0x0e, 0x0a, 0x08, 0x50, 0x42, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0xf6, 0xbf,
  262. 0x05, 0x12, 0x14, 0x0a, 0x0e, 0x45, 0x58, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52,
  263. 0x52, 0x4f, 0x52, 0x10, 0xf8, 0xc6, 0x05, 0x22, 0x05, 0x08, 0x01, 0x10, 0x8f, 0x4e, 0x22, 0x06,
  264. 0x08, 0x91, 0x4e, 0x10, 0xf7, 0x55, 0x22, 0x06, 0x08, 0xfc, 0x55, 0x10, 0xdb, 0x56, 0x22, 0x06,
  265. 0x08, 0xdd, 0x56, 0x10, 0xbf, 0x57, 0x22, 0x07, 0x08, 0xc1, 0x57, 0x10, 0x9f, 0x9c, 0x01, 0x22,
  266. 0x08, 0x08, 0xa1, 0x9c, 0x01, 0x10, 0x87, 0xa4, 0x01, 0x22, 0x08, 0x08, 0x8a, 0xa4, 0x01, 0x10,
  267. 0xef, 0xab, 0x01, 0x22, 0x08, 0x08, 0xf1, 0xab, 0x01, 0x10, 0xd7, 0xb3, 0x01, 0x22, 0x08, 0x08,
  268. 0xda, 0xb3, 0x01, 0x10, 0xbf, 0xbb, 0x01, 0x22, 0x08, 0x08, 0xc1, 0xbb, 0x01, 0x10, 0xa3, 0xbc,
  269. 0x01, 0x22, 0x08, 0x08, 0xaa, 0xbc, 0x01, 0x10, 0xeb, 0xbd, 0x01, 0x22, 0x08, 0x08, 0xd0, 0xbe,
  270. 0x01, 0x10, 0x8f, 0xbf, 0x05, 0x22, 0x08, 0x08, 0x91, 0xbf, 0x05, 0x10, 0xf3, 0xbf, 0x05, 0x22,
  271. 0x08, 0x08, 0xf7, 0xbf, 0x05, 0x10, 0xf7, 0xc6, 0x05, 0x22, 0x0a, 0x08, 0xf9, 0xc6, 0x05, 0x10,
  272. 0xff, 0xff, 0xff, 0xff, 0x07, 0x42, 0x0c, 0x5a, 0x0a, 0x2e, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  273. 0x6e, 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  274. }
  275. var (
  276. file_backend_common_errors_proto_rawDescOnce sync.Once
  277. file_backend_common_errors_proto_rawDescData = file_backend_common_errors_proto_rawDesc
  278. )
  279. func file_backend_common_errors_proto_rawDescGZIP() []byte {
  280. file_backend_common_errors_proto_rawDescOnce.Do(func() {
  281. file_backend_common_errors_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_common_errors_proto_rawDescData)
  282. })
  283. return file_backend_common_errors_proto_rawDescData
  284. }
  285. var file_backend_common_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  286. var file_backend_common_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  287. var file_backend_common_errors_proto_goTypes = []interface{}{
  288. (Error_Code)(0), // 0: backend.common.Error.Code
  289. (*Error)(nil), // 1: backend.common.Error
  290. }
  291. var file_backend_common_errors_proto_depIdxs = []int32{
  292. 0, // 0: backend.common.Error.code:type_name -> backend.common.Error.Code
  293. 1, // [1:1] is the sub-list for method output_type
  294. 1, // [1:1] is the sub-list for method input_type
  295. 1, // [1:1] is the sub-list for extension type_name
  296. 1, // [1:1] is the sub-list for extension extendee
  297. 0, // [0:1] is the sub-list for field type_name
  298. }
  299. func init() { file_backend_common_errors_proto_init() }
  300. func file_backend_common_errors_proto_init() {
  301. if File_backend_common_errors_proto != nil {
  302. return
  303. }
  304. if !protoimpl.UnsafeEnabled {
  305. file_backend_common_errors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  306. switch v := v.(*Error); i {
  307. case 0:
  308. return &v.state
  309. case 1:
  310. return &v.sizeCache
  311. case 2:
  312. return &v.unknownFields
  313. default:
  314. return nil
  315. }
  316. }
  317. }
  318. type x struct{}
  319. out := protoimpl.TypeBuilder{
  320. File: protoimpl.DescBuilder{
  321. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  322. RawDescriptor: file_backend_common_errors_proto_rawDesc,
  323. NumEnums: 1,
  324. NumMessages: 1,
  325. NumExtensions: 0,
  326. NumServices: 0,
  327. },
  328. GoTypes: file_backend_common_errors_proto_goTypes,
  329. DependencyIndexes: file_backend_common_errors_proto_depIdxs,
  330. EnumInfos: file_backend_common_errors_proto_enumTypes,
  331. MessageInfos: file_backend_common_errors_proto_msgTypes,
  332. }.Build()
  333. File_backend_common_errors_proto = out.File
  334. file_backend_common_errors_proto_rawDesc = nil
  335. file_backend_common_errors_proto_goTypes = nil
  336. file_backend_common_errors_proto_depIdxs = nil
  337. }