github.com/Finschia/finschia-sdk@v0.48.1/testutil/testdata/tx.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: tx.proto 3 4 package testdata 5 6 import ( 7 context "context" 8 fmt "fmt" 9 _ "github.com/gogo/protobuf/gogoproto" 10 grpc1 "github.com/gogo/protobuf/grpc" 11 proto "github.com/gogo/protobuf/proto" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 io "io" 16 math "math" 17 math_bits "math/bits" 18 ) 19 20 // Reference imports to suppress errors if they are not otherwise used. 21 var _ = proto.Marshal 22 var _ = fmt.Errorf 23 var _ = math.Inf 24 25 // This is a compile-time assertion to ensure that this generated file 26 // is compatible with the proto package it is being compiled against. 27 // A compilation error at this line likely means your copy of the 28 // proto package needs to be updated. 29 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 30 31 type MsgCreateDog struct { 32 Dog *Dog `protobuf:"bytes,1,opt,name=dog,proto3" json:"dog,omitempty"` 33 } 34 35 func (m *MsgCreateDog) Reset() { *m = MsgCreateDog{} } 36 func (m *MsgCreateDog) String() string { return proto.CompactTextString(m) } 37 func (*MsgCreateDog) ProtoMessage() {} 38 func (*MsgCreateDog) Descriptor() ([]byte, []int) { 39 return fileDescriptor_0fd2153dc07d3b5c, []int{0} 40 } 41 func (m *MsgCreateDog) XXX_Unmarshal(b []byte) error { 42 return m.Unmarshal(b) 43 } 44 func (m *MsgCreateDog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 if deterministic { 46 return xxx_messageInfo_MsgCreateDog.Marshal(b, m, deterministic) 47 } else { 48 b = b[:cap(b)] 49 n, err := m.MarshalToSizedBuffer(b) 50 if err != nil { 51 return nil, err 52 } 53 return b[:n], nil 54 } 55 } 56 func (m *MsgCreateDog) XXX_Merge(src proto.Message) { 57 xxx_messageInfo_MsgCreateDog.Merge(m, src) 58 } 59 func (m *MsgCreateDog) XXX_Size() int { 60 return m.Size() 61 } 62 func (m *MsgCreateDog) XXX_DiscardUnknown() { 63 xxx_messageInfo_MsgCreateDog.DiscardUnknown(m) 64 } 65 66 var xxx_messageInfo_MsgCreateDog proto.InternalMessageInfo 67 68 func (m *MsgCreateDog) GetDog() *Dog { 69 if m != nil { 70 return m.Dog 71 } 72 return nil 73 } 74 75 type MsgCreateDogResponse struct { 76 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 77 } 78 79 func (m *MsgCreateDogResponse) Reset() { *m = MsgCreateDogResponse{} } 80 func (m *MsgCreateDogResponse) String() string { return proto.CompactTextString(m) } 81 func (*MsgCreateDogResponse) ProtoMessage() {} 82 func (*MsgCreateDogResponse) Descriptor() ([]byte, []int) { 83 return fileDescriptor_0fd2153dc07d3b5c, []int{1} 84 } 85 func (m *MsgCreateDogResponse) XXX_Unmarshal(b []byte) error { 86 return m.Unmarshal(b) 87 } 88 func (m *MsgCreateDogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 89 if deterministic { 90 return xxx_messageInfo_MsgCreateDogResponse.Marshal(b, m, deterministic) 91 } else { 92 b = b[:cap(b)] 93 n, err := m.MarshalToSizedBuffer(b) 94 if err != nil { 95 return nil, err 96 } 97 return b[:n], nil 98 } 99 } 100 func (m *MsgCreateDogResponse) XXX_Merge(src proto.Message) { 101 xxx_messageInfo_MsgCreateDogResponse.Merge(m, src) 102 } 103 func (m *MsgCreateDogResponse) XXX_Size() int { 104 return m.Size() 105 } 106 func (m *MsgCreateDogResponse) XXX_DiscardUnknown() { 107 xxx_messageInfo_MsgCreateDogResponse.DiscardUnknown(m) 108 } 109 110 var xxx_messageInfo_MsgCreateDogResponse proto.InternalMessageInfo 111 112 func (m *MsgCreateDogResponse) GetName() string { 113 if m != nil { 114 return m.Name 115 } 116 return "" 117 } 118 119 // TestMsg is msg type for testing protobuf message using any, as defined in 120 // https://github.com/cosmos/cosmos-sdk/issues/6213. 121 type TestMsg struct { 122 Signers []string `protobuf:"bytes,1,rep,name=signers,proto3" json:"signers,omitempty"` 123 } 124 125 func (m *TestMsg) Reset() { *m = TestMsg{} } 126 func (m *TestMsg) String() string { return proto.CompactTextString(m) } 127 func (*TestMsg) ProtoMessage() {} 128 func (*TestMsg) Descriptor() ([]byte, []int) { 129 return fileDescriptor_0fd2153dc07d3b5c, []int{2} 130 } 131 func (m *TestMsg) XXX_Unmarshal(b []byte) error { 132 return m.Unmarshal(b) 133 } 134 func (m *TestMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 135 if deterministic { 136 return xxx_messageInfo_TestMsg.Marshal(b, m, deterministic) 137 } else { 138 b = b[:cap(b)] 139 n, err := m.MarshalToSizedBuffer(b) 140 if err != nil { 141 return nil, err 142 } 143 return b[:n], nil 144 } 145 } 146 func (m *TestMsg) XXX_Merge(src proto.Message) { 147 xxx_messageInfo_TestMsg.Merge(m, src) 148 } 149 func (m *TestMsg) XXX_Size() int { 150 return m.Size() 151 } 152 func (m *TestMsg) XXX_DiscardUnknown() { 153 xxx_messageInfo_TestMsg.DiscardUnknown(m) 154 } 155 156 var xxx_messageInfo_TestMsg proto.InternalMessageInfo 157 158 func init() { 159 proto.RegisterType((*MsgCreateDog)(nil), "testdata.MsgCreateDog") 160 proto.RegisterType((*MsgCreateDogResponse)(nil), "testdata.MsgCreateDogResponse") 161 proto.RegisterType((*TestMsg)(nil), "testdata.TestMsg") 162 } 163 164 func init() { proto.RegisterFile("tx.proto", fileDescriptor_0fd2153dc07d3b5c) } 165 166 var fileDescriptor_0fd2153dc07d3b5c = []byte{ 167 // 262 bytes of a gzipped FileDescriptorProto 168 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x28, 0xa9, 0xd0, 0x2b, 169 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x28, 0x49, 0x2d, 0x2e, 0x49, 0x49, 0x2c, 0x49, 0x94, 0x12, 170 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x0b, 0xea, 0x83, 0x58, 0x10, 0x79, 0x29, 0x3e, 0x98, 0x3c, 0x84, 171 0xaf, 0xa4, 0xcf, 0xc5, 0xe3, 0x5b, 0x9c, 0xee, 0x5c, 0x94, 0x9a, 0x58, 0x92, 0xea, 0x92, 0x9f, 172 0x2e, 0x24, 0xcf, 0xc5, 0x9c, 0x92, 0x9f, 0x2e, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0xc4, 0xab, 173 0x07, 0x57, 0xed, 0x92, 0x9f, 0x1e, 0x04, 0x92, 0x51, 0xd2, 0xe2, 0x12, 0x41, 0xd6, 0x10, 0x94, 174 0x5a, 0x5c, 0x90, 0x9f, 0x57, 0x9c, 0x2a, 0x24, 0xc4, 0xc5, 0x92, 0x97, 0x98, 0x9b, 0x0a, 0xd6, 175 0xc9, 0x19, 0x04, 0x66, 0x2b, 0x69, 0x72, 0xb1, 0x87, 0xa4, 0x16, 0x97, 0xf8, 0x16, 0xa7, 0x0b, 176 0x49, 0x70, 0xb1, 0x17, 0x67, 0xa6, 0xe7, 0xa5, 0x16, 0x15, 0x4b, 0x30, 0x2a, 0x30, 0x6b, 0x70, 177 0x06, 0xc1, 0xb8, 0x56, 0x2c, 0x1d, 0x0b, 0xe4, 0x19, 0x8c, 0xbc, 0xb8, 0x98, 0x41, 0xca, 0x9c, 178 0xb9, 0x38, 0x11, 0x6e, 0x11, 0x43, 0x58, 0x8f, 0x6c, 0xa5, 0x94, 0x1c, 0x76, 0x71, 0x98, 0x53, 179 0x9c, 0x7c, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 180 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x28, 0x3d, 0xb3, 181 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0xdf, 0x2d, 0x33, 0xaf, 0x38, 0x39, 0x23, 0x33, 182 0x51, 0x3f, 0x0d, 0xca, 0xd0, 0x2d, 0x4e, 0xc9, 0xd6, 0x07, 0x99, 0x5c, 0x5a, 0x92, 0x99, 0xa3, 183 0x0f, 0xb3, 0x22, 0x89, 0x0d, 0x1c, 0x50, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xed, 0x58, 184 0x49, 0x3a, 0x64, 0x01, 0x00, 0x00, 185 } 186 187 // Reference imports to suppress errors if they are not otherwise used. 188 var _ context.Context 189 var _ grpc.ClientConn 190 191 // This is a compile-time assertion to ensure that this generated file 192 // is compatible with the grpc package it is being compiled against. 193 const _ = grpc.SupportPackageIsVersion4 194 195 // MsgClient is the client API for Msg service. 196 // 197 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 198 type MsgClient interface { 199 CreateDog(ctx context.Context, in *MsgCreateDog, opts ...grpc.CallOption) (*MsgCreateDogResponse, error) 200 } 201 202 type msgClient struct { 203 cc grpc1.ClientConn 204 } 205 206 func NewMsgClient(cc grpc1.ClientConn) MsgClient { 207 return &msgClient{cc} 208 } 209 210 func (c *msgClient) CreateDog(ctx context.Context, in *MsgCreateDog, opts ...grpc.CallOption) (*MsgCreateDogResponse, error) { 211 out := new(MsgCreateDogResponse) 212 err := c.cc.Invoke(ctx, "/testdata.Msg/CreateDog", in, out, opts...) 213 if err != nil { 214 return nil, err 215 } 216 return out, nil 217 } 218 219 // MsgServer is the server API for Msg service. 220 type MsgServer interface { 221 CreateDog(context.Context, *MsgCreateDog) (*MsgCreateDogResponse, error) 222 } 223 224 // UnimplementedMsgServer can be embedded to have forward compatible implementations. 225 type UnimplementedMsgServer struct { 226 } 227 228 func (*UnimplementedMsgServer) CreateDog(ctx context.Context, req *MsgCreateDog) (*MsgCreateDogResponse, error) { 229 return nil, status.Errorf(codes.Unimplemented, "method CreateDog not implemented") 230 } 231 232 func RegisterMsgServer(s grpc1.Server, srv MsgServer) { 233 s.RegisterService(&_Msg_serviceDesc, srv) 234 } 235 236 func _Msg_CreateDog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 237 in := new(MsgCreateDog) 238 if err := dec(in); err != nil { 239 return nil, err 240 } 241 if interceptor == nil { 242 return srv.(MsgServer).CreateDog(ctx, in) 243 } 244 info := &grpc.UnaryServerInfo{ 245 Server: srv, 246 FullMethod: "/testdata.Msg/CreateDog", 247 } 248 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 249 return srv.(MsgServer).CreateDog(ctx, req.(*MsgCreateDog)) 250 } 251 return interceptor(ctx, in, info, handler) 252 } 253 254 var _Msg_serviceDesc = grpc.ServiceDesc{ 255 ServiceName: "testdata.Msg", 256 HandlerType: (*MsgServer)(nil), 257 Methods: []grpc.MethodDesc{ 258 { 259 MethodName: "CreateDog", 260 Handler: _Msg_CreateDog_Handler, 261 }, 262 }, 263 Streams: []grpc.StreamDesc{}, 264 Metadata: "tx.proto", 265 } 266 267 func (m *MsgCreateDog) Marshal() (dAtA []byte, err error) { 268 size := m.Size() 269 dAtA = make([]byte, size) 270 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 271 if err != nil { 272 return nil, err 273 } 274 return dAtA[:n], nil 275 } 276 277 func (m *MsgCreateDog) MarshalTo(dAtA []byte) (int, error) { 278 size := m.Size() 279 return m.MarshalToSizedBuffer(dAtA[:size]) 280 } 281 282 func (m *MsgCreateDog) MarshalToSizedBuffer(dAtA []byte) (int, error) { 283 i := len(dAtA) 284 _ = i 285 var l int 286 _ = l 287 if m.Dog != nil { 288 { 289 size, err := m.Dog.MarshalToSizedBuffer(dAtA[:i]) 290 if err != nil { 291 return 0, err 292 } 293 i -= size 294 i = encodeVarintTx(dAtA, i, uint64(size)) 295 } 296 i-- 297 dAtA[i] = 0xa 298 } 299 return len(dAtA) - i, nil 300 } 301 302 func (m *MsgCreateDogResponse) Marshal() (dAtA []byte, err error) { 303 size := m.Size() 304 dAtA = make([]byte, size) 305 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 306 if err != nil { 307 return nil, err 308 } 309 return dAtA[:n], nil 310 } 311 312 func (m *MsgCreateDogResponse) MarshalTo(dAtA []byte) (int, error) { 313 size := m.Size() 314 return m.MarshalToSizedBuffer(dAtA[:size]) 315 } 316 317 func (m *MsgCreateDogResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 318 i := len(dAtA) 319 _ = i 320 var l int 321 _ = l 322 if len(m.Name) > 0 { 323 i -= len(m.Name) 324 copy(dAtA[i:], m.Name) 325 i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) 326 i-- 327 dAtA[i] = 0xa 328 } 329 return len(dAtA) - i, nil 330 } 331 332 func (m *TestMsg) Marshal() (dAtA []byte, err error) { 333 size := m.Size() 334 dAtA = make([]byte, size) 335 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 336 if err != nil { 337 return nil, err 338 } 339 return dAtA[:n], nil 340 } 341 342 func (m *TestMsg) MarshalTo(dAtA []byte) (int, error) { 343 size := m.Size() 344 return m.MarshalToSizedBuffer(dAtA[:size]) 345 } 346 347 func (m *TestMsg) MarshalToSizedBuffer(dAtA []byte) (int, error) { 348 i := len(dAtA) 349 _ = i 350 var l int 351 _ = l 352 if len(m.Signers) > 0 { 353 for iNdEx := len(m.Signers) - 1; iNdEx >= 0; iNdEx-- { 354 i -= len(m.Signers[iNdEx]) 355 copy(dAtA[i:], m.Signers[iNdEx]) 356 i = encodeVarintTx(dAtA, i, uint64(len(m.Signers[iNdEx]))) 357 i-- 358 dAtA[i] = 0xa 359 } 360 } 361 return len(dAtA) - i, nil 362 } 363 364 func encodeVarintTx(dAtA []byte, offset int, v uint64) int { 365 offset -= sovTx(v) 366 base := offset 367 for v >= 1<<7 { 368 dAtA[offset] = uint8(v&0x7f | 0x80) 369 v >>= 7 370 offset++ 371 } 372 dAtA[offset] = uint8(v) 373 return base 374 } 375 func (m *MsgCreateDog) Size() (n int) { 376 if m == nil { 377 return 0 378 } 379 var l int 380 _ = l 381 if m.Dog != nil { 382 l = m.Dog.Size() 383 n += 1 + l + sovTx(uint64(l)) 384 } 385 return n 386 } 387 388 func (m *MsgCreateDogResponse) Size() (n int) { 389 if m == nil { 390 return 0 391 } 392 var l int 393 _ = l 394 l = len(m.Name) 395 if l > 0 { 396 n += 1 + l + sovTx(uint64(l)) 397 } 398 return n 399 } 400 401 func (m *TestMsg) Size() (n int) { 402 if m == nil { 403 return 0 404 } 405 var l int 406 _ = l 407 if len(m.Signers) > 0 { 408 for _, s := range m.Signers { 409 l = len(s) 410 n += 1 + l + sovTx(uint64(l)) 411 } 412 } 413 return n 414 } 415 416 func sovTx(x uint64) (n int) { 417 return (math_bits.Len64(x|1) + 6) / 7 418 } 419 func sozTx(x uint64) (n int) { 420 return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 421 } 422 func (m *MsgCreateDog) Unmarshal(dAtA []byte) error { 423 l := len(dAtA) 424 iNdEx := 0 425 for iNdEx < l { 426 preIndex := iNdEx 427 var wire uint64 428 for shift := uint(0); ; shift += 7 { 429 if shift >= 64 { 430 return ErrIntOverflowTx 431 } 432 if iNdEx >= l { 433 return io.ErrUnexpectedEOF 434 } 435 b := dAtA[iNdEx] 436 iNdEx++ 437 wire |= uint64(b&0x7F) << shift 438 if b < 0x80 { 439 break 440 } 441 } 442 fieldNum := int32(wire >> 3) 443 wireType := int(wire & 0x7) 444 if wireType == 4 { 445 return fmt.Errorf("proto: MsgCreateDog: wiretype end group for non-group") 446 } 447 if fieldNum <= 0 { 448 return fmt.Errorf("proto: MsgCreateDog: illegal tag %d (wire type %d)", fieldNum, wire) 449 } 450 switch fieldNum { 451 case 1: 452 if wireType != 2 { 453 return fmt.Errorf("proto: wrong wireType = %d for field Dog", wireType) 454 } 455 var msglen int 456 for shift := uint(0); ; shift += 7 { 457 if shift >= 64 { 458 return ErrIntOverflowTx 459 } 460 if iNdEx >= l { 461 return io.ErrUnexpectedEOF 462 } 463 b := dAtA[iNdEx] 464 iNdEx++ 465 msglen |= int(b&0x7F) << shift 466 if b < 0x80 { 467 break 468 } 469 } 470 if msglen < 0 { 471 return ErrInvalidLengthTx 472 } 473 postIndex := iNdEx + msglen 474 if postIndex < 0 { 475 return ErrInvalidLengthTx 476 } 477 if postIndex > l { 478 return io.ErrUnexpectedEOF 479 } 480 if m.Dog == nil { 481 m.Dog = &Dog{} 482 } 483 if err := m.Dog.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 484 return err 485 } 486 iNdEx = postIndex 487 default: 488 iNdEx = preIndex 489 skippy, err := skipTx(dAtA[iNdEx:]) 490 if err != nil { 491 return err 492 } 493 if (skippy < 0) || (iNdEx+skippy) < 0 { 494 return ErrInvalidLengthTx 495 } 496 if (iNdEx + skippy) > l { 497 return io.ErrUnexpectedEOF 498 } 499 iNdEx += skippy 500 } 501 } 502 503 if iNdEx > l { 504 return io.ErrUnexpectedEOF 505 } 506 return nil 507 } 508 func (m *MsgCreateDogResponse) Unmarshal(dAtA []byte) error { 509 l := len(dAtA) 510 iNdEx := 0 511 for iNdEx < l { 512 preIndex := iNdEx 513 var wire uint64 514 for shift := uint(0); ; shift += 7 { 515 if shift >= 64 { 516 return ErrIntOverflowTx 517 } 518 if iNdEx >= l { 519 return io.ErrUnexpectedEOF 520 } 521 b := dAtA[iNdEx] 522 iNdEx++ 523 wire |= uint64(b&0x7F) << shift 524 if b < 0x80 { 525 break 526 } 527 } 528 fieldNum := int32(wire >> 3) 529 wireType := int(wire & 0x7) 530 if wireType == 4 { 531 return fmt.Errorf("proto: MsgCreateDogResponse: wiretype end group for non-group") 532 } 533 if fieldNum <= 0 { 534 return fmt.Errorf("proto: MsgCreateDogResponse: illegal tag %d (wire type %d)", fieldNum, wire) 535 } 536 switch fieldNum { 537 case 1: 538 if wireType != 2 { 539 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 540 } 541 var stringLen uint64 542 for shift := uint(0); ; shift += 7 { 543 if shift >= 64 { 544 return ErrIntOverflowTx 545 } 546 if iNdEx >= l { 547 return io.ErrUnexpectedEOF 548 } 549 b := dAtA[iNdEx] 550 iNdEx++ 551 stringLen |= uint64(b&0x7F) << shift 552 if b < 0x80 { 553 break 554 } 555 } 556 intStringLen := int(stringLen) 557 if intStringLen < 0 { 558 return ErrInvalidLengthTx 559 } 560 postIndex := iNdEx + intStringLen 561 if postIndex < 0 { 562 return ErrInvalidLengthTx 563 } 564 if postIndex > l { 565 return io.ErrUnexpectedEOF 566 } 567 m.Name = string(dAtA[iNdEx:postIndex]) 568 iNdEx = postIndex 569 default: 570 iNdEx = preIndex 571 skippy, err := skipTx(dAtA[iNdEx:]) 572 if err != nil { 573 return err 574 } 575 if (skippy < 0) || (iNdEx+skippy) < 0 { 576 return ErrInvalidLengthTx 577 } 578 if (iNdEx + skippy) > l { 579 return io.ErrUnexpectedEOF 580 } 581 iNdEx += skippy 582 } 583 } 584 585 if iNdEx > l { 586 return io.ErrUnexpectedEOF 587 } 588 return nil 589 } 590 func (m *TestMsg) Unmarshal(dAtA []byte) error { 591 l := len(dAtA) 592 iNdEx := 0 593 for iNdEx < l { 594 preIndex := iNdEx 595 var wire uint64 596 for shift := uint(0); ; shift += 7 { 597 if shift >= 64 { 598 return ErrIntOverflowTx 599 } 600 if iNdEx >= l { 601 return io.ErrUnexpectedEOF 602 } 603 b := dAtA[iNdEx] 604 iNdEx++ 605 wire |= uint64(b&0x7F) << shift 606 if b < 0x80 { 607 break 608 } 609 } 610 fieldNum := int32(wire >> 3) 611 wireType := int(wire & 0x7) 612 if wireType == 4 { 613 return fmt.Errorf("proto: TestMsg: wiretype end group for non-group") 614 } 615 if fieldNum <= 0 { 616 return fmt.Errorf("proto: TestMsg: illegal tag %d (wire type %d)", fieldNum, wire) 617 } 618 switch fieldNum { 619 case 1: 620 if wireType != 2 { 621 return fmt.Errorf("proto: wrong wireType = %d for field Signers", wireType) 622 } 623 var stringLen uint64 624 for shift := uint(0); ; shift += 7 { 625 if shift >= 64 { 626 return ErrIntOverflowTx 627 } 628 if iNdEx >= l { 629 return io.ErrUnexpectedEOF 630 } 631 b := dAtA[iNdEx] 632 iNdEx++ 633 stringLen |= uint64(b&0x7F) << shift 634 if b < 0x80 { 635 break 636 } 637 } 638 intStringLen := int(stringLen) 639 if intStringLen < 0 { 640 return ErrInvalidLengthTx 641 } 642 postIndex := iNdEx + intStringLen 643 if postIndex < 0 { 644 return ErrInvalidLengthTx 645 } 646 if postIndex > l { 647 return io.ErrUnexpectedEOF 648 } 649 m.Signers = append(m.Signers, string(dAtA[iNdEx:postIndex])) 650 iNdEx = postIndex 651 default: 652 iNdEx = preIndex 653 skippy, err := skipTx(dAtA[iNdEx:]) 654 if err != nil { 655 return err 656 } 657 if (skippy < 0) || (iNdEx+skippy) < 0 { 658 return ErrInvalidLengthTx 659 } 660 if (iNdEx + skippy) > l { 661 return io.ErrUnexpectedEOF 662 } 663 iNdEx += skippy 664 } 665 } 666 667 if iNdEx > l { 668 return io.ErrUnexpectedEOF 669 } 670 return nil 671 } 672 func skipTx(dAtA []byte) (n int, err error) { 673 l := len(dAtA) 674 iNdEx := 0 675 depth := 0 676 for iNdEx < l { 677 var wire uint64 678 for shift := uint(0); ; shift += 7 { 679 if shift >= 64 { 680 return 0, ErrIntOverflowTx 681 } 682 if iNdEx >= l { 683 return 0, io.ErrUnexpectedEOF 684 } 685 b := dAtA[iNdEx] 686 iNdEx++ 687 wire |= (uint64(b) & 0x7F) << shift 688 if b < 0x80 { 689 break 690 } 691 } 692 wireType := int(wire & 0x7) 693 switch wireType { 694 case 0: 695 for shift := uint(0); ; shift += 7 { 696 if shift >= 64 { 697 return 0, ErrIntOverflowTx 698 } 699 if iNdEx >= l { 700 return 0, io.ErrUnexpectedEOF 701 } 702 iNdEx++ 703 if dAtA[iNdEx-1] < 0x80 { 704 break 705 } 706 } 707 case 1: 708 iNdEx += 8 709 case 2: 710 var length int 711 for shift := uint(0); ; shift += 7 { 712 if shift >= 64 { 713 return 0, ErrIntOverflowTx 714 } 715 if iNdEx >= l { 716 return 0, io.ErrUnexpectedEOF 717 } 718 b := dAtA[iNdEx] 719 iNdEx++ 720 length |= (int(b) & 0x7F) << shift 721 if b < 0x80 { 722 break 723 } 724 } 725 if length < 0 { 726 return 0, ErrInvalidLengthTx 727 } 728 iNdEx += length 729 case 3: 730 depth++ 731 case 4: 732 if depth == 0 { 733 return 0, ErrUnexpectedEndOfGroupTx 734 } 735 depth-- 736 case 5: 737 iNdEx += 4 738 default: 739 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 740 } 741 if iNdEx < 0 { 742 return 0, ErrInvalidLengthTx 743 } 744 if depth == 0 { 745 return iNdEx, nil 746 } 747 } 748 return 0, io.ErrUnexpectedEOF 749 } 750 751 var ( 752 ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") 753 ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") 754 ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") 755 )