github.com/micro/go-micro/v2@v2.9.1/errors/errors.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: errors/errors.proto 3 4 package errors 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10 ) 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23 type Error struct { 24 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 25 Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` 26 Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"` 27 Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` 28 XXX_NoUnkeyedLiteral struct{} `json:"-"` 29 XXX_unrecognized []byte `json:"-"` 30 XXX_sizecache int32 `json:"-"` 31 } 32 33 func (m *Error) Reset() { *m = Error{} } 34 func (m *Error) String() string { return proto.CompactTextString(m) } 35 func (*Error) ProtoMessage() {} 36 func (*Error) Descriptor() ([]byte, []int) { 37 return fileDescriptor_85c4eef3398a32b2, []int{0} 38 } 39 40 func (m *Error) XXX_Unmarshal(b []byte) error { 41 return xxx_messageInfo_Error.Unmarshal(m, b) 42 } 43 func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 return xxx_messageInfo_Error.Marshal(b, m, deterministic) 45 } 46 func (m *Error) XXX_Merge(src proto.Message) { 47 xxx_messageInfo_Error.Merge(m, src) 48 } 49 func (m *Error) XXX_Size() int { 50 return xxx_messageInfo_Error.Size(m) 51 } 52 func (m *Error) XXX_DiscardUnknown() { 53 xxx_messageInfo_Error.DiscardUnknown(m) 54 } 55 56 var xxx_messageInfo_Error proto.InternalMessageInfo 57 58 func (m *Error) GetId() string { 59 if m != nil { 60 return m.Id 61 } 62 return "" 63 } 64 65 func (m *Error) GetCode() int32 { 66 if m != nil { 67 return m.Code 68 } 69 return 0 70 } 71 72 func (m *Error) GetDetail() string { 73 if m != nil { 74 return m.Detail 75 } 76 return "" 77 } 78 79 func (m *Error) GetStatus() string { 80 if m != nil { 81 return m.Status 82 } 83 return "" 84 } 85 86 func init() { 87 proto.RegisterType((*Error)(nil), "errors.Error") 88 } 89 90 func init() { proto.RegisterFile("errors/errors.proto", fileDescriptor_85c4eef3398a32b2) } 91 92 var fileDescriptor_85c4eef3398a32b2 = []byte{ 93 // 118 bytes of a gzipped FileDescriptorProto 94 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0x2d, 0x2a, 0xca, 95 0x2f, 0x2a, 0xd6, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x6c, 0x10, 0x9e, 0x52, 96 0x34, 0x17, 0xab, 0x2b, 0x88, 0x25, 0xc4, 0xc7, 0xc5, 0x94, 0x99, 0x22, 0xc1, 0xa8, 0xc0, 0xa8, 97 0xc1, 0x19, 0xc4, 0x94, 0x99, 0x22, 0x24, 0xc4, 0xc5, 0x92, 0x9c, 0x9f, 0x92, 0x2a, 0xc1, 0xa4, 98 0xc0, 0xa8, 0xc1, 0x1a, 0x04, 0x66, 0x0b, 0x89, 0x71, 0xb1, 0xa5, 0xa4, 0x96, 0x24, 0x66, 0xe6, 99 0x48, 0x30, 0x83, 0xd5, 0x41, 0x79, 0x20, 0xf1, 0xe2, 0x92, 0xc4, 0x92, 0xd2, 0x62, 0x09, 0x16, 100 0x88, 0x38, 0x84, 0x97, 0xc4, 0x06, 0xb6, 0xcb, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xca, 0xc3, 101 0xcb, 0x29, 0x82, 0x00, 0x00, 0x00, 102 }