// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: proto/beacon/db/attestation_container.proto package db import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" v1alpha1 "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1" github_com_prysmaticlabs_go_bitfield "github.com/prysmaticlabs/go-bitfield" io "io" math "math" math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type AttestationContainer struct { Data *v1alpha1.AttestationData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` SignaturePairs []*AttestationContainer_SignaturePair `protobuf:"bytes,2,rep,name=signature_pairs,json=signaturePairs,proto3" json:"signature_pairs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AttestationContainer) Reset() { *m = AttestationContainer{} } func (m *AttestationContainer) String() string { return proto.CompactTextString(m) } func (*AttestationContainer) ProtoMessage() {} func (*AttestationContainer) Descriptor() ([]byte, []int) { return fileDescriptor_29679516eb4218c9, []int{0} } func (m *AttestationContainer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AttestationContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_AttestationContainer.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *AttestationContainer) XXX_Merge(src proto.Message) { xxx_messageInfo_AttestationContainer.Merge(m, src) } func (m *AttestationContainer) XXX_Size() int { return m.Size() } func (m *AttestationContainer) XXX_DiscardUnknown() { xxx_messageInfo_AttestationContainer.DiscardUnknown(m) } var xxx_messageInfo_AttestationContainer proto.InternalMessageInfo func (m *AttestationContainer) GetData() *v1alpha1.AttestationData { if m != nil { return m.Data } return nil } func (m *AttestationContainer) GetSignaturePairs() []*AttestationContainer_SignaturePair { if m != nil { return m.SignaturePairs } return nil } type AttestationContainer_SignaturePair struct { AggregationBits github_com_prysmaticlabs_go_bitfield.Bitlist `protobuf:"bytes,1,opt,name=aggregation_bits,json=aggregationBits,proto3,casttype=github.com/prysmaticlabs/go-bitfield.Bitlist" json:"aggregation_bits,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` VoteCounted bool `protobuf:"varint,3,opt,name=vote_counted,json=voteCounted,proto3" json:"vote_counted,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AttestationContainer_SignaturePair) Reset() { *m = AttestationContainer_SignaturePair{} } func (m *AttestationContainer_SignaturePair) String() string { return proto.CompactTextString(m) } func (*AttestationContainer_SignaturePair) ProtoMessage() {} func (*AttestationContainer_SignaturePair) Descriptor() ([]byte, []int) { return fileDescriptor_29679516eb4218c9, []int{0, 0} } func (m *AttestationContainer_SignaturePair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AttestationContainer_SignaturePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_AttestationContainer_SignaturePair.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *AttestationContainer_SignaturePair) XXX_Merge(src proto.Message) { xxx_messageInfo_AttestationContainer_SignaturePair.Merge(m, src) } func (m *AttestationContainer_SignaturePair) XXX_Size() int { return m.Size() } func (m *AttestationContainer_SignaturePair) XXX_DiscardUnknown() { xxx_messageInfo_AttestationContainer_SignaturePair.DiscardUnknown(m) } var xxx_messageInfo_AttestationContainer_SignaturePair proto.InternalMessageInfo func (m *AttestationContainer_SignaturePair) GetAggregationBits() github_com_prysmaticlabs_go_bitfield.Bitlist { if m != nil { return m.AggregationBits } return nil } func (m *AttestationContainer_SignaturePair) GetSignature() []byte { if m != nil { return m.Signature } return nil } func (m *AttestationContainer_SignaturePair) GetVoteCounted() bool { if m != nil { return m.VoteCounted } return false } func init() { proto.RegisterType((*AttestationContainer)(nil), "prysm.beacon.db.AttestationContainer") proto.RegisterType((*AttestationContainer_SignaturePair)(nil), "prysm.beacon.db.AttestationContainer.SignaturePair") } func init() { proto.RegisterFile("proto/beacon/db/attestation_container.proto", fileDescriptor_29679516eb4218c9) } var fileDescriptor_29679516eb4218c9 = []byte{ // 354 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0xcf, 0x6a, 0xdb, 0x30, 0x18, 0xc7, 0xc9, 0x18, 0x9b, 0x92, 0x2d, 0xc3, 0xec, 0x60, 0xc2, 0xf0, 0xb2, 0x1d, 0x46, 0x60, 0x8b, 0xb4, 0x24, 0xb7, 0xd2, 0x4b, 0x9d, 0x3e, 0x40, 0x71, 0x6f, 0x6d, 0x21, 0x7c, 0xb2, 0x15, 0x59, 0xe0, 0x58, 0x46, 0xfa, 0x1c, 0xe8, 0x43, 0xf5, 0x3d, 0x7a, 0xec, 0x13, 0x94, 0x90, 0xc7, 0xe8, 0xa9, 0x58, 0x26, 0x8d, 0x1b, 0xda, 0xdb, 0xf7, 0xfd, 0xf8, 0xfd, 0xd3, 0x87, 0xc8, 0xdf, 0xd2, 0x68, 0xd4, 0x8c, 0x0b, 0x48, 0x74, 0xc1, 0x52, 0xce, 0x00, 0x51, 0x58, 0x04, 0x54, 0xba, 0x58, 0x26, 0xba, 0x40, 0x50, 0x85, 0x30, 0xd4, 0xb1, 0xfc, 0x41, 0x69, 0x6e, 0xed, 0x9a, 0x36, 0x64, 0x9a, 0xf2, 0x61, 0x28, 0x30, 0x63, 0x9b, 0x29, 0xe4, 0x65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0xbc, 0xf1, 0xa7, 0xb8, 0x57, 0x63, 0x8b, 0x06, 0x8a, 0x4e, 0xef, 0x77, 0xa1, 0xf7, 0xb0, 0x0b, 0xbd, 0xed, 0x2e, 0xf4, 0xae, 0xe8, 0xbb, 0x6d, 0xdc, 0xc6, 0x8e, 0x3e, 0x07, 0xff, 0xe8, 0x80, 0xf9, 0x73, 0x00, 0x00, 0x00, 0xff, 0xff, 0x91, 0x7d, 0x56, 0xe1, 0x36, 0x02, 0x00, 0x00, } func (m *AttestationContainer) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AttestationContainer) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AttestationContainer) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } if len(m.SignaturePairs) > 0 { for iNdEx := len(m.SignaturePairs) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.SignaturePairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintAttestationContainer(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.Data != nil { { size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintAttestationContainer(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *AttestationContainer_SignaturePair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AttestationContainer_SignaturePair) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AttestationContainer_SignaturePair) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.XXX_unrecognized != nil { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } if m.VoteCounted { i-- if m.VoteCounted { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x18 } if len(m.Signature) > 0 { i -= len(m.Signature) copy(dAtA[i:], m.Signature) i = encodeVarintAttestationContainer(dAtA, i, uint64(len(m.Signature))) i-- dAtA[i] = 0x12 } if len(m.AggregationBits) > 0 { i -= len(m.AggregationBits) copy(dAtA[i:], m.AggregationBits) i = encodeVarintAttestationContainer(dAtA, i, uint64(len(m.AggregationBits))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func encodeVarintAttestationContainer(dAtA []byte, offset int, v uint64) int { offset -= sovAttestationContainer(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *AttestationContainer) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Data != nil { l = m.Data.Size() n += 1 + l + sovAttestationContainer(uint64(l)) } if len(m.SignaturePairs) > 0 { for _, e := range m.SignaturePairs { l = e.Size() n += 1 + l + sovAttestationContainer(uint64(l)) } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *AttestationContainer_SignaturePair) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.AggregationBits) if l > 0 { n += 1 + l + sovAttestationContainer(uint64(l)) } l = len(m.Signature) if l > 0 { n += 1 + l + sovAttestationContainer(uint64(l)) } if m.VoteCounted { n += 2 } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func sovAttestationContainer(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozAttestationContainer(x uint64) (n int) { return sovAttestationContainer(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *AttestationContainer) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAttestationContainer } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: AttestationContainer: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AttestationContainer: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAttestationContainer } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthAttestationContainer } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthAttestationContainer } if postIndex > l { return io.ErrUnexpectedEOF } if m.Data == nil { m.Data = &v1alpha1.AttestationData{} } if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SignaturePairs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAttestationContainer } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthAttestationContainer } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthAttestationContainer } if postIndex > l { return io.ErrUnexpectedEOF } m.SignaturePairs = append(m.SignaturePairs, &AttestationContainer_SignaturePair{}) if err := m.SignaturePairs[len(m.SignaturePairs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipAttestationContainer(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthAttestationContainer } if (iNdEx + skippy) < 0 { return ErrInvalidLengthAttestationContainer } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *AttestationContainer_SignaturePair) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAttestationContainer } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SignaturePair: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SignaturePair: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AggregationBits", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAttestationContainer } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthAttestationContainer } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthAttestationContainer } if postIndex > l { return io.ErrUnexpectedEOF } m.AggregationBits = append(m.AggregationBits[:0], dAtA[iNdEx:postIndex]...) if m.AggregationBits == nil { m.AggregationBits = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAttestationContainer } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthAttestationContainer } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthAttestationContainer } if postIndex > l { return io.ErrUnexpectedEOF } m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) if m.Signature == nil { m.Signature = []byte{} } iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field VoteCounted", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAttestationContainer } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.VoteCounted = bool(v != 0) default: iNdEx = preIndex skippy, err := skipAttestationContainer(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthAttestationContainer } if (iNdEx + skippy) < 0 { return ErrInvalidLengthAttestationContainer } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipAttestationContainer(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowAttestationContainer } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowAttestationContainer } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowAttestationContainer } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if length < 0 { return 0, ErrInvalidLengthAttestationContainer } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupAttestationContainer } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthAttestationContainer } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthAttestationContainer = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAttestationContainer = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAttestationContainer = fmt.Errorf("proto: unexpected end of group") )