github.com/kaydxh/golang@v0.0.131/pkg/viper/code/error.template.pb.go (about) 1 /* 2 *Copyright (c) 2022, kaydxh 3 * 4 *Permission is hereby granted, free of charge, to any person obtaining a copy 5 *of this software and associated documentation files (the "Software"), to deal 6 *in the Software without restriction, including without limitation the rights 7 *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 *copies of the Software, and to permit persons to whom the Software is 9 *furnished to do so, subject to the following conditions: 10 * 11 *The above copyright notice and this permission notice shall be included in all 12 *copies or substantial portions of the Software. 13 * 14 *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 20 *SOFTWARE. 21 */ 22 // Code generated by protoc-gen-go. DO NOT EDIT. 23 // versions: 24 // protoc-gen-go v1.27.0 25 // protoc v3.13.0 26 // source: pkg/viper/code/error.template.proto 27 28 // 错误码 29 30 package code 31 32 import ( 33 _ "github.com/golang/protobuf/protoc-gen-go/descriptor" 34 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 35 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 36 reflect "reflect" 37 sync "sync" 38 ) 39 40 const ( 41 // Verify that this generated code is sufficiently up-to-date. 42 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 43 // Verify that runtime/protoimpl is sufficiently up-to-date. 44 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 45 ) 46 47 type ErrorTemplate struct { 48 state protoimpl.MessageState 49 sizeCache protoimpl.SizeCache 50 unknownFields protoimpl.UnknownFields 51 52 ErrorTemplate []*ErrorTemplate_ErrorItem `protobuf:"bytes,1,rep,name=error_template,json=errorTemplate,proto3" json:"error_template,omitempty"` 53 } 54 55 func (x *ErrorTemplate) Reset() { 56 *x = ErrorTemplate{} 57 if protoimpl.UnsafeEnabled { 58 mi := &file_pkg_viper_code_error_template_proto_msgTypes[0] 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 ms.StoreMessageInfo(mi) 61 } 62 } 63 64 func (x *ErrorTemplate) String() string { 65 return protoimpl.X.MessageStringOf(x) 66 } 67 68 func (*ErrorTemplate) ProtoMessage() {} 69 70 func (x *ErrorTemplate) ProtoReflect() protoreflect.Message { 71 mi := &file_pkg_viper_code_error_template_proto_msgTypes[0] 72 if protoimpl.UnsafeEnabled && x != nil { 73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 74 if ms.LoadMessageInfo() == nil { 75 ms.StoreMessageInfo(mi) 76 } 77 return ms 78 } 79 return mi.MessageOf(x) 80 } 81 82 // Deprecated: Use ErrorTemplate.ProtoReflect.Descriptor instead. 83 func (*ErrorTemplate) Descriptor() ([]byte, []int) { 84 return file_pkg_viper_code_error_template_proto_rawDescGZIP(), []int{0} 85 } 86 87 func (x *ErrorTemplate) GetErrorTemplate() []*ErrorTemplate_ErrorItem { 88 if x != nil { 89 return x.ErrorTemplate 90 } 91 return nil 92 } 93 94 type ErrorTemplate_ErrorItem struct { 95 state protoimpl.MessageState 96 sizeCache protoimpl.SizeCache 97 unknownFields protoimpl.UnknownFields 98 99 ErrorCode string `protobuf:"bytes,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` 100 ErrorDesc string `protobuf:"bytes,2,opt,name=error_desc,json=errorDesc,proto3" json:"error_desc,omitempty"` 101 ErrorMessage map[string]string `protobuf:"bytes,3,rep,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 102 } 103 104 func (x *ErrorTemplate_ErrorItem) Reset() { 105 *x = ErrorTemplate_ErrorItem{} 106 if protoimpl.UnsafeEnabled { 107 mi := &file_pkg_viper_code_error_template_proto_msgTypes[1] 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 ms.StoreMessageInfo(mi) 110 } 111 } 112 113 func (x *ErrorTemplate_ErrorItem) String() string { 114 return protoimpl.X.MessageStringOf(x) 115 } 116 117 func (*ErrorTemplate_ErrorItem) ProtoMessage() {} 118 119 func (x *ErrorTemplate_ErrorItem) ProtoReflect() protoreflect.Message { 120 mi := &file_pkg_viper_code_error_template_proto_msgTypes[1] 121 if protoimpl.UnsafeEnabled && x != nil { 122 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 123 if ms.LoadMessageInfo() == nil { 124 ms.StoreMessageInfo(mi) 125 } 126 return ms 127 } 128 return mi.MessageOf(x) 129 } 130 131 // Deprecated: Use ErrorTemplate_ErrorItem.ProtoReflect.Descriptor instead. 132 func (*ErrorTemplate_ErrorItem) Descriptor() ([]byte, []int) { 133 return file_pkg_viper_code_error_template_proto_rawDescGZIP(), []int{0, 0} 134 } 135 136 func (x *ErrorTemplate_ErrorItem) GetErrorCode() string { 137 if x != nil { 138 return x.ErrorCode 139 } 140 return "" 141 } 142 143 func (x *ErrorTemplate_ErrorItem) GetErrorDesc() string { 144 if x != nil { 145 return x.ErrorDesc 146 } 147 return "" 148 } 149 150 func (x *ErrorTemplate_ErrorItem) GetErrorMessage() map[string]string { 151 if x != nil { 152 return x.ErrorMessage 153 } 154 return nil 155 } 156 157 var File_pkg_viper_code_error_template_proto protoreflect.FileDescriptor 158 159 var file_pkg_viper_code_error_template_proto_rawDesc = []byte{ 160 0x0a, 0x23, 0x70, 0x6b, 0x67, 0x2f, 0x76, 0x69, 0x70, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x64, 0x65, 161 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 162 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x79, 0x6f, 0x75, 0x74, 0x75, 0x2e, 0x6f, 0x63, 0x72, 163 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 164 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 165 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd4, 0x02, 0x0a, 0x0d, 166 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x52, 0x0a, 167 0x0e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 168 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x79, 0x6f, 0x75, 0x74, 0x75, 0x2e, 0x6f, 0x63, 169 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 170 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x74, 171 0x65, 0x6d, 0x52, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 172 0x65, 0x1a, 0xee, 0x01, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x74, 0x65, 0x6d, 0x12, 173 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 174 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1d, 175 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x18, 0x02, 0x20, 0x01, 176 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x73, 0x63, 0x12, 0x62, 0x0a, 177 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 178 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x79, 0x6f, 0x75, 0x74, 0x75, 0x2e, 0x6f, 0x63, 0x72, 179 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 180 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x74, 0x65, 181 0x6d, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 182 0x74, 0x72, 0x79, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 183 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 184 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 185 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 186 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 187 0x38, 0x01, 0x42, 0x51, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x6f, 188 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x74, 0x2d, 0x69, 0x6e, 0x64, 0x75, 0x73, 0x74, 0x72, 189 0x79, 0x2d, 0x6f, 0x63, 0x72, 0x2f, 0x79, 0x74, 0x2d, 0x69, 0x6e, 0x64, 0x75, 0x73, 0x74, 0x72, 190 0x79, 0x2d, 0x6f, 0x63, 0x72, 0x2d, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x70, 0x72, 191 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x2f, 0x63, 0x6f, 0x64, 0x65, 192 0x3b, 0x63, 0x6f, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 193 } 194 195 var ( 196 file_pkg_viper_code_error_template_proto_rawDescOnce sync.Once 197 file_pkg_viper_code_error_template_proto_rawDescData = file_pkg_viper_code_error_template_proto_rawDesc 198 ) 199 200 func file_pkg_viper_code_error_template_proto_rawDescGZIP() []byte { 201 file_pkg_viper_code_error_template_proto_rawDescOnce.Do(func() { 202 file_pkg_viper_code_error_template_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_viper_code_error_template_proto_rawDescData) 203 }) 204 return file_pkg_viper_code_error_template_proto_rawDescData 205 } 206 207 var file_pkg_viper_code_error_template_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 208 var file_pkg_viper_code_error_template_proto_goTypes = []interface{}{ 209 (*ErrorTemplate)(nil), // 0: youtu.ocr.api.code.ErrorTemplate 210 (*ErrorTemplate_ErrorItem)(nil), // 1: youtu.ocr.api.code.ErrorTemplate.ErrorItem 211 nil, // 2: youtu.ocr.api.code.ErrorTemplate.ErrorItem.ErrorMessageEntry 212 } 213 var file_pkg_viper_code_error_template_proto_depIdxs = []int32{ 214 1, // 0: youtu.ocr.api.code.ErrorTemplate.error_template:type_name -> youtu.ocr.api.code.ErrorTemplate.ErrorItem 215 2, // 1: youtu.ocr.api.code.ErrorTemplate.ErrorItem.error_message:type_name -> youtu.ocr.api.code.ErrorTemplate.ErrorItem.ErrorMessageEntry 216 2, // [2:2] is the sub-list for method output_type 217 2, // [2:2] is the sub-list for method input_type 218 2, // [2:2] is the sub-list for extension type_name 219 2, // [2:2] is the sub-list for extension extendee 220 0, // [0:2] is the sub-list for field type_name 221 } 222 223 func init() { file_pkg_viper_code_error_template_proto_init() } 224 func file_pkg_viper_code_error_template_proto_init() { 225 if File_pkg_viper_code_error_template_proto != nil { 226 return 227 } 228 if !protoimpl.UnsafeEnabled { 229 file_pkg_viper_code_error_template_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 230 switch v := v.(*ErrorTemplate); i { 231 case 0: 232 return &v.state 233 case 1: 234 return &v.sizeCache 235 case 2: 236 return &v.unknownFields 237 default: 238 return nil 239 } 240 } 241 file_pkg_viper_code_error_template_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 242 switch v := v.(*ErrorTemplate_ErrorItem); i { 243 case 0: 244 return &v.state 245 case 1: 246 return &v.sizeCache 247 case 2: 248 return &v.unknownFields 249 default: 250 return nil 251 } 252 } 253 } 254 type x struct{} 255 out := protoimpl.TypeBuilder{ 256 File: protoimpl.DescBuilder{ 257 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 258 RawDescriptor: file_pkg_viper_code_error_template_proto_rawDesc, 259 NumEnums: 0, 260 NumMessages: 3, 261 NumExtensions: 0, 262 NumServices: 0, 263 }, 264 GoTypes: file_pkg_viper_code_error_template_proto_goTypes, 265 DependencyIndexes: file_pkg_viper_code_error_template_proto_depIdxs, 266 MessageInfos: file_pkg_viper_code_error_template_proto_msgTypes, 267 }.Build() 268 File_pkg_viper_code_error_template_proto = out.File 269 file_pkg_viper_code_error_template_proto_rawDesc = nil 270 file_pkg_viper_code_error_template_proto_goTypes = nil 271 file_pkg_viper_code_error_template_proto_depIdxs = nil 272 }