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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/auth/v1beta1/genesis.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	types "github.com/Finschia/finschia-sdk/codec/types"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/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  // GenesisState defines the auth module's genesis state.
    28  type GenesisState struct {
    29  	// params defines all the paramaters of the module.
    30  	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
    31  	// accounts are the accounts present at genesis.
    32  	Accounts []*types.Any `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"`
    33  }
    34  
    35  func (m *GenesisState) Reset()         { *m = GenesisState{} }
    36  func (m *GenesisState) String() string { return proto.CompactTextString(m) }
    37  func (*GenesisState) ProtoMessage()    {}
    38  func (*GenesisState) Descriptor() ([]byte, []int) {
    39  	return fileDescriptor_d897ccbce9822332, []int{0}
    40  }
    41  func (m *GenesisState) XXX_Unmarshal(b []byte) error {
    42  	return m.Unmarshal(b)
    43  }
    44  func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    45  	if deterministic {
    46  		return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) {
    57  	xxx_messageInfo_GenesisState.Merge(m, src)
    58  }
    59  func (m *GenesisState) XXX_Size() int {
    60  	return m.Size()
    61  }
    62  func (m *GenesisState) XXX_DiscardUnknown() {
    63  	xxx_messageInfo_GenesisState.DiscardUnknown(m)
    64  }
    65  
    66  var xxx_messageInfo_GenesisState proto.InternalMessageInfo
    67  
    68  func (m *GenesisState) GetParams() Params {
    69  	if m != nil {
    70  		return m.Params
    71  	}
    72  	return Params{}
    73  }
    74  
    75  func (m *GenesisState) GetAccounts() []*types.Any {
    76  	if m != nil {
    77  		return m.Accounts
    78  	}
    79  	return nil
    80  }
    81  
    82  func init() {
    83  	proto.RegisterType((*GenesisState)(nil), "cosmos.auth.v1beta1.GenesisState")
    84  }
    85  
    86  func init() { proto.RegisterFile("cosmos/auth/v1beta1/genesis.proto", fileDescriptor_d897ccbce9822332) }
    87  
    88  var fileDescriptor_d897ccbce9822332 = []byte{
    89  	// 259 bytes of a gzipped FileDescriptorProto
    90  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0xb1, 0x4e, 0xc3, 0x30,
    91  	0x10, 0x86, 0x63, 0x40, 0x15, 0x4a, 0x99, 0x4a, 0x87, 0x52, 0x24, 0x53, 0x98, 0xba, 0xd4, 0x47,
    92  	0xcb, 0xc4, 0x48, 0x07, 0xba, 0xa2, 0xb2, 0xb1, 0x39, 0xc6, 0x75, 0x22, 0x88, 0x2f, 0xea, 0x39,
    93  	0x88, 0x88, 0x97, 0xe0, 0xb1, 0x3a, 0x76, 0x64, 0x42, 0x28, 0x79, 0x11, 0x54, 0x3b, 0x30, 0x75,
    94  	0xfb, 0x65, 0x7f, 0x77, 0xff, 0x77, 0xf1, 0xa5, 0x42, 0xca, 0x91, 0x40, 0x96, 0x2e, 0x85, 0xb7,
    95  	0x69, 0xa2, 0x9d, 0x9c, 0x82, 0xd1, 0x56, 0x53, 0x46, 0xa2, 0x58, 0xa3, 0xc3, 0xde, 0x69, 0x40,
    96  	0xc4, 0x0e, 0x11, 0x2d, 0x32, 0x3c, 0x33, 0x88, 0xe6, 0x55, 0x83, 0x47, 0x92, 0x72, 0x05, 0xd2,
    97  	0x56, 0x81, 0x1f, 0xf6, 0x0d, 0x1a, 0xf4, 0x11, 0x76, 0xa9, 0x7d, 0xe5, 0xfb, 0x8a, 0xfc, 0x4a,
    98  	0xff, 0x7f, 0xf5, 0x11, 0x9f, 0x2c, 0x42, 0xed, 0xa3, 0x93, 0x4e, 0xf7, 0x6e, 0xe3, 0x4e, 0x21,
    99  	0xd7, 0x32, 0xa7, 0x01, 0x1b, 0xb1, 0x71, 0x77, 0x76, 0x2e, 0xf6, 0x68, 0x88, 0x07, 0x8f, 0xcc,
   100  	0x8f, 0x36, 0xdf, 0x17, 0xd1, 0xb2, 0x1d, 0xe8, 0x5d, 0xc7, 0xc7, 0x52, 0x29, 0x2c, 0xad, 0xa3,
   101  	0xc1, 0xc1, 0xe8, 0x70, 0xdc, 0x9d, 0xf5, 0x45, 0xd0, 0x15, 0x7f, 0xba, 0xe2, 0xce, 0x56, 0xcb,
   102  	0x7f, 0x6a, 0xbe, 0xd8, 0xd4, 0x9c, 0x6d, 0x6b, 0xce, 0x7e, 0x6a, 0xce, 0x3e, 0x1b, 0x1e, 0x6d,
   103  	0x1b, 0x1e, 0x7d, 0x35, 0x3c, 0x7a, 0x9a, 0x98, 0xcc, 0xa5, 0x65, 0x22, 0x14, 0xe6, 0x70, 0x9f,
   104  	0x59, 0x52, 0x69, 0x26, 0x61, 0xd5, 0x86, 0x09, 0x3d, 0xbf, 0xc0, 0x7b, 0x38, 0xc9, 0x55, 0x85,
   105  	0xa6, 0xa4, 0xe3, 0x0b, 0x6e, 0x7e, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x73, 0x8a, 0x1d, 0x57,
   106  	0x01, 0x00, 0x00,
   107  }
   108  
   109  func (m *GenesisState) Marshal() (dAtA []byte, err error) {
   110  	size := m.Size()
   111  	dAtA = make([]byte, size)
   112  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   113  	if err != nil {
   114  		return nil, err
   115  	}
   116  	return dAtA[:n], nil
   117  }
   118  
   119  func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
   120  	size := m.Size()
   121  	return m.MarshalToSizedBuffer(dAtA[:size])
   122  }
   123  
   124  func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   125  	i := len(dAtA)
   126  	_ = i
   127  	var l int
   128  	_ = l
   129  	if len(m.Accounts) > 0 {
   130  		for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- {
   131  			{
   132  				size, err := m.Accounts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   133  				if err != nil {
   134  					return 0, err
   135  				}
   136  				i -= size
   137  				i = encodeVarintGenesis(dAtA, i, uint64(size))
   138  			}
   139  			i--
   140  			dAtA[i] = 0x12
   141  		}
   142  	}
   143  	{
   144  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
   145  		if err != nil {
   146  			return 0, err
   147  		}
   148  		i -= size
   149  		i = encodeVarintGenesis(dAtA, i, uint64(size))
   150  	}
   151  	i--
   152  	dAtA[i] = 0xa
   153  	return len(dAtA) - i, nil
   154  }
   155  
   156  func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
   157  	offset -= sovGenesis(v)
   158  	base := offset
   159  	for v >= 1<<7 {
   160  		dAtA[offset] = uint8(v&0x7f | 0x80)
   161  		v >>= 7
   162  		offset++
   163  	}
   164  	dAtA[offset] = uint8(v)
   165  	return base
   166  }
   167  func (m *GenesisState) Size() (n int) {
   168  	if m == nil {
   169  		return 0
   170  	}
   171  	var l int
   172  	_ = l
   173  	l = m.Params.Size()
   174  	n += 1 + l + sovGenesis(uint64(l))
   175  	if len(m.Accounts) > 0 {
   176  		for _, e := range m.Accounts {
   177  			l = e.Size()
   178  			n += 1 + l + sovGenesis(uint64(l))
   179  		}
   180  	}
   181  	return n
   182  }
   183  
   184  func sovGenesis(x uint64) (n int) {
   185  	return (math_bits.Len64(x|1) + 6) / 7
   186  }
   187  func sozGenesis(x uint64) (n int) {
   188  	return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   189  }
   190  func (m *GenesisState) Unmarshal(dAtA []byte) error {
   191  	l := len(dAtA)
   192  	iNdEx := 0
   193  	for iNdEx < l {
   194  		preIndex := iNdEx
   195  		var wire uint64
   196  		for shift := uint(0); ; shift += 7 {
   197  			if shift >= 64 {
   198  				return ErrIntOverflowGenesis
   199  			}
   200  			if iNdEx >= l {
   201  				return io.ErrUnexpectedEOF
   202  			}
   203  			b := dAtA[iNdEx]
   204  			iNdEx++
   205  			wire |= uint64(b&0x7F) << shift
   206  			if b < 0x80 {
   207  				break
   208  			}
   209  		}
   210  		fieldNum := int32(wire >> 3)
   211  		wireType := int(wire & 0x7)
   212  		if wireType == 4 {
   213  			return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
   214  		}
   215  		if fieldNum <= 0 {
   216  			return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
   217  		}
   218  		switch fieldNum {
   219  		case 1:
   220  			if wireType != 2 {
   221  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
   222  			}
   223  			var msglen int
   224  			for shift := uint(0); ; shift += 7 {
   225  				if shift >= 64 {
   226  					return ErrIntOverflowGenesis
   227  				}
   228  				if iNdEx >= l {
   229  					return io.ErrUnexpectedEOF
   230  				}
   231  				b := dAtA[iNdEx]
   232  				iNdEx++
   233  				msglen |= int(b&0x7F) << shift
   234  				if b < 0x80 {
   235  					break
   236  				}
   237  			}
   238  			if msglen < 0 {
   239  				return ErrInvalidLengthGenesis
   240  			}
   241  			postIndex := iNdEx + msglen
   242  			if postIndex < 0 {
   243  				return ErrInvalidLengthGenesis
   244  			}
   245  			if postIndex > l {
   246  				return io.ErrUnexpectedEOF
   247  			}
   248  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   249  				return err
   250  			}
   251  			iNdEx = postIndex
   252  		case 2:
   253  			if wireType != 2 {
   254  				return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType)
   255  			}
   256  			var msglen int
   257  			for shift := uint(0); ; shift += 7 {
   258  				if shift >= 64 {
   259  					return ErrIntOverflowGenesis
   260  				}
   261  				if iNdEx >= l {
   262  					return io.ErrUnexpectedEOF
   263  				}
   264  				b := dAtA[iNdEx]
   265  				iNdEx++
   266  				msglen |= int(b&0x7F) << shift
   267  				if b < 0x80 {
   268  					break
   269  				}
   270  			}
   271  			if msglen < 0 {
   272  				return ErrInvalidLengthGenesis
   273  			}
   274  			postIndex := iNdEx + msglen
   275  			if postIndex < 0 {
   276  				return ErrInvalidLengthGenesis
   277  			}
   278  			if postIndex > l {
   279  				return io.ErrUnexpectedEOF
   280  			}
   281  			m.Accounts = append(m.Accounts, &types.Any{})
   282  			if err := m.Accounts[len(m.Accounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   283  				return err
   284  			}
   285  			iNdEx = postIndex
   286  		default:
   287  			iNdEx = preIndex
   288  			skippy, err := skipGenesis(dAtA[iNdEx:])
   289  			if err != nil {
   290  				return err
   291  			}
   292  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   293  				return ErrInvalidLengthGenesis
   294  			}
   295  			if (iNdEx + skippy) > l {
   296  				return io.ErrUnexpectedEOF
   297  			}
   298  			iNdEx += skippy
   299  		}
   300  	}
   301  
   302  	if iNdEx > l {
   303  		return io.ErrUnexpectedEOF
   304  	}
   305  	return nil
   306  }
   307  func skipGenesis(dAtA []byte) (n int, err error) {
   308  	l := len(dAtA)
   309  	iNdEx := 0
   310  	depth := 0
   311  	for iNdEx < l {
   312  		var wire uint64
   313  		for shift := uint(0); ; shift += 7 {
   314  			if shift >= 64 {
   315  				return 0, ErrIntOverflowGenesis
   316  			}
   317  			if iNdEx >= l {
   318  				return 0, io.ErrUnexpectedEOF
   319  			}
   320  			b := dAtA[iNdEx]
   321  			iNdEx++
   322  			wire |= (uint64(b) & 0x7F) << shift
   323  			if b < 0x80 {
   324  				break
   325  			}
   326  		}
   327  		wireType := int(wire & 0x7)
   328  		switch wireType {
   329  		case 0:
   330  			for shift := uint(0); ; shift += 7 {
   331  				if shift >= 64 {
   332  					return 0, ErrIntOverflowGenesis
   333  				}
   334  				if iNdEx >= l {
   335  					return 0, io.ErrUnexpectedEOF
   336  				}
   337  				iNdEx++
   338  				if dAtA[iNdEx-1] < 0x80 {
   339  					break
   340  				}
   341  			}
   342  		case 1:
   343  			iNdEx += 8
   344  		case 2:
   345  			var length int
   346  			for shift := uint(0); ; shift += 7 {
   347  				if shift >= 64 {
   348  					return 0, ErrIntOverflowGenesis
   349  				}
   350  				if iNdEx >= l {
   351  					return 0, io.ErrUnexpectedEOF
   352  				}
   353  				b := dAtA[iNdEx]
   354  				iNdEx++
   355  				length |= (int(b) & 0x7F) << shift
   356  				if b < 0x80 {
   357  					break
   358  				}
   359  			}
   360  			if length < 0 {
   361  				return 0, ErrInvalidLengthGenesis
   362  			}
   363  			iNdEx += length
   364  		case 3:
   365  			depth++
   366  		case 4:
   367  			if depth == 0 {
   368  				return 0, ErrUnexpectedEndOfGroupGenesis
   369  			}
   370  			depth--
   371  		case 5:
   372  			iNdEx += 4
   373  		default:
   374  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   375  		}
   376  		if iNdEx < 0 {
   377  			return 0, ErrInvalidLengthGenesis
   378  		}
   379  		if depth == 0 {
   380  			return iNdEx, nil
   381  		}
   382  	}
   383  	return 0, io.ErrUnexpectedEOF
   384  }
   385  
   386  var (
   387  	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
   388  	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
   389  	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
   390  )