errors.pb.go 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.12.0
  5. // source: errors.proto
  6. package errors
  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 struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. // Success if request is success
  24. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
  25. // ErrorCode code for errorType
  26. ErrorCode string `protobuf:"bytes,2,opt,name=errorCode,proto3" json:"errorCode,omitempty"`
  27. // ErrorMessage message display to user
  28. ErrorMessage string `protobuf:"bytes,3,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
  29. // ShowType error display type: 0 silent; 1 message.warn; 2 message.error; 4 notification; 9 page
  30. ShowType string `protobuf:"bytes,4,opt,name=showType,proto3" json:"showType,omitempty"`
  31. // TraceId Convenient for back-end Troubleshooting: unique request ID
  32. TraceId string `protobuf:"bytes,5,opt,name=traceId,proto3" json:"traceId,omitempty"`
  33. // Domain onvenient for backend Troubleshooting: host of current access server
  34. Domain string `protobuf:"bytes,6,opt,name=domain,proto3" json:"domain,omitempty"`
  35. }
  36. func (x *Error) Reset() {
  37. *x = Error{}
  38. if protoimpl.UnsafeEnabled {
  39. mi := &file_errors_proto_msgTypes[0]
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. ms.StoreMessageInfo(mi)
  42. }
  43. }
  44. func (x *Error) String() string {
  45. return protoimpl.X.MessageStringOf(x)
  46. }
  47. func (*Error) ProtoMessage() {}
  48. func (x *Error) ProtoReflect() protoreflect.Message {
  49. mi := &file_errors_proto_msgTypes[0]
  50. if protoimpl.UnsafeEnabled && x != nil {
  51. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  52. if ms.LoadMessageInfo() == nil {
  53. ms.StoreMessageInfo(mi)
  54. }
  55. return ms
  56. }
  57. return mi.MessageOf(x)
  58. }
  59. // Deprecated: Use Error.ProtoReflect.Descriptor instead.
  60. func (*Error) Descriptor() ([]byte, []int) {
  61. return file_errors_proto_rawDescGZIP(), []int{0}
  62. }
  63. func (x *Error) GetSuccess() bool {
  64. if x != nil {
  65. return x.Success
  66. }
  67. return false
  68. }
  69. func (x *Error) GetErrorCode() string {
  70. if x != nil {
  71. return x.ErrorCode
  72. }
  73. return ""
  74. }
  75. func (x *Error) GetErrorMessage() string {
  76. if x != nil {
  77. return x.ErrorMessage
  78. }
  79. return ""
  80. }
  81. func (x *Error) GetShowType() string {
  82. if x != nil {
  83. return x.ShowType
  84. }
  85. return ""
  86. }
  87. func (x *Error) GetTraceId() string {
  88. if x != nil {
  89. return x.TraceId
  90. }
  91. return ""
  92. }
  93. func (x *Error) GetDomain() string {
  94. if x != nil {
  95. return x.Domain
  96. }
  97. return ""
  98. }
  99. var File_errors_proto protoreflect.FileDescriptor
  100. var file_errors_proto_rawDesc = []byte{
  101. 0x0a, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
  102. 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0xb1, 0x01, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72,
  103. 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
  104. 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x72,
  105. 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65,
  106. 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x72, 0x72, 0x6f,
  107. 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
  108. 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08,
  109. 0x73, 0x68, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
  110. 0x73, 0x68, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x63,
  111. 0x65, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65,
  112. 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01,
  113. 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69,
  114. 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x61, 0x64, 0x6d, 0x69,
  115. 0x6e, 0x2d, 0x74, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2d,
  116. 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f,
  117. 0x74, 0x6f, 0x33,
  118. }
  119. var (
  120. file_errors_proto_rawDescOnce sync.Once
  121. file_errors_proto_rawDescData = file_errors_proto_rawDesc
  122. )
  123. func file_errors_proto_rawDescGZIP() []byte {
  124. file_errors_proto_rawDescOnce.Do(func() {
  125. file_errors_proto_rawDescData = protoimpl.X.CompressGZIP(file_errors_proto_rawDescData)
  126. })
  127. return file_errors_proto_rawDescData
  128. }
  129. var file_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  130. var file_errors_proto_goTypes = []interface{}{
  131. (*Error)(nil), // 0: errors.Error
  132. }
  133. var file_errors_proto_depIdxs = []int32{
  134. 0, // [0:0] is the sub-list for method output_type
  135. 0, // [0:0] is the sub-list for method input_type
  136. 0, // [0:0] is the sub-list for extension type_name
  137. 0, // [0:0] is the sub-list for extension extendee
  138. 0, // [0:0] is the sub-list for field type_name
  139. }
  140. func init() { file_errors_proto_init() }
  141. func file_errors_proto_init() {
  142. if File_errors_proto != nil {
  143. return
  144. }
  145. if !protoimpl.UnsafeEnabled {
  146. file_errors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  147. switch v := v.(*Error); i {
  148. case 0:
  149. return &v.state
  150. case 1:
  151. return &v.sizeCache
  152. case 2:
  153. return &v.unknownFields
  154. default:
  155. return nil
  156. }
  157. }
  158. }
  159. type x struct{}
  160. out := protoimpl.TypeBuilder{
  161. File: protoimpl.DescBuilder{
  162. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  163. RawDescriptor: file_errors_proto_rawDesc,
  164. NumEnums: 0,
  165. NumMessages: 1,
  166. NumExtensions: 0,
  167. NumServices: 0,
  168. },
  169. GoTypes: file_errors_proto_goTypes,
  170. DependencyIndexes: file_errors_proto_depIdxs,
  171. MessageInfos: file_errors_proto_msgTypes,
  172. }.Build()
  173. File_errors_proto = out.File
  174. file_errors_proto_rawDesc = nil
  175. file_errors_proto_goTypes = nil
  176. file_errors_proto_depIdxs = nil
  177. }