github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/rpc/rpcdump/rpcdump.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: rpcdump.proto 3 4 package rpcdump 5 6 import ( 7 fmt "fmt" 8 io "io" 9 math "math" 10 math_bits "math/bits" 11 12 _ "github.com/gogo/protobuf/gogoproto" 13 proto "github.com/gogo/protobuf/proto" 14 golang_proto "github.com/golang/protobuf/proto" 15 _ "github.com/hyperledger/burrow/dump" 16 ) 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var _ = proto.Marshal 20 var _ = golang_proto.Marshal 21 var _ = fmt.Errorf 22 var _ = math.Inf 23 24 // This is a compile-time assertion to ensure that this generated file 25 // is compatible with the proto package it is being compiled against. 26 // A compilation error at this line likely means your copy of the 27 // proto package needs to be updated. 28 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 29 30 type GetDumpParam struct { 31 Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 32 XXX_NoUnkeyedLiteral struct{} `json:"-"` 33 XXX_unrecognized []byte `json:"-"` 34 XXX_sizecache int32 `json:"-"` 35 } 36 37 func (m *GetDumpParam) Reset() { *m = GetDumpParam{} } 38 func (m *GetDumpParam) String() string { return proto.CompactTextString(m) } 39 func (*GetDumpParam) ProtoMessage() {} 40 func (*GetDumpParam) Descriptor() ([]byte, []int) { 41 return fileDescriptor_80c0fd6a8168e015, []int{0} 42 } 43 func (m *GetDumpParam) XXX_Unmarshal(b []byte) error { 44 return m.Unmarshal(b) 45 } 46 func (m *GetDumpParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 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 func (m *GetDumpParam) XXX_Merge(src proto.Message) { 55 xxx_messageInfo_GetDumpParam.Merge(m, src) 56 } 57 func (m *GetDumpParam) XXX_Size() int { 58 return m.Size() 59 } 60 func (m *GetDumpParam) XXX_DiscardUnknown() { 61 xxx_messageInfo_GetDumpParam.DiscardUnknown(m) 62 } 63 64 var xxx_messageInfo_GetDumpParam proto.InternalMessageInfo 65 66 func (m *GetDumpParam) GetHeight() uint64 { 67 if m != nil { 68 return m.Height 69 } 70 return 0 71 } 72 73 func (*GetDumpParam) XXX_MessageName() string { 74 return "rpcdump.GetDumpParam" 75 } 76 func init() { 77 proto.RegisterType((*GetDumpParam)(nil), "rpcdump.GetDumpParam") 78 golang_proto.RegisterType((*GetDumpParam)(nil), "rpcdump.GetDumpParam") 79 } 80 81 func init() { proto.RegisterFile("rpcdump.proto", fileDescriptor_80c0fd6a8168e015) } 82 func init() { golang_proto.RegisterFile("rpcdump.proto", fileDescriptor_80c0fd6a8168e015) } 83 84 var fileDescriptor_80c0fd6a8168e015 = []byte{ 85 // 193 bytes of a gzipped FileDescriptorProto 86 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2d, 0x2a, 0x48, 0x4e, 87 0x29, 0xcd, 0x2d, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x87, 0x72, 0xa5, 0x44, 0xd2, 88 0xf3, 0xd3, 0xf3, 0xc1, 0x62, 0xfa, 0x20, 0x16, 0x44, 0x5a, 0x8a, 0x0b, 0xa1, 0x54, 0x49, 0x8d, 89 0x8b, 0xc7, 0x3d, 0xb5, 0xc4, 0xa5, 0x34, 0xb7, 0x20, 0x20, 0xb1, 0x28, 0x31, 0x57, 0x48, 0x8c, 90 0x8b, 0x2d, 0x23, 0x35, 0x33, 0x3d, 0xa3, 0x44, 0x82, 0x51, 0x81, 0x51, 0x83, 0x25, 0x08, 0xca, 91 0x33, 0x32, 0xe3, 0x62, 0x01, 0x29, 0x12, 0xd2, 0xe3, 0x62, 0x87, 0xaa, 0x17, 0x12, 0xd5, 0x83, 92 0xd9, 0x8a, 0x6c, 0x82, 0x14, 0x97, 0x1e, 0x58, 0x0c, 0x24, 0x60, 0xc0, 0xe8, 0xe4, 0x7c, 0xe2, 93 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x37, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x78, 94 0xe0, 0xb1, 0x1c, 0xe3, 0x89, 0xc7, 0x72, 0x8c, 0x51, 0x9a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 95 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x19, 0x95, 0x05, 0xa9, 0x45, 0x39, 0xa9, 0x29, 0xe9, 0xa9, 0x45, 96 0xfa, 0x49, 0xa5, 0x45, 0x45, 0xf9, 0xe5, 0xfa, 0x45, 0x05, 0xc9, 0xfa, 0x50, 0xf3, 0x93, 0xd8, 97 0xc0, 0x6e, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x62, 0x82, 0xa1, 0xe7, 0x00, 0x00, 98 0x00, 99 } 100 101 func (m *GetDumpParam) Marshal() (dAtA []byte, err error) { 102 size := m.Size() 103 dAtA = make([]byte, size) 104 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 105 if err != nil { 106 return nil, err 107 } 108 return dAtA[:n], nil 109 } 110 111 func (m *GetDumpParam) MarshalTo(dAtA []byte) (int, error) { 112 size := m.Size() 113 return m.MarshalToSizedBuffer(dAtA[:size]) 114 } 115 116 func (m *GetDumpParam) MarshalToSizedBuffer(dAtA []byte) (int, error) { 117 i := len(dAtA) 118 _ = i 119 var l int 120 _ = l 121 if m.XXX_unrecognized != nil { 122 i -= len(m.XXX_unrecognized) 123 copy(dAtA[i:], m.XXX_unrecognized) 124 } 125 if m.Height != 0 { 126 i = encodeVarintRpcdump(dAtA, i, uint64(m.Height)) 127 i-- 128 dAtA[i] = 0x8 129 } 130 return len(dAtA) - i, nil 131 } 132 133 func encodeVarintRpcdump(dAtA []byte, offset int, v uint64) int { 134 offset -= sovRpcdump(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 *GetDumpParam) Size() (n int) { 145 if m == nil { 146 return 0 147 } 148 var l int 149 _ = l 150 if m.Height != 0 { 151 n += 1 + sovRpcdump(uint64(m.Height)) 152 } 153 if m.XXX_unrecognized != nil { 154 n += len(m.XXX_unrecognized) 155 } 156 return n 157 } 158 159 func sovRpcdump(x uint64) (n int) { 160 return (math_bits.Len64(x|1) + 6) / 7 161 } 162 func sozRpcdump(x uint64) (n int) { 163 return sovRpcdump(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 164 } 165 func (m *GetDumpParam) 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 ErrIntOverflowRpcdump 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: GetDumpParam: wiretype end group for non-group") 189 } 190 if fieldNum <= 0 { 191 return fmt.Errorf("proto: GetDumpParam: 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 Height", wireType) 197 } 198 m.Height = 0 199 for shift := uint(0); ; shift += 7 { 200 if shift >= 64 { 201 return ErrIntOverflowRpcdump 202 } 203 if iNdEx >= l { 204 return io.ErrUnexpectedEOF 205 } 206 b := dAtA[iNdEx] 207 iNdEx++ 208 m.Height |= uint64(b&0x7F) << shift 209 if b < 0x80 { 210 break 211 } 212 } 213 default: 214 iNdEx = preIndex 215 skippy, err := skipRpcdump(dAtA[iNdEx:]) 216 if err != nil { 217 return err 218 } 219 if (skippy < 0) || (iNdEx+skippy) < 0 { 220 return ErrInvalidLengthRpcdump 221 } 222 if (iNdEx + skippy) > l { 223 return io.ErrUnexpectedEOF 224 } 225 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 226 iNdEx += skippy 227 } 228 } 229 230 if iNdEx > l { 231 return io.ErrUnexpectedEOF 232 } 233 return nil 234 } 235 func skipRpcdump(dAtA []byte) (n int, err error) { 236 l := len(dAtA) 237 iNdEx := 0 238 depth := 0 239 for iNdEx < l { 240 var wire uint64 241 for shift := uint(0); ; shift += 7 { 242 if shift >= 64 { 243 return 0, ErrIntOverflowRpcdump 244 } 245 if iNdEx >= l { 246 return 0, io.ErrUnexpectedEOF 247 } 248 b := dAtA[iNdEx] 249 iNdEx++ 250 wire |= (uint64(b) & 0x7F) << shift 251 if b < 0x80 { 252 break 253 } 254 } 255 wireType := int(wire & 0x7) 256 switch wireType { 257 case 0: 258 for shift := uint(0); ; shift += 7 { 259 if shift >= 64 { 260 return 0, ErrIntOverflowRpcdump 261 } 262 if iNdEx >= l { 263 return 0, io.ErrUnexpectedEOF 264 } 265 iNdEx++ 266 if dAtA[iNdEx-1] < 0x80 { 267 break 268 } 269 } 270 case 1: 271 iNdEx += 8 272 case 2: 273 var length int 274 for shift := uint(0); ; shift += 7 { 275 if shift >= 64 { 276 return 0, ErrIntOverflowRpcdump 277 } 278 if iNdEx >= l { 279 return 0, io.ErrUnexpectedEOF 280 } 281 b := dAtA[iNdEx] 282 iNdEx++ 283 length |= (int(b) & 0x7F) << shift 284 if b < 0x80 { 285 break 286 } 287 } 288 if length < 0 { 289 return 0, ErrInvalidLengthRpcdump 290 } 291 iNdEx += length 292 case 3: 293 depth++ 294 case 4: 295 if depth == 0 { 296 return 0, ErrUnexpectedEndOfGroupRpcdump 297 } 298 depth-- 299 case 5: 300 iNdEx += 4 301 default: 302 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 303 } 304 if iNdEx < 0 { 305 return 0, ErrInvalidLengthRpcdump 306 } 307 if depth == 0 { 308 return iNdEx, nil 309 } 310 } 311 return 0, io.ErrUnexpectedEOF 312 } 313 314 var ( 315 ErrInvalidLengthRpcdump = fmt.Errorf("proto: negative length found during unmarshaling") 316 ErrIntOverflowRpcdump = fmt.Errorf("proto: integer overflow") 317 ErrUnexpectedEndOfGroupRpcdump = fmt.Errorf("proto: unexpected end of group") 318 )