github.com/Finschia/finschia-sdk@v0.49.1/x/bankplus/types/bankplus.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: lbm/bankplus/v1/bankplus.proto
     3  
     4  package types
     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  // InactiveAddr models the blocked address for the bankplus module
    27  type InactiveAddr struct {
    28  	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
    29  }
    30  
    31  func (m *InactiveAddr) Reset()         { *m = InactiveAddr{} }
    32  func (m *InactiveAddr) String() string { return proto.CompactTextString(m) }
    33  func (*InactiveAddr) ProtoMessage()    {}
    34  func (*InactiveAddr) Descriptor() ([]byte, []int) {
    35  	return fileDescriptor_79e8c66834b4419a, []int{0}
    36  }
    37  func (m *InactiveAddr) XXX_Unmarshal(b []byte) error {
    38  	return m.Unmarshal(b)
    39  }
    40  func (m *InactiveAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    41  	if deterministic {
    42  		return xxx_messageInfo_InactiveAddr.Marshal(b, m, deterministic)
    43  	} else {
    44  		b = b[:cap(b)]
    45  		n, err := m.MarshalToSizedBuffer(b)
    46  		if err != nil {
    47  			return nil, err
    48  		}
    49  		return b[:n], nil
    50  	}
    51  }
    52  func (m *InactiveAddr) XXX_Merge(src proto.Message) {
    53  	xxx_messageInfo_InactiveAddr.Merge(m, src)
    54  }
    55  func (m *InactiveAddr) XXX_Size() int {
    56  	return m.Size()
    57  }
    58  func (m *InactiveAddr) XXX_DiscardUnknown() {
    59  	xxx_messageInfo_InactiveAddr.DiscardUnknown(m)
    60  }
    61  
    62  var xxx_messageInfo_InactiveAddr proto.InternalMessageInfo
    63  
    64  func (m *InactiveAddr) GetAddress() string {
    65  	if m != nil {
    66  		return m.Address
    67  	}
    68  	return ""
    69  }
    70  
    71  func init() {
    72  	proto.RegisterType((*InactiveAddr)(nil), "lbm.bankplus.v1.InactiveAddr")
    73  }
    74  
    75  func init() { proto.RegisterFile("lbm/bankplus/v1/bankplus.proto", fileDescriptor_79e8c66834b4419a) }
    76  
    77  var fileDescriptor_79e8c66834b4419a = []byte{
    78  	// 184 bytes of a gzipped FileDescriptorProto
    79  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0x49, 0xca, 0xd5,
    80  	0x4f, 0x4a, 0xcc, 0xcb, 0x2e, 0xc8, 0x29, 0x2d, 0xd6, 0x2f, 0x33, 0x84, 0xb3, 0xf5, 0x0a, 0x8a,
    81  	0xf2, 0x4b, 0xf2, 0x85, 0xf8, 0x73, 0x92, 0x72, 0xf5, 0xe0, 0x62, 0x65, 0x86, 0x52, 0x22, 0xe9,
    82  	0xf9, 0xe9, 0xf9, 0x60, 0x39, 0x7d, 0x10, 0x0b, 0xa2, 0x4c, 0x49, 0x8f, 0x8b, 0xc7, 0x33, 0x2f,
    83  	0x31, 0xb9, 0x24, 0xb3, 0x2c, 0xd5, 0x31, 0x25, 0xa5, 0x48, 0x48, 0x82, 0x8b, 0x3d, 0x31, 0x25,
    84  	0xa5, 0x28, 0xb5, 0xb8, 0x58, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xc6, 0xb5, 0x62, 0x79,
    85  	0xb1, 0x40, 0x9e, 0xd1, 0xc9, 0xfb, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c,
    86  	0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2,
    87  	0x0c, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xdd, 0x32, 0xf3, 0x8a,
    88  	0x93, 0x33, 0x32, 0x13, 0xf5, 0xd3, 0xa0, 0x0c, 0xdd, 0xe2, 0x94, 0x6c, 0xfd, 0x0a, 0x84, 0x7b,
    89  	0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x6e, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff,
    90  	0x9e, 0x90, 0xb8, 0x29, 0xcc, 0x00, 0x00, 0x00,
    91  }
    92  
    93  func (this *InactiveAddr) Equal(that interface{}) bool {
    94  	if that == nil {
    95  		return this == nil
    96  	}
    97  
    98  	that1, ok := that.(*InactiveAddr)
    99  	if !ok {
   100  		that2, ok := that.(InactiveAddr)
   101  		if ok {
   102  			that1 = &that2
   103  		} else {
   104  			return false
   105  		}
   106  	}
   107  	if that1 == nil {
   108  		return this == nil
   109  	} else if this == nil {
   110  		return false
   111  	}
   112  	if this.Address != that1.Address {
   113  		return false
   114  	}
   115  	return true
   116  }
   117  func (m *InactiveAddr) Marshal() (dAtA []byte, err error) {
   118  	size := m.Size()
   119  	dAtA = make([]byte, size)
   120  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   121  	if err != nil {
   122  		return nil, err
   123  	}
   124  	return dAtA[:n], nil
   125  }
   126  
   127  func (m *InactiveAddr) MarshalTo(dAtA []byte) (int, error) {
   128  	size := m.Size()
   129  	return m.MarshalToSizedBuffer(dAtA[:size])
   130  }
   131  
   132  func (m *InactiveAddr) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   133  	i := len(dAtA)
   134  	_ = i
   135  	var l int
   136  	_ = l
   137  	if len(m.Address) > 0 {
   138  		i -= len(m.Address)
   139  		copy(dAtA[i:], m.Address)
   140  		i = encodeVarintBankplus(dAtA, i, uint64(len(m.Address)))
   141  		i--
   142  		dAtA[i] = 0xa
   143  	}
   144  	return len(dAtA) - i, nil
   145  }
   146  
   147  func encodeVarintBankplus(dAtA []byte, offset int, v uint64) int {
   148  	offset -= sovBankplus(v)
   149  	base := offset
   150  	for v >= 1<<7 {
   151  		dAtA[offset] = uint8(v&0x7f | 0x80)
   152  		v >>= 7
   153  		offset++
   154  	}
   155  	dAtA[offset] = uint8(v)
   156  	return base
   157  }
   158  func (m *InactiveAddr) Size() (n int) {
   159  	if m == nil {
   160  		return 0
   161  	}
   162  	var l int
   163  	_ = l
   164  	l = len(m.Address)
   165  	if l > 0 {
   166  		n += 1 + l + sovBankplus(uint64(l))
   167  	}
   168  	return n
   169  }
   170  
   171  func sovBankplus(x uint64) (n int) {
   172  	return (math_bits.Len64(x|1) + 6) / 7
   173  }
   174  func sozBankplus(x uint64) (n int) {
   175  	return sovBankplus(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   176  }
   177  func (m *InactiveAddr) Unmarshal(dAtA []byte) error {
   178  	l := len(dAtA)
   179  	iNdEx := 0
   180  	for iNdEx < l {
   181  		preIndex := iNdEx
   182  		var wire uint64
   183  		for shift := uint(0); ; shift += 7 {
   184  			if shift >= 64 {
   185  				return ErrIntOverflowBankplus
   186  			}
   187  			if iNdEx >= l {
   188  				return io.ErrUnexpectedEOF
   189  			}
   190  			b := dAtA[iNdEx]
   191  			iNdEx++
   192  			wire |= uint64(b&0x7F) << shift
   193  			if b < 0x80 {
   194  				break
   195  			}
   196  		}
   197  		fieldNum := int32(wire >> 3)
   198  		wireType := int(wire & 0x7)
   199  		if wireType == 4 {
   200  			return fmt.Errorf("proto: InactiveAddr: wiretype end group for non-group")
   201  		}
   202  		if fieldNum <= 0 {
   203  			return fmt.Errorf("proto: InactiveAddr: illegal tag %d (wire type %d)", fieldNum, wire)
   204  		}
   205  		switch fieldNum {
   206  		case 1:
   207  			if wireType != 2 {
   208  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
   209  			}
   210  			var stringLen uint64
   211  			for shift := uint(0); ; shift += 7 {
   212  				if shift >= 64 {
   213  					return ErrIntOverflowBankplus
   214  				}
   215  				if iNdEx >= l {
   216  					return io.ErrUnexpectedEOF
   217  				}
   218  				b := dAtA[iNdEx]
   219  				iNdEx++
   220  				stringLen |= uint64(b&0x7F) << shift
   221  				if b < 0x80 {
   222  					break
   223  				}
   224  			}
   225  			intStringLen := int(stringLen)
   226  			if intStringLen < 0 {
   227  				return ErrInvalidLengthBankplus
   228  			}
   229  			postIndex := iNdEx + intStringLen
   230  			if postIndex < 0 {
   231  				return ErrInvalidLengthBankplus
   232  			}
   233  			if postIndex > l {
   234  				return io.ErrUnexpectedEOF
   235  			}
   236  			m.Address = string(dAtA[iNdEx:postIndex])
   237  			iNdEx = postIndex
   238  		default:
   239  			iNdEx = preIndex
   240  			skippy, err := skipBankplus(dAtA[iNdEx:])
   241  			if err != nil {
   242  				return err
   243  			}
   244  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   245  				return ErrInvalidLengthBankplus
   246  			}
   247  			if (iNdEx + skippy) > l {
   248  				return io.ErrUnexpectedEOF
   249  			}
   250  			iNdEx += skippy
   251  		}
   252  	}
   253  
   254  	if iNdEx > l {
   255  		return io.ErrUnexpectedEOF
   256  	}
   257  	return nil
   258  }
   259  func skipBankplus(dAtA []byte) (n int, err error) {
   260  	l := len(dAtA)
   261  	iNdEx := 0
   262  	depth := 0
   263  	for iNdEx < l {
   264  		var wire uint64
   265  		for shift := uint(0); ; shift += 7 {
   266  			if shift >= 64 {
   267  				return 0, ErrIntOverflowBankplus
   268  			}
   269  			if iNdEx >= l {
   270  				return 0, io.ErrUnexpectedEOF
   271  			}
   272  			b := dAtA[iNdEx]
   273  			iNdEx++
   274  			wire |= (uint64(b) & 0x7F) << shift
   275  			if b < 0x80 {
   276  				break
   277  			}
   278  		}
   279  		wireType := int(wire & 0x7)
   280  		switch wireType {
   281  		case 0:
   282  			for shift := uint(0); ; shift += 7 {
   283  				if shift >= 64 {
   284  					return 0, ErrIntOverflowBankplus
   285  				}
   286  				if iNdEx >= l {
   287  					return 0, io.ErrUnexpectedEOF
   288  				}
   289  				iNdEx++
   290  				if dAtA[iNdEx-1] < 0x80 {
   291  					break
   292  				}
   293  			}
   294  		case 1:
   295  			iNdEx += 8
   296  		case 2:
   297  			var length int
   298  			for shift := uint(0); ; shift += 7 {
   299  				if shift >= 64 {
   300  					return 0, ErrIntOverflowBankplus
   301  				}
   302  				if iNdEx >= l {
   303  					return 0, io.ErrUnexpectedEOF
   304  				}
   305  				b := dAtA[iNdEx]
   306  				iNdEx++
   307  				length |= (int(b) & 0x7F) << shift
   308  				if b < 0x80 {
   309  					break
   310  				}
   311  			}
   312  			if length < 0 {
   313  				return 0, ErrInvalidLengthBankplus
   314  			}
   315  			iNdEx += length
   316  		case 3:
   317  			depth++
   318  		case 4:
   319  			if depth == 0 {
   320  				return 0, ErrUnexpectedEndOfGroupBankplus
   321  			}
   322  			depth--
   323  		case 5:
   324  			iNdEx += 4
   325  		default:
   326  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   327  		}
   328  		if iNdEx < 0 {
   329  			return 0, ErrInvalidLengthBankplus
   330  		}
   331  		if depth == 0 {
   332  			return iNdEx, nil
   333  		}
   334  	}
   335  	return 0, io.ErrUnexpectedEOF
   336  }
   337  
   338  var (
   339  	ErrInvalidLengthBankplus        = fmt.Errorf("proto: negative length found during unmarshaling")
   340  	ErrIntOverflowBankplus          = fmt.Errorf("proto: integer overflow")
   341  	ErrUnexpectedEndOfGroupBankplus = fmt.Errorf("proto: unexpected end of group")
   342  )