github.com/iotexproject/iotex-core@v1.14.1-rc1/blockindex/contractstaking/contractstakingpb/contractstaking.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.21.12 13 // source: blockindex/contractstaking/contractstakingpb/contractstaking.proto 14 15 package contractstakingpb 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 BucketInfo struct { 32 state protoimpl.MessageState 33 sizeCache protoimpl.SizeCache 34 unknownFields protoimpl.UnknownFields 35 36 TypeIndex uint64 `protobuf:"varint,1,opt,name=typeIndex,proto3" json:"typeIndex,omitempty"` 37 CreatedAt uint64 `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` 38 UnlockedAt uint64 `protobuf:"varint,3,opt,name=unlockedAt,proto3" json:"unlockedAt,omitempty"` 39 UnstakedAt uint64 `protobuf:"varint,4,opt,name=unstakedAt,proto3" json:"unstakedAt,omitempty"` 40 Delegate string `protobuf:"bytes,5,opt,name=delegate,proto3" json:"delegate,omitempty"` 41 Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` 42 } 43 44 func (x *BucketInfo) Reset() { 45 *x = BucketInfo{} 46 if protoimpl.UnsafeEnabled { 47 mi := &file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_msgTypes[0] 48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 49 ms.StoreMessageInfo(mi) 50 } 51 } 52 53 func (x *BucketInfo) String() string { 54 return protoimpl.X.MessageStringOf(x) 55 } 56 57 func (*BucketInfo) ProtoMessage() {} 58 59 func (x *BucketInfo) ProtoReflect() protoreflect.Message { 60 mi := &file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_msgTypes[0] 61 if protoimpl.UnsafeEnabled && x != nil { 62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 63 if ms.LoadMessageInfo() == nil { 64 ms.StoreMessageInfo(mi) 65 } 66 return ms 67 } 68 return mi.MessageOf(x) 69 } 70 71 // Deprecated: Use BucketInfo.ProtoReflect.Descriptor instead. 72 func (*BucketInfo) Descriptor() ([]byte, []int) { 73 return file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_rawDescGZIP(), []int{0} 74 } 75 76 func (x *BucketInfo) GetTypeIndex() uint64 { 77 if x != nil { 78 return x.TypeIndex 79 } 80 return 0 81 } 82 83 func (x *BucketInfo) GetCreatedAt() uint64 { 84 if x != nil { 85 return x.CreatedAt 86 } 87 return 0 88 } 89 90 func (x *BucketInfo) GetUnlockedAt() uint64 { 91 if x != nil { 92 return x.UnlockedAt 93 } 94 return 0 95 } 96 97 func (x *BucketInfo) GetUnstakedAt() uint64 { 98 if x != nil { 99 return x.UnstakedAt 100 } 101 return 0 102 } 103 104 func (x *BucketInfo) GetDelegate() string { 105 if x != nil { 106 return x.Delegate 107 } 108 return "" 109 } 110 111 func (x *BucketInfo) GetOwner() string { 112 if x != nil { 113 return x.Owner 114 } 115 return "" 116 } 117 118 var File_blockindex_contractstaking_contractstakingpb_contractstaking_proto protoreflect.FileDescriptor 119 120 var file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_rawDesc = []byte{ 121 0x0a, 0x42, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6f, 0x6e, 122 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 123 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x2f, 0x63, 124 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x70, 125 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x74, 126 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x22, 0xba, 0x01, 0x0a, 0x0a, 0x42, 0x75, 0x63, 0x6b, 127 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x49, 0x6e, 128 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x79, 0x70, 0x65, 0x49, 129 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 130 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 131 0x41, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x41, 0x74, 132 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 133 0x41, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x41, 0x74, 134 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x75, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 135 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x18, 0x05, 136 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x12, 0x14, 137 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 138 0x77, 0x6e, 0x65, 0x72, 0x42, 0x51, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 139 0x6f, 0x6d, 0x2f, 0x69, 0x6f, 0x74, 0x65, 0x78, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 140 0x69, 0x6f, 0x74, 0x65, 0x78, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 141 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x74, 142 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x74, 143 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 144 } 145 146 var ( 147 file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_rawDescOnce sync.Once 148 file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_rawDescData = file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_rawDesc 149 ) 150 151 func file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_rawDescGZIP() []byte { 152 file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_rawDescOnce.Do(func() { 153 file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_rawDescData = protoimpl.X.CompressGZIP(file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_rawDescData) 154 }) 155 return file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_rawDescData 156 } 157 158 var file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 159 var file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_goTypes = []interface{}{ 160 (*BucketInfo)(nil), // 0: contractstakingpb.BucketInfo 161 } 162 var file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_depIdxs = []int32{ 163 0, // [0:0] is the sub-list for method output_type 164 0, // [0:0] is the sub-list for method input_type 165 0, // [0:0] is the sub-list for extension type_name 166 0, // [0:0] is the sub-list for extension extendee 167 0, // [0:0] is the sub-list for field type_name 168 } 169 170 func init() { file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_init() } 171 func file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_init() { 172 if File_blockindex_contractstaking_contractstakingpb_contractstaking_proto != nil { 173 return 174 } 175 if !protoimpl.UnsafeEnabled { 176 file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 177 switch v := v.(*BucketInfo); i { 178 case 0: 179 return &v.state 180 case 1: 181 return &v.sizeCache 182 case 2: 183 return &v.unknownFields 184 default: 185 return nil 186 } 187 } 188 } 189 type x struct{} 190 out := protoimpl.TypeBuilder{ 191 File: protoimpl.DescBuilder{ 192 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 193 RawDescriptor: file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_rawDesc, 194 NumEnums: 0, 195 NumMessages: 1, 196 NumExtensions: 0, 197 NumServices: 0, 198 }, 199 GoTypes: file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_goTypes, 200 DependencyIndexes: file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_depIdxs, 201 MessageInfos: file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_msgTypes, 202 }.Build() 203 File_blockindex_contractstaking_contractstakingpb_contractstaking_proto = out.File 204 file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_rawDesc = nil 205 file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_goTypes = nil 206 file_blockindex_contractstaking_contractstakingpb_contractstaking_proto_depIdxs = nil 207 }