gitee.com/sasukebo/go-micro/v4@v4.7.1/errors/errors.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.13.0 5 // source: errors.proto 6 7 package errors 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type Error struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 29 Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` 30 Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"` 31 Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` 32 } 33 34 func (x *Error) Reset() { 35 *x = Error{} 36 if protoimpl.UnsafeEnabled { 37 mi := &file_errors_proto_msgTypes[0] 38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 39 ms.StoreMessageInfo(mi) 40 } 41 } 42 43 func (x *Error) String() string { 44 return protoimpl.X.MessageStringOf(x) 45 } 46 47 func (*Error) ProtoMessage() {} 48 49 func (x *Error) ProtoReflect() protoreflect.Message { 50 mi := &file_errors_proto_msgTypes[0] 51 if protoimpl.UnsafeEnabled && x != nil { 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 if ms.LoadMessageInfo() == nil { 54 ms.StoreMessageInfo(mi) 55 } 56 return ms 57 } 58 return mi.MessageOf(x) 59 } 60 61 // Deprecated: Use Error.ProtoReflect.Descriptor instead. 62 func (*Error) Descriptor() ([]byte, []int) { 63 return file_errors_proto_rawDescGZIP(), []int{0} 64 } 65 66 func (x *Error) GetId() string { 67 if x != nil { 68 return x.Id 69 } 70 return "" 71 } 72 73 func (x *Error) GetCode() int32 { 74 if x != nil { 75 return x.Code 76 } 77 return 0 78 } 79 80 func (x *Error) GetDetail() string { 81 if x != nil { 82 return x.Detail 83 } 84 return "" 85 } 86 87 func (x *Error) GetStatus() string { 88 if x != nil { 89 return x.Status 90 } 91 return "" 92 } 93 94 type MultiError struct { 95 state protoimpl.MessageState 96 sizeCache protoimpl.SizeCache 97 unknownFields protoimpl.UnknownFields 98 99 Errors []*Error `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` 100 } 101 102 func (x *MultiError) Reset() { 103 *x = MultiError{} 104 if protoimpl.UnsafeEnabled { 105 mi := &file_errors_proto_msgTypes[1] 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 ms.StoreMessageInfo(mi) 108 } 109 } 110 111 func (x *MultiError) String() string { 112 return protoimpl.X.MessageStringOf(x) 113 } 114 115 func (*MultiError) ProtoMessage() {} 116 117 func (x *MultiError) ProtoReflect() protoreflect.Message { 118 mi := &file_errors_proto_msgTypes[1] 119 if protoimpl.UnsafeEnabled && x != nil { 120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 121 if ms.LoadMessageInfo() == nil { 122 ms.StoreMessageInfo(mi) 123 } 124 return ms 125 } 126 return mi.MessageOf(x) 127 } 128 129 // Deprecated: Use MultiError.ProtoReflect.Descriptor instead. 130 func (*MultiError) Descriptor() ([]byte, []int) { 131 return file_errors_proto_rawDescGZIP(), []int{1} 132 } 133 134 func (x *MultiError) GetErrors() []*Error { 135 if x != nil { 136 return x.Errors 137 } 138 return nil 139 } 140 141 var File_errors_proto protoreflect.FileDescriptor 142 143 var file_errors_proto_rawDesc = []byte{ 144 0x0a, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 145 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0x5b, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 146 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 147 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 148 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 149 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 150 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 151 0x74, 0x75, 0x73, 0x22, 0x33, 0x0a, 0x0a, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x45, 0x72, 0x72, 0x6f, 152 0x72, 0x12, 0x25, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 153 0x0b, 0x32, 0x0d, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 154 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x42, 0x03, 0x5a, 0x01, 0x2e, 0x62, 0x06, 0x70, 155 0x72, 0x6f, 0x74, 0x6f, 0x33, 156 } 157 158 var ( 159 file_errors_proto_rawDescOnce sync.Once 160 file_errors_proto_rawDescData = file_errors_proto_rawDesc 161 ) 162 163 func file_errors_proto_rawDescGZIP() []byte { 164 file_errors_proto_rawDescOnce.Do(func() { 165 file_errors_proto_rawDescData = protoimpl.X.CompressGZIP(file_errors_proto_rawDescData) 166 }) 167 return file_errors_proto_rawDescData 168 } 169 170 var file_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 171 var file_errors_proto_goTypes = []interface{}{ 172 (*Error)(nil), // 0: errors.Error 173 (*MultiError)(nil), // 1: errors.MultiError 174 } 175 var file_errors_proto_depIdxs = []int32{ 176 0, // 0: errors.MultiError.errors:type_name -> errors.Error 177 1, // [1:1] is the sub-list for method output_type 178 1, // [1:1] is the sub-list for method input_type 179 1, // [1:1] is the sub-list for extension type_name 180 1, // [1:1] is the sub-list for extension extendee 181 0, // [0:1] is the sub-list for field type_name 182 } 183 184 func init() { file_errors_proto_init() } 185 func file_errors_proto_init() { 186 if File_errors_proto != nil { 187 return 188 } 189 if !protoimpl.UnsafeEnabled { 190 file_errors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 191 switch v := v.(*Error); i { 192 case 0: 193 return &v.state 194 case 1: 195 return &v.sizeCache 196 case 2: 197 return &v.unknownFields 198 default: 199 return nil 200 } 201 } 202 file_errors_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 203 switch v := v.(*MultiError); i { 204 case 0: 205 return &v.state 206 case 1: 207 return &v.sizeCache 208 case 2: 209 return &v.unknownFields 210 default: 211 return nil 212 } 213 } 214 } 215 type x struct{} 216 out := protoimpl.TypeBuilder{ 217 File: protoimpl.DescBuilder{ 218 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 219 RawDescriptor: file_errors_proto_rawDesc, 220 NumEnums: 0, 221 NumMessages: 2, 222 NumExtensions: 0, 223 NumServices: 0, 224 }, 225 GoTypes: file_errors_proto_goTypes, 226 DependencyIndexes: file_errors_proto_depIdxs, 227 MessageInfos: file_errors_proto_msgTypes, 228 }.Build() 229 File_errors_proto = out.File 230 file_errors_proto_rawDesc = nil 231 file_errors_proto_goTypes = nil 232 file_errors_proto_depIdxs = nil 233 }