github.com/datachainlab/cross@v0.2.2/x/packets/types_test.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cross/packets/types_test.proto 3 4 package packets 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 type TestPacketDataPayload struct { 27 } 28 29 func (m *TestPacketDataPayload) Reset() { *m = TestPacketDataPayload{} } 30 func (m *TestPacketDataPayload) String() string { return proto.CompactTextString(m) } 31 func (*TestPacketDataPayload) ProtoMessage() {} 32 func (*TestPacketDataPayload) Descriptor() ([]byte, []int) { 33 return fileDescriptor_6fa36fb394f866bb, []int{0} 34 } 35 func (m *TestPacketDataPayload) XXX_Unmarshal(b []byte) error { 36 return m.Unmarshal(b) 37 } 38 func (m *TestPacketDataPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 39 if deterministic { 40 return xxx_messageInfo_TestPacketDataPayload.Marshal(b, m, deterministic) 41 } else { 42 b = b[:cap(b)] 43 n, err := m.MarshalToSizedBuffer(b) 44 if err != nil { 45 return nil, err 46 } 47 return b[:n], nil 48 } 49 } 50 func (m *TestPacketDataPayload) XXX_Merge(src proto.Message) { 51 xxx_messageInfo_TestPacketDataPayload.Merge(m, src) 52 } 53 func (m *TestPacketDataPayload) XXX_Size() int { 54 return m.Size() 55 } 56 func (m *TestPacketDataPayload) XXX_DiscardUnknown() { 57 xxx_messageInfo_TestPacketDataPayload.DiscardUnknown(m) 58 } 59 60 var xxx_messageInfo_TestPacketDataPayload proto.InternalMessageInfo 61 62 func init() { 63 proto.RegisterType((*TestPacketDataPayload)(nil), "cross.packets.TestPacketDataPayload") 64 } 65 66 func init() { proto.RegisterFile("cross/packets/types_test.proto", fileDescriptor_6fa36fb394f866bb) } 67 68 var fileDescriptor_6fa36fb394f866bb = []byte{ 69 // 166 bytes of a gzipped FileDescriptorProto 70 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0x2e, 0xca, 0x2f, 71 0x2e, 0xd6, 0x2f, 0x48, 0x4c, 0xce, 0x4e, 0x2d, 0x29, 0xd6, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0x8e, 72 0x2f, 0x49, 0x2d, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x05, 0xcb, 0xeb, 0x41, 73 0xe5, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x32, 0xfa, 0x20, 0x16, 0x44, 0x91, 0x92, 0x38, 74 0x97, 0x68, 0x48, 0x6a, 0x71, 0x49, 0x00, 0x58, 0x91, 0x4b, 0x62, 0x49, 0x62, 0x40, 0x62, 0x65, 75 0x4e, 0x7e, 0x62, 0x8a, 0x93, 0xeb, 0x89, 0x87, 0x72, 0x0c, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 76 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 77 0x78, 0x2c, 0xc7, 0x10, 0xa5, 0x9e, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 78 0x9f, 0x92, 0x58, 0x92, 0x98, 0x9c, 0x91, 0x98, 0x99, 0x97, 0x93, 0x98, 0xa4, 0x0f, 0x71, 0x53, 79 0x05, 0xcc, 0x55, 0x49, 0x6c, 0x60, 0x6b, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x29, 80 0xf7, 0x96, 0xad, 0x00, 0x00, 0x00, 81 } 82 83 func (m *TestPacketDataPayload) Marshal() (dAtA []byte, err error) { 84 size := m.Size() 85 dAtA = make([]byte, size) 86 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 87 if err != nil { 88 return nil, err 89 } 90 return dAtA[:n], nil 91 } 92 93 func (m *TestPacketDataPayload) MarshalTo(dAtA []byte) (int, error) { 94 size := m.Size() 95 return m.MarshalToSizedBuffer(dAtA[:size]) 96 } 97 98 func (m *TestPacketDataPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { 99 i := len(dAtA) 100 _ = i 101 var l int 102 _ = l 103 return len(dAtA) - i, nil 104 } 105 106 func encodeVarintTypesTest(dAtA []byte, offset int, v uint64) int { 107 offset -= sovTypesTest(v) 108 base := offset 109 for v >= 1<<7 { 110 dAtA[offset] = uint8(v&0x7f | 0x80) 111 v >>= 7 112 offset++ 113 } 114 dAtA[offset] = uint8(v) 115 return base 116 } 117 func (m *TestPacketDataPayload) Size() (n int) { 118 if m == nil { 119 return 0 120 } 121 var l int 122 _ = l 123 return n 124 } 125 126 func sovTypesTest(x uint64) (n int) { 127 return (math_bits.Len64(x|1) + 6) / 7 128 } 129 func sozTypesTest(x uint64) (n int) { 130 return sovTypesTest(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 131 } 132 func (m *TestPacketDataPayload) Unmarshal(dAtA []byte) error { 133 l := len(dAtA) 134 iNdEx := 0 135 for iNdEx < l { 136 preIndex := iNdEx 137 var wire uint64 138 for shift := uint(0); ; shift += 7 { 139 if shift >= 64 { 140 return ErrIntOverflowTypesTest 141 } 142 if iNdEx >= l { 143 return io.ErrUnexpectedEOF 144 } 145 b := dAtA[iNdEx] 146 iNdEx++ 147 wire |= uint64(b&0x7F) << shift 148 if b < 0x80 { 149 break 150 } 151 } 152 fieldNum := int32(wire >> 3) 153 wireType := int(wire & 0x7) 154 if wireType == 4 { 155 return fmt.Errorf("proto: TestPacketDataPayload: wiretype end group for non-group") 156 } 157 if fieldNum <= 0 { 158 return fmt.Errorf("proto: TestPacketDataPayload: illegal tag %d (wire type %d)", fieldNum, wire) 159 } 160 switch fieldNum { 161 default: 162 iNdEx = preIndex 163 skippy, err := skipTypesTest(dAtA[iNdEx:]) 164 if err != nil { 165 return err 166 } 167 if skippy < 0 { 168 return ErrInvalidLengthTypesTest 169 } 170 if (iNdEx + skippy) < 0 { 171 return ErrInvalidLengthTypesTest 172 } 173 if (iNdEx + skippy) > l { 174 return io.ErrUnexpectedEOF 175 } 176 iNdEx += skippy 177 } 178 } 179 180 if iNdEx > l { 181 return io.ErrUnexpectedEOF 182 } 183 return nil 184 } 185 func skipTypesTest(dAtA []byte) (n int, err error) { 186 l := len(dAtA) 187 iNdEx := 0 188 depth := 0 189 for iNdEx < l { 190 var wire uint64 191 for shift := uint(0); ; shift += 7 { 192 if shift >= 64 { 193 return 0, ErrIntOverflowTypesTest 194 } 195 if iNdEx >= l { 196 return 0, io.ErrUnexpectedEOF 197 } 198 b := dAtA[iNdEx] 199 iNdEx++ 200 wire |= (uint64(b) & 0x7F) << shift 201 if b < 0x80 { 202 break 203 } 204 } 205 wireType := int(wire & 0x7) 206 switch wireType { 207 case 0: 208 for shift := uint(0); ; shift += 7 { 209 if shift >= 64 { 210 return 0, ErrIntOverflowTypesTest 211 } 212 if iNdEx >= l { 213 return 0, io.ErrUnexpectedEOF 214 } 215 iNdEx++ 216 if dAtA[iNdEx-1] < 0x80 { 217 break 218 } 219 } 220 case 1: 221 iNdEx += 8 222 case 2: 223 var length int 224 for shift := uint(0); ; shift += 7 { 225 if shift >= 64 { 226 return 0, ErrIntOverflowTypesTest 227 } 228 if iNdEx >= l { 229 return 0, io.ErrUnexpectedEOF 230 } 231 b := dAtA[iNdEx] 232 iNdEx++ 233 length |= (int(b) & 0x7F) << shift 234 if b < 0x80 { 235 break 236 } 237 } 238 if length < 0 { 239 return 0, ErrInvalidLengthTypesTest 240 } 241 iNdEx += length 242 case 3: 243 depth++ 244 case 4: 245 if depth == 0 { 246 return 0, ErrUnexpectedEndOfGroupTypesTest 247 } 248 depth-- 249 case 5: 250 iNdEx += 4 251 default: 252 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 253 } 254 if iNdEx < 0 { 255 return 0, ErrInvalidLengthTypesTest 256 } 257 if depth == 0 { 258 return iNdEx, nil 259 } 260 } 261 return 0, io.ErrUnexpectedEOF 262 } 263 264 var ( 265 ErrInvalidLengthTypesTest = fmt.Errorf("proto: negative length found during unmarshaling") 266 ErrIntOverflowTypesTest = fmt.Errorf("proto: integer overflow") 267 ErrUnexpectedEndOfGroupTypesTest = fmt.Errorf("proto: unexpected end of group") 268 )