github.com/Finschia/finschia-sdk@v0.48.1/x/foundation/authz.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: lbm/foundation/v1/authz.proto
     3  
     4  package foundation
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/gogo/protobuf/gogoproto"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	_ "github.com/regen-network/cosmos-proto"
    11  	io "io"
    12  	math "math"
    13  	math_bits "math/bits"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  // ReceiveFromTreasuryAuthorization allows the grantee to receive coins
    28  // up to receive_limit from the treasury.
    29  type ReceiveFromTreasuryAuthorization struct {
    30  }
    31  
    32  func (m *ReceiveFromTreasuryAuthorization) Reset()         { *m = ReceiveFromTreasuryAuthorization{} }
    33  func (m *ReceiveFromTreasuryAuthorization) String() string { return proto.CompactTextString(m) }
    34  func (*ReceiveFromTreasuryAuthorization) ProtoMessage()    {}
    35  func (*ReceiveFromTreasuryAuthorization) Descriptor() ([]byte, []int) {
    36  	return fileDescriptor_8bdb89c90659aa0e, []int{0}
    37  }
    38  func (m *ReceiveFromTreasuryAuthorization) XXX_Unmarshal(b []byte) error {
    39  	return m.Unmarshal(b)
    40  }
    41  func (m *ReceiveFromTreasuryAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    42  	if deterministic {
    43  		return xxx_messageInfo_ReceiveFromTreasuryAuthorization.Marshal(b, m, deterministic)
    44  	} else {
    45  		b = b[:cap(b)]
    46  		n, err := m.MarshalToSizedBuffer(b)
    47  		if err != nil {
    48  			return nil, err
    49  		}
    50  		return b[:n], nil
    51  	}
    52  }
    53  func (m *ReceiveFromTreasuryAuthorization) XXX_Merge(src proto.Message) {
    54  	xxx_messageInfo_ReceiveFromTreasuryAuthorization.Merge(m, src)
    55  }
    56  func (m *ReceiveFromTreasuryAuthorization) XXX_Size() int {
    57  	return m.Size()
    58  }
    59  func (m *ReceiveFromTreasuryAuthorization) XXX_DiscardUnknown() {
    60  	xxx_messageInfo_ReceiveFromTreasuryAuthorization.DiscardUnknown(m)
    61  }
    62  
    63  var xxx_messageInfo_ReceiveFromTreasuryAuthorization proto.InternalMessageInfo
    64  
    65  func init() {
    66  	proto.RegisterType((*ReceiveFromTreasuryAuthorization)(nil), "lbm.foundation.v1.ReceiveFromTreasuryAuthorization")
    67  }
    68  
    69  func init() { proto.RegisterFile("lbm/foundation/v1/authz.proto", fileDescriptor_8bdb89c90659aa0e) }
    70  
    71  var fileDescriptor_8bdb89c90659aa0e = []byte{
    72  	// 204 bytes of a gzipped FileDescriptorProto
    73  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcd, 0x49, 0xca, 0xd5,
    74  	0x4f, 0xcb, 0x2f, 0xcd, 0x4b, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2f, 0x33, 0xd4, 0x4f, 0x2c,
    75  	0x2d, 0xc9, 0xa8, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xcc, 0x49, 0xca, 0xd5, 0x43,
    76  	0x48, 0xeb, 0x95, 0x19, 0x4a, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x65, 0xf5, 0x41, 0x2c, 0x88,
    77  	0x42, 0x29, 0xc9, 0xe4, 0xfc, 0xe2, 0xdc, 0xfc, 0xe2, 0x78, 0x88, 0x04, 0x84, 0x03, 0x91, 0x52,
    78  	0x4a, 0xe6, 0x52, 0x08, 0x4a, 0x4d, 0x4e, 0xcd, 0x2c, 0x4b, 0x75, 0x2b, 0xca, 0xcf, 0x0d, 0x29,
    79  	0x4a, 0x4d, 0x2c, 0x2e, 0x2d, 0xaa, 0x74, 0x2c, 0x2d, 0xc9, 0xc8, 0x2f, 0xca, 0xac, 0x02, 0x9b,
    80  	0x6b, 0x65, 0x7f, 0x69, 0x8b, 0xae, 0x75, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e,
    81  	0xae, 0xbe, 0x5b, 0x66, 0x5e, 0x71, 0x72, 0x46, 0x66, 0xa2, 0x7e, 0x1a, 0x94, 0xa1, 0x5b, 0x9c,
    82  	0x92, 0xad, 0x5f, 0x81, 0xe4, 0x52, 0x3d, 0x14, 0x03, 0x9c, 0xdc, 0x4f, 0x3c, 0x92, 0x63, 0xbc,
    83  	0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63,
    84  	0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x97, 0x24, 0x63, 0x93, 0xd8, 0xc0, 0x8e, 0x36, 0x06, 0x04,
    85  	0x00, 0x00, 0xff, 0xff, 0x3d, 0x24, 0x13, 0x54, 0x19, 0x01, 0x00, 0x00,
    86  }
    87  
    88  func (m *ReceiveFromTreasuryAuthorization) Marshal() (dAtA []byte, err error) {
    89  	size := m.Size()
    90  	dAtA = make([]byte, size)
    91  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
    92  	if err != nil {
    93  		return nil, err
    94  	}
    95  	return dAtA[:n], nil
    96  }
    97  
    98  func (m *ReceiveFromTreasuryAuthorization) MarshalTo(dAtA []byte) (int, error) {
    99  	size := m.Size()
   100  	return m.MarshalToSizedBuffer(dAtA[:size])
   101  }
   102  
   103  func (m *ReceiveFromTreasuryAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   104  	i := len(dAtA)
   105  	_ = i
   106  	var l int
   107  	_ = l
   108  	return len(dAtA) - i, nil
   109  }
   110  
   111  func encodeVarintAuthz(dAtA []byte, offset int, v uint64) int {
   112  	offset -= sovAuthz(v)
   113  	base := offset
   114  	for v >= 1<<7 {
   115  		dAtA[offset] = uint8(v&0x7f | 0x80)
   116  		v >>= 7
   117  		offset++
   118  	}
   119  	dAtA[offset] = uint8(v)
   120  	return base
   121  }
   122  func (m *ReceiveFromTreasuryAuthorization) Size() (n int) {
   123  	if m == nil {
   124  		return 0
   125  	}
   126  	var l int
   127  	_ = l
   128  	return n
   129  }
   130  
   131  func sovAuthz(x uint64) (n int) {
   132  	return (math_bits.Len64(x|1) + 6) / 7
   133  }
   134  func sozAuthz(x uint64) (n int) {
   135  	return sovAuthz(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   136  }
   137  func (m *ReceiveFromTreasuryAuthorization) Unmarshal(dAtA []byte) error {
   138  	l := len(dAtA)
   139  	iNdEx := 0
   140  	for iNdEx < l {
   141  		preIndex := iNdEx
   142  		var wire uint64
   143  		for shift := uint(0); ; shift += 7 {
   144  			if shift >= 64 {
   145  				return ErrIntOverflowAuthz
   146  			}
   147  			if iNdEx >= l {
   148  				return io.ErrUnexpectedEOF
   149  			}
   150  			b := dAtA[iNdEx]
   151  			iNdEx++
   152  			wire |= uint64(b&0x7F) << shift
   153  			if b < 0x80 {
   154  				break
   155  			}
   156  		}
   157  		fieldNum := int32(wire >> 3)
   158  		wireType := int(wire & 0x7)
   159  		if wireType == 4 {
   160  			return fmt.Errorf("proto: ReceiveFromTreasuryAuthorization: wiretype end group for non-group")
   161  		}
   162  		if fieldNum <= 0 {
   163  			return fmt.Errorf("proto: ReceiveFromTreasuryAuthorization: illegal tag %d (wire type %d)", fieldNum, wire)
   164  		}
   165  		switch fieldNum {
   166  		default:
   167  			iNdEx = preIndex
   168  			skippy, err := skipAuthz(dAtA[iNdEx:])
   169  			if err != nil {
   170  				return err
   171  			}
   172  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   173  				return ErrInvalidLengthAuthz
   174  			}
   175  			if (iNdEx + skippy) > l {
   176  				return io.ErrUnexpectedEOF
   177  			}
   178  			iNdEx += skippy
   179  		}
   180  	}
   181  
   182  	if iNdEx > l {
   183  		return io.ErrUnexpectedEOF
   184  	}
   185  	return nil
   186  }
   187  func skipAuthz(dAtA []byte) (n int, err error) {
   188  	l := len(dAtA)
   189  	iNdEx := 0
   190  	depth := 0
   191  	for iNdEx < l {
   192  		var wire uint64
   193  		for shift := uint(0); ; shift += 7 {
   194  			if shift >= 64 {
   195  				return 0, ErrIntOverflowAuthz
   196  			}
   197  			if iNdEx >= l {
   198  				return 0, io.ErrUnexpectedEOF
   199  			}
   200  			b := dAtA[iNdEx]
   201  			iNdEx++
   202  			wire |= (uint64(b) & 0x7F) << shift
   203  			if b < 0x80 {
   204  				break
   205  			}
   206  		}
   207  		wireType := int(wire & 0x7)
   208  		switch wireType {
   209  		case 0:
   210  			for shift := uint(0); ; shift += 7 {
   211  				if shift >= 64 {
   212  					return 0, ErrIntOverflowAuthz
   213  				}
   214  				if iNdEx >= l {
   215  					return 0, io.ErrUnexpectedEOF
   216  				}
   217  				iNdEx++
   218  				if dAtA[iNdEx-1] < 0x80 {
   219  					break
   220  				}
   221  			}
   222  		case 1:
   223  			iNdEx += 8
   224  		case 2:
   225  			var length int
   226  			for shift := uint(0); ; shift += 7 {
   227  				if shift >= 64 {
   228  					return 0, ErrIntOverflowAuthz
   229  				}
   230  				if iNdEx >= l {
   231  					return 0, io.ErrUnexpectedEOF
   232  				}
   233  				b := dAtA[iNdEx]
   234  				iNdEx++
   235  				length |= (int(b) & 0x7F) << shift
   236  				if b < 0x80 {
   237  					break
   238  				}
   239  			}
   240  			if length < 0 {
   241  				return 0, ErrInvalidLengthAuthz
   242  			}
   243  			iNdEx += length
   244  		case 3:
   245  			depth++
   246  		case 4:
   247  			if depth == 0 {
   248  				return 0, ErrUnexpectedEndOfGroupAuthz
   249  			}
   250  			depth--
   251  		case 5:
   252  			iNdEx += 4
   253  		default:
   254  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   255  		}
   256  		if iNdEx < 0 {
   257  			return 0, ErrInvalidLengthAuthz
   258  		}
   259  		if depth == 0 {
   260  			return iNdEx, nil
   261  		}
   262  	}
   263  	return 0, io.ErrUnexpectedEOF
   264  }
   265  
   266  var (
   267  	ErrInvalidLengthAuthz        = fmt.Errorf("proto: negative length found during unmarshaling")
   268  	ErrIntOverflowAuthz          = fmt.Errorf("proto: integer overflow")
   269  	ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group")
   270  )