github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/rewarding/rewardingpb/rewarding.pb.go (about) 1 // Copyright (c) 2019 IoTeX 2 // This source code is provided 'as is' and no warranties are given as to title or non-infringement, merchantability 3 // or fitness for purpose and, to the extent permitted by law, all liability for your use of the code is disclaimed. 4 // This source code is governed by Apache License 2.0 that can be found in the LICENSE file. 5 6 // To compile the proto, run: 7 // protoc --go_out=plugins=grpc:. *.proto 8 9 // Code generated by protoc-gen-go. DO NOT EDIT. 10 // versions: 11 // protoc-gen-go v1.23.0 12 // protoc v3.12.4 13 // source: rewarding.proto 14 15 package rewardingpb 16 17 import ( 18 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 19 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 20 reflect "reflect" 21 sync "sync" 22 ) 23 24 const ( 25 // Verify that this generated code is sufficiently up-to-date. 26 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 27 // Verify that runtime/protoimpl is sufficiently up-to-date. 28 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 29 ) 30 31 type RewardLog_RewardType int32 32 33 const ( 34 RewardLog_BLOCK_REWARD RewardLog_RewardType = 0 35 RewardLog_EPOCH_REWARD RewardLog_RewardType = 1 36 RewardLog_FOUNDATION_BONUS RewardLog_RewardType = 2 37 ) 38 39 // Enum value maps for RewardLog_RewardType. 40 var ( 41 RewardLog_RewardType_name = map[int32]string{ 42 0: "BLOCK_REWARD", 43 1: "EPOCH_REWARD", 44 2: "FOUNDATION_BONUS", 45 } 46 RewardLog_RewardType_value = map[string]int32{ 47 "BLOCK_REWARD": 0, 48 "EPOCH_REWARD": 1, 49 "FOUNDATION_BONUS": 2, 50 } 51 ) 52 53 func (x RewardLog_RewardType) Enum() *RewardLog_RewardType { 54 p := new(RewardLog_RewardType) 55 *p = x 56 return p 57 } 58 59 func (x RewardLog_RewardType) String() string { 60 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 61 } 62 63 func (RewardLog_RewardType) Descriptor() protoreflect.EnumDescriptor { 64 return file_rewarding_proto_enumTypes[0].Descriptor() 65 } 66 67 func (RewardLog_RewardType) Type() protoreflect.EnumType { 68 return &file_rewarding_proto_enumTypes[0] 69 } 70 71 func (x RewardLog_RewardType) Number() protoreflect.EnumNumber { 72 return protoreflect.EnumNumber(x) 73 } 74 75 // Deprecated: Use RewardLog_RewardType.Descriptor instead. 76 func (RewardLog_RewardType) EnumDescriptor() ([]byte, []int) { 77 return file_rewarding_proto_rawDescGZIP(), []int{5, 0} 78 } 79 80 type Admin struct { 81 state protoimpl.MessageState 82 sizeCache protoimpl.SizeCache 83 unknownFields protoimpl.UnknownFields 84 85 BlockReward string `protobuf:"bytes,1,opt,name=blockReward,proto3" json:"blockReward,omitempty"` 86 EpochReward string `protobuf:"bytes,2,opt,name=epochReward,proto3" json:"epochReward,omitempty"` 87 NumDelegatesForEpochReward uint64 `protobuf:"varint,3,opt,name=numDelegatesForEpochReward,proto3" json:"numDelegatesForEpochReward,omitempty"` 88 FoundationBonus string `protobuf:"bytes,4,opt,name=foundationBonus,proto3" json:"foundationBonus,omitempty"` 89 NumDelegatesForFoundationBonus uint64 `protobuf:"varint,5,opt,name=numDelegatesForFoundationBonus,proto3" json:"numDelegatesForFoundationBonus,omitempty"` 90 FoundationBonusLastEpoch uint64 `protobuf:"varint,6,opt,name=foundationBonusLastEpoch,proto3" json:"foundationBonusLastEpoch,omitempty"` 91 ProductivityThreshold uint64 `protobuf:"varint,7,opt,name=productivityThreshold,proto3" json:"productivityThreshold,omitempty"` 92 } 93 94 func (x *Admin) Reset() { 95 *x = Admin{} 96 if protoimpl.UnsafeEnabled { 97 mi := &file_rewarding_proto_msgTypes[0] 98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 ms.StoreMessageInfo(mi) 100 } 101 } 102 103 func (x *Admin) String() string { 104 return protoimpl.X.MessageStringOf(x) 105 } 106 107 func (*Admin) ProtoMessage() {} 108 109 func (x *Admin) ProtoReflect() protoreflect.Message { 110 mi := &file_rewarding_proto_msgTypes[0] 111 if protoimpl.UnsafeEnabled && x != nil { 112 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 113 if ms.LoadMessageInfo() == nil { 114 ms.StoreMessageInfo(mi) 115 } 116 return ms 117 } 118 return mi.MessageOf(x) 119 } 120 121 // Deprecated: Use Admin.ProtoReflect.Descriptor instead. 122 func (*Admin) Descriptor() ([]byte, []int) { 123 return file_rewarding_proto_rawDescGZIP(), []int{0} 124 } 125 126 func (x *Admin) GetBlockReward() string { 127 if x != nil { 128 return x.BlockReward 129 } 130 return "" 131 } 132 133 func (x *Admin) GetEpochReward() string { 134 if x != nil { 135 return x.EpochReward 136 } 137 return "" 138 } 139 140 func (x *Admin) GetNumDelegatesForEpochReward() uint64 { 141 if x != nil { 142 return x.NumDelegatesForEpochReward 143 } 144 return 0 145 } 146 147 func (x *Admin) GetFoundationBonus() string { 148 if x != nil { 149 return x.FoundationBonus 150 } 151 return "" 152 } 153 154 func (x *Admin) GetNumDelegatesForFoundationBonus() uint64 { 155 if x != nil { 156 return x.NumDelegatesForFoundationBonus 157 } 158 return 0 159 } 160 161 func (x *Admin) GetFoundationBonusLastEpoch() uint64 { 162 if x != nil { 163 return x.FoundationBonusLastEpoch 164 } 165 return 0 166 } 167 168 func (x *Admin) GetProductivityThreshold() uint64 { 169 if x != nil { 170 return x.ProductivityThreshold 171 } 172 return 0 173 } 174 175 type Fund struct { 176 state protoimpl.MessageState 177 sizeCache protoimpl.SizeCache 178 unknownFields protoimpl.UnknownFields 179 180 TotalBalance string `protobuf:"bytes,1,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"` 181 UnclaimedBalance string `protobuf:"bytes,2,opt,name=unclaimedBalance,proto3" json:"unclaimedBalance,omitempty"` 182 } 183 184 func (x *Fund) Reset() { 185 *x = Fund{} 186 if protoimpl.UnsafeEnabled { 187 mi := &file_rewarding_proto_msgTypes[1] 188 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 189 ms.StoreMessageInfo(mi) 190 } 191 } 192 193 func (x *Fund) String() string { 194 return protoimpl.X.MessageStringOf(x) 195 } 196 197 func (*Fund) ProtoMessage() {} 198 199 func (x *Fund) ProtoReflect() protoreflect.Message { 200 mi := &file_rewarding_proto_msgTypes[1] 201 if protoimpl.UnsafeEnabled && x != nil { 202 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 203 if ms.LoadMessageInfo() == nil { 204 ms.StoreMessageInfo(mi) 205 } 206 return ms 207 } 208 return mi.MessageOf(x) 209 } 210 211 // Deprecated: Use Fund.ProtoReflect.Descriptor instead. 212 func (*Fund) Descriptor() ([]byte, []int) { 213 return file_rewarding_proto_rawDescGZIP(), []int{1} 214 } 215 216 func (x *Fund) GetTotalBalance() string { 217 if x != nil { 218 return x.TotalBalance 219 } 220 return "" 221 } 222 223 func (x *Fund) GetUnclaimedBalance() string { 224 if x != nil { 225 return x.UnclaimedBalance 226 } 227 return "" 228 } 229 230 type RewardHistory struct { 231 state protoimpl.MessageState 232 sizeCache protoimpl.SizeCache 233 unknownFields protoimpl.UnknownFields 234 } 235 236 func (x *RewardHistory) Reset() { 237 *x = RewardHistory{} 238 if protoimpl.UnsafeEnabled { 239 mi := &file_rewarding_proto_msgTypes[2] 240 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 241 ms.StoreMessageInfo(mi) 242 } 243 } 244 245 func (x *RewardHistory) String() string { 246 return protoimpl.X.MessageStringOf(x) 247 } 248 249 func (*RewardHistory) ProtoMessage() {} 250 251 func (x *RewardHistory) ProtoReflect() protoreflect.Message { 252 mi := &file_rewarding_proto_msgTypes[2] 253 if protoimpl.UnsafeEnabled && x != nil { 254 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 255 if ms.LoadMessageInfo() == nil { 256 ms.StoreMessageInfo(mi) 257 } 258 return ms 259 } 260 return mi.MessageOf(x) 261 } 262 263 // Deprecated: Use RewardHistory.ProtoReflect.Descriptor instead. 264 func (*RewardHistory) Descriptor() ([]byte, []int) { 265 return file_rewarding_proto_rawDescGZIP(), []int{2} 266 } 267 268 type Account struct { 269 state protoimpl.MessageState 270 sizeCache protoimpl.SizeCache 271 unknownFields protoimpl.UnknownFields 272 273 Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` 274 } 275 276 func (x *Account) Reset() { 277 *x = Account{} 278 if protoimpl.UnsafeEnabled { 279 mi := &file_rewarding_proto_msgTypes[3] 280 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 281 ms.StoreMessageInfo(mi) 282 } 283 } 284 285 func (x *Account) String() string { 286 return protoimpl.X.MessageStringOf(x) 287 } 288 289 func (*Account) ProtoMessage() {} 290 291 func (x *Account) ProtoReflect() protoreflect.Message { 292 mi := &file_rewarding_proto_msgTypes[3] 293 if protoimpl.UnsafeEnabled && x != nil { 294 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 295 if ms.LoadMessageInfo() == nil { 296 ms.StoreMessageInfo(mi) 297 } 298 return ms 299 } 300 return mi.MessageOf(x) 301 } 302 303 // Deprecated: Use Account.ProtoReflect.Descriptor instead. 304 func (*Account) Descriptor() ([]byte, []int) { 305 return file_rewarding_proto_rawDescGZIP(), []int{3} 306 } 307 308 func (x *Account) GetBalance() string { 309 if x != nil { 310 return x.Balance 311 } 312 return "" 313 } 314 315 type Exempt struct { 316 state protoimpl.MessageState 317 sizeCache protoimpl.SizeCache 318 unknownFields protoimpl.UnknownFields 319 320 Addrs [][]byte `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"` 321 } 322 323 func (x *Exempt) Reset() { 324 *x = Exempt{} 325 if protoimpl.UnsafeEnabled { 326 mi := &file_rewarding_proto_msgTypes[4] 327 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 328 ms.StoreMessageInfo(mi) 329 } 330 } 331 332 func (x *Exempt) String() string { 333 return protoimpl.X.MessageStringOf(x) 334 } 335 336 func (*Exempt) ProtoMessage() {} 337 338 func (x *Exempt) ProtoReflect() protoreflect.Message { 339 mi := &file_rewarding_proto_msgTypes[4] 340 if protoimpl.UnsafeEnabled && x != nil { 341 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 342 if ms.LoadMessageInfo() == nil { 343 ms.StoreMessageInfo(mi) 344 } 345 return ms 346 } 347 return mi.MessageOf(x) 348 } 349 350 // Deprecated: Use Exempt.ProtoReflect.Descriptor instead. 351 func (*Exempt) Descriptor() ([]byte, []int) { 352 return file_rewarding_proto_rawDescGZIP(), []int{4} 353 } 354 355 func (x *Exempt) GetAddrs() [][]byte { 356 if x != nil { 357 return x.Addrs 358 } 359 return nil 360 } 361 362 type RewardLog struct { 363 state protoimpl.MessageState 364 sizeCache protoimpl.SizeCache 365 unknownFields protoimpl.UnknownFields 366 367 Type RewardLog_RewardType `protobuf:"varint,1,opt,name=type,proto3,enum=rewardingpb.RewardLog_RewardType" json:"type,omitempty"` 368 Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` 369 Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` 370 } 371 372 func (x *RewardLog) Reset() { 373 *x = RewardLog{} 374 if protoimpl.UnsafeEnabled { 375 mi := &file_rewarding_proto_msgTypes[5] 376 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 377 ms.StoreMessageInfo(mi) 378 } 379 } 380 381 func (x *RewardLog) String() string { 382 return protoimpl.X.MessageStringOf(x) 383 } 384 385 func (*RewardLog) ProtoMessage() {} 386 387 func (x *RewardLog) ProtoReflect() protoreflect.Message { 388 mi := &file_rewarding_proto_msgTypes[5] 389 if protoimpl.UnsafeEnabled && x != nil { 390 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 391 if ms.LoadMessageInfo() == nil { 392 ms.StoreMessageInfo(mi) 393 } 394 return ms 395 } 396 return mi.MessageOf(x) 397 } 398 399 // Deprecated: Use RewardLog.ProtoReflect.Descriptor instead. 400 func (*RewardLog) Descriptor() ([]byte, []int) { 401 return file_rewarding_proto_rawDescGZIP(), []int{5} 402 } 403 404 func (x *RewardLog) GetType() RewardLog_RewardType { 405 if x != nil { 406 return x.Type 407 } 408 return RewardLog_BLOCK_REWARD 409 } 410 411 func (x *RewardLog) GetAddr() string { 412 if x != nil { 413 return x.Addr 414 } 415 return "" 416 } 417 418 func (x *RewardLog) GetAmount() string { 419 if x != nil { 420 return x.Amount 421 } 422 return "" 423 } 424 425 var File_rewarding_proto protoreflect.FileDescriptor 426 427 var file_rewarding_proto_rawDesc = []byte{ 428 0x0a, 0x0f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 429 0x6f, 0x12, 0x0b, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x22, 0xef, 430 0x02, 0x0a, 0x05, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 431 0x6b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x62, 432 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x70, 433 0x6f, 0x63, 0x68, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 434 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x3e, 0x0a, 0x1a, 435 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x45, 436 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 437 0x52, 0x1a, 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x46, 0x6f, 438 0x72, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x28, 0x0a, 0x0f, 439 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x6f, 0x6e, 0x75, 0x73, 0x18, 440 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 441 0x6e, 0x42, 0x6f, 0x6e, 0x75, 0x73, 0x12, 0x46, 0x0a, 0x1e, 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x6c, 442 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 443 0x69, 0x6f, 0x6e, 0x42, 0x6f, 0x6e, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x1e, 444 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x46, 445 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x6f, 0x6e, 0x75, 0x73, 0x12, 0x3a, 446 0x0a, 0x18, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x6f, 0x6e, 0x75, 447 0x73, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 448 0x52, 0x18, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x6f, 0x6e, 0x75, 449 0x73, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x34, 0x0a, 0x15, 0x70, 0x72, 450 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 451 0x6f, 0x6c, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x70, 0x72, 0x6f, 0x64, 0x75, 452 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 453 0x22, 0x56, 0x0a, 0x04, 0x46, 0x75, 0x6e, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 454 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 455 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2a, 0x0a, 0x10, 456 0x75, 0x6e, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 457 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x75, 0x6e, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 458 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x52, 0x65, 0x77, 0x61, 459 0x72, 0x64, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x23, 0x0a, 0x07, 0x41, 0x63, 0x63, 460 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 461 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x1e, 462 0x0a, 0x06, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x64, 0x72, 463 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x05, 0x61, 0x64, 0x64, 0x72, 0x73, 0x22, 0xb6, 464 0x01, 0x0a, 0x09, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x4c, 0x6f, 0x67, 0x12, 0x35, 0x0a, 0x04, 465 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x77, 466 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x4c, 467 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 468 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 469 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 470 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 471 0x46, 0x0a, 0x0a, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 472 0x0c, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x52, 0x45, 0x57, 0x41, 0x52, 0x44, 0x10, 0x00, 0x12, 473 0x10, 0x0a, 0x0c, 0x45, 0x50, 0x4f, 0x43, 0x48, 0x5f, 0x52, 0x45, 0x57, 0x41, 0x52, 0x44, 0x10, 474 0x01, 0x12, 0x14, 0x0a, 0x10, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 475 0x42, 0x4f, 0x4e, 0x55, 0x53, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 476 } 477 478 var ( 479 file_rewarding_proto_rawDescOnce sync.Once 480 file_rewarding_proto_rawDescData = file_rewarding_proto_rawDesc 481 ) 482 483 func file_rewarding_proto_rawDescGZIP() []byte { 484 file_rewarding_proto_rawDescOnce.Do(func() { 485 file_rewarding_proto_rawDescData = protoimpl.X.CompressGZIP(file_rewarding_proto_rawDescData) 486 }) 487 return file_rewarding_proto_rawDescData 488 } 489 490 var file_rewarding_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 491 var file_rewarding_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 492 var file_rewarding_proto_goTypes = []interface{}{ 493 (RewardLog_RewardType)(0), // 0: rewardingpb.RewardLog.RewardType 494 (*Admin)(nil), // 1: rewardingpb.Admin 495 (*Fund)(nil), // 2: rewardingpb.Fund 496 (*RewardHistory)(nil), // 3: rewardingpb.RewardHistory 497 (*Account)(nil), // 4: rewardingpb.Account 498 (*Exempt)(nil), // 5: rewardingpb.Exempt 499 (*RewardLog)(nil), // 6: rewardingpb.RewardLog 500 } 501 var file_rewarding_proto_depIdxs = []int32{ 502 0, // 0: rewardingpb.RewardLog.type:type_name -> rewardingpb.RewardLog.RewardType 503 1, // [1:1] is the sub-list for method output_type 504 1, // [1:1] is the sub-list for method input_type 505 1, // [1:1] is the sub-list for extension type_name 506 1, // [1:1] is the sub-list for extension extendee 507 0, // [0:1] is the sub-list for field type_name 508 } 509 510 func init() { file_rewarding_proto_init() } 511 func file_rewarding_proto_init() { 512 if File_rewarding_proto != nil { 513 return 514 } 515 if !protoimpl.UnsafeEnabled { 516 file_rewarding_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 517 switch v := v.(*Admin); i { 518 case 0: 519 return &v.state 520 case 1: 521 return &v.sizeCache 522 case 2: 523 return &v.unknownFields 524 default: 525 return nil 526 } 527 } 528 file_rewarding_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 529 switch v := v.(*Fund); i { 530 case 0: 531 return &v.state 532 case 1: 533 return &v.sizeCache 534 case 2: 535 return &v.unknownFields 536 default: 537 return nil 538 } 539 } 540 file_rewarding_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 541 switch v := v.(*RewardHistory); i { 542 case 0: 543 return &v.state 544 case 1: 545 return &v.sizeCache 546 case 2: 547 return &v.unknownFields 548 default: 549 return nil 550 } 551 } 552 file_rewarding_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 553 switch v := v.(*Account); i { 554 case 0: 555 return &v.state 556 case 1: 557 return &v.sizeCache 558 case 2: 559 return &v.unknownFields 560 default: 561 return nil 562 } 563 } 564 file_rewarding_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 565 switch v := v.(*Exempt); i { 566 case 0: 567 return &v.state 568 case 1: 569 return &v.sizeCache 570 case 2: 571 return &v.unknownFields 572 default: 573 return nil 574 } 575 } 576 file_rewarding_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 577 switch v := v.(*RewardLog); i { 578 case 0: 579 return &v.state 580 case 1: 581 return &v.sizeCache 582 case 2: 583 return &v.unknownFields 584 default: 585 return nil 586 } 587 } 588 } 589 type x struct{} 590 out := protoimpl.TypeBuilder{ 591 File: protoimpl.DescBuilder{ 592 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 593 RawDescriptor: file_rewarding_proto_rawDesc, 594 NumEnums: 1, 595 NumMessages: 6, 596 NumExtensions: 0, 597 NumServices: 0, 598 }, 599 GoTypes: file_rewarding_proto_goTypes, 600 DependencyIndexes: file_rewarding_proto_depIdxs, 601 EnumInfos: file_rewarding_proto_enumTypes, 602 MessageInfos: file_rewarding_proto_msgTypes, 603 }.Build() 604 File_rewarding_proto = out.File 605 file_rewarding_proto_rawDesc = nil 606 file_rewarding_proto_goTypes = nil 607 file_rewarding_proto_depIdxs = nil 608 }