github.com/iotexproject/iotex-core@v1.14.1-rc1/blockchain/filedao/headerpb/header.pb.go (about) 1 // Copyright (c) 2020 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.25.0 12 // protoc v3.12.4 13 // source: header.proto 14 15 package headerpb 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 FileHeader struct { 32 state protoimpl.MessageState 33 sizeCache protoimpl.SizeCache 34 unknownFields protoimpl.UnknownFields 35 36 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` 37 Compressor string `protobuf:"bytes,2,opt,name=compressor,proto3" json:"compressor,omitempty"` 38 BlockStoreSize uint64 `protobuf:"varint,3,opt,name=blockStoreSize,proto3" json:"blockStoreSize,omitempty"` 39 Start uint64 `protobuf:"varint,4,opt,name=start,proto3" json:"start,omitempty"` 40 } 41 42 func (x *FileHeader) Reset() { 43 *x = FileHeader{} 44 if protoimpl.UnsafeEnabled { 45 mi := &file_header_proto_msgTypes[0] 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 ms.StoreMessageInfo(mi) 48 } 49 } 50 51 func (x *FileHeader) String() string { 52 return protoimpl.X.MessageStringOf(x) 53 } 54 55 func (*FileHeader) ProtoMessage() {} 56 57 func (x *FileHeader) ProtoReflect() protoreflect.Message { 58 mi := &file_header_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 FileHeader.ProtoReflect.Descriptor instead. 70 func (*FileHeader) Descriptor() ([]byte, []int) { 71 return file_header_proto_rawDescGZIP(), []int{0} 72 } 73 74 func (x *FileHeader) GetVersion() string { 75 if x != nil { 76 return x.Version 77 } 78 return "" 79 } 80 81 func (x *FileHeader) GetCompressor() string { 82 if x != nil { 83 return x.Compressor 84 } 85 return "" 86 } 87 88 func (x *FileHeader) GetBlockStoreSize() uint64 { 89 if x != nil { 90 return x.BlockStoreSize 91 } 92 return 0 93 } 94 95 func (x *FileHeader) GetStart() uint64 { 96 if x != nil { 97 return x.Start 98 } 99 return 0 100 } 101 102 type FileTip struct { 103 state protoimpl.MessageState 104 sizeCache protoimpl.SizeCache 105 unknownFields protoimpl.UnknownFields 106 107 Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 108 Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` 109 } 110 111 func (x *FileTip) Reset() { 112 *x = FileTip{} 113 if protoimpl.UnsafeEnabled { 114 mi := &file_header_proto_msgTypes[1] 115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 116 ms.StoreMessageInfo(mi) 117 } 118 } 119 120 func (x *FileTip) String() string { 121 return protoimpl.X.MessageStringOf(x) 122 } 123 124 func (*FileTip) ProtoMessage() {} 125 126 func (x *FileTip) ProtoReflect() protoreflect.Message { 127 mi := &file_header_proto_msgTypes[1] 128 if protoimpl.UnsafeEnabled && x != nil { 129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 130 if ms.LoadMessageInfo() == nil { 131 ms.StoreMessageInfo(mi) 132 } 133 return ms 134 } 135 return mi.MessageOf(x) 136 } 137 138 // Deprecated: Use FileTip.ProtoReflect.Descriptor instead. 139 func (*FileTip) Descriptor() ([]byte, []int) { 140 return file_header_proto_rawDescGZIP(), []int{1} 141 } 142 143 func (x *FileTip) GetHeight() uint64 { 144 if x != nil { 145 return x.Height 146 } 147 return 0 148 } 149 150 func (x *FileTip) GetHash() []byte { 151 if x != nil { 152 return x.Hash 153 } 154 return nil 155 } 156 157 var File_header_proto protoreflect.FileDescriptor 158 159 var file_header_proto_rawDesc = []byte{ 160 0x0a, 0x0c, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 161 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x70, 0x62, 0x22, 0x84, 0x01, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 162 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 163 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 164 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 165 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x6f, 166 0x72, 0x12, 0x26, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x53, 167 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 168 0x53, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 169 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x22, 170 0x35, 0x0a, 0x07, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 171 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 172 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 173 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 174 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6f, 0x74, 0x65, 0x78, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 175 0x74, 0x2f, 0x69, 0x6f, 0x74, 0x65, 0x78, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x6c, 0x6f, 176 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x64, 0x61, 0x6f, 0x2f, 177 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 178 } 179 180 var ( 181 file_header_proto_rawDescOnce sync.Once 182 file_header_proto_rawDescData = file_header_proto_rawDesc 183 ) 184 185 func file_header_proto_rawDescGZIP() []byte { 186 file_header_proto_rawDescOnce.Do(func() { 187 file_header_proto_rawDescData = protoimpl.X.CompressGZIP(file_header_proto_rawDescData) 188 }) 189 return file_header_proto_rawDescData 190 } 191 192 var file_header_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 193 var file_header_proto_goTypes = []interface{}{ 194 (*FileHeader)(nil), // 0: headerpb.FileHeader 195 (*FileTip)(nil), // 1: headerpb.FileTip 196 } 197 var file_header_proto_depIdxs = []int32{ 198 0, // [0:0] is the sub-list for method output_type 199 0, // [0:0] is the sub-list for method input_type 200 0, // [0:0] is the sub-list for extension type_name 201 0, // [0:0] is the sub-list for extension extendee 202 0, // [0:0] is the sub-list for field type_name 203 } 204 205 func init() { file_header_proto_init() } 206 func file_header_proto_init() { 207 if File_header_proto != nil { 208 return 209 } 210 if !protoimpl.UnsafeEnabled { 211 file_header_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 212 switch v := v.(*FileHeader); i { 213 case 0: 214 return &v.state 215 case 1: 216 return &v.sizeCache 217 case 2: 218 return &v.unknownFields 219 default: 220 return nil 221 } 222 } 223 file_header_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 224 switch v := v.(*FileTip); i { 225 case 0: 226 return &v.state 227 case 1: 228 return &v.sizeCache 229 case 2: 230 return &v.unknownFields 231 default: 232 return nil 233 } 234 } 235 } 236 type x struct{} 237 out := protoimpl.TypeBuilder{ 238 File: protoimpl.DescBuilder{ 239 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 240 RawDescriptor: file_header_proto_rawDesc, 241 NumEnums: 0, 242 NumMessages: 2, 243 NumExtensions: 0, 244 NumServices: 0, 245 }, 246 GoTypes: file_header_proto_goTypes, 247 DependencyIndexes: file_header_proto_depIdxs, 248 MessageInfos: file_header_proto_msgTypes, 249 }.Build() 250 File_header_proto = out.File 251 file_header_proto_rawDesc = nil 252 file_header_proto_goTypes = nil 253 file_header_proto_depIdxs = nil 254 }