github.com/Finschia/finschia-sdk@v0.48.1/x/crisis/types/tx.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/crisis/v1beta1/tx.proto 3 4 package types 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 // MsgVerifyInvariant represents a message to verify a particular invariance. 32 type MsgVerifyInvariant struct { 33 Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` 34 InvariantModuleName string `protobuf:"bytes,2,opt,name=invariant_module_name,json=invariantModuleName,proto3" json:"invariant_module_name,omitempty" yaml:"invariant_module_name"` 35 InvariantRoute string `protobuf:"bytes,3,opt,name=invariant_route,json=invariantRoute,proto3" json:"invariant_route,omitempty" yaml:"invariant_route"` 36 } 37 38 func (m *MsgVerifyInvariant) Reset() { *m = MsgVerifyInvariant{} } 39 func (m *MsgVerifyInvariant) String() string { return proto.CompactTextString(m) } 40 func (*MsgVerifyInvariant) ProtoMessage() {} 41 func (*MsgVerifyInvariant) Descriptor() ([]byte, []int) { 42 return fileDescriptor_61276163172fe867, []int{0} 43 } 44 func (m *MsgVerifyInvariant) XXX_Unmarshal(b []byte) error { 45 return m.Unmarshal(b) 46 } 47 func (m *MsgVerifyInvariant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 48 if deterministic { 49 return xxx_messageInfo_MsgVerifyInvariant.Marshal(b, m, deterministic) 50 } else { 51 b = b[:cap(b)] 52 n, err := m.MarshalToSizedBuffer(b) 53 if err != nil { 54 return nil, err 55 } 56 return b[:n], nil 57 } 58 } 59 func (m *MsgVerifyInvariant) XXX_Merge(src proto.Message) { 60 xxx_messageInfo_MsgVerifyInvariant.Merge(m, src) 61 } 62 func (m *MsgVerifyInvariant) XXX_Size() int { 63 return m.Size() 64 } 65 func (m *MsgVerifyInvariant) XXX_DiscardUnknown() { 66 xxx_messageInfo_MsgVerifyInvariant.DiscardUnknown(m) 67 } 68 69 var xxx_messageInfo_MsgVerifyInvariant proto.InternalMessageInfo 70 71 // MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. 72 type MsgVerifyInvariantResponse struct { 73 } 74 75 func (m *MsgVerifyInvariantResponse) Reset() { *m = MsgVerifyInvariantResponse{} } 76 func (m *MsgVerifyInvariantResponse) String() string { return proto.CompactTextString(m) } 77 func (*MsgVerifyInvariantResponse) ProtoMessage() {} 78 func (*MsgVerifyInvariantResponse) Descriptor() ([]byte, []int) { 79 return fileDescriptor_61276163172fe867, []int{1} 80 } 81 func (m *MsgVerifyInvariantResponse) XXX_Unmarshal(b []byte) error { 82 return m.Unmarshal(b) 83 } 84 func (m *MsgVerifyInvariantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 85 if deterministic { 86 return xxx_messageInfo_MsgVerifyInvariantResponse.Marshal(b, m, deterministic) 87 } else { 88 b = b[:cap(b)] 89 n, err := m.MarshalToSizedBuffer(b) 90 if err != nil { 91 return nil, err 92 } 93 return b[:n], nil 94 } 95 } 96 func (m *MsgVerifyInvariantResponse) XXX_Merge(src proto.Message) { 97 xxx_messageInfo_MsgVerifyInvariantResponse.Merge(m, src) 98 } 99 func (m *MsgVerifyInvariantResponse) XXX_Size() int { 100 return m.Size() 101 } 102 func (m *MsgVerifyInvariantResponse) XXX_DiscardUnknown() { 103 xxx_messageInfo_MsgVerifyInvariantResponse.DiscardUnknown(m) 104 } 105 106 var xxx_messageInfo_MsgVerifyInvariantResponse proto.InternalMessageInfo 107 108 func init() { 109 proto.RegisterType((*MsgVerifyInvariant)(nil), "cosmos.crisis.v1beta1.MsgVerifyInvariant") 110 proto.RegisterType((*MsgVerifyInvariantResponse)(nil), "cosmos.crisis.v1beta1.MsgVerifyInvariantResponse") 111 } 112 113 func init() { proto.RegisterFile("cosmos/crisis/v1beta1/tx.proto", fileDescriptor_61276163172fe867) } 114 115 var fileDescriptor_61276163172fe867 = []byte{ 116 // 325 bytes of a gzipped FileDescriptorProto 117 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xce, 0x2f, 0xce, 118 0xcd, 0x2f, 0xd6, 0x4f, 0x2e, 0xca, 0x2c, 0xce, 0x2c, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 119 0x34, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x85, 0xc8, 0xeb, 0x41, 120 0xe4, 0xf5, 0xa0, 0xf2, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60, 0x15, 0xfa, 0x20, 0x16, 0x44, 121 0xb1, 0xd2, 0x45, 0x46, 0x2e, 0x21, 0xdf, 0xe2, 0xf4, 0xb0, 0xd4, 0xa2, 0xcc, 0xb4, 0x4a, 0xcf, 122 0xbc, 0xb2, 0xc4, 0xa2, 0xcc, 0xc4, 0xbc, 0x12, 0x21, 0x31, 0x2e, 0xb6, 0xe2, 0xd4, 0xbc, 0x94, 123 0xd4, 0x22, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x28, 0x4f, 0x28, 0x84, 0x4b, 0x34, 0x13, 124 0xa6, 0x28, 0x3e, 0x37, 0x3f, 0xa5, 0x34, 0x27, 0x35, 0x3e, 0x2f, 0x31, 0x37, 0x55, 0x82, 0x09, 125 0xa4, 0xcc, 0x49, 0xe1, 0xd3, 0x3d, 0x79, 0x99, 0xca, 0xc4, 0xdc, 0x1c, 0x2b, 0x25, 0xac, 0xca, 126 0x94, 0x82, 0x84, 0xe1, 0xe2, 0xbe, 0x60, 0x61, 0xbf, 0xc4, 0xdc, 0x54, 0x21, 0x67, 0x2e, 0x7e, 127 0x84, 0xf2, 0xa2, 0xfc, 0xd2, 0x92, 0x54, 0x09, 0x66, 0xb0, 0x79, 0x52, 0x9f, 0xee, 0xc9, 0x8b, 128 0xa1, 0x9b, 0x07, 0x56, 0xa0, 0x14, 0xc4, 0x07, 0x17, 0x09, 0x02, 0x09, 0x58, 0x71, 0x74, 0x2c, 129 0x90, 0x67, 0x78, 0xb1, 0x40, 0x9e, 0x41, 0x49, 0x86, 0x4b, 0x0a, 0xd3, 0x4b, 0x41, 0xa9, 0xc5, 130 0x05, 0xf9, 0x79, 0xc5, 0xa9, 0x46, 0x65, 0x5c, 0xcc, 0xbe, 0xc5, 0xe9, 0x42, 0xf9, 0x5c, 0xfc, 131 0xe8, 0x9e, 0xd6, 0xd4, 0xc3, 0x1a, 0x72, 0x7a, 0x98, 0x86, 0x49, 0x19, 0x12, 0xad, 0x14, 0x66, 132 0xaf, 0x93, 0xe7, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 133 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xe9, 0xa7, 0x67, 134 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xbb, 0x65, 0xe6, 0x15, 0x27, 0x67, 0x64, 135 0x26, 0xea, 0xa7, 0x41, 0x19, 0xba, 0xc5, 0x29, 0xd9, 0xfa, 0x15, 0xb0, 0xc8, 0x2e, 0xa9, 0x2c, 136 0x48, 0x2d, 0x4e, 0x62, 0x03, 0xc7, 0x9d, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x1f, 0xf9, 137 0xef, 0x0a, 0x02, 0x00, 0x00, 138 } 139 140 // Reference imports to suppress errors if they are not otherwise used. 141 var _ context.Context 142 var _ grpc.ClientConn 143 144 // This is a compile-time assertion to ensure that this generated file 145 // is compatible with the grpc package it is being compiled against. 146 const _ = grpc.SupportPackageIsVersion4 147 148 // MsgClient is the client API for Msg service. 149 // 150 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 151 type MsgClient interface { 152 // VerifyInvariant defines a method to verify a particular invariance. 153 VerifyInvariant(ctx context.Context, in *MsgVerifyInvariant, opts ...grpc.CallOption) (*MsgVerifyInvariantResponse, error) 154 } 155 156 type msgClient struct { 157 cc grpc1.ClientConn 158 } 159 160 func NewMsgClient(cc grpc1.ClientConn) MsgClient { 161 return &msgClient{cc} 162 } 163 164 func (c *msgClient) VerifyInvariant(ctx context.Context, in *MsgVerifyInvariant, opts ...grpc.CallOption) (*MsgVerifyInvariantResponse, error) { 165 out := new(MsgVerifyInvariantResponse) 166 err := c.cc.Invoke(ctx, "/cosmos.crisis.v1beta1.Msg/VerifyInvariant", in, out, opts...) 167 if err != nil { 168 return nil, err 169 } 170 return out, nil 171 } 172 173 // MsgServer is the server API for Msg service. 174 type MsgServer interface { 175 // VerifyInvariant defines a method to verify a particular invariance. 176 VerifyInvariant(context.Context, *MsgVerifyInvariant) (*MsgVerifyInvariantResponse, error) 177 } 178 179 // UnimplementedMsgServer can be embedded to have forward compatible implementations. 180 type UnimplementedMsgServer struct { 181 } 182 183 func (*UnimplementedMsgServer) VerifyInvariant(ctx context.Context, req *MsgVerifyInvariant) (*MsgVerifyInvariantResponse, error) { 184 return nil, status.Errorf(codes.Unimplemented, "method VerifyInvariant not implemented") 185 } 186 187 func RegisterMsgServer(s grpc1.Server, srv MsgServer) { 188 s.RegisterService(&_Msg_serviceDesc, srv) 189 } 190 191 func _Msg_VerifyInvariant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 192 in := new(MsgVerifyInvariant) 193 if err := dec(in); err != nil { 194 return nil, err 195 } 196 if interceptor == nil { 197 return srv.(MsgServer).VerifyInvariant(ctx, in) 198 } 199 info := &grpc.UnaryServerInfo{ 200 Server: srv, 201 FullMethod: "/cosmos.crisis.v1beta1.Msg/VerifyInvariant", 202 } 203 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 204 return srv.(MsgServer).VerifyInvariant(ctx, req.(*MsgVerifyInvariant)) 205 } 206 return interceptor(ctx, in, info, handler) 207 } 208 209 var _Msg_serviceDesc = grpc.ServiceDesc{ 210 ServiceName: "cosmos.crisis.v1beta1.Msg", 211 HandlerType: (*MsgServer)(nil), 212 Methods: []grpc.MethodDesc{ 213 { 214 MethodName: "VerifyInvariant", 215 Handler: _Msg_VerifyInvariant_Handler, 216 }, 217 }, 218 Streams: []grpc.StreamDesc{}, 219 Metadata: "cosmos/crisis/v1beta1/tx.proto", 220 } 221 222 func (m *MsgVerifyInvariant) Marshal() (dAtA []byte, err error) { 223 size := m.Size() 224 dAtA = make([]byte, size) 225 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 226 if err != nil { 227 return nil, err 228 } 229 return dAtA[:n], nil 230 } 231 232 func (m *MsgVerifyInvariant) MarshalTo(dAtA []byte) (int, error) { 233 size := m.Size() 234 return m.MarshalToSizedBuffer(dAtA[:size]) 235 } 236 237 func (m *MsgVerifyInvariant) MarshalToSizedBuffer(dAtA []byte) (int, error) { 238 i := len(dAtA) 239 _ = i 240 var l int 241 _ = l 242 if len(m.InvariantRoute) > 0 { 243 i -= len(m.InvariantRoute) 244 copy(dAtA[i:], m.InvariantRoute) 245 i = encodeVarintTx(dAtA, i, uint64(len(m.InvariantRoute))) 246 i-- 247 dAtA[i] = 0x1a 248 } 249 if len(m.InvariantModuleName) > 0 { 250 i -= len(m.InvariantModuleName) 251 copy(dAtA[i:], m.InvariantModuleName) 252 i = encodeVarintTx(dAtA, i, uint64(len(m.InvariantModuleName))) 253 i-- 254 dAtA[i] = 0x12 255 } 256 if len(m.Sender) > 0 { 257 i -= len(m.Sender) 258 copy(dAtA[i:], m.Sender) 259 i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) 260 i-- 261 dAtA[i] = 0xa 262 } 263 return len(dAtA) - i, nil 264 } 265 266 func (m *MsgVerifyInvariantResponse) Marshal() (dAtA []byte, err error) { 267 size := m.Size() 268 dAtA = make([]byte, size) 269 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 270 if err != nil { 271 return nil, err 272 } 273 return dAtA[:n], nil 274 } 275 276 func (m *MsgVerifyInvariantResponse) MarshalTo(dAtA []byte) (int, error) { 277 size := m.Size() 278 return m.MarshalToSizedBuffer(dAtA[:size]) 279 } 280 281 func (m *MsgVerifyInvariantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 282 i := len(dAtA) 283 _ = i 284 var l int 285 _ = l 286 return len(dAtA) - i, nil 287 } 288 289 func encodeVarintTx(dAtA []byte, offset int, v uint64) int { 290 offset -= sovTx(v) 291 base := offset 292 for v >= 1<<7 { 293 dAtA[offset] = uint8(v&0x7f | 0x80) 294 v >>= 7 295 offset++ 296 } 297 dAtA[offset] = uint8(v) 298 return base 299 } 300 func (m *MsgVerifyInvariant) Size() (n int) { 301 if m == nil { 302 return 0 303 } 304 var l int 305 _ = l 306 l = len(m.Sender) 307 if l > 0 { 308 n += 1 + l + sovTx(uint64(l)) 309 } 310 l = len(m.InvariantModuleName) 311 if l > 0 { 312 n += 1 + l + sovTx(uint64(l)) 313 } 314 l = len(m.InvariantRoute) 315 if l > 0 { 316 n += 1 + l + sovTx(uint64(l)) 317 } 318 return n 319 } 320 321 func (m *MsgVerifyInvariantResponse) Size() (n int) { 322 if m == nil { 323 return 0 324 } 325 var l int 326 _ = l 327 return n 328 } 329 330 func sovTx(x uint64) (n int) { 331 return (math_bits.Len64(x|1) + 6) / 7 332 } 333 func sozTx(x uint64) (n int) { 334 return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 335 } 336 func (m *MsgVerifyInvariant) Unmarshal(dAtA []byte) error { 337 l := len(dAtA) 338 iNdEx := 0 339 for iNdEx < l { 340 preIndex := iNdEx 341 var wire uint64 342 for shift := uint(0); ; shift += 7 { 343 if shift >= 64 { 344 return ErrIntOverflowTx 345 } 346 if iNdEx >= l { 347 return io.ErrUnexpectedEOF 348 } 349 b := dAtA[iNdEx] 350 iNdEx++ 351 wire |= uint64(b&0x7F) << shift 352 if b < 0x80 { 353 break 354 } 355 } 356 fieldNum := int32(wire >> 3) 357 wireType := int(wire & 0x7) 358 if wireType == 4 { 359 return fmt.Errorf("proto: MsgVerifyInvariant: wiretype end group for non-group") 360 } 361 if fieldNum <= 0 { 362 return fmt.Errorf("proto: MsgVerifyInvariant: illegal tag %d (wire type %d)", fieldNum, wire) 363 } 364 switch fieldNum { 365 case 1: 366 if wireType != 2 { 367 return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) 368 } 369 var stringLen uint64 370 for shift := uint(0); ; shift += 7 { 371 if shift >= 64 { 372 return ErrIntOverflowTx 373 } 374 if iNdEx >= l { 375 return io.ErrUnexpectedEOF 376 } 377 b := dAtA[iNdEx] 378 iNdEx++ 379 stringLen |= uint64(b&0x7F) << shift 380 if b < 0x80 { 381 break 382 } 383 } 384 intStringLen := int(stringLen) 385 if intStringLen < 0 { 386 return ErrInvalidLengthTx 387 } 388 postIndex := iNdEx + intStringLen 389 if postIndex < 0 { 390 return ErrInvalidLengthTx 391 } 392 if postIndex > l { 393 return io.ErrUnexpectedEOF 394 } 395 m.Sender = string(dAtA[iNdEx:postIndex]) 396 iNdEx = postIndex 397 case 2: 398 if wireType != 2 { 399 return fmt.Errorf("proto: wrong wireType = %d for field InvariantModuleName", wireType) 400 } 401 var stringLen uint64 402 for shift := uint(0); ; shift += 7 { 403 if shift >= 64 { 404 return ErrIntOverflowTx 405 } 406 if iNdEx >= l { 407 return io.ErrUnexpectedEOF 408 } 409 b := dAtA[iNdEx] 410 iNdEx++ 411 stringLen |= uint64(b&0x7F) << shift 412 if b < 0x80 { 413 break 414 } 415 } 416 intStringLen := int(stringLen) 417 if intStringLen < 0 { 418 return ErrInvalidLengthTx 419 } 420 postIndex := iNdEx + intStringLen 421 if postIndex < 0 { 422 return ErrInvalidLengthTx 423 } 424 if postIndex > l { 425 return io.ErrUnexpectedEOF 426 } 427 m.InvariantModuleName = string(dAtA[iNdEx:postIndex]) 428 iNdEx = postIndex 429 case 3: 430 if wireType != 2 { 431 return fmt.Errorf("proto: wrong wireType = %d for field InvariantRoute", wireType) 432 } 433 var stringLen uint64 434 for shift := uint(0); ; shift += 7 { 435 if shift >= 64 { 436 return ErrIntOverflowTx 437 } 438 if iNdEx >= l { 439 return io.ErrUnexpectedEOF 440 } 441 b := dAtA[iNdEx] 442 iNdEx++ 443 stringLen |= uint64(b&0x7F) << shift 444 if b < 0x80 { 445 break 446 } 447 } 448 intStringLen := int(stringLen) 449 if intStringLen < 0 { 450 return ErrInvalidLengthTx 451 } 452 postIndex := iNdEx + intStringLen 453 if postIndex < 0 { 454 return ErrInvalidLengthTx 455 } 456 if postIndex > l { 457 return io.ErrUnexpectedEOF 458 } 459 m.InvariantRoute = string(dAtA[iNdEx:postIndex]) 460 iNdEx = postIndex 461 default: 462 iNdEx = preIndex 463 skippy, err := skipTx(dAtA[iNdEx:]) 464 if err != nil { 465 return err 466 } 467 if (skippy < 0) || (iNdEx+skippy) < 0 { 468 return ErrInvalidLengthTx 469 } 470 if (iNdEx + skippy) > l { 471 return io.ErrUnexpectedEOF 472 } 473 iNdEx += skippy 474 } 475 } 476 477 if iNdEx > l { 478 return io.ErrUnexpectedEOF 479 } 480 return nil 481 } 482 func (m *MsgVerifyInvariantResponse) Unmarshal(dAtA []byte) error { 483 l := len(dAtA) 484 iNdEx := 0 485 for iNdEx < l { 486 preIndex := iNdEx 487 var wire uint64 488 for shift := uint(0); ; shift += 7 { 489 if shift >= 64 { 490 return ErrIntOverflowTx 491 } 492 if iNdEx >= l { 493 return io.ErrUnexpectedEOF 494 } 495 b := dAtA[iNdEx] 496 iNdEx++ 497 wire |= uint64(b&0x7F) << shift 498 if b < 0x80 { 499 break 500 } 501 } 502 fieldNum := int32(wire >> 3) 503 wireType := int(wire & 0x7) 504 if wireType == 4 { 505 return fmt.Errorf("proto: MsgVerifyInvariantResponse: wiretype end group for non-group") 506 } 507 if fieldNum <= 0 { 508 return fmt.Errorf("proto: MsgVerifyInvariantResponse: illegal tag %d (wire type %d)", fieldNum, wire) 509 } 510 switch fieldNum { 511 default: 512 iNdEx = preIndex 513 skippy, err := skipTx(dAtA[iNdEx:]) 514 if err != nil { 515 return err 516 } 517 if (skippy < 0) || (iNdEx+skippy) < 0 { 518 return ErrInvalidLengthTx 519 } 520 if (iNdEx + skippy) > l { 521 return io.ErrUnexpectedEOF 522 } 523 iNdEx += skippy 524 } 525 } 526 527 if iNdEx > l { 528 return io.ErrUnexpectedEOF 529 } 530 return nil 531 } 532 func skipTx(dAtA []byte) (n int, err error) { 533 l := len(dAtA) 534 iNdEx := 0 535 depth := 0 536 for iNdEx < l { 537 var wire uint64 538 for shift := uint(0); ; shift += 7 { 539 if shift >= 64 { 540 return 0, ErrIntOverflowTx 541 } 542 if iNdEx >= l { 543 return 0, io.ErrUnexpectedEOF 544 } 545 b := dAtA[iNdEx] 546 iNdEx++ 547 wire |= (uint64(b) & 0x7F) << shift 548 if b < 0x80 { 549 break 550 } 551 } 552 wireType := int(wire & 0x7) 553 switch wireType { 554 case 0: 555 for shift := uint(0); ; shift += 7 { 556 if shift >= 64 { 557 return 0, ErrIntOverflowTx 558 } 559 if iNdEx >= l { 560 return 0, io.ErrUnexpectedEOF 561 } 562 iNdEx++ 563 if dAtA[iNdEx-1] < 0x80 { 564 break 565 } 566 } 567 case 1: 568 iNdEx += 8 569 case 2: 570 var length int 571 for shift := uint(0); ; shift += 7 { 572 if shift >= 64 { 573 return 0, ErrIntOverflowTx 574 } 575 if iNdEx >= l { 576 return 0, io.ErrUnexpectedEOF 577 } 578 b := dAtA[iNdEx] 579 iNdEx++ 580 length |= (int(b) & 0x7F) << shift 581 if b < 0x80 { 582 break 583 } 584 } 585 if length < 0 { 586 return 0, ErrInvalidLengthTx 587 } 588 iNdEx += length 589 case 3: 590 depth++ 591 case 4: 592 if depth == 0 { 593 return 0, ErrUnexpectedEndOfGroupTx 594 } 595 depth-- 596 case 5: 597 iNdEx += 4 598 default: 599 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 600 } 601 if iNdEx < 0 { 602 return 0, ErrInvalidLengthTx 603 } 604 if depth == 0 { 605 return iNdEx, nil 606 } 607 } 608 return 0, io.ErrUnexpectedEOF 609 } 610 611 var ( 612 ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") 613 ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") 614 ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") 615 )