github.com/iotexproject/iotex-core@v1.14.1-rc1/consensus/scheme/rolldpos/endorsementpb/endorsementmanager.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.3 13 // source: consensus/scheme/rolldpos/endorsementpb/endorsementmanager.proto 14 15 package endorsementpb 16 17 import ( 18 iotextypes "github.com/iotexproject/iotex-proto/golang/iotextypes" 19 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 20 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 21 reflect "reflect" 22 sync "sync" 23 ) 24 25 const ( 26 // Verify that this generated code is sufficiently up-to-date. 27 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 28 // Verify that runtime/protoimpl is sufficiently up-to-date. 29 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 30 ) 31 32 type EndorserEndorsementCollection struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 Endorser string `protobuf:"bytes,1,opt,name=endorser,proto3" json:"endorser,omitempty"` 38 Topics []uint32 `protobuf:"varint,2,rep,packed,name=topics,proto3" json:"topics,omitempty"` 39 Endorsements []*iotextypes.Endorsement `protobuf:"bytes,3,rep,name=endorsements,proto3" json:"endorsements,omitempty"` 40 } 41 42 func (x *EndorserEndorsementCollection) Reset() { 43 *x = EndorserEndorsementCollection{} 44 if protoimpl.UnsafeEnabled { 45 mi := &file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_msgTypes[0] 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 ms.StoreMessageInfo(mi) 48 } 49 } 50 51 func (x *EndorserEndorsementCollection) String() string { 52 return protoimpl.X.MessageStringOf(x) 53 } 54 55 func (*EndorserEndorsementCollection) ProtoMessage() {} 56 57 func (x *EndorserEndorsementCollection) ProtoReflect() protoreflect.Message { 58 mi := &file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_msgTypes[0] 59 if protoimpl.UnsafeEnabled && x != nil { 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 if ms.LoadMessageInfo() == nil { 62 ms.StoreMessageInfo(mi) 63 } 64 return ms 65 } 66 return mi.MessageOf(x) 67 } 68 69 // Deprecated: Use EndorserEndorsementCollection.ProtoReflect.Descriptor instead. 70 func (*EndorserEndorsementCollection) Descriptor() ([]byte, []int) { 71 return file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDescGZIP(), []int{0} 72 } 73 74 func (x *EndorserEndorsementCollection) GetEndorser() string { 75 if x != nil { 76 return x.Endorser 77 } 78 return "" 79 } 80 81 func (x *EndorserEndorsementCollection) GetTopics() []uint32 { 82 if x != nil { 83 return x.Topics 84 } 85 return nil 86 } 87 88 func (x *EndorserEndorsementCollection) GetEndorsements() []*iotextypes.Endorsement { 89 if x != nil { 90 return x.Endorsements 91 } 92 return nil 93 } 94 95 type BlockEndorsementCollection struct { 96 state protoimpl.MessageState 97 sizeCache protoimpl.SizeCache 98 unknownFields protoimpl.UnknownFields 99 100 Blk *iotextypes.Block `protobuf:"bytes,1,opt,name=blk,proto3" json:"blk,omitempty"` 101 BlockMap []*EndorserEndorsementCollection `protobuf:"bytes,2,rep,name=blockMap,proto3" json:"blockMap,omitempty"` 102 } 103 104 func (x *BlockEndorsementCollection) Reset() { 105 *x = BlockEndorsementCollection{} 106 if protoimpl.UnsafeEnabled { 107 mi := &file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_msgTypes[1] 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 ms.StoreMessageInfo(mi) 110 } 111 } 112 113 func (x *BlockEndorsementCollection) String() string { 114 return protoimpl.X.MessageStringOf(x) 115 } 116 117 func (*BlockEndorsementCollection) ProtoMessage() {} 118 119 func (x *BlockEndorsementCollection) ProtoReflect() protoreflect.Message { 120 mi := &file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_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 BlockEndorsementCollection.ProtoReflect.Descriptor instead. 132 func (*BlockEndorsementCollection) Descriptor() ([]byte, []int) { 133 return file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDescGZIP(), []int{1} 134 } 135 136 func (x *BlockEndorsementCollection) GetBlk() *iotextypes.Block { 137 if x != nil { 138 return x.Blk 139 } 140 return nil 141 } 142 143 func (x *BlockEndorsementCollection) GetBlockMap() []*EndorserEndorsementCollection { 144 if x != nil { 145 return x.BlockMap 146 } 147 return nil 148 } 149 150 type EndorsementManager struct { 151 state protoimpl.MessageState 152 sizeCache protoimpl.SizeCache 153 unknownFields protoimpl.UnknownFields 154 155 BlkHash []string `protobuf:"bytes,1,rep,name=blkHash,proto3" json:"blkHash,omitempty"` 156 BlockEndorsements []*BlockEndorsementCollection `protobuf:"bytes,2,rep,name=blockEndorsements,proto3" json:"blockEndorsements,omitempty"` 157 CachedMintedBlk *iotextypes.Block `protobuf:"bytes,3,opt,name=cachedMintedBlk,proto3" json:"cachedMintedBlk,omitempty"` 158 } 159 160 func (x *EndorsementManager) Reset() { 161 *x = EndorsementManager{} 162 if protoimpl.UnsafeEnabled { 163 mi := &file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_msgTypes[2] 164 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 165 ms.StoreMessageInfo(mi) 166 } 167 } 168 169 func (x *EndorsementManager) String() string { 170 return protoimpl.X.MessageStringOf(x) 171 } 172 173 func (*EndorsementManager) ProtoMessage() {} 174 175 func (x *EndorsementManager) ProtoReflect() protoreflect.Message { 176 mi := &file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_msgTypes[2] 177 if protoimpl.UnsafeEnabled && x != nil { 178 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 179 if ms.LoadMessageInfo() == nil { 180 ms.StoreMessageInfo(mi) 181 } 182 return ms 183 } 184 return mi.MessageOf(x) 185 } 186 187 // Deprecated: Use EndorsementManager.ProtoReflect.Descriptor instead. 188 func (*EndorsementManager) Descriptor() ([]byte, []int) { 189 return file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDescGZIP(), []int{2} 190 } 191 192 func (x *EndorsementManager) GetBlkHash() []string { 193 if x != nil { 194 return x.BlkHash 195 } 196 return nil 197 } 198 199 func (x *EndorsementManager) GetBlockEndorsements() []*BlockEndorsementCollection { 200 if x != nil { 201 return x.BlockEndorsements 202 } 203 return nil 204 } 205 206 func (x *EndorsementManager) GetCachedMintedBlk() *iotextypes.Block { 207 if x != nil { 208 return x.CachedMintedBlk 209 } 210 return nil 211 } 212 213 var File_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto protoreflect.FileDescriptor 214 215 var file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDesc = []byte{ 216 0x0a, 0x40, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 217 0x6d, 0x65, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x64, 0x70, 0x6f, 0x73, 0x2f, 0x65, 0x6e, 0x64, 0x6f, 218 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 219 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 220 0x74, 0x6f, 0x12, 0x0d, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 221 0x62, 0x1a, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x62, 222 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 223 0x1d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x65, 0x6e, 0x64, 224 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x90, 225 0x01, 0x0a, 0x1d, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x6f, 0x72, 226 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 227 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 228 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 229 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x6f, 230 0x70, 0x69, 0x63, 0x73, 0x12, 0x3b, 0x0a, 0x0c, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 231 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6f, 0x74, 232 0x65, 0x78, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 233 0x65, 0x6e, 0x74, 0x52, 0x0c, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 234 0x73, 0x22, 0x8b, 0x01, 0x0a, 0x1a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x45, 0x6e, 0x64, 0x6f, 0x72, 235 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 236 0x12, 0x23, 0x0a, 0x03, 0x62, 0x6c, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 237 0x69, 0x6f, 0x74, 0x65, 0x78, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 238 0x52, 0x03, 0x62, 0x6c, 0x6b, 0x12, 0x48, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x61, 239 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 240 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x72, 241 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 242 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x61, 0x70, 0x22, 243 0xc4, 0x01, 0x0a, 0x12, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 244 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x6c, 0x6b, 0x48, 0x61, 0x73, 245 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x6c, 0x6b, 0x48, 0x61, 0x73, 0x68, 246 0x12, 0x57, 0x0a, 0x11, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 247 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x65, 0x6e, 248 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 249 0x6b, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 250 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x45, 0x6e, 0x64, 251 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x0f, 0x63, 0x61, 0x63, 252 0x68, 0x65, 0x64, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6b, 0x18, 0x03, 0x20, 0x01, 253 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x69, 0x6f, 0x74, 0x65, 0x78, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 254 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x0f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x4d, 0x69, 0x6e, 255 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6b, 0x42, 0x4c, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 256 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6f, 0x74, 0x65, 0x78, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 257 0x74, 0x2f, 0x69, 0x6f, 0x74, 0x65, 0x78, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6e, 258 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x2f, 0x72, 0x6f, 259 0x6c, 0x6c, 0x64, 0x70, 0x6f, 0x73, 0x2f, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x6d, 0x65, 260 0x6e, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 261 } 262 263 var ( 264 file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDescOnce sync.Once 265 file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDescData = file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDesc 266 ) 267 268 func file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDescGZIP() []byte { 269 file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDescOnce.Do(func() { 270 file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDescData = protoimpl.X.CompressGZIP(file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDescData) 271 }) 272 return file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDescData 273 } 274 275 var file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 276 var file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_goTypes = []interface{}{ 277 (*EndorserEndorsementCollection)(nil), // 0: endorsementpb.endorserEndorsementCollection 278 (*BlockEndorsementCollection)(nil), // 1: endorsementpb.blockEndorsementCollection 279 (*EndorsementManager)(nil), // 2: endorsementpb.endorsementManager 280 (*iotextypes.Endorsement)(nil), // 3: iotextypes.Endorsement 281 (*iotextypes.Block)(nil), // 4: iotextypes.Block 282 } 283 var file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_depIdxs = []int32{ 284 3, // 0: endorsementpb.endorserEndorsementCollection.endorsements:type_name -> iotextypes.Endorsement 285 4, // 1: endorsementpb.blockEndorsementCollection.blk:type_name -> iotextypes.Block 286 0, // 2: endorsementpb.blockEndorsementCollection.blockMap:type_name -> endorsementpb.endorserEndorsementCollection 287 1, // 3: endorsementpb.endorsementManager.blockEndorsements:type_name -> endorsementpb.blockEndorsementCollection 288 4, // 4: endorsementpb.endorsementManager.cachedMintedBlk:type_name -> iotextypes.Block 289 5, // [5:5] is the sub-list for method output_type 290 5, // [5:5] is the sub-list for method input_type 291 5, // [5:5] is the sub-list for extension type_name 292 5, // [5:5] is the sub-list for extension extendee 293 0, // [0:5] is the sub-list for field type_name 294 } 295 296 func init() { file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_init() } 297 func file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_init() { 298 if File_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto != nil { 299 return 300 } 301 if !protoimpl.UnsafeEnabled { 302 file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 303 switch v := v.(*EndorserEndorsementCollection); i { 304 case 0: 305 return &v.state 306 case 1: 307 return &v.sizeCache 308 case 2: 309 return &v.unknownFields 310 default: 311 return nil 312 } 313 } 314 file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 315 switch v := v.(*BlockEndorsementCollection); i { 316 case 0: 317 return &v.state 318 case 1: 319 return &v.sizeCache 320 case 2: 321 return &v.unknownFields 322 default: 323 return nil 324 } 325 } 326 file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 327 switch v := v.(*EndorsementManager); i { 328 case 0: 329 return &v.state 330 case 1: 331 return &v.sizeCache 332 case 2: 333 return &v.unknownFields 334 default: 335 return nil 336 } 337 } 338 } 339 type x struct{} 340 out := protoimpl.TypeBuilder{ 341 File: protoimpl.DescBuilder{ 342 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 343 RawDescriptor: file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDesc, 344 NumEnums: 0, 345 NumMessages: 3, 346 NumExtensions: 0, 347 NumServices: 0, 348 }, 349 GoTypes: file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_goTypes, 350 DependencyIndexes: file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_depIdxs, 351 MessageInfos: file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_msgTypes, 352 }.Build() 353 File_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto = out.File 354 file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_rawDesc = nil 355 file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_goTypes = nil 356 file_consensus_scheme_rolldpos_endorsementpb_endorsementmanager_proto_depIdxs = nil 357 }