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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/genutil/v1beta1/genesis.proto
     3  
     4  package types
     5  
     6  import (
     7  	encoding_json "encoding/json"
     8  	fmt "fmt"
     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 raw genesis transaction in JSON.
    28  type GenesisState struct {
    29  	// gen_txs defines the genesis transactions.
    30  	GenTxs []encoding_json.RawMessage `protobuf:"bytes,1,rep,name=gen_txs,json=genTxs,proto3,casttype=encoding/json.RawMessage" json:"gentxs" yaml:"gentxs"`
    31  }
    32  
    33  func (m *GenesisState) Reset()         { *m = GenesisState{} }
    34  func (m *GenesisState) String() string { return proto.CompactTextString(m) }
    35  func (*GenesisState) ProtoMessage()    {}
    36  func (*GenesisState) Descriptor() ([]byte, []int) {
    37  	return fileDescriptor_31771d25e8d8f90f, []int{0}
    38  }
    39  func (m *GenesisState) XXX_Unmarshal(b []byte) error {
    40  	return m.Unmarshal(b)
    41  }
    42  func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    43  	if deterministic {
    44  		return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic)
    45  	} else {
    46  		b = b[:cap(b)]
    47  		n, err := m.MarshalToSizedBuffer(b)
    48  		if err != nil {
    49  			return nil, err
    50  		}
    51  		return b[:n], nil
    52  	}
    53  }
    54  func (m *GenesisState) XXX_Merge(src proto.Message) {
    55  	xxx_messageInfo_GenesisState.Merge(m, src)
    56  }
    57  func (m *GenesisState) XXX_Size() int {
    58  	return m.Size()
    59  }
    60  func (m *GenesisState) XXX_DiscardUnknown() {
    61  	xxx_messageInfo_GenesisState.DiscardUnknown(m)
    62  }
    63  
    64  var xxx_messageInfo_GenesisState proto.InternalMessageInfo
    65  
    66  func (m *GenesisState) GetGenTxs() []encoding_json.RawMessage {
    67  	if m != nil {
    68  		return m.GenTxs
    69  	}
    70  	return nil
    71  }
    72  
    73  func init() {
    74  	proto.RegisterType((*GenesisState)(nil), "cosmos.genutil.v1beta1.GenesisState")
    75  }
    76  
    77  func init() {
    78  	proto.RegisterFile("cosmos/genutil/v1beta1/genesis.proto", fileDescriptor_31771d25e8d8f90f)
    79  }
    80  
    81  var fileDescriptor_31771d25e8d8f90f = []byte{
    82  	// 242 bytes of a gzipped FileDescriptorProto
    83  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0xce, 0x2f, 0xce,
    84  	0xcd, 0x2f, 0xd6, 0x4f, 0x4f, 0xcd, 0x2b, 0x2d, 0xc9, 0xcc, 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d,
    85  	0x49, 0x34, 0x04, 0xf1, 0x53, 0x8b, 0x33, 0x8b, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xc4,
    86  	0x20, 0xaa, 0xf4, 0xa0, 0xaa, 0xf4, 0xa0, 0xaa, 0xa4, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x4a,
    87  	0xf4, 0x41, 0x2c, 0x88, 0x6a, 0xa5, 0x04, 0x2e, 0x1e, 0x77, 0x88, 0xf6, 0xe0, 0x92, 0xc4, 0x92,
    88  	0x54, 0xa1, 0x00, 0x2e, 0xf6, 0xf4, 0xd4, 0xbc, 0xf8, 0x92, 0x8a, 0x62, 0x09, 0x46, 0x05, 0x66,
    89  	0x0d, 0x1e, 0x27, 0xf3, 0x57, 0xf7, 0xe4, 0xd9, 0xd2, 0x53, 0xf3, 0x4a, 0x2a, 0x8a, 0x3f, 0xdd,
    90  	0x93, 0xe7, 0xad, 0x4c, 0xcc, 0xcd, 0xb1, 0x52, 0x82, 0xf0, 0x95, 0x7e, 0xdd, 0x93, 0x97, 0x48,
    91  	0xcd, 0x4b, 0xce, 0x4f, 0xc9, 0xcc, 0x4b, 0xd7, 0xcf, 0x2a, 0xce, 0xcf, 0xd3, 0x0b, 0x4a, 0x2c,
    92  	0xf7, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0x0d, 0x02, 0x69, 0x0a, 0xa9, 0x28, 0x76, 0xf2, 0x3a,
    93  	0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63,
    94  	0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x83, 0xf4, 0xcc, 0x92, 0x8c, 0xd2,
    95  	0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xb7, 0xcc, 0xbc, 0xe2, 0xe4, 0x8c, 0xcc, 0x44, 0xfd, 0x34,
    96  	0x28, 0x43, 0xb7, 0x38, 0x25, 0x5b, 0xbf, 0x02, 0xee, 0xd7, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24,
    97  	0x36, 0xb0, 0xa3, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf2, 0xf7, 0xef, 0x19, 0x0a, 0x01,
    98  	0x00, 0x00,
    99  }
   100  
   101  func (m *GenesisState) Marshal() (dAtA []byte, err error) {
   102  	size := m.Size()
   103  	dAtA = make([]byte, size)
   104  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   105  	if err != nil {
   106  		return nil, err
   107  	}
   108  	return dAtA[:n], nil
   109  }
   110  
   111  func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
   112  	size := m.Size()
   113  	return m.MarshalToSizedBuffer(dAtA[:size])
   114  }
   115  
   116  func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   117  	i := len(dAtA)
   118  	_ = i
   119  	var l int
   120  	_ = l
   121  	if len(m.GenTxs) > 0 {
   122  		for iNdEx := len(m.GenTxs) - 1; iNdEx >= 0; iNdEx-- {
   123  			i -= len(m.GenTxs[iNdEx])
   124  			copy(dAtA[i:], m.GenTxs[iNdEx])
   125  			i = encodeVarintGenesis(dAtA, i, uint64(len(m.GenTxs[iNdEx])))
   126  			i--
   127  			dAtA[i] = 0xa
   128  		}
   129  	}
   130  	return len(dAtA) - i, nil
   131  }
   132  
   133  func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
   134  	offset -= sovGenesis(v)
   135  	base := offset
   136  	for v >= 1<<7 {
   137  		dAtA[offset] = uint8(v&0x7f | 0x80)
   138  		v >>= 7
   139  		offset++
   140  	}
   141  	dAtA[offset] = uint8(v)
   142  	return base
   143  }
   144  func (m *GenesisState) Size() (n int) {
   145  	if m == nil {
   146  		return 0
   147  	}
   148  	var l int
   149  	_ = l
   150  	if len(m.GenTxs) > 0 {
   151  		for _, b := range m.GenTxs {
   152  			l = len(b)
   153  			n += 1 + l + sovGenesis(uint64(l))
   154  		}
   155  	}
   156  	return n
   157  }
   158  
   159  func sovGenesis(x uint64) (n int) {
   160  	return (math_bits.Len64(x|1) + 6) / 7
   161  }
   162  func sozGenesis(x uint64) (n int) {
   163  	return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   164  }
   165  func (m *GenesisState) Unmarshal(dAtA []byte) error {
   166  	l := len(dAtA)
   167  	iNdEx := 0
   168  	for iNdEx < l {
   169  		preIndex := iNdEx
   170  		var wire uint64
   171  		for shift := uint(0); ; shift += 7 {
   172  			if shift >= 64 {
   173  				return ErrIntOverflowGenesis
   174  			}
   175  			if iNdEx >= l {
   176  				return io.ErrUnexpectedEOF
   177  			}
   178  			b := dAtA[iNdEx]
   179  			iNdEx++
   180  			wire |= uint64(b&0x7F) << shift
   181  			if b < 0x80 {
   182  				break
   183  			}
   184  		}
   185  		fieldNum := int32(wire >> 3)
   186  		wireType := int(wire & 0x7)
   187  		if wireType == 4 {
   188  			return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
   189  		}
   190  		if fieldNum <= 0 {
   191  			return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
   192  		}
   193  		switch fieldNum {
   194  		case 1:
   195  			if wireType != 2 {
   196  				return fmt.Errorf("proto: wrong wireType = %d for field GenTxs", wireType)
   197  			}
   198  			var byteLen int
   199  			for shift := uint(0); ; shift += 7 {
   200  				if shift >= 64 {
   201  					return ErrIntOverflowGenesis
   202  				}
   203  				if iNdEx >= l {
   204  					return io.ErrUnexpectedEOF
   205  				}
   206  				b := dAtA[iNdEx]
   207  				iNdEx++
   208  				byteLen |= int(b&0x7F) << shift
   209  				if b < 0x80 {
   210  					break
   211  				}
   212  			}
   213  			if byteLen < 0 {
   214  				return ErrInvalidLengthGenesis
   215  			}
   216  			postIndex := iNdEx + byteLen
   217  			if postIndex < 0 {
   218  				return ErrInvalidLengthGenesis
   219  			}
   220  			if postIndex > l {
   221  				return io.ErrUnexpectedEOF
   222  			}
   223  			m.GenTxs = append(m.GenTxs, make([]byte, postIndex-iNdEx))
   224  			copy(m.GenTxs[len(m.GenTxs)-1], dAtA[iNdEx:postIndex])
   225  			iNdEx = postIndex
   226  		default:
   227  			iNdEx = preIndex
   228  			skippy, err := skipGenesis(dAtA[iNdEx:])
   229  			if err != nil {
   230  				return err
   231  			}
   232  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   233  				return ErrInvalidLengthGenesis
   234  			}
   235  			if (iNdEx + skippy) > l {
   236  				return io.ErrUnexpectedEOF
   237  			}
   238  			iNdEx += skippy
   239  		}
   240  	}
   241  
   242  	if iNdEx > l {
   243  		return io.ErrUnexpectedEOF
   244  	}
   245  	return nil
   246  }
   247  func skipGenesis(dAtA []byte) (n int, err error) {
   248  	l := len(dAtA)
   249  	iNdEx := 0
   250  	depth := 0
   251  	for iNdEx < l {
   252  		var wire uint64
   253  		for shift := uint(0); ; shift += 7 {
   254  			if shift >= 64 {
   255  				return 0, ErrIntOverflowGenesis
   256  			}
   257  			if iNdEx >= l {
   258  				return 0, io.ErrUnexpectedEOF
   259  			}
   260  			b := dAtA[iNdEx]
   261  			iNdEx++
   262  			wire |= (uint64(b) & 0x7F) << shift
   263  			if b < 0x80 {
   264  				break
   265  			}
   266  		}
   267  		wireType := int(wire & 0x7)
   268  		switch wireType {
   269  		case 0:
   270  			for shift := uint(0); ; shift += 7 {
   271  				if shift >= 64 {
   272  					return 0, ErrIntOverflowGenesis
   273  				}
   274  				if iNdEx >= l {
   275  					return 0, io.ErrUnexpectedEOF
   276  				}
   277  				iNdEx++
   278  				if dAtA[iNdEx-1] < 0x80 {
   279  					break
   280  				}
   281  			}
   282  		case 1:
   283  			iNdEx += 8
   284  		case 2:
   285  			var length int
   286  			for shift := uint(0); ; shift += 7 {
   287  				if shift >= 64 {
   288  					return 0, ErrIntOverflowGenesis
   289  				}
   290  				if iNdEx >= l {
   291  					return 0, io.ErrUnexpectedEOF
   292  				}
   293  				b := dAtA[iNdEx]
   294  				iNdEx++
   295  				length |= (int(b) & 0x7F) << shift
   296  				if b < 0x80 {
   297  					break
   298  				}
   299  			}
   300  			if length < 0 {
   301  				return 0, ErrInvalidLengthGenesis
   302  			}
   303  			iNdEx += length
   304  		case 3:
   305  			depth++
   306  		case 4:
   307  			if depth == 0 {
   308  				return 0, ErrUnexpectedEndOfGroupGenesis
   309  			}
   310  			depth--
   311  		case 5:
   312  			iNdEx += 4
   313  		default:
   314  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   315  		}
   316  		if iNdEx < 0 {
   317  			return 0, ErrInvalidLengthGenesis
   318  		}
   319  		if depth == 0 {
   320  			return iNdEx, nil
   321  		}
   322  	}
   323  	return 0, io.ErrUnexpectedEOF
   324  }
   325  
   326  var (
   327  	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
   328  	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
   329  	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
   330  )