ecode.pb.go 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: error.proto
  3. package pb
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import any "github.com/golang/protobuf/ptypes/any"
  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. // Deprecated: please use ecode.Error
  18. type Error struct {
  19. ErrCode int32 `protobuf:"varint,1,opt,name=err_code,json=errCode,proto3" json:"err_code,omitempty"`
  20. ErrMessage string `protobuf:"bytes,2,opt,name=err_message,json=errMessage,proto3" json:"err_message,omitempty"`
  21. ErrDetail *any.Any `protobuf:"bytes,3,opt,name=err_detail,json=errDetail,proto3" json:"err_detail,omitempty"`
  22. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  23. XXX_unrecognized []byte `json:"-"`
  24. XXX_sizecache int32 `json:"-"`
  25. }
  26. func (m *Error) Reset() { *m = Error{} }
  27. func (m *Error) String() string { return proto.CompactTextString(m) }
  28. func (*Error) ProtoMessage() {}
  29. func (*Error) Descriptor() ([]byte, []int) {
  30. return fileDescriptor_error_28aad86a4e53115b, []int{0}
  31. }
  32. func (m *Error) XXX_Unmarshal(b []byte) error {
  33. return xxx_messageInfo_Error.Unmarshal(m, b)
  34. }
  35. func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  36. return xxx_messageInfo_Error.Marshal(b, m, deterministic)
  37. }
  38. func (dst *Error) XXX_Merge(src proto.Message) {
  39. xxx_messageInfo_Error.Merge(dst, src)
  40. }
  41. func (m *Error) XXX_Size() int {
  42. return xxx_messageInfo_Error.Size(m)
  43. }
  44. func (m *Error) XXX_DiscardUnknown() {
  45. xxx_messageInfo_Error.DiscardUnknown(m)
  46. }
  47. var xxx_messageInfo_Error proto.InternalMessageInfo
  48. func (m *Error) GetErrCode() int32 {
  49. if m != nil {
  50. return m.ErrCode
  51. }
  52. return 0
  53. }
  54. func (m *Error) GetErrMessage() string {
  55. if m != nil {
  56. return m.ErrMessage
  57. }
  58. return ""
  59. }
  60. func (m *Error) GetErrDetail() *any.Any {
  61. if m != nil {
  62. return m.ErrDetail
  63. }
  64. return nil
  65. }
  66. func init() {
  67. proto.RegisterType((*Error)(nil), "err.Error")
  68. }
  69. func init() { proto.RegisterFile("error.proto", fileDescriptor_error_28aad86a4e53115b) }
  70. var fileDescriptor_error_28aad86a4e53115b = []byte{
  71. // 164 bytes of a gzipped FileDescriptorProto
  72. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x34, 0x8d, 0xc1, 0xca, 0x82, 0x40,
  73. 0x14, 0x85, 0x99, 0x5f, 0xfc, 0xcb, 0x71, 0x37, 0xb4, 0xd0, 0x36, 0x49, 0x2b, 0x57, 0x23, 0xe4,
  74. 0x13, 0x44, 0xb5, 0x6c, 0xe3, 0x0b, 0x88, 0xe6, 0x49, 0x02, 0xf3, 0xc6, 0xd1, 0x20, 0xdf, 0x3e,
  75. 0x1c, 0x69, 0x79, 0xcf, 0xf7, 0x71, 0x3f, 0x1d, 0x82, 0x14, 0xda, 0x17, 0x65, 0x14, 0xe3, 0x81,
  76. 0xdc, 0xc6, 0xad, 0x48, 0xdb, 0x21, 0x73, 0x53, 0xfd, 0xbe, 0x67, 0x55, 0x3f, 0x2d, 0x7c, 0xff,
  77. 0xd1, 0xfe, 0x65, 0xd6, 0x4d, 0xac, 0xd7, 0x20, 0xcb, 0x9b, 0x34, 0x88, 0x54, 0xa2, 0x52, 0xbf,
  78. 0x58, 0x81, 0x3c, 0x49, 0x03, 0xb3, 0x73, 0x2f, 0xcb, 0x27, 0x86, 0xa1, 0x6a, 0x11, 0xfd, 0x25,
  79. 0x2a, 0x0d, 0x0a, 0x0d, 0xf2, 0xba, 0x2c, 0x26, 0xd7, 0xf3, 0x55, 0x36, 0x18, 0xab, 0x47, 0x17,
  80. 0x79, 0x89, 0x4a, 0xc3, 0xc3, 0xc6, 0x2e, 0x51, 0xfb, 0x8b, 0xda, 0x63, 0x3f, 0x15, 0x01, 0xc8,
  81. 0xb3, 0xd3, 0xea, 0x7f, 0x07, 0xf2, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x41, 0x22, 0xfd,
  82. 0xaf, 0x00, 0x00, 0x00,
  83. }