github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/proto/tendermint/version/types.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: tendermint/version/types.proto 3 4 package version 5 6 import ( 7 fmt "fmt" 8 _ "github.com/gogo/protobuf/gogoproto" 9 proto "github.com/gogo/protobuf/proto" 10 io "io" 11 math "math" 12 math_bits "math/bits" 13 ) 14 15 // Reference imports to suppress errors if they are not otherwise used. 16 var _ = proto.Marshal 17 var _ = fmt.Errorf 18 var _ = math.Inf 19 20 // This is a compile-time assertion to ensure that this generated file 21 // is compatible with the proto package it is being compiled against. 22 // A compilation error at this line likely means your copy of the 23 // proto package needs to be updated. 24 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 25 26 // Consensus captures the consensus rules for processing a block in the 27 // blockchain, including all blockchain data structures and the rules of the 28 // application's state transition machine. 29 type Consensus struct { 30 Block uint64 `protobuf:"varint,1,opt,name=block,proto3" json:"block,omitempty"` 31 App uint64 `protobuf:"varint,2,opt,name=app,proto3" json:"app,omitempty"` 32 } 33 34 func (m *Consensus) Reset() { *m = Consensus{} } 35 func (m *Consensus) String() string { return proto.CompactTextString(m) } 36 func (*Consensus) ProtoMessage() {} 37 func (*Consensus) Descriptor() ([]byte, []int) { 38 return fileDescriptor_f9b42966edc5edad, []int{0} 39 } 40 func (m *Consensus) XXX_Unmarshal(b []byte) error { 41 return m.Unmarshal(b) 42 } 43 func (m *Consensus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 if deterministic { 45 return xxx_messageInfo_Consensus.Marshal(b, m, deterministic) 46 } else { 47 b = b[:cap(b)] 48 n, err := m.MarshalToSizedBuffer(b) 49 if err != nil { 50 return nil, err 51 } 52 return b[:n], nil 53 } 54 } 55 func (m *Consensus) XXX_Merge(src proto.Message) { 56 xxx_messageInfo_Consensus.Merge(m, src) 57 } 58 func (m *Consensus) XXX_Size() int { 59 return m.Size() 60 } 61 func (m *Consensus) XXX_DiscardUnknown() { 62 xxx_messageInfo_Consensus.DiscardUnknown(m) 63 } 64 65 var xxx_messageInfo_Consensus proto.InternalMessageInfo 66 67 func (m *Consensus) GetBlock() uint64 { 68 if m != nil { 69 return m.Block 70 } 71 return 0 72 } 73 74 func (m *Consensus) GetApp() uint64 { 75 if m != nil { 76 return m.App 77 } 78 return 0 79 } 80 81 func init() { 82 proto.RegisterType((*Consensus)(nil), "seitendermint.version.Consensus") 83 } 84 85 func init() { proto.RegisterFile("tendermint/version/types.proto", fileDescriptor_f9b42966edc5edad) } 86 87 var fileDescriptor_f9b42966edc5edad = []byte{ 88 // 196 bytes of a gzipped FileDescriptorProto 89 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x49, 0xcd, 0x4b, 90 0x49, 0x2d, 0xca, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0x4b, 0x2d, 0x2a, 0xce, 0xcc, 0xcf, 0xd3, 0x2f, 91 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x2d, 0x4e, 0xcd, 0x44, 92 0x28, 0xd1, 0x83, 0x2a, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd0, 0x07, 0xb1, 0x20, 93 0x8a, 0x95, 0x2c, 0xb9, 0x38, 0x9d, 0xf3, 0xf3, 0x8a, 0x53, 0xf3, 0x8a, 0x4b, 0x8b, 0x85, 0x44, 94 0xb8, 0x58, 0x93, 0x72, 0xf2, 0x93, 0xb3, 0x25, 0x18, 0x15, 0x18, 0x35, 0x58, 0x82, 0x20, 0x1c, 95 0x21, 0x01, 0x2e, 0xe6, 0xc4, 0x82, 0x02, 0x09, 0x26, 0xb0, 0x18, 0x88, 0x69, 0xc5, 0xf2, 0x62, 96 0x81, 0x3c, 0xa3, 0x53, 0xf8, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 97 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xd9, 98 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x27, 0x16, 0x65, 0xea, 0x26, 99 0xe6, 0x25, 0x67, 0xe4, 0x17, 0xe9, 0x17, 0xa7, 0x66, 0xea, 0x22, 0xb9, 0x1d, 0xe2, 0x16, 0x4c, 100 0xcf, 0x24, 0xb1, 0x81, 0x65, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x9b, 0x39, 0x2e, 101 0xe9, 0x00, 0x00, 0x00, 102 } 103 104 func (this *Consensus) Equal(that interface{}) bool { 105 if that == nil { 106 return this == nil 107 } 108 109 that1, ok := that.(*Consensus) 110 if !ok { 111 that2, ok := that.(Consensus) 112 if ok { 113 that1 = &that2 114 } else { 115 return false 116 } 117 } 118 if that1 == nil { 119 return this == nil 120 } else if this == nil { 121 return false 122 } 123 if this.Block != that1.Block { 124 return false 125 } 126 if this.App != that1.App { 127 return false 128 } 129 return true 130 } 131 func (m *Consensus) Marshal() (dAtA []byte, err error) { 132 size := m.Size() 133 dAtA = make([]byte, size) 134 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 135 if err != nil { 136 return nil, err 137 } 138 return dAtA[:n], nil 139 } 140 141 func (m *Consensus) MarshalTo(dAtA []byte) (int, error) { 142 size := m.Size() 143 return m.MarshalToSizedBuffer(dAtA[:size]) 144 } 145 146 func (m *Consensus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 147 i := len(dAtA) 148 _ = i 149 var l int 150 _ = l 151 if m.App != 0 { 152 i = encodeVarintTypes(dAtA, i, uint64(m.App)) 153 i-- 154 dAtA[i] = 0x10 155 } 156 if m.Block != 0 { 157 i = encodeVarintTypes(dAtA, i, uint64(m.Block)) 158 i-- 159 dAtA[i] = 0x8 160 } 161 return len(dAtA) - i, nil 162 } 163 164 func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { 165 offset -= sovTypes(v) 166 base := offset 167 for v >= 1<<7 { 168 dAtA[offset] = uint8(v&0x7f | 0x80) 169 v >>= 7 170 offset++ 171 } 172 dAtA[offset] = uint8(v) 173 return base 174 } 175 func (m *Consensus) Size() (n int) { 176 if m == nil { 177 return 0 178 } 179 var l int 180 _ = l 181 if m.Block != 0 { 182 n += 1 + sovTypes(uint64(m.Block)) 183 } 184 if m.App != 0 { 185 n += 1 + sovTypes(uint64(m.App)) 186 } 187 return n 188 } 189 190 func sovTypes(x uint64) (n int) { 191 return (math_bits.Len64(x|1) + 6) / 7 192 } 193 func sozTypes(x uint64) (n int) { 194 return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 195 } 196 func (m *Consensus) Unmarshal(dAtA []byte) error { 197 l := len(dAtA) 198 iNdEx := 0 199 for iNdEx < l { 200 preIndex := iNdEx 201 var wire uint64 202 for shift := uint(0); ; shift += 7 { 203 if shift >= 64 { 204 return ErrIntOverflowTypes 205 } 206 if iNdEx >= l { 207 return io.ErrUnexpectedEOF 208 } 209 b := dAtA[iNdEx] 210 iNdEx++ 211 wire |= uint64(b&0x7F) << shift 212 if b < 0x80 { 213 break 214 } 215 } 216 fieldNum := int32(wire >> 3) 217 wireType := int(wire & 0x7) 218 if wireType == 4 { 219 return fmt.Errorf("proto: Consensus: wiretype end group for non-group") 220 } 221 if fieldNum <= 0 { 222 return fmt.Errorf("proto: Consensus: illegal tag %d (wire type %d)", fieldNum, wire) 223 } 224 switch fieldNum { 225 case 1: 226 if wireType != 0 { 227 return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) 228 } 229 m.Block = 0 230 for shift := uint(0); ; shift += 7 { 231 if shift >= 64 { 232 return ErrIntOverflowTypes 233 } 234 if iNdEx >= l { 235 return io.ErrUnexpectedEOF 236 } 237 b := dAtA[iNdEx] 238 iNdEx++ 239 m.Block |= uint64(b&0x7F) << shift 240 if b < 0x80 { 241 break 242 } 243 } 244 case 2: 245 if wireType != 0 { 246 return fmt.Errorf("proto: wrong wireType = %d for field App", wireType) 247 } 248 m.App = 0 249 for shift := uint(0); ; shift += 7 { 250 if shift >= 64 { 251 return ErrIntOverflowTypes 252 } 253 if iNdEx >= l { 254 return io.ErrUnexpectedEOF 255 } 256 b := dAtA[iNdEx] 257 iNdEx++ 258 m.App |= uint64(b&0x7F) << shift 259 if b < 0x80 { 260 break 261 } 262 } 263 default: 264 iNdEx = preIndex 265 skippy, err := skipTypes(dAtA[iNdEx:]) 266 if err != nil { 267 return err 268 } 269 if (skippy < 0) || (iNdEx+skippy) < 0 { 270 return ErrInvalidLengthTypes 271 } 272 if (iNdEx + skippy) > l { 273 return io.ErrUnexpectedEOF 274 } 275 iNdEx += skippy 276 } 277 } 278 279 if iNdEx > l { 280 return io.ErrUnexpectedEOF 281 } 282 return nil 283 } 284 func skipTypes(dAtA []byte) (n int, err error) { 285 l := len(dAtA) 286 iNdEx := 0 287 depth := 0 288 for iNdEx < l { 289 var wire uint64 290 for shift := uint(0); ; shift += 7 { 291 if shift >= 64 { 292 return 0, ErrIntOverflowTypes 293 } 294 if iNdEx >= l { 295 return 0, io.ErrUnexpectedEOF 296 } 297 b := dAtA[iNdEx] 298 iNdEx++ 299 wire |= (uint64(b) & 0x7F) << shift 300 if b < 0x80 { 301 break 302 } 303 } 304 wireType := int(wire & 0x7) 305 switch wireType { 306 case 0: 307 for shift := uint(0); ; shift += 7 { 308 if shift >= 64 { 309 return 0, ErrIntOverflowTypes 310 } 311 if iNdEx >= l { 312 return 0, io.ErrUnexpectedEOF 313 } 314 iNdEx++ 315 if dAtA[iNdEx-1] < 0x80 { 316 break 317 } 318 } 319 case 1: 320 iNdEx += 8 321 case 2: 322 var length int 323 for shift := uint(0); ; shift += 7 { 324 if shift >= 64 { 325 return 0, ErrIntOverflowTypes 326 } 327 if iNdEx >= l { 328 return 0, io.ErrUnexpectedEOF 329 } 330 b := dAtA[iNdEx] 331 iNdEx++ 332 length |= (int(b) & 0x7F) << shift 333 if b < 0x80 { 334 break 335 } 336 } 337 if length < 0 { 338 return 0, ErrInvalidLengthTypes 339 } 340 iNdEx += length 341 case 3: 342 depth++ 343 case 4: 344 if depth == 0 { 345 return 0, ErrUnexpectedEndOfGroupTypes 346 } 347 depth-- 348 case 5: 349 iNdEx += 4 350 default: 351 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 352 } 353 if iNdEx < 0 { 354 return 0, ErrInvalidLengthTypes 355 } 356 if depth == 0 { 357 return iNdEx, nil 358 } 359 } 360 return 0, io.ErrUnexpectedEOF 361 } 362 363 var ( 364 ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") 365 ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") 366 ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") 367 )