github.com/s7techlab/cckit@v0.10.5/examples/token/service/burnable/burnable.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc (unknown) 5 // source: token/service/burnable/burnable.proto 6 7 package burnable 8 9 import ( 10 context "context" 11 _ "github.com/mwitkow/go-proto-validators" 12 _ "google.golang.org/genproto/googleapis/api/annotations" 13 grpc "google.golang.org/grpc" 14 codes "google.golang.org/grpc/codes" 15 status "google.golang.org/grpc/status" 16 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 17 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 18 _ "google.golang.org/protobuf/types/known/emptypb" 19 reflect "reflect" 20 sync "sync" 21 ) 22 23 const ( 24 // Verify that this generated code is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 26 // Verify that runtime/protoimpl is sufficiently up-to-date. 27 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 28 ) 29 30 type BurnRequest struct { 31 state protoimpl.MessageState 32 sizeCache protoimpl.SizeCache 33 unknownFields protoimpl.UnknownFields 34 35 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 36 Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` 37 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 38 } 39 40 func (x *BurnRequest) Reset() { 41 *x = BurnRequest{} 42 if protoimpl.UnsafeEnabled { 43 mi := &file_token_service_burnable_burnable_proto_msgTypes[0] 44 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 45 ms.StoreMessageInfo(mi) 46 } 47 } 48 49 func (x *BurnRequest) String() string { 50 return protoimpl.X.MessageStringOf(x) 51 } 52 53 func (*BurnRequest) ProtoMessage() {} 54 55 func (x *BurnRequest) ProtoReflect() protoreflect.Message { 56 mi := &file_token_service_burnable_burnable_proto_msgTypes[0] 57 if protoimpl.UnsafeEnabled && x != nil { 58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 59 if ms.LoadMessageInfo() == nil { 60 ms.StoreMessageInfo(mi) 61 } 62 return ms 63 } 64 return mi.MessageOf(x) 65 } 66 67 // Deprecated: Use BurnRequest.ProtoReflect.Descriptor instead. 68 func (*BurnRequest) Descriptor() ([]byte, []int) { 69 return file_token_service_burnable_burnable_proto_rawDescGZIP(), []int{0} 70 } 71 72 func (x *BurnRequest) GetAddress() string { 73 if x != nil { 74 return x.Address 75 } 76 return "" 77 } 78 79 func (x *BurnRequest) GetToken() string { 80 if x != nil { 81 return x.Token 82 } 83 return "" 84 } 85 86 func (x *BurnRequest) GetAmount() uint64 { 87 if x != nil { 88 return x.Amount 89 } 90 return 0 91 } 92 93 type BurnResponse struct { 94 state protoimpl.MessageState 95 sizeCache protoimpl.SizeCache 96 unknownFields protoimpl.UnknownFields 97 98 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 99 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 100 Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` 101 Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` 102 } 103 104 func (x *BurnResponse) Reset() { 105 *x = BurnResponse{} 106 if protoimpl.UnsafeEnabled { 107 mi := &file_token_service_burnable_burnable_proto_msgTypes[1] 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 ms.StoreMessageInfo(mi) 110 } 111 } 112 113 func (x *BurnResponse) String() string { 114 return protoimpl.X.MessageStringOf(x) 115 } 116 117 func (*BurnResponse) ProtoMessage() {} 118 119 func (x *BurnResponse) ProtoReflect() protoreflect.Message { 120 mi := &file_token_service_burnable_burnable_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 BurnResponse.ProtoReflect.Descriptor instead. 132 func (*BurnResponse) Descriptor() ([]byte, []int) { 133 return file_token_service_burnable_burnable_proto_rawDescGZIP(), []int{1} 134 } 135 136 func (x *BurnResponse) GetSenderAddress() string { 137 if x != nil { 138 return x.SenderAddress 139 } 140 return "" 141 } 142 143 func (x *BurnResponse) GetRecipientAddress() string { 144 if x != nil { 145 return x.RecipientAddress 146 } 147 return "" 148 } 149 150 func (x *BurnResponse) GetToken() string { 151 if x != nil { 152 return x.Token 153 } 154 return "" 155 } 156 157 func (x *BurnResponse) GetAmount() uint64 { 158 if x != nil { 159 return x.Amount 160 } 161 return 0 162 } 163 164 // Burned event is emitted when Transfer method has been invoked 165 type Burned struct { 166 state protoimpl.MessageState 167 sizeCache protoimpl.SizeCache 168 unknownFields protoimpl.UnknownFields 169 170 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 171 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 172 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 173 } 174 175 func (x *Burned) Reset() { 176 *x = Burned{} 177 if protoimpl.UnsafeEnabled { 178 mi := &file_token_service_burnable_burnable_proto_msgTypes[2] 179 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 180 ms.StoreMessageInfo(mi) 181 } 182 } 183 184 func (x *Burned) String() string { 185 return protoimpl.X.MessageStringOf(x) 186 } 187 188 func (*Burned) ProtoMessage() {} 189 190 func (x *Burned) ProtoReflect() protoreflect.Message { 191 mi := &file_token_service_burnable_burnable_proto_msgTypes[2] 192 if protoimpl.UnsafeEnabled && x != nil { 193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 194 if ms.LoadMessageInfo() == nil { 195 ms.StoreMessageInfo(mi) 196 } 197 return ms 198 } 199 return mi.MessageOf(x) 200 } 201 202 // Deprecated: Use Burned.ProtoReflect.Descriptor instead. 203 func (*Burned) Descriptor() ([]byte, []int) { 204 return file_token_service_burnable_burnable_proto_rawDescGZIP(), []int{2} 205 } 206 207 func (x *Burned) GetSenderAddress() string { 208 if x != nil { 209 return x.SenderAddress 210 } 211 return "" 212 } 213 214 func (x *Burned) GetRecipientAddress() string { 215 if x != nil { 216 return x.RecipientAddress 217 } 218 return "" 219 } 220 221 func (x *Burned) GetAmount() uint64 { 222 if x != nil { 223 return x.Amount 224 } 225 return 0 226 } 227 228 var File_token_service_burnable_burnable_proto protoreflect.FileDescriptor 229 230 var file_token_service_burnable_burnable_proto_rawDesc = []byte{ 231 0x0a, 0x25, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 232 0x62, 0x75, 0x72, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x61, 0x62, 0x6c, 233 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x26, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 234 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 235 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x1a, 236 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 237 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 238 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 239 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x6d, 0x77, 0x69, 0x74, 240 0x6b, 0x6f, 0x77, 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x76, 0x61, 0x6c, 241 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 242 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x65, 0x0a, 0x0b, 0x42, 0x75, 0x72, 0x6e, 0x52, 243 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 244 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 245 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 246 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1e, 247 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x42, 0x06, 248 0xe2, 0xdf, 0x1f, 0x02, 0x10, 0x00, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x90, 249 0x01, 0x0a, 0x0c, 0x42, 0x75, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 250 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 251 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 252 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 253 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 254 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 255 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 256 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 257 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 258 0x74, 0x22, 0x74, 0x0a, 0x06, 0x42, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x73, 259 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 260 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 261 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 262 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 263 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 264 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 265 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x94, 0x01, 0x0a, 0x0f, 0x42, 0x75, 0x72, 0x6e, 266 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x04, 267 0x42, 0x75, 0x72, 0x6e, 0x12, 0x33, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 268 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x73, 0x65, 269 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x42, 0x75, 270 0x72, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x65, 0x78, 0x61, 0x6d, 271 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 272 0x63, 0x65, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 273 0x63, 0x65, 0x2e, 0x42, 0x75, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 274 0x0d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x07, 0x22, 0x05, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x42, 0x3c, 275 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x37, 0x74, 276 0x65, 0x63, 0x68, 0x6c, 0x61, 0x62, 0x2f, 0x63, 0x63, 0x6b, 0x69, 0x74, 0x2f, 0x65, 0x78, 0x61, 277 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 278 0x69, 0x63, 0x65, 0x2f, 0x62, 0x75, 0x72, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 279 0x6f, 0x74, 0x6f, 0x33, 280 } 281 282 var ( 283 file_token_service_burnable_burnable_proto_rawDescOnce sync.Once 284 file_token_service_burnable_burnable_proto_rawDescData = file_token_service_burnable_burnable_proto_rawDesc 285 ) 286 287 func file_token_service_burnable_burnable_proto_rawDescGZIP() []byte { 288 file_token_service_burnable_burnable_proto_rawDescOnce.Do(func() { 289 file_token_service_burnable_burnable_proto_rawDescData = protoimpl.X.CompressGZIP(file_token_service_burnable_burnable_proto_rawDescData) 290 }) 291 return file_token_service_burnable_burnable_proto_rawDescData 292 } 293 294 var file_token_service_burnable_burnable_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 295 var file_token_service_burnable_burnable_proto_goTypes = []interface{}{ 296 (*BurnRequest)(nil), // 0: examples.erc20_service.service.balance.BurnRequest 297 (*BurnResponse)(nil), // 1: examples.erc20_service.service.balance.BurnResponse 298 (*Burned)(nil), // 2: examples.erc20_service.service.balance.Burned 299 } 300 var file_token_service_burnable_burnable_proto_depIdxs = []int32{ 301 0, // 0: examples.erc20_service.service.balance.BurnableService.Burn:input_type -> examples.erc20_service.service.balance.BurnRequest 302 1, // 1: examples.erc20_service.service.balance.BurnableService.Burn:output_type -> examples.erc20_service.service.balance.BurnResponse 303 1, // [1:2] is the sub-list for method output_type 304 0, // [0:1] is the sub-list for method input_type 305 0, // [0:0] is the sub-list for extension type_name 306 0, // [0:0] is the sub-list for extension extendee 307 0, // [0:0] is the sub-list for field type_name 308 } 309 310 func init() { file_token_service_burnable_burnable_proto_init() } 311 func file_token_service_burnable_burnable_proto_init() { 312 if File_token_service_burnable_burnable_proto != nil { 313 return 314 } 315 if !protoimpl.UnsafeEnabled { 316 file_token_service_burnable_burnable_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 317 switch v := v.(*BurnRequest); i { 318 case 0: 319 return &v.state 320 case 1: 321 return &v.sizeCache 322 case 2: 323 return &v.unknownFields 324 default: 325 return nil 326 } 327 } 328 file_token_service_burnable_burnable_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 329 switch v := v.(*BurnResponse); i { 330 case 0: 331 return &v.state 332 case 1: 333 return &v.sizeCache 334 case 2: 335 return &v.unknownFields 336 default: 337 return nil 338 } 339 } 340 file_token_service_burnable_burnable_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 341 switch v := v.(*Burned); i { 342 case 0: 343 return &v.state 344 case 1: 345 return &v.sizeCache 346 case 2: 347 return &v.unknownFields 348 default: 349 return nil 350 } 351 } 352 } 353 type x struct{} 354 out := protoimpl.TypeBuilder{ 355 File: protoimpl.DescBuilder{ 356 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 357 RawDescriptor: file_token_service_burnable_burnable_proto_rawDesc, 358 NumEnums: 0, 359 NumMessages: 3, 360 NumExtensions: 0, 361 NumServices: 1, 362 }, 363 GoTypes: file_token_service_burnable_burnable_proto_goTypes, 364 DependencyIndexes: file_token_service_burnable_burnable_proto_depIdxs, 365 MessageInfos: file_token_service_burnable_burnable_proto_msgTypes, 366 }.Build() 367 File_token_service_burnable_burnable_proto = out.File 368 file_token_service_burnable_burnable_proto_rawDesc = nil 369 file_token_service_burnable_burnable_proto_goTypes = nil 370 file_token_service_burnable_burnable_proto_depIdxs = nil 371 } 372 373 // Reference imports to suppress errors if they are not otherwise used. 374 var _ context.Context 375 var _ grpc.ClientConnInterface 376 377 // This is a compile-time assertion to ensure that this generated file 378 // is compatible with the grpc package it is being compiled against. 379 const _ = grpc.SupportPackageIsVersion6 380 381 // BurnableServiceClient is the client API for BurnableService service. 382 // 383 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 384 type BurnableServiceClient interface { 385 Burn(ctx context.Context, in *BurnRequest, opts ...grpc.CallOption) (*BurnResponse, error) 386 } 387 388 type burnableServiceClient struct { 389 cc grpc.ClientConnInterface 390 } 391 392 func NewBurnableServiceClient(cc grpc.ClientConnInterface) BurnableServiceClient { 393 return &burnableServiceClient{cc} 394 } 395 396 func (c *burnableServiceClient) Burn(ctx context.Context, in *BurnRequest, opts ...grpc.CallOption) (*BurnResponse, error) { 397 out := new(BurnResponse) 398 err := c.cc.Invoke(ctx, "/examples.erc20_service.service.balance.BurnableService/Burn", in, out, opts...) 399 if err != nil { 400 return nil, err 401 } 402 return out, nil 403 } 404 405 // BurnableServiceServer is the server API for BurnableService service. 406 type BurnableServiceServer interface { 407 Burn(context.Context, *BurnRequest) (*BurnResponse, error) 408 } 409 410 // UnimplementedBurnableServiceServer can be embedded to have forward compatible implementations. 411 type UnimplementedBurnableServiceServer struct { 412 } 413 414 func (*UnimplementedBurnableServiceServer) Burn(context.Context, *BurnRequest) (*BurnResponse, error) { 415 return nil, status.Errorf(codes.Unimplemented, "method Burn not implemented") 416 } 417 418 func RegisterBurnableServiceServer(s *grpc.Server, srv BurnableServiceServer) { 419 s.RegisterService(&_BurnableService_serviceDesc, srv) 420 } 421 422 func _BurnableService_Burn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 423 in := new(BurnRequest) 424 if err := dec(in); err != nil { 425 return nil, err 426 } 427 if interceptor == nil { 428 return srv.(BurnableServiceServer).Burn(ctx, in) 429 } 430 info := &grpc.UnaryServerInfo{ 431 Server: srv, 432 FullMethod: "/examples.erc20_service.service.balance.BurnableService/Burn", 433 } 434 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 435 return srv.(BurnableServiceServer).Burn(ctx, req.(*BurnRequest)) 436 } 437 return interceptor(ctx, in, info, handler) 438 } 439 440 var _BurnableService_serviceDesc = grpc.ServiceDesc{ 441 ServiceName: "examples.erc20_service.service.balance.BurnableService", 442 HandlerType: (*BurnableServiceServer)(nil), 443 Methods: []grpc.MethodDesc{ 444 { 445 MethodName: "Burn", 446 Handler: _BurnableService_Burn_Handler, 447 }, 448 }, 449 Streams: []grpc.StreamDesc{}, 450 Metadata: "token/service/burnable/burnable.proto", 451 }