github.com/iotexproject/iotex-core@v1.14.1-rc1/blockindex/indexpb/index.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.26.0 12 // protoc v3.17.3 13 // source: index.proto 14 15 package indexpb 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 BlockIndex struct { 32 state protoimpl.MessageState 33 sizeCache protoimpl.SizeCache 34 unknownFields protoimpl.UnknownFields 35 36 NumAction uint32 `protobuf:"varint,1,opt,name=numAction,proto3" json:"numAction,omitempty"` 37 Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` 38 TsfAmount []byte `protobuf:"bytes,3,opt,name=tsfAmount,proto3" json:"tsfAmount,omitempty"` 39 } 40 41 func (x *BlockIndex) Reset() { 42 *x = BlockIndex{} 43 if protoimpl.UnsafeEnabled { 44 mi := &file_index_proto_msgTypes[0] 45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 46 ms.StoreMessageInfo(mi) 47 } 48 } 49 50 func (x *BlockIndex) String() string { 51 return protoimpl.X.MessageStringOf(x) 52 } 53 54 func (*BlockIndex) ProtoMessage() {} 55 56 func (x *BlockIndex) ProtoReflect() protoreflect.Message { 57 mi := &file_index_proto_msgTypes[0] 58 if protoimpl.UnsafeEnabled && x != nil { 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 if ms.LoadMessageInfo() == nil { 61 ms.StoreMessageInfo(mi) 62 } 63 return ms 64 } 65 return mi.MessageOf(x) 66 } 67 68 // Deprecated: Use BlockIndex.ProtoReflect.Descriptor instead. 69 func (*BlockIndex) Descriptor() ([]byte, []int) { 70 return file_index_proto_rawDescGZIP(), []int{0} 71 } 72 73 func (x *BlockIndex) GetNumAction() uint32 { 74 if x != nil { 75 return x.NumAction 76 } 77 return 0 78 } 79 80 func (x *BlockIndex) GetHash() []byte { 81 if x != nil { 82 return x.Hash 83 } 84 return nil 85 } 86 87 func (x *BlockIndex) GetTsfAmount() []byte { 88 if x != nil { 89 return x.TsfAmount 90 } 91 return nil 92 } 93 94 type ActionIndex struct { 95 state protoimpl.MessageState 96 sizeCache protoimpl.SizeCache 97 unknownFields protoimpl.UnknownFields 98 99 BlkHeight uint64 `protobuf:"varint,1,opt,name=blkHeight,proto3" json:"blkHeight,omitempty"` 100 } 101 102 func (x *ActionIndex) Reset() { 103 *x = ActionIndex{} 104 if protoimpl.UnsafeEnabled { 105 mi := &file_index_proto_msgTypes[1] 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 ms.StoreMessageInfo(mi) 108 } 109 } 110 111 func (x *ActionIndex) String() string { 112 return protoimpl.X.MessageStringOf(x) 113 } 114 115 func (*ActionIndex) ProtoMessage() {} 116 117 func (x *ActionIndex) ProtoReflect() protoreflect.Message { 118 mi := &file_index_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 ActionIndex.ProtoReflect.Descriptor instead. 130 func (*ActionIndex) Descriptor() ([]byte, []int) { 131 return file_index_proto_rawDescGZIP(), []int{1} 132 } 133 134 func (x *ActionIndex) GetBlkHeight() uint64 { 135 if x != nil { 136 return x.BlkHeight 137 } 138 return 0 139 } 140 141 type SGDIndex struct { 142 state protoimpl.MessageState 143 sizeCache protoimpl.SizeCache 144 unknownFields protoimpl.UnknownFields 145 146 Contract []byte `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` 147 Receiver []byte `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` 148 Approved bool `protobuf:"varint,3,opt,name=approved,proto3" json:"approved,omitempty"` 149 } 150 151 func (x *SGDIndex) Reset() { 152 *x = SGDIndex{} 153 if protoimpl.UnsafeEnabled { 154 mi := &file_index_proto_msgTypes[2] 155 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 156 ms.StoreMessageInfo(mi) 157 } 158 } 159 160 func (x *SGDIndex) String() string { 161 return protoimpl.X.MessageStringOf(x) 162 } 163 164 func (*SGDIndex) ProtoMessage() {} 165 166 func (x *SGDIndex) ProtoReflect() protoreflect.Message { 167 mi := &file_index_proto_msgTypes[2] 168 if protoimpl.UnsafeEnabled && x != nil { 169 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 170 if ms.LoadMessageInfo() == nil { 171 ms.StoreMessageInfo(mi) 172 } 173 return ms 174 } 175 return mi.MessageOf(x) 176 } 177 178 // Deprecated: Use SGDIndex.ProtoReflect.Descriptor instead. 179 func (*SGDIndex) Descriptor() ([]byte, []int) { 180 return file_index_proto_rawDescGZIP(), []int{2} 181 } 182 183 func (x *SGDIndex) GetContract() []byte { 184 if x != nil { 185 return x.Contract 186 } 187 return nil 188 } 189 190 func (x *SGDIndex) GetReceiver() []byte { 191 if x != nil { 192 return x.Receiver 193 } 194 return nil 195 } 196 197 func (x *SGDIndex) GetApproved() bool { 198 if x != nil { 199 return x.Approved 200 } 201 return false 202 } 203 204 var File_index_proto protoreflect.FileDescriptor 205 206 var file_index_proto_rawDesc = []byte{ 207 0x0a, 0x0b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x69, 208 0x6e, 0x64, 0x65, 0x78, 0x70, 0x62, 0x22, 0x5c, 0x0a, 0x0a, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 209 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 0x41, 0x63, 0x74, 0x69, 0x6f, 210 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6e, 0x75, 0x6d, 0x41, 0x63, 0x74, 0x69, 211 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 212 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x73, 0x66, 0x41, 0x6d, 0x6f, 213 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x73, 0x66, 0x41, 0x6d, 214 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2b, 0x0a, 0x0b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 215 0x64, 0x65, 0x78, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x6c, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 216 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x62, 0x6c, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 217 0x74, 0x22, 0x5e, 0x0a, 0x08, 0x53, 0x47, 0x44, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1a, 0x0a, 218 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 219 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 220 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x65, 0x63, 221 0x65, 0x69, 0x76, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 222 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 223 0x64, 0x42, 0x0c, 0x5a, 0x0a, 0x2e, 0x2e, 0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x70, 0x62, 0x62, 224 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 225 } 226 227 var ( 228 file_index_proto_rawDescOnce sync.Once 229 file_index_proto_rawDescData = file_index_proto_rawDesc 230 ) 231 232 func file_index_proto_rawDescGZIP() []byte { 233 file_index_proto_rawDescOnce.Do(func() { 234 file_index_proto_rawDescData = protoimpl.X.CompressGZIP(file_index_proto_rawDescData) 235 }) 236 return file_index_proto_rawDescData 237 } 238 239 var file_index_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 240 var file_index_proto_goTypes = []interface{}{ 241 (*BlockIndex)(nil), // 0: indexpb.BlockIndex 242 (*ActionIndex)(nil), // 1: indexpb.ActionIndex 243 (*SGDIndex)(nil), // 2: indexpb.SGDIndex 244 } 245 var file_index_proto_depIdxs = []int32{ 246 0, // [0:0] is the sub-list for method output_type 247 0, // [0:0] is the sub-list for method input_type 248 0, // [0:0] is the sub-list for extension type_name 249 0, // [0:0] is the sub-list for extension extendee 250 0, // [0:0] is the sub-list for field type_name 251 } 252 253 func init() { file_index_proto_init() } 254 func file_index_proto_init() { 255 if File_index_proto != nil { 256 return 257 } 258 if !protoimpl.UnsafeEnabled { 259 file_index_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 260 switch v := v.(*BlockIndex); i { 261 case 0: 262 return &v.state 263 case 1: 264 return &v.sizeCache 265 case 2: 266 return &v.unknownFields 267 default: 268 return nil 269 } 270 } 271 file_index_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 272 switch v := v.(*ActionIndex); i { 273 case 0: 274 return &v.state 275 case 1: 276 return &v.sizeCache 277 case 2: 278 return &v.unknownFields 279 default: 280 return nil 281 } 282 } 283 file_index_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 284 switch v := v.(*SGDIndex); i { 285 case 0: 286 return &v.state 287 case 1: 288 return &v.sizeCache 289 case 2: 290 return &v.unknownFields 291 default: 292 return nil 293 } 294 } 295 } 296 type x struct{} 297 out := protoimpl.TypeBuilder{ 298 File: protoimpl.DescBuilder{ 299 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 300 RawDescriptor: file_index_proto_rawDesc, 301 NumEnums: 0, 302 NumMessages: 3, 303 NumExtensions: 0, 304 NumServices: 0, 305 }, 306 GoTypes: file_index_proto_goTypes, 307 DependencyIndexes: file_index_proto_depIdxs, 308 MessageInfos: file_index_proto_msgTypes, 309 }.Build() 310 File_index_proto = out.File 311 file_index_proto_rawDesc = nil 312 file_index_proto_goTypes = nil 313 file_index_proto_depIdxs = nil 314 }