github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/poll/blockmetapb/blockmeta.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.23.0 12 // protoc v3.12.4 13 // source: blockmeta.proto 14 15 package blockmetapb 16 17 import ( 18 timestamp "github.com/golang/protobuf/ptypes/timestamp" 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 BlockMeta struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 BlockHeight uint64 `protobuf:"varint,1,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` 38 BlockProducer string `protobuf:"bytes,2,opt,name=blockProducer,proto3" json:"blockProducer,omitempty"` 39 BlockTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=blockTime,proto3" json:"blockTime,omitempty"` 40 } 41 42 func (x *BlockMeta) Reset() { 43 *x = BlockMeta{} 44 if protoimpl.UnsafeEnabled { 45 mi := &file_blockmeta_proto_msgTypes[0] 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 ms.StoreMessageInfo(mi) 48 } 49 } 50 51 func (x *BlockMeta) String() string { 52 return protoimpl.X.MessageStringOf(x) 53 } 54 55 func (*BlockMeta) ProtoMessage() {} 56 57 func (x *BlockMeta) ProtoReflect() protoreflect.Message { 58 mi := &file_blockmeta_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 BlockMeta.ProtoReflect.Descriptor instead. 70 func (*BlockMeta) Descriptor() ([]byte, []int) { 71 return file_blockmeta_proto_rawDescGZIP(), []int{0} 72 } 73 74 func (x *BlockMeta) GetBlockHeight() uint64 { 75 if x != nil { 76 return x.BlockHeight 77 } 78 return 0 79 } 80 81 func (x *BlockMeta) GetBlockProducer() string { 82 if x != nil { 83 return x.BlockProducer 84 } 85 return "" 86 } 87 88 func (x *BlockMeta) GetBlockTime() *timestamp.Timestamp { 89 if x != nil { 90 return x.BlockTime 91 } 92 return nil 93 } 94 95 var File_blockmeta_proto protoreflect.FileDescriptor 96 97 var file_blockmeta_proto_rawDesc = []byte{ 98 0x0a, 0x0f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 99 0x6f, 0x12, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x6d, 0x65, 0x74, 0x61, 0x70, 0x62, 0x1a, 0x1f, 100 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 101 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 102 0x8d, 0x01, 0x0a, 0x09, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x20, 0x0a, 103 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 104 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 105 0x24, 0x0a, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 106 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x72, 0x6f, 107 0x64, 0x75, 0x63, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 108 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 109 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 110 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x62, 111 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 112 } 113 114 var ( 115 file_blockmeta_proto_rawDescOnce sync.Once 116 file_blockmeta_proto_rawDescData = file_blockmeta_proto_rawDesc 117 ) 118 119 func file_blockmeta_proto_rawDescGZIP() []byte { 120 file_blockmeta_proto_rawDescOnce.Do(func() { 121 file_blockmeta_proto_rawDescData = protoimpl.X.CompressGZIP(file_blockmeta_proto_rawDescData) 122 }) 123 return file_blockmeta_proto_rawDescData 124 } 125 126 var file_blockmeta_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 127 var file_blockmeta_proto_goTypes = []interface{}{ 128 (*BlockMeta)(nil), // 0: blockmetapb.BlockMeta 129 (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp 130 } 131 var file_blockmeta_proto_depIdxs = []int32{ 132 1, // 0: blockmetapb.BlockMeta.blockTime:type_name -> google.protobuf.Timestamp 133 1, // [1:1] is the sub-list for method output_type 134 1, // [1:1] is the sub-list for method input_type 135 1, // [1:1] is the sub-list for extension type_name 136 1, // [1:1] is the sub-list for extension extendee 137 0, // [0:1] is the sub-list for field type_name 138 } 139 140 func init() { file_blockmeta_proto_init() } 141 func file_blockmeta_proto_init() { 142 if File_blockmeta_proto != nil { 143 return 144 } 145 if !protoimpl.UnsafeEnabled { 146 file_blockmeta_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 147 switch v := v.(*BlockMeta); i { 148 case 0: 149 return &v.state 150 case 1: 151 return &v.sizeCache 152 case 2: 153 return &v.unknownFields 154 default: 155 return nil 156 } 157 } 158 } 159 type x struct{} 160 out := protoimpl.TypeBuilder{ 161 File: protoimpl.DescBuilder{ 162 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 163 RawDescriptor: file_blockmeta_proto_rawDesc, 164 NumEnums: 0, 165 NumMessages: 1, 166 NumExtensions: 0, 167 NumServices: 0, 168 }, 169 GoTypes: file_blockmeta_proto_goTypes, 170 DependencyIndexes: file_blockmeta_proto_depIdxs, 171 MessageInfos: file_blockmeta_proto_msgTypes, 172 }.Build() 173 File_blockmeta_proto = out.File 174 file_blockmeta_proto_rawDesc = nil 175 file_blockmeta_proto_goTypes = nil 176 file_blockmeta_proto_depIdxs = nil 177 }