github.com/supragya/TendermintConnector@v0.0.0-20210619045051-113e32b84fb1/chains/tm34/proto/tendermint/store/types.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: tendermint/store/types.proto 3 4 package store 5 6 import ( 7 fmt "fmt" 8 proto "github.com/gogo/protobuf/proto" 9 io "io" 10 math "math" 11 math_bits "math/bits" 12 ) 13 14 // Reference imports to suppress errors if they are not otherwise used. 15 var _ = proto.Marshal 16 var _ = fmt.Errorf 17 var _ = math.Inf 18 19 // This is a compile-time assertion to ensure that this generated file 20 // is compatible with the proto package it is being compiled against. 21 // A compilation error at this line likely means your copy of the 22 // proto package needs to be updated. 23 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 24 25 type BlockStoreState struct { 26 Base int64 `protobuf:"varint,1,opt,name=base,proto3" json:"base,omitempty"` 27 Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` 28 } 29 30 func (m *BlockStoreState) Reset() { *m = BlockStoreState{} } 31 func (m *BlockStoreState) String() string { return proto.CompactTextString(m) } 32 func (*BlockStoreState) ProtoMessage() {} 33 func (*BlockStoreState) Descriptor() ([]byte, []int) { 34 return fileDescriptor_ff9e53a0a74267f7, []int{0} 35 } 36 func (m *BlockStoreState) XXX_Unmarshal(b []byte) error { 37 return m.Unmarshal(b) 38 } 39 func (m *BlockStoreState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 40 if deterministic { 41 return xxx_messageInfo_BlockStoreState.Marshal(b, m, deterministic) 42 } else { 43 b = b[:cap(b)] 44 n, err := m.MarshalToSizedBuffer(b) 45 if err != nil { 46 return nil, err 47 } 48 return b[:n], nil 49 } 50 } 51 func (m *BlockStoreState) XXX_Merge(src proto.Message) { 52 xxx_messageInfo_BlockStoreState.Merge(m, src) 53 } 54 func (m *BlockStoreState) XXX_Size() int { 55 return m.Size() 56 } 57 func (m *BlockStoreState) XXX_DiscardUnknown() { 58 xxx_messageInfo_BlockStoreState.DiscardUnknown(m) 59 } 60 61 var xxx_messageInfo_BlockStoreState proto.InternalMessageInfo 62 63 func (m *BlockStoreState) GetBase() int64 { 64 if m != nil { 65 return m.Base 66 } 67 return 0 68 } 69 70 func (m *BlockStoreState) GetHeight() int64 { 71 if m != nil { 72 return m.Height 73 } 74 return 0 75 } 76 77 func init() { 78 proto.RegisterType((*BlockStoreState)(nil), "tendermint.store.BlockStoreState") 79 } 80 81 func init() { proto.RegisterFile("tendermint/store/types.proto", fileDescriptor_ff9e53a0a74267f7) } 82 83 var fileDescriptor_ff9e53a0a74267f7 = []byte{ 84 // 195 bytes of a gzipped FileDescriptorProto 85 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0x49, 0xcd, 0x4b, 86 0x49, 0x2d, 0xca, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0x2e, 0xc9, 0x2f, 0x4a, 0xd5, 0x2f, 0xa9, 0x2c, 87 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x40, 0xc8, 0xea, 0x81, 0x65, 0x95, 88 0x6c, 0xb9, 0xf8, 0x9d, 0x72, 0xf2, 0x93, 0xb3, 0x83, 0x41, 0xbc, 0xe0, 0x92, 0xc4, 0x92, 0x54, 89 0x21, 0x21, 0x2e, 0x96, 0xa4, 0xc4, 0xe2, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xe6, 0x20, 0x30, 90 0x5b, 0x48, 0x8c, 0x8b, 0x2d, 0x23, 0x35, 0x33, 0x3d, 0xa3, 0x44, 0x82, 0x09, 0x2c, 0x0a, 0xe5, 91 0x39, 0xa5, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 92 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x57, 0x7a, 0x66, 93 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x69, 0x41, 0x51, 0x62, 0x7a, 0x65, 94 0xa2, 0x7e, 0x08, 0xdc, 0x7a, 0xe7, 0xfc, 0xbc, 0xbc, 0xd4, 0xe4, 0x92, 0xfc, 0x22, 0xfd, 0xe4, 95 0x8c, 0xc4, 0xcc, 0xbc, 0x62, 0xfd, 0x92, 0x5c, 0x63, 0x13, 0x7d, 0xb0, 0x2b, 0xf5, 0xd1, 0xbd, 96 0x90, 0xc4, 0x06, 0x16, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x3b, 0x9b, 0x66, 0xcd, 0xdd, 97 0x00, 0x00, 0x00, 98 } 99 100 func (m *BlockStoreState) Marshal() (dAtA []byte, err error) { 101 size := m.Size() 102 dAtA = make([]byte, size) 103 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 104 if err != nil { 105 return nil, err 106 } 107 return dAtA[:n], nil 108 } 109 110 func (m *BlockStoreState) MarshalTo(dAtA []byte) (int, error) { 111 size := m.Size() 112 return m.MarshalToSizedBuffer(dAtA[:size]) 113 } 114 115 func (m *BlockStoreState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 116 i := len(dAtA) 117 _ = i 118 var l int 119 _ = l 120 if m.Height != 0 { 121 i = encodeVarintTypes(dAtA, i, uint64(m.Height)) 122 i-- 123 dAtA[i] = 0x10 124 } 125 if m.Base != 0 { 126 i = encodeVarintTypes(dAtA, i, uint64(m.Base)) 127 i-- 128 dAtA[i] = 0x8 129 } 130 return len(dAtA) - i, nil 131 } 132 133 func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { 134 offset -= sovTypes(v) 135 base := offset 136 for v >= 1<<7 { 137 dAtA[offset] = uint8(v&0x7f | 0x80) 138 v >>= 7 139 offset++ 140 } 141 dAtA[offset] = uint8(v) 142 return base 143 } 144 func (m *BlockStoreState) Size() (n int) { 145 if m == nil { 146 return 0 147 } 148 var l int 149 _ = l 150 if m.Base != 0 { 151 n += 1 + sovTypes(uint64(m.Base)) 152 } 153 if m.Height != 0 { 154 n += 1 + sovTypes(uint64(m.Height)) 155 } 156 return n 157 } 158 159 func sovTypes(x uint64) (n int) { 160 return (math_bits.Len64(x|1) + 6) / 7 161 } 162 func sozTypes(x uint64) (n int) { 163 return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 164 } 165 func (m *BlockStoreState) Unmarshal(dAtA []byte) error { 166 l := len(dAtA) 167 iNdEx := 0 168 for iNdEx < l { 169 preIndex := iNdEx 170 var wire uint64 171 for shift := uint(0); ; shift += 7 { 172 if shift >= 64 { 173 return ErrIntOverflowTypes 174 } 175 if iNdEx >= l { 176 return io.ErrUnexpectedEOF 177 } 178 b := dAtA[iNdEx] 179 iNdEx++ 180 wire |= uint64(b&0x7F) << shift 181 if b < 0x80 { 182 break 183 } 184 } 185 fieldNum := int32(wire >> 3) 186 wireType := int(wire & 0x7) 187 if wireType == 4 { 188 return fmt.Errorf("proto: BlockStoreState: wiretype end group for non-group") 189 } 190 if fieldNum <= 0 { 191 return fmt.Errorf("proto: BlockStoreState: illegal tag %d (wire type %d)", fieldNum, wire) 192 } 193 switch fieldNum { 194 case 1: 195 if wireType != 0 { 196 return fmt.Errorf("proto: wrong wireType = %d for field Base", wireType) 197 } 198 m.Base = 0 199 for shift := uint(0); ; shift += 7 { 200 if shift >= 64 { 201 return ErrIntOverflowTypes 202 } 203 if iNdEx >= l { 204 return io.ErrUnexpectedEOF 205 } 206 b := dAtA[iNdEx] 207 iNdEx++ 208 m.Base |= int64(b&0x7F) << shift 209 if b < 0x80 { 210 break 211 } 212 } 213 case 2: 214 if wireType != 0 { 215 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 216 } 217 m.Height = 0 218 for shift := uint(0); ; shift += 7 { 219 if shift >= 64 { 220 return ErrIntOverflowTypes 221 } 222 if iNdEx >= l { 223 return io.ErrUnexpectedEOF 224 } 225 b := dAtA[iNdEx] 226 iNdEx++ 227 m.Height |= int64(b&0x7F) << shift 228 if b < 0x80 { 229 break 230 } 231 } 232 default: 233 iNdEx = preIndex 234 skippy, err := skipTypes(dAtA[iNdEx:]) 235 if err != nil { 236 return err 237 } 238 if (skippy < 0) || (iNdEx+skippy) < 0 { 239 return ErrInvalidLengthTypes 240 } 241 if (iNdEx + skippy) > l { 242 return io.ErrUnexpectedEOF 243 } 244 iNdEx += skippy 245 } 246 } 247 248 if iNdEx > l { 249 return io.ErrUnexpectedEOF 250 } 251 return nil 252 } 253 func skipTypes(dAtA []byte) (n int, err error) { 254 l := len(dAtA) 255 iNdEx := 0 256 depth := 0 257 for iNdEx < l { 258 var wire uint64 259 for shift := uint(0); ; shift += 7 { 260 if shift >= 64 { 261 return 0, ErrIntOverflowTypes 262 } 263 if iNdEx >= l { 264 return 0, io.ErrUnexpectedEOF 265 } 266 b := dAtA[iNdEx] 267 iNdEx++ 268 wire |= (uint64(b) & 0x7F) << shift 269 if b < 0x80 { 270 break 271 } 272 } 273 wireType := int(wire & 0x7) 274 switch wireType { 275 case 0: 276 for shift := uint(0); ; shift += 7 { 277 if shift >= 64 { 278 return 0, ErrIntOverflowTypes 279 } 280 if iNdEx >= l { 281 return 0, io.ErrUnexpectedEOF 282 } 283 iNdEx++ 284 if dAtA[iNdEx-1] < 0x80 { 285 break 286 } 287 } 288 case 1: 289 iNdEx += 8 290 case 2: 291 var length int 292 for shift := uint(0); ; shift += 7 { 293 if shift >= 64 { 294 return 0, ErrIntOverflowTypes 295 } 296 if iNdEx >= l { 297 return 0, io.ErrUnexpectedEOF 298 } 299 b := dAtA[iNdEx] 300 iNdEx++ 301 length |= (int(b) & 0x7F) << shift 302 if b < 0x80 { 303 break 304 } 305 } 306 if length < 0 { 307 return 0, ErrInvalidLengthTypes 308 } 309 iNdEx += length 310 case 3: 311 depth++ 312 case 4: 313 if depth == 0 { 314 return 0, ErrUnexpectedEndOfGroupTypes 315 } 316 depth-- 317 case 5: 318 iNdEx += 4 319 default: 320 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 321 } 322 if iNdEx < 0 { 323 return 0, ErrInvalidLengthTypes 324 } 325 if depth == 0 { 326 return iNdEx, nil 327 } 328 } 329 return 0, io.ErrUnexpectedEOF 330 } 331 332 var ( 333 ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") 334 ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") 335 ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") 336 )