github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/vote/unproductivedelegatepb/unproductivedelegate.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: unproductivedelegate.proto 14 15 package unproductivedelegatepb 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 UnproductiveDelegate struct { 32 state protoimpl.MessageState 33 sizeCache protoimpl.SizeCache 34 unknownFields protoimpl.UnknownFields 35 36 CacheSize uint64 `protobuf:"varint,1,opt,name=cacheSize,proto3" json:"cacheSize,omitempty"` 37 ProbationPeriod uint64 `protobuf:"varint,2,opt,name=probationPeriod,proto3" json:"probationPeriod,omitempty"` 38 DelegateList []*Delegatelist `protobuf:"bytes,3,rep,name=delegateList,proto3" json:"delegateList,omitempty"` 39 } 40 41 func (x *UnproductiveDelegate) Reset() { 42 *x = UnproductiveDelegate{} 43 if protoimpl.UnsafeEnabled { 44 mi := &file_unproductivedelegate_proto_msgTypes[0] 45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 46 ms.StoreMessageInfo(mi) 47 } 48 } 49 50 func (x *UnproductiveDelegate) String() string { 51 return protoimpl.X.MessageStringOf(x) 52 } 53 54 func (*UnproductiveDelegate) ProtoMessage() {} 55 56 func (x *UnproductiveDelegate) ProtoReflect() protoreflect.Message { 57 mi := &file_unproductivedelegate_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 UnproductiveDelegate.ProtoReflect.Descriptor instead. 69 func (*UnproductiveDelegate) Descriptor() ([]byte, []int) { 70 return file_unproductivedelegate_proto_rawDescGZIP(), []int{0} 71 } 72 73 func (x *UnproductiveDelegate) GetCacheSize() uint64 { 74 if x != nil { 75 return x.CacheSize 76 } 77 return 0 78 } 79 80 func (x *UnproductiveDelegate) GetProbationPeriod() uint64 { 81 if x != nil { 82 return x.ProbationPeriod 83 } 84 return 0 85 } 86 87 func (x *UnproductiveDelegate) GetDelegateList() []*Delegatelist { 88 if x != nil { 89 return x.DelegateList 90 } 91 return nil 92 } 93 94 type Delegatelist struct { 95 state protoimpl.MessageState 96 sizeCache protoimpl.SizeCache 97 unknownFields protoimpl.UnknownFields 98 99 Delegates []string `protobuf:"bytes,1,rep,name=delegates,proto3" json:"delegates,omitempty"` 100 } 101 102 func (x *Delegatelist) Reset() { 103 *x = Delegatelist{} 104 if protoimpl.UnsafeEnabled { 105 mi := &file_unproductivedelegate_proto_msgTypes[1] 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 ms.StoreMessageInfo(mi) 108 } 109 } 110 111 func (x *Delegatelist) String() string { 112 return protoimpl.X.MessageStringOf(x) 113 } 114 115 func (*Delegatelist) ProtoMessage() {} 116 117 func (x *Delegatelist) ProtoReflect() protoreflect.Message { 118 mi := &file_unproductivedelegate_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 Delegatelist.ProtoReflect.Descriptor instead. 130 func (*Delegatelist) Descriptor() ([]byte, []int) { 131 return file_unproductivedelegate_proto_rawDescGZIP(), []int{1} 132 } 133 134 func (x *Delegatelist) GetDelegates() []string { 135 if x != nil { 136 return x.Delegates 137 } 138 return nil 139 } 140 141 var File_unproductivedelegate_proto protoreflect.FileDescriptor 142 143 var file_unproductivedelegate_proto_rawDesc = []byte{ 144 0x0a, 0x1a, 0x75, 0x6e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x76, 0x65, 0x64, 0x65, 145 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x75, 0x6e, 146 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x76, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 147 0x74, 0x65, 0x70, 0x62, 0x22, 0xa8, 0x01, 0x0a, 0x14, 0x75, 0x6e, 0x70, 0x72, 0x6f, 0x64, 0x75, 148 0x63, 0x74, 0x69, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 149 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 150 0x52, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x70, 151 0x72, 0x6f, 0x62, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x02, 152 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x62, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 153 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x48, 0x0a, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 154 0x65, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x75, 0x6e, 155 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x76, 0x65, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 156 0x74, 0x65, 0x70, 0x62, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x73, 157 0x74, 0x52, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 158 0x2c, 0x0a, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x12, 159 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 160 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x62, 0x06, 0x70, 161 0x72, 0x6f, 0x74, 0x6f, 0x33, 162 } 163 164 var ( 165 file_unproductivedelegate_proto_rawDescOnce sync.Once 166 file_unproductivedelegate_proto_rawDescData = file_unproductivedelegate_proto_rawDesc 167 ) 168 169 func file_unproductivedelegate_proto_rawDescGZIP() []byte { 170 file_unproductivedelegate_proto_rawDescOnce.Do(func() { 171 file_unproductivedelegate_proto_rawDescData = protoimpl.X.CompressGZIP(file_unproductivedelegate_proto_rawDescData) 172 }) 173 return file_unproductivedelegate_proto_rawDescData 174 } 175 176 var file_unproductivedelegate_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 177 var file_unproductivedelegate_proto_goTypes = []interface{}{ 178 (*UnproductiveDelegate)(nil), // 0: unproductivedelegatepb.unproductiveDelegate 179 (*Delegatelist)(nil), // 1: unproductivedelegatepb.delegatelist 180 } 181 var file_unproductivedelegate_proto_depIdxs = []int32{ 182 1, // 0: unproductivedelegatepb.unproductiveDelegate.delegateList:type_name -> unproductivedelegatepb.delegatelist 183 1, // [1:1] is the sub-list for method output_type 184 1, // [1:1] is the sub-list for method input_type 185 1, // [1:1] is the sub-list for extension type_name 186 1, // [1:1] is the sub-list for extension extendee 187 0, // [0:1] is the sub-list for field type_name 188 } 189 190 func init() { file_unproductivedelegate_proto_init() } 191 func file_unproductivedelegate_proto_init() { 192 if File_unproductivedelegate_proto != nil { 193 return 194 } 195 if !protoimpl.UnsafeEnabled { 196 file_unproductivedelegate_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 197 switch v := v.(*UnproductiveDelegate); i { 198 case 0: 199 return &v.state 200 case 1: 201 return &v.sizeCache 202 case 2: 203 return &v.unknownFields 204 default: 205 return nil 206 } 207 } 208 file_unproductivedelegate_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 209 switch v := v.(*Delegatelist); i { 210 case 0: 211 return &v.state 212 case 1: 213 return &v.sizeCache 214 case 2: 215 return &v.unknownFields 216 default: 217 return nil 218 } 219 } 220 } 221 type x struct{} 222 out := protoimpl.TypeBuilder{ 223 File: protoimpl.DescBuilder{ 224 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 225 RawDescriptor: file_unproductivedelegate_proto_rawDesc, 226 NumEnums: 0, 227 NumMessages: 2, 228 NumExtensions: 0, 229 NumServices: 0, 230 }, 231 GoTypes: file_unproductivedelegate_proto_goTypes, 232 DependencyIndexes: file_unproductivedelegate_proto_depIdxs, 233 MessageInfos: file_unproductivedelegate_proto_msgTypes, 234 }.Build() 235 File_unproductivedelegate_proto = out.File 236 file_unproductivedelegate_proto_rawDesc = nil 237 file_unproductivedelegate_proto_goTypes = nil 238 file_unproductivedelegate_proto_depIdxs = nil 239 }