github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/proto/tendermint/dbsync/types.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: tendermint/dbsync/types.proto
     3  
     4  package dbsync
     5  
     6  import (
     7  	fmt "fmt"
     8  	types "github.com/ari-anchor/sei-tendermint/proto/tendermint/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  type Message struct {
    28  	// Types that are valid to be assigned to Sum:
    29  	//	*Message_MetadataRequest
    30  	//	*Message_MetadataResponse
    31  	//	*Message_FileRequest
    32  	//	*Message_FileResponse
    33  	//	*Message_LightBlockRequest
    34  	//	*Message_LightBlockResponse
    35  	//	*Message_ParamsRequest
    36  	//	*Message_ParamsResponse
    37  	Sum isMessage_Sum `protobuf_oneof:"sum"`
    38  }
    39  
    40  func (m *Message) Reset()         { *m = Message{} }
    41  func (m *Message) String() string { return proto.CompactTextString(m) }
    42  func (*Message) ProtoMessage()    {}
    43  func (*Message) Descriptor() ([]byte, []int) {
    44  	return fileDescriptor_aab44cdc90da47cb, []int{0}
    45  }
    46  func (m *Message) XXX_Unmarshal(b []byte) error {
    47  	return m.Unmarshal(b)
    48  }
    49  func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    50  	if deterministic {
    51  		return xxx_messageInfo_Message.Marshal(b, m, deterministic)
    52  	} else {
    53  		b = b[:cap(b)]
    54  		n, err := m.MarshalToSizedBuffer(b)
    55  		if err != nil {
    56  			return nil, err
    57  		}
    58  		return b[:n], nil
    59  	}
    60  }
    61  func (m *Message) XXX_Merge(src proto.Message) {
    62  	xxx_messageInfo_Message.Merge(m, src)
    63  }
    64  func (m *Message) XXX_Size() int {
    65  	return m.Size()
    66  }
    67  func (m *Message) XXX_DiscardUnknown() {
    68  	xxx_messageInfo_Message.DiscardUnknown(m)
    69  }
    70  
    71  var xxx_messageInfo_Message proto.InternalMessageInfo
    72  
    73  type isMessage_Sum interface {
    74  	isMessage_Sum()
    75  	MarshalTo([]byte) (int, error)
    76  	Size() int
    77  }
    78  
    79  type Message_MetadataRequest struct {
    80  	MetadataRequest *MetadataRequest `protobuf:"bytes,1,opt,name=metadata_request,json=metadataRequest,proto3,oneof" json:"metadata_request,omitempty"`
    81  }
    82  type Message_MetadataResponse struct {
    83  	MetadataResponse *MetadataResponse `protobuf:"bytes,2,opt,name=metadata_response,json=metadataResponse,proto3,oneof" json:"metadata_response,omitempty"`
    84  }
    85  type Message_FileRequest struct {
    86  	FileRequest *FileRequest `protobuf:"bytes,3,opt,name=file_request,json=fileRequest,proto3,oneof" json:"file_request,omitempty"`
    87  }
    88  type Message_FileResponse struct {
    89  	FileResponse *FileResponse `protobuf:"bytes,4,opt,name=file_response,json=fileResponse,proto3,oneof" json:"file_response,omitempty"`
    90  }
    91  type Message_LightBlockRequest struct {
    92  	LightBlockRequest *LightBlockRequest `protobuf:"bytes,5,opt,name=light_block_request,json=lightBlockRequest,proto3,oneof" json:"light_block_request,omitempty"`
    93  }
    94  type Message_LightBlockResponse struct {
    95  	LightBlockResponse *LightBlockResponse `protobuf:"bytes,6,opt,name=light_block_response,json=lightBlockResponse,proto3,oneof" json:"light_block_response,omitempty"`
    96  }
    97  type Message_ParamsRequest struct {
    98  	ParamsRequest *ParamsRequest `protobuf:"bytes,7,opt,name=params_request,json=paramsRequest,proto3,oneof" json:"params_request,omitempty"`
    99  }
   100  type Message_ParamsResponse struct {
   101  	ParamsResponse *ParamsResponse `protobuf:"bytes,8,opt,name=params_response,json=paramsResponse,proto3,oneof" json:"params_response,omitempty"`
   102  }
   103  
   104  func (*Message_MetadataRequest) isMessage_Sum()    {}
   105  func (*Message_MetadataResponse) isMessage_Sum()   {}
   106  func (*Message_FileRequest) isMessage_Sum()        {}
   107  func (*Message_FileResponse) isMessage_Sum()       {}
   108  func (*Message_LightBlockRequest) isMessage_Sum()  {}
   109  func (*Message_LightBlockResponse) isMessage_Sum() {}
   110  func (*Message_ParamsRequest) isMessage_Sum()      {}
   111  func (*Message_ParamsResponse) isMessage_Sum()     {}
   112  
   113  func (m *Message) GetSum() isMessage_Sum {
   114  	if m != nil {
   115  		return m.Sum
   116  	}
   117  	return nil
   118  }
   119  
   120  func (m *Message) GetMetadataRequest() *MetadataRequest {
   121  	if x, ok := m.GetSum().(*Message_MetadataRequest); ok {
   122  		return x.MetadataRequest
   123  	}
   124  	return nil
   125  }
   126  
   127  func (m *Message) GetMetadataResponse() *MetadataResponse {
   128  	if x, ok := m.GetSum().(*Message_MetadataResponse); ok {
   129  		return x.MetadataResponse
   130  	}
   131  	return nil
   132  }
   133  
   134  func (m *Message) GetFileRequest() *FileRequest {
   135  	if x, ok := m.GetSum().(*Message_FileRequest); ok {
   136  		return x.FileRequest
   137  	}
   138  	return nil
   139  }
   140  
   141  func (m *Message) GetFileResponse() *FileResponse {
   142  	if x, ok := m.GetSum().(*Message_FileResponse); ok {
   143  		return x.FileResponse
   144  	}
   145  	return nil
   146  }
   147  
   148  func (m *Message) GetLightBlockRequest() *LightBlockRequest {
   149  	if x, ok := m.GetSum().(*Message_LightBlockRequest); ok {
   150  		return x.LightBlockRequest
   151  	}
   152  	return nil
   153  }
   154  
   155  func (m *Message) GetLightBlockResponse() *LightBlockResponse {
   156  	if x, ok := m.GetSum().(*Message_LightBlockResponse); ok {
   157  		return x.LightBlockResponse
   158  	}
   159  	return nil
   160  }
   161  
   162  func (m *Message) GetParamsRequest() *ParamsRequest {
   163  	if x, ok := m.GetSum().(*Message_ParamsRequest); ok {
   164  		return x.ParamsRequest
   165  	}
   166  	return nil
   167  }
   168  
   169  func (m *Message) GetParamsResponse() *ParamsResponse {
   170  	if x, ok := m.GetSum().(*Message_ParamsResponse); ok {
   171  		return x.ParamsResponse
   172  	}
   173  	return nil
   174  }
   175  
   176  // XXX_OneofWrappers is for the internal use of the proto package.
   177  func (*Message) XXX_OneofWrappers() []interface{} {
   178  	return []interface{}{
   179  		(*Message_MetadataRequest)(nil),
   180  		(*Message_MetadataResponse)(nil),
   181  		(*Message_FileRequest)(nil),
   182  		(*Message_FileResponse)(nil),
   183  		(*Message_LightBlockRequest)(nil),
   184  		(*Message_LightBlockResponse)(nil),
   185  		(*Message_ParamsRequest)(nil),
   186  		(*Message_ParamsResponse)(nil),
   187  	}
   188  }
   189  
   190  type MetadataRequest struct {
   191  }
   192  
   193  func (m *MetadataRequest) Reset()         { *m = MetadataRequest{} }
   194  func (m *MetadataRequest) String() string { return proto.CompactTextString(m) }
   195  func (*MetadataRequest) ProtoMessage()    {}
   196  func (*MetadataRequest) Descriptor() ([]byte, []int) {
   197  	return fileDescriptor_aab44cdc90da47cb, []int{1}
   198  }
   199  func (m *MetadataRequest) XXX_Unmarshal(b []byte) error {
   200  	return m.Unmarshal(b)
   201  }
   202  func (m *MetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   203  	if deterministic {
   204  		return xxx_messageInfo_MetadataRequest.Marshal(b, m, deterministic)
   205  	} else {
   206  		b = b[:cap(b)]
   207  		n, err := m.MarshalToSizedBuffer(b)
   208  		if err != nil {
   209  			return nil, err
   210  		}
   211  		return b[:n], nil
   212  	}
   213  }
   214  func (m *MetadataRequest) XXX_Merge(src proto.Message) {
   215  	xxx_messageInfo_MetadataRequest.Merge(m, src)
   216  }
   217  func (m *MetadataRequest) XXX_Size() int {
   218  	return m.Size()
   219  }
   220  func (m *MetadataRequest) XXX_DiscardUnknown() {
   221  	xxx_messageInfo_MetadataRequest.DiscardUnknown(m)
   222  }
   223  
   224  var xxx_messageInfo_MetadataRequest proto.InternalMessageInfo
   225  
   226  type MetadataResponse struct {
   227  	Height      uint64   `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   228  	Hash        []byte   `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
   229  	Filenames   []string `protobuf:"bytes,3,rep,name=filenames,proto3" json:"filenames,omitempty"`
   230  	Md5Checksum [][]byte `protobuf:"bytes,4,rep,name=md5checksum,proto3" json:"md5checksum,omitempty"`
   231  }
   232  
   233  func (m *MetadataResponse) Reset()         { *m = MetadataResponse{} }
   234  func (m *MetadataResponse) String() string { return proto.CompactTextString(m) }
   235  func (*MetadataResponse) ProtoMessage()    {}
   236  func (*MetadataResponse) Descriptor() ([]byte, []int) {
   237  	return fileDescriptor_aab44cdc90da47cb, []int{2}
   238  }
   239  func (m *MetadataResponse) XXX_Unmarshal(b []byte) error {
   240  	return m.Unmarshal(b)
   241  }
   242  func (m *MetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   243  	if deterministic {
   244  		return xxx_messageInfo_MetadataResponse.Marshal(b, m, deterministic)
   245  	} else {
   246  		b = b[:cap(b)]
   247  		n, err := m.MarshalToSizedBuffer(b)
   248  		if err != nil {
   249  			return nil, err
   250  		}
   251  		return b[:n], nil
   252  	}
   253  }
   254  func (m *MetadataResponse) XXX_Merge(src proto.Message) {
   255  	xxx_messageInfo_MetadataResponse.Merge(m, src)
   256  }
   257  func (m *MetadataResponse) XXX_Size() int {
   258  	return m.Size()
   259  }
   260  func (m *MetadataResponse) XXX_DiscardUnknown() {
   261  	xxx_messageInfo_MetadataResponse.DiscardUnknown(m)
   262  }
   263  
   264  var xxx_messageInfo_MetadataResponse proto.InternalMessageInfo
   265  
   266  func (m *MetadataResponse) GetHeight() uint64 {
   267  	if m != nil {
   268  		return m.Height
   269  	}
   270  	return 0
   271  }
   272  
   273  func (m *MetadataResponse) GetHash() []byte {
   274  	if m != nil {
   275  		return m.Hash
   276  	}
   277  	return nil
   278  }
   279  
   280  func (m *MetadataResponse) GetFilenames() []string {
   281  	if m != nil {
   282  		return m.Filenames
   283  	}
   284  	return nil
   285  }
   286  
   287  func (m *MetadataResponse) GetMd5Checksum() [][]byte {
   288  	if m != nil {
   289  		return m.Md5Checksum
   290  	}
   291  	return nil
   292  }
   293  
   294  type FileRequest struct {
   295  	Height   uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   296  	Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
   297  }
   298  
   299  func (m *FileRequest) Reset()         { *m = FileRequest{} }
   300  func (m *FileRequest) String() string { return proto.CompactTextString(m) }
   301  func (*FileRequest) ProtoMessage()    {}
   302  func (*FileRequest) Descriptor() ([]byte, []int) {
   303  	return fileDescriptor_aab44cdc90da47cb, []int{3}
   304  }
   305  func (m *FileRequest) XXX_Unmarshal(b []byte) error {
   306  	return m.Unmarshal(b)
   307  }
   308  func (m *FileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   309  	if deterministic {
   310  		return xxx_messageInfo_FileRequest.Marshal(b, m, deterministic)
   311  	} else {
   312  		b = b[:cap(b)]
   313  		n, err := m.MarshalToSizedBuffer(b)
   314  		if err != nil {
   315  			return nil, err
   316  		}
   317  		return b[:n], nil
   318  	}
   319  }
   320  func (m *FileRequest) XXX_Merge(src proto.Message) {
   321  	xxx_messageInfo_FileRequest.Merge(m, src)
   322  }
   323  func (m *FileRequest) XXX_Size() int {
   324  	return m.Size()
   325  }
   326  func (m *FileRequest) XXX_DiscardUnknown() {
   327  	xxx_messageInfo_FileRequest.DiscardUnknown(m)
   328  }
   329  
   330  var xxx_messageInfo_FileRequest proto.InternalMessageInfo
   331  
   332  func (m *FileRequest) GetHeight() uint64 {
   333  	if m != nil {
   334  		return m.Height
   335  	}
   336  	return 0
   337  }
   338  
   339  func (m *FileRequest) GetFilename() string {
   340  	if m != nil {
   341  		return m.Filename
   342  	}
   343  	return ""
   344  }
   345  
   346  type FileResponse struct {
   347  	Height   uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   348  	Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
   349  	Data     []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
   350  }
   351  
   352  func (m *FileResponse) Reset()         { *m = FileResponse{} }
   353  func (m *FileResponse) String() string { return proto.CompactTextString(m) }
   354  func (*FileResponse) ProtoMessage()    {}
   355  func (*FileResponse) Descriptor() ([]byte, []int) {
   356  	return fileDescriptor_aab44cdc90da47cb, []int{4}
   357  }
   358  func (m *FileResponse) XXX_Unmarshal(b []byte) error {
   359  	return m.Unmarshal(b)
   360  }
   361  func (m *FileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   362  	if deterministic {
   363  		return xxx_messageInfo_FileResponse.Marshal(b, m, deterministic)
   364  	} else {
   365  		b = b[:cap(b)]
   366  		n, err := m.MarshalToSizedBuffer(b)
   367  		if err != nil {
   368  			return nil, err
   369  		}
   370  		return b[:n], nil
   371  	}
   372  }
   373  func (m *FileResponse) XXX_Merge(src proto.Message) {
   374  	xxx_messageInfo_FileResponse.Merge(m, src)
   375  }
   376  func (m *FileResponse) XXX_Size() int {
   377  	return m.Size()
   378  }
   379  func (m *FileResponse) XXX_DiscardUnknown() {
   380  	xxx_messageInfo_FileResponse.DiscardUnknown(m)
   381  }
   382  
   383  var xxx_messageInfo_FileResponse proto.InternalMessageInfo
   384  
   385  func (m *FileResponse) GetHeight() uint64 {
   386  	if m != nil {
   387  		return m.Height
   388  	}
   389  	return 0
   390  }
   391  
   392  func (m *FileResponse) GetFilename() string {
   393  	if m != nil {
   394  		return m.Filename
   395  	}
   396  	return ""
   397  }
   398  
   399  func (m *FileResponse) GetData() []byte {
   400  	if m != nil {
   401  		return m.Data
   402  	}
   403  	return nil
   404  }
   405  
   406  type LightBlockRequest struct {
   407  	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   408  }
   409  
   410  func (m *LightBlockRequest) Reset()         { *m = LightBlockRequest{} }
   411  func (m *LightBlockRequest) String() string { return proto.CompactTextString(m) }
   412  func (*LightBlockRequest) ProtoMessage()    {}
   413  func (*LightBlockRequest) Descriptor() ([]byte, []int) {
   414  	return fileDescriptor_aab44cdc90da47cb, []int{5}
   415  }
   416  func (m *LightBlockRequest) XXX_Unmarshal(b []byte) error {
   417  	return m.Unmarshal(b)
   418  }
   419  func (m *LightBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   420  	if deterministic {
   421  		return xxx_messageInfo_LightBlockRequest.Marshal(b, m, deterministic)
   422  	} else {
   423  		b = b[:cap(b)]
   424  		n, err := m.MarshalToSizedBuffer(b)
   425  		if err != nil {
   426  			return nil, err
   427  		}
   428  		return b[:n], nil
   429  	}
   430  }
   431  func (m *LightBlockRequest) XXX_Merge(src proto.Message) {
   432  	xxx_messageInfo_LightBlockRequest.Merge(m, src)
   433  }
   434  func (m *LightBlockRequest) XXX_Size() int {
   435  	return m.Size()
   436  }
   437  func (m *LightBlockRequest) XXX_DiscardUnknown() {
   438  	xxx_messageInfo_LightBlockRequest.DiscardUnknown(m)
   439  }
   440  
   441  var xxx_messageInfo_LightBlockRequest proto.InternalMessageInfo
   442  
   443  func (m *LightBlockRequest) GetHeight() uint64 {
   444  	if m != nil {
   445  		return m.Height
   446  	}
   447  	return 0
   448  }
   449  
   450  type LightBlockResponse struct {
   451  	LightBlock *types.LightBlock `protobuf:"bytes,1,opt,name=light_block,json=lightBlock,proto3" json:"light_block,omitempty"`
   452  }
   453  
   454  func (m *LightBlockResponse) Reset()         { *m = LightBlockResponse{} }
   455  func (m *LightBlockResponse) String() string { return proto.CompactTextString(m) }
   456  func (*LightBlockResponse) ProtoMessage()    {}
   457  func (*LightBlockResponse) Descriptor() ([]byte, []int) {
   458  	return fileDescriptor_aab44cdc90da47cb, []int{6}
   459  }
   460  func (m *LightBlockResponse) XXX_Unmarshal(b []byte) error {
   461  	return m.Unmarshal(b)
   462  }
   463  func (m *LightBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   464  	if deterministic {
   465  		return xxx_messageInfo_LightBlockResponse.Marshal(b, m, deterministic)
   466  	} else {
   467  		b = b[:cap(b)]
   468  		n, err := m.MarshalToSizedBuffer(b)
   469  		if err != nil {
   470  			return nil, err
   471  		}
   472  		return b[:n], nil
   473  	}
   474  }
   475  func (m *LightBlockResponse) XXX_Merge(src proto.Message) {
   476  	xxx_messageInfo_LightBlockResponse.Merge(m, src)
   477  }
   478  func (m *LightBlockResponse) XXX_Size() int {
   479  	return m.Size()
   480  }
   481  func (m *LightBlockResponse) XXX_DiscardUnknown() {
   482  	xxx_messageInfo_LightBlockResponse.DiscardUnknown(m)
   483  }
   484  
   485  var xxx_messageInfo_LightBlockResponse proto.InternalMessageInfo
   486  
   487  func (m *LightBlockResponse) GetLightBlock() *types.LightBlock {
   488  	if m != nil {
   489  		return m.LightBlock
   490  	}
   491  	return nil
   492  }
   493  
   494  type ParamsRequest struct {
   495  	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   496  }
   497  
   498  func (m *ParamsRequest) Reset()         { *m = ParamsRequest{} }
   499  func (m *ParamsRequest) String() string { return proto.CompactTextString(m) }
   500  func (*ParamsRequest) ProtoMessage()    {}
   501  func (*ParamsRequest) Descriptor() ([]byte, []int) {
   502  	return fileDescriptor_aab44cdc90da47cb, []int{7}
   503  }
   504  func (m *ParamsRequest) XXX_Unmarshal(b []byte) error {
   505  	return m.Unmarshal(b)
   506  }
   507  func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   508  	if deterministic {
   509  		return xxx_messageInfo_ParamsRequest.Marshal(b, m, deterministic)
   510  	} else {
   511  		b = b[:cap(b)]
   512  		n, err := m.MarshalToSizedBuffer(b)
   513  		if err != nil {
   514  			return nil, err
   515  		}
   516  		return b[:n], nil
   517  	}
   518  }
   519  func (m *ParamsRequest) XXX_Merge(src proto.Message) {
   520  	xxx_messageInfo_ParamsRequest.Merge(m, src)
   521  }
   522  func (m *ParamsRequest) XXX_Size() int {
   523  	return m.Size()
   524  }
   525  func (m *ParamsRequest) XXX_DiscardUnknown() {
   526  	xxx_messageInfo_ParamsRequest.DiscardUnknown(m)
   527  }
   528  
   529  var xxx_messageInfo_ParamsRequest proto.InternalMessageInfo
   530  
   531  func (m *ParamsRequest) GetHeight() uint64 {
   532  	if m != nil {
   533  		return m.Height
   534  	}
   535  	return 0
   536  }
   537  
   538  type ParamsResponse struct {
   539  	Height          uint64                `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   540  	ConsensusParams types.ConsensusParams `protobuf:"bytes,2,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"`
   541  }
   542  
   543  func (m *ParamsResponse) Reset()         { *m = ParamsResponse{} }
   544  func (m *ParamsResponse) String() string { return proto.CompactTextString(m) }
   545  func (*ParamsResponse) ProtoMessage()    {}
   546  func (*ParamsResponse) Descriptor() ([]byte, []int) {
   547  	return fileDescriptor_aab44cdc90da47cb, []int{8}
   548  }
   549  func (m *ParamsResponse) XXX_Unmarshal(b []byte) error {
   550  	return m.Unmarshal(b)
   551  }
   552  func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   553  	if deterministic {
   554  		return xxx_messageInfo_ParamsResponse.Marshal(b, m, deterministic)
   555  	} else {
   556  		b = b[:cap(b)]
   557  		n, err := m.MarshalToSizedBuffer(b)
   558  		if err != nil {
   559  			return nil, err
   560  		}
   561  		return b[:n], nil
   562  	}
   563  }
   564  func (m *ParamsResponse) XXX_Merge(src proto.Message) {
   565  	xxx_messageInfo_ParamsResponse.Merge(m, src)
   566  }
   567  func (m *ParamsResponse) XXX_Size() int {
   568  	return m.Size()
   569  }
   570  func (m *ParamsResponse) XXX_DiscardUnknown() {
   571  	xxx_messageInfo_ParamsResponse.DiscardUnknown(m)
   572  }
   573  
   574  var xxx_messageInfo_ParamsResponse proto.InternalMessageInfo
   575  
   576  func (m *ParamsResponse) GetHeight() uint64 {
   577  	if m != nil {
   578  		return m.Height
   579  	}
   580  	return 0
   581  }
   582  
   583  func (m *ParamsResponse) GetConsensusParams() types.ConsensusParams {
   584  	if m != nil {
   585  		return m.ConsensusParams
   586  	}
   587  	return types.ConsensusParams{}
   588  }
   589  
   590  func init() {
   591  	proto.RegisterType((*Message)(nil), "seitendermint.dbsync.Message")
   592  	proto.RegisterType((*MetadataRequest)(nil), "seitendermint.dbsync.MetadataRequest")
   593  	proto.RegisterType((*MetadataResponse)(nil), "seitendermint.dbsync.MetadataResponse")
   594  	proto.RegisterType((*FileRequest)(nil), "seitendermint.dbsync.FileRequest")
   595  	proto.RegisterType((*FileResponse)(nil), "seitendermint.dbsync.FileResponse")
   596  	proto.RegisterType((*LightBlockRequest)(nil), "seitendermint.dbsync.LightBlockRequest")
   597  	proto.RegisterType((*LightBlockResponse)(nil), "seitendermint.dbsync.LightBlockResponse")
   598  	proto.RegisterType((*ParamsRequest)(nil), "seitendermint.dbsync.ParamsRequest")
   599  	proto.RegisterType((*ParamsResponse)(nil), "seitendermint.dbsync.ParamsResponse")
   600  }
   601  
   602  func init() { proto.RegisterFile("tendermint/dbsync/types.proto", fileDescriptor_aab44cdc90da47cb) }
   603  
   604  var fileDescriptor_aab44cdc90da47cb = []byte{
   605  	// 593 bytes of a gzipped FileDescriptorProto
   606  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcb, 0x6a, 0xdb, 0x40,
   607  	0x18, 0x85, 0xe5, 0xfa, 0x92, 0xf8, 0xb7, 0x7c, 0x9b, 0x9a, 0x62, 0x4c, 0xa2, 0xb8, 0x6a, 0xda,
   608  	0x18, 0x4a, 0x6c, 0x68, 0xe9, 0xae, 0x8b, 0xd6, 0x85, 0x90, 0x42, 0x42, 0xcb, 0x40, 0x0c, 0x2d,
   609  	0x05, 0x23, 0xcb, 0x63, 0x4b, 0x44, 0x23, 0xa9, 0x1a, 0x79, 0x91, 0x4d, 0xfb, 0x0a, 0x7d, 0x8a,
   610  	0x3e, 0x4b, 0x96, 0x59, 0x76, 0x55, 0x8a, 0xfd, 0x22, 0x45, 0x23, 0x45, 0x1a, 0xcb, 0x72, 0x02,
   611  	0xd9, 0xcd, 0x9c, 0x39, 0xfa, 0x74, 0x24, 0x1d, 0xfd, 0xb0, 0xef, 0x13, 0x7b, 0x4a, 0x3c, 0x6a,
   612  	0xda, 0xfe, 0x60, 0x3a, 0x61, 0x57, 0xb6, 0x3e, 0xf0, 0xaf, 0x5c, 0xc2, 0xfa, 0xae, 0xe7, 0xf8,
   613  	0x0e, 0x6a, 0x31, 0x62, 0x26, 0x8e, 0x7e, 0xe8, 0xe8, 0xb4, 0xe6, 0xce, 0xdc, 0xe1, 0x86, 0x41,
   614  	0xb0, 0x0a, 0xbd, 0x9d, 0x3d, 0x01, 0xc5, 0x19, 0x22, 0xa9, 0xb3, 0xbf, 0x71, 0xea, 0x6a, 0x9e,
   615  	0x46, 0xa3, 0x63, 0xf5, 0x77, 0x11, 0x76, 0xce, 0x09, 0x63, 0xda, 0x9c, 0x20, 0x0c, 0x0d, 0x4a,
   616  	0x7c, 0x6d, 0xaa, 0xf9, 0xda, 0xd8, 0x23, 0xdf, 0x17, 0x84, 0xf9, 0xed, 0x5c, 0x37, 0xd7, 0xab,
   617  	0xbc, 0x7a, 0xde, 0xcf, 0xca, 0xd3, 0x3f, 0x8f, 0xdc, 0x38, 0x34, 0x9f, 0x4a, 0xb8, 0x4e, 0xd7,
   618  	0x25, 0x74, 0x01, 0x4d, 0x81, 0xc9, 0x5c, 0xc7, 0x66, 0xa4, 0xfd, 0x88, 0x43, 0x5f, 0xdc, 0x07,
   619  	0x0d, 0xdd, 0xa7, 0x12, 0x6e, 0xd0, 0x94, 0x86, 0x4e, 0x40, 0x9e, 0x99, 0x16, 0x89, 0x63, 0xe6,
   620  	0x39, 0xf1, 0x69, 0x36, 0xf1, 0xc4, 0xb4, 0x48, 0x12, 0xb1, 0x32, 0x4b, 0xb6, 0xe8, 0x23, 0x54,
   621  	0x23, 0x4e, 0x14, 0xad, 0xc0, 0x41, 0xea, 0x5d, 0xa0, 0x38, 0x96, 0x3c, 0x13, 0xf6, 0xe8, 0x0b,
   622  	0x3c, 0xb6, 0xcc, 0xb9, 0xe1, 0x8f, 0x27, 0x96, 0xa3, 0x5f, 0xc6, 0xc9, 0x8a, 0x1c, 0x78, 0x94,
   623  	0x0d, 0x3c, 0x0b, 0x2e, 0x18, 0x06, 0xfe, 0x24, 0x5f, 0xd3, 0x4a, 0x8b, 0xe8, 0x1b, 0xb4, 0xd6,
   624  	0xd1, 0x51, 0xd8, 0x12, 0x67, 0xf7, 0xee, 0x67, 0xc7, 0x91, 0x91, 0xb5, 0xa1, 0xa2, 0x33, 0xa8,
   625  	0x85, 0x95, 0x88, 0x33, 0xef, 0x70, 0xee, 0xb3, 0x6c, 0xee, 0x67, 0xee, 0x4d, 0xf2, 0x56, 0x5d,
   626  	0x51, 0x40, 0x9f, 0xa0, 0x1e, 0xd3, 0xa2, 0x98, 0xbb, 0x1c, 0x77, 0x78, 0x37, 0x2e, 0x8e, 0x58,
   627  	0x73, 0xd7, 0x94, 0x61, 0x11, 0xf2, 0x6c, 0x41, 0xd5, 0x26, 0xd4, 0x53, 0x75, 0x53, 0x7f, 0x40,
   628  	0x23, 0x5d, 0x16, 0xf4, 0x04, 0x4a, 0x06, 0x09, 0x9e, 0x91, 0x37, 0xb7, 0x80, 0xa3, 0x1d, 0x42,
   629  	0x50, 0x30, 0x34, 0x66, 0xf0, 0xea, 0xc9, 0x98, 0xaf, 0xd1, 0x1e, 0x94, 0x83, 0x2f, 0x68, 0x6b,
   630  	0x94, 0xb0, 0x76, 0xbe, 0x9b, 0xef, 0x95, 0x71, 0x22, 0xa0, 0x2e, 0x54, 0xe8, 0xf4, 0x8d, 0x6e,
   631  	0x10, 0xfd, 0x92, 0x2d, 0x68, 0xbb, 0xd0, 0xcd, 0xf7, 0x64, 0x2c, 0x4a, 0xea, 0x7b, 0xa8, 0x08,
   632  	0xd5, 0xda, 0x7a, 0xeb, 0x0e, 0xec, 0xde, 0x52, 0xf9, 0xed, 0xcb, 0x38, 0xde, 0xab, 0x23, 0x90,
   633  	0xc5, 0x52, 0x3d, 0x84, 0x11, 0x3c, 0x5a, 0xf0, 0x0a, 0xf8, 0x3f, 0x20, 0x63, 0xbe, 0x56, 0x5f,
   634  	0x42, 0x73, 0xa3, 0x5b, 0xdb, 0xe0, 0xea, 0x08, 0xd0, 0x66, 0x59, 0xd0, 0x3b, 0xa8, 0x08, 0xa5,
   635  	0x8b, 0x06, 0xc1, 0x41, 0xea, 0x23, 0x86, 0x93, 0x46, 0xb8, 0x1a, 0x92, 0x82, 0xa9, 0x47, 0x50,
   636  	0x5d, 0x2b, 0xcb, 0xd6, 0x00, 0x3f, 0xa1, 0xb6, 0x5e, 0x83, 0xad, 0xef, 0xe1, 0x02, 0x1a, 0x7a,
   637  	0x60, 0xb0, 0xd9, 0x82, 0x8d, 0xc3, 0xa2, 0x44, 0xd3, 0xe4, 0x30, 0x33, 0xd9, 0x87, 0x5b, 0x73,
   638  	0xc8, 0x1f, 0x16, 0xae, 0xff, 0x1e, 0x48, 0xb8, 0xae, 0xa7, 0xe4, 0xd1, 0xf5, 0x52, 0xc9, 0xdd,
   639  	0x2c, 0x95, 0xdc, 0xbf, 0xa5, 0x92, 0xfb, 0xb5, 0x52, 0xa4, 0x9b, 0x95, 0x22, 0xfd, 0x59, 0x29,
   640  	0xd2, 0xd7, 0xb7, 0x73, 0xd3, 0x37, 0x16, 0x93, 0xbe, 0xee, 0xd0, 0x81, 0xe6, 0x99, 0xc7, 0x9a,
   641  	0xad, 0x1b, 0x8e, 0x37, 0x60, 0xc4, 0x3c, 0x16, 0x06, 0x6b, 0x38, 0x93, 0x37, 0x46, 0xfa, 0xa4,
   642  	0xc4, 0x0f, 0x5e, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xbe, 0xb8, 0x52, 0x22, 0xee, 0x05, 0x00,
   643  	0x00,
   644  }
   645  
   646  func (m *Message) Marshal() (dAtA []byte, err error) {
   647  	size := m.Size()
   648  	dAtA = make([]byte, size)
   649  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   650  	if err != nil {
   651  		return nil, err
   652  	}
   653  	return dAtA[:n], nil
   654  }
   655  
   656  func (m *Message) MarshalTo(dAtA []byte) (int, error) {
   657  	size := m.Size()
   658  	return m.MarshalToSizedBuffer(dAtA[:size])
   659  }
   660  
   661  func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   662  	i := len(dAtA)
   663  	_ = i
   664  	var l int
   665  	_ = l
   666  	if m.Sum != nil {
   667  		{
   668  			size := m.Sum.Size()
   669  			i -= size
   670  			if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
   671  				return 0, err
   672  			}
   673  		}
   674  	}
   675  	return len(dAtA) - i, nil
   676  }
   677  
   678  func (m *Message_MetadataRequest) MarshalTo(dAtA []byte) (int, error) {
   679  	size := m.Size()
   680  	return m.MarshalToSizedBuffer(dAtA[:size])
   681  }
   682  
   683  func (m *Message_MetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   684  	i := len(dAtA)
   685  	if m.MetadataRequest != nil {
   686  		{
   687  			size, err := m.MetadataRequest.MarshalToSizedBuffer(dAtA[:i])
   688  			if err != nil {
   689  				return 0, err
   690  			}
   691  			i -= size
   692  			i = encodeVarintTypes(dAtA, i, uint64(size))
   693  		}
   694  		i--
   695  		dAtA[i] = 0xa
   696  	}
   697  	return len(dAtA) - i, nil
   698  }
   699  func (m *Message_MetadataResponse) MarshalTo(dAtA []byte) (int, error) {
   700  	size := m.Size()
   701  	return m.MarshalToSizedBuffer(dAtA[:size])
   702  }
   703  
   704  func (m *Message_MetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   705  	i := len(dAtA)
   706  	if m.MetadataResponse != nil {
   707  		{
   708  			size, err := m.MetadataResponse.MarshalToSizedBuffer(dAtA[:i])
   709  			if err != nil {
   710  				return 0, err
   711  			}
   712  			i -= size
   713  			i = encodeVarintTypes(dAtA, i, uint64(size))
   714  		}
   715  		i--
   716  		dAtA[i] = 0x12
   717  	}
   718  	return len(dAtA) - i, nil
   719  }
   720  func (m *Message_FileRequest) MarshalTo(dAtA []byte) (int, error) {
   721  	size := m.Size()
   722  	return m.MarshalToSizedBuffer(dAtA[:size])
   723  }
   724  
   725  func (m *Message_FileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   726  	i := len(dAtA)
   727  	if m.FileRequest != nil {
   728  		{
   729  			size, err := m.FileRequest.MarshalToSizedBuffer(dAtA[:i])
   730  			if err != nil {
   731  				return 0, err
   732  			}
   733  			i -= size
   734  			i = encodeVarintTypes(dAtA, i, uint64(size))
   735  		}
   736  		i--
   737  		dAtA[i] = 0x1a
   738  	}
   739  	return len(dAtA) - i, nil
   740  }
   741  func (m *Message_FileResponse) MarshalTo(dAtA []byte) (int, error) {
   742  	size := m.Size()
   743  	return m.MarshalToSizedBuffer(dAtA[:size])
   744  }
   745  
   746  func (m *Message_FileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   747  	i := len(dAtA)
   748  	if m.FileResponse != nil {
   749  		{
   750  			size, err := m.FileResponse.MarshalToSizedBuffer(dAtA[:i])
   751  			if err != nil {
   752  				return 0, err
   753  			}
   754  			i -= size
   755  			i = encodeVarintTypes(dAtA, i, uint64(size))
   756  		}
   757  		i--
   758  		dAtA[i] = 0x22
   759  	}
   760  	return len(dAtA) - i, nil
   761  }
   762  func (m *Message_LightBlockRequest) MarshalTo(dAtA []byte) (int, error) {
   763  	size := m.Size()
   764  	return m.MarshalToSizedBuffer(dAtA[:size])
   765  }
   766  
   767  func (m *Message_LightBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   768  	i := len(dAtA)
   769  	if m.LightBlockRequest != nil {
   770  		{
   771  			size, err := m.LightBlockRequest.MarshalToSizedBuffer(dAtA[:i])
   772  			if err != nil {
   773  				return 0, err
   774  			}
   775  			i -= size
   776  			i = encodeVarintTypes(dAtA, i, uint64(size))
   777  		}
   778  		i--
   779  		dAtA[i] = 0x2a
   780  	}
   781  	return len(dAtA) - i, nil
   782  }
   783  func (m *Message_LightBlockResponse) MarshalTo(dAtA []byte) (int, error) {
   784  	size := m.Size()
   785  	return m.MarshalToSizedBuffer(dAtA[:size])
   786  }
   787  
   788  func (m *Message_LightBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   789  	i := len(dAtA)
   790  	if m.LightBlockResponse != nil {
   791  		{
   792  			size, err := m.LightBlockResponse.MarshalToSizedBuffer(dAtA[:i])
   793  			if err != nil {
   794  				return 0, err
   795  			}
   796  			i -= size
   797  			i = encodeVarintTypes(dAtA, i, uint64(size))
   798  		}
   799  		i--
   800  		dAtA[i] = 0x32
   801  	}
   802  	return len(dAtA) - i, nil
   803  }
   804  func (m *Message_ParamsRequest) MarshalTo(dAtA []byte) (int, error) {
   805  	size := m.Size()
   806  	return m.MarshalToSizedBuffer(dAtA[:size])
   807  }
   808  
   809  func (m *Message_ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   810  	i := len(dAtA)
   811  	if m.ParamsRequest != nil {
   812  		{
   813  			size, err := m.ParamsRequest.MarshalToSizedBuffer(dAtA[:i])
   814  			if err != nil {
   815  				return 0, err
   816  			}
   817  			i -= size
   818  			i = encodeVarintTypes(dAtA, i, uint64(size))
   819  		}
   820  		i--
   821  		dAtA[i] = 0x3a
   822  	}
   823  	return len(dAtA) - i, nil
   824  }
   825  func (m *Message_ParamsResponse) MarshalTo(dAtA []byte) (int, error) {
   826  	size := m.Size()
   827  	return m.MarshalToSizedBuffer(dAtA[:size])
   828  }
   829  
   830  func (m *Message_ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   831  	i := len(dAtA)
   832  	if m.ParamsResponse != nil {
   833  		{
   834  			size, err := m.ParamsResponse.MarshalToSizedBuffer(dAtA[:i])
   835  			if err != nil {
   836  				return 0, err
   837  			}
   838  			i -= size
   839  			i = encodeVarintTypes(dAtA, i, uint64(size))
   840  		}
   841  		i--
   842  		dAtA[i] = 0x42
   843  	}
   844  	return len(dAtA) - i, nil
   845  }
   846  func (m *MetadataRequest) Marshal() (dAtA []byte, err error) {
   847  	size := m.Size()
   848  	dAtA = make([]byte, size)
   849  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   850  	if err != nil {
   851  		return nil, err
   852  	}
   853  	return dAtA[:n], nil
   854  }
   855  
   856  func (m *MetadataRequest) MarshalTo(dAtA []byte) (int, error) {
   857  	size := m.Size()
   858  	return m.MarshalToSizedBuffer(dAtA[:size])
   859  }
   860  
   861  func (m *MetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   862  	i := len(dAtA)
   863  	_ = i
   864  	var l int
   865  	_ = l
   866  	return len(dAtA) - i, nil
   867  }
   868  
   869  func (m *MetadataResponse) Marshal() (dAtA []byte, err error) {
   870  	size := m.Size()
   871  	dAtA = make([]byte, size)
   872  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   873  	if err != nil {
   874  		return nil, err
   875  	}
   876  	return dAtA[:n], nil
   877  }
   878  
   879  func (m *MetadataResponse) MarshalTo(dAtA []byte) (int, error) {
   880  	size := m.Size()
   881  	return m.MarshalToSizedBuffer(dAtA[:size])
   882  }
   883  
   884  func (m *MetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   885  	i := len(dAtA)
   886  	_ = i
   887  	var l int
   888  	_ = l
   889  	if len(m.Md5Checksum) > 0 {
   890  		for iNdEx := len(m.Md5Checksum) - 1; iNdEx >= 0; iNdEx-- {
   891  			i -= len(m.Md5Checksum[iNdEx])
   892  			copy(dAtA[i:], m.Md5Checksum[iNdEx])
   893  			i = encodeVarintTypes(dAtA, i, uint64(len(m.Md5Checksum[iNdEx])))
   894  			i--
   895  			dAtA[i] = 0x22
   896  		}
   897  	}
   898  	if len(m.Filenames) > 0 {
   899  		for iNdEx := len(m.Filenames) - 1; iNdEx >= 0; iNdEx-- {
   900  			i -= len(m.Filenames[iNdEx])
   901  			copy(dAtA[i:], m.Filenames[iNdEx])
   902  			i = encodeVarintTypes(dAtA, i, uint64(len(m.Filenames[iNdEx])))
   903  			i--
   904  			dAtA[i] = 0x1a
   905  		}
   906  	}
   907  	if len(m.Hash) > 0 {
   908  		i -= len(m.Hash)
   909  		copy(dAtA[i:], m.Hash)
   910  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Hash)))
   911  		i--
   912  		dAtA[i] = 0x12
   913  	}
   914  	if m.Height != 0 {
   915  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
   916  		i--
   917  		dAtA[i] = 0x8
   918  	}
   919  	return len(dAtA) - i, nil
   920  }
   921  
   922  func (m *FileRequest) Marshal() (dAtA []byte, err error) {
   923  	size := m.Size()
   924  	dAtA = make([]byte, size)
   925  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   926  	if err != nil {
   927  		return nil, err
   928  	}
   929  	return dAtA[:n], nil
   930  }
   931  
   932  func (m *FileRequest) MarshalTo(dAtA []byte) (int, error) {
   933  	size := m.Size()
   934  	return m.MarshalToSizedBuffer(dAtA[:size])
   935  }
   936  
   937  func (m *FileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   938  	i := len(dAtA)
   939  	_ = i
   940  	var l int
   941  	_ = l
   942  	if len(m.Filename) > 0 {
   943  		i -= len(m.Filename)
   944  		copy(dAtA[i:], m.Filename)
   945  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Filename)))
   946  		i--
   947  		dAtA[i] = 0x12
   948  	}
   949  	if m.Height != 0 {
   950  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
   951  		i--
   952  		dAtA[i] = 0x8
   953  	}
   954  	return len(dAtA) - i, nil
   955  }
   956  
   957  func (m *FileResponse) Marshal() (dAtA []byte, err error) {
   958  	size := m.Size()
   959  	dAtA = make([]byte, size)
   960  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   961  	if err != nil {
   962  		return nil, err
   963  	}
   964  	return dAtA[:n], nil
   965  }
   966  
   967  func (m *FileResponse) MarshalTo(dAtA []byte) (int, error) {
   968  	size := m.Size()
   969  	return m.MarshalToSizedBuffer(dAtA[:size])
   970  }
   971  
   972  func (m *FileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   973  	i := len(dAtA)
   974  	_ = i
   975  	var l int
   976  	_ = l
   977  	if len(m.Data) > 0 {
   978  		i -= len(m.Data)
   979  		copy(dAtA[i:], m.Data)
   980  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Data)))
   981  		i--
   982  		dAtA[i] = 0x1a
   983  	}
   984  	if len(m.Filename) > 0 {
   985  		i -= len(m.Filename)
   986  		copy(dAtA[i:], m.Filename)
   987  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Filename)))
   988  		i--
   989  		dAtA[i] = 0x12
   990  	}
   991  	if m.Height != 0 {
   992  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
   993  		i--
   994  		dAtA[i] = 0x8
   995  	}
   996  	return len(dAtA) - i, nil
   997  }
   998  
   999  func (m *LightBlockRequest) Marshal() (dAtA []byte, err error) {
  1000  	size := m.Size()
  1001  	dAtA = make([]byte, size)
  1002  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1003  	if err != nil {
  1004  		return nil, err
  1005  	}
  1006  	return dAtA[:n], nil
  1007  }
  1008  
  1009  func (m *LightBlockRequest) MarshalTo(dAtA []byte) (int, error) {
  1010  	size := m.Size()
  1011  	return m.MarshalToSizedBuffer(dAtA[:size])
  1012  }
  1013  
  1014  func (m *LightBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1015  	i := len(dAtA)
  1016  	_ = i
  1017  	var l int
  1018  	_ = l
  1019  	if m.Height != 0 {
  1020  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  1021  		i--
  1022  		dAtA[i] = 0x8
  1023  	}
  1024  	return len(dAtA) - i, nil
  1025  }
  1026  
  1027  func (m *LightBlockResponse) Marshal() (dAtA []byte, err error) {
  1028  	size := m.Size()
  1029  	dAtA = make([]byte, size)
  1030  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1031  	if err != nil {
  1032  		return nil, err
  1033  	}
  1034  	return dAtA[:n], nil
  1035  }
  1036  
  1037  func (m *LightBlockResponse) MarshalTo(dAtA []byte) (int, error) {
  1038  	size := m.Size()
  1039  	return m.MarshalToSizedBuffer(dAtA[:size])
  1040  }
  1041  
  1042  func (m *LightBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1043  	i := len(dAtA)
  1044  	_ = i
  1045  	var l int
  1046  	_ = l
  1047  	if m.LightBlock != nil {
  1048  		{
  1049  			size, err := m.LightBlock.MarshalToSizedBuffer(dAtA[:i])
  1050  			if err != nil {
  1051  				return 0, err
  1052  			}
  1053  			i -= size
  1054  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1055  		}
  1056  		i--
  1057  		dAtA[i] = 0xa
  1058  	}
  1059  	return len(dAtA) - i, nil
  1060  }
  1061  
  1062  func (m *ParamsRequest) Marshal() (dAtA []byte, err error) {
  1063  	size := m.Size()
  1064  	dAtA = make([]byte, size)
  1065  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1066  	if err != nil {
  1067  		return nil, err
  1068  	}
  1069  	return dAtA[:n], nil
  1070  }
  1071  
  1072  func (m *ParamsRequest) MarshalTo(dAtA []byte) (int, error) {
  1073  	size := m.Size()
  1074  	return m.MarshalToSizedBuffer(dAtA[:size])
  1075  }
  1076  
  1077  func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1078  	i := len(dAtA)
  1079  	_ = i
  1080  	var l int
  1081  	_ = l
  1082  	if m.Height != 0 {
  1083  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  1084  		i--
  1085  		dAtA[i] = 0x8
  1086  	}
  1087  	return len(dAtA) - i, nil
  1088  }
  1089  
  1090  func (m *ParamsResponse) Marshal() (dAtA []byte, err error) {
  1091  	size := m.Size()
  1092  	dAtA = make([]byte, size)
  1093  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1094  	if err != nil {
  1095  		return nil, err
  1096  	}
  1097  	return dAtA[:n], nil
  1098  }
  1099  
  1100  func (m *ParamsResponse) MarshalTo(dAtA []byte) (int, error) {
  1101  	size := m.Size()
  1102  	return m.MarshalToSizedBuffer(dAtA[:size])
  1103  }
  1104  
  1105  func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1106  	i := len(dAtA)
  1107  	_ = i
  1108  	var l int
  1109  	_ = l
  1110  	{
  1111  		size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i])
  1112  		if err != nil {
  1113  			return 0, err
  1114  		}
  1115  		i -= size
  1116  		i = encodeVarintTypes(dAtA, i, uint64(size))
  1117  	}
  1118  	i--
  1119  	dAtA[i] = 0x12
  1120  	if m.Height != 0 {
  1121  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  1122  		i--
  1123  		dAtA[i] = 0x8
  1124  	}
  1125  	return len(dAtA) - i, nil
  1126  }
  1127  
  1128  func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
  1129  	offset -= sovTypes(v)
  1130  	base := offset
  1131  	for v >= 1<<7 {
  1132  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1133  		v >>= 7
  1134  		offset++
  1135  	}
  1136  	dAtA[offset] = uint8(v)
  1137  	return base
  1138  }
  1139  func (m *Message) Size() (n int) {
  1140  	if m == nil {
  1141  		return 0
  1142  	}
  1143  	var l int
  1144  	_ = l
  1145  	if m.Sum != nil {
  1146  		n += m.Sum.Size()
  1147  	}
  1148  	return n
  1149  }
  1150  
  1151  func (m *Message_MetadataRequest) Size() (n int) {
  1152  	if m == nil {
  1153  		return 0
  1154  	}
  1155  	var l int
  1156  	_ = l
  1157  	if m.MetadataRequest != nil {
  1158  		l = m.MetadataRequest.Size()
  1159  		n += 1 + l + sovTypes(uint64(l))
  1160  	}
  1161  	return n
  1162  }
  1163  func (m *Message_MetadataResponse) Size() (n int) {
  1164  	if m == nil {
  1165  		return 0
  1166  	}
  1167  	var l int
  1168  	_ = l
  1169  	if m.MetadataResponse != nil {
  1170  		l = m.MetadataResponse.Size()
  1171  		n += 1 + l + sovTypes(uint64(l))
  1172  	}
  1173  	return n
  1174  }
  1175  func (m *Message_FileRequest) Size() (n int) {
  1176  	if m == nil {
  1177  		return 0
  1178  	}
  1179  	var l int
  1180  	_ = l
  1181  	if m.FileRequest != nil {
  1182  		l = m.FileRequest.Size()
  1183  		n += 1 + l + sovTypes(uint64(l))
  1184  	}
  1185  	return n
  1186  }
  1187  func (m *Message_FileResponse) Size() (n int) {
  1188  	if m == nil {
  1189  		return 0
  1190  	}
  1191  	var l int
  1192  	_ = l
  1193  	if m.FileResponse != nil {
  1194  		l = m.FileResponse.Size()
  1195  		n += 1 + l + sovTypes(uint64(l))
  1196  	}
  1197  	return n
  1198  }
  1199  func (m *Message_LightBlockRequest) Size() (n int) {
  1200  	if m == nil {
  1201  		return 0
  1202  	}
  1203  	var l int
  1204  	_ = l
  1205  	if m.LightBlockRequest != nil {
  1206  		l = m.LightBlockRequest.Size()
  1207  		n += 1 + l + sovTypes(uint64(l))
  1208  	}
  1209  	return n
  1210  }
  1211  func (m *Message_LightBlockResponse) Size() (n int) {
  1212  	if m == nil {
  1213  		return 0
  1214  	}
  1215  	var l int
  1216  	_ = l
  1217  	if m.LightBlockResponse != nil {
  1218  		l = m.LightBlockResponse.Size()
  1219  		n += 1 + l + sovTypes(uint64(l))
  1220  	}
  1221  	return n
  1222  }
  1223  func (m *Message_ParamsRequest) Size() (n int) {
  1224  	if m == nil {
  1225  		return 0
  1226  	}
  1227  	var l int
  1228  	_ = l
  1229  	if m.ParamsRequest != nil {
  1230  		l = m.ParamsRequest.Size()
  1231  		n += 1 + l + sovTypes(uint64(l))
  1232  	}
  1233  	return n
  1234  }
  1235  func (m *Message_ParamsResponse) Size() (n int) {
  1236  	if m == nil {
  1237  		return 0
  1238  	}
  1239  	var l int
  1240  	_ = l
  1241  	if m.ParamsResponse != nil {
  1242  		l = m.ParamsResponse.Size()
  1243  		n += 1 + l + sovTypes(uint64(l))
  1244  	}
  1245  	return n
  1246  }
  1247  func (m *MetadataRequest) Size() (n int) {
  1248  	if m == nil {
  1249  		return 0
  1250  	}
  1251  	var l int
  1252  	_ = l
  1253  	return n
  1254  }
  1255  
  1256  func (m *MetadataResponse) Size() (n int) {
  1257  	if m == nil {
  1258  		return 0
  1259  	}
  1260  	var l int
  1261  	_ = l
  1262  	if m.Height != 0 {
  1263  		n += 1 + sovTypes(uint64(m.Height))
  1264  	}
  1265  	l = len(m.Hash)
  1266  	if l > 0 {
  1267  		n += 1 + l + sovTypes(uint64(l))
  1268  	}
  1269  	if len(m.Filenames) > 0 {
  1270  		for _, s := range m.Filenames {
  1271  			l = len(s)
  1272  			n += 1 + l + sovTypes(uint64(l))
  1273  		}
  1274  	}
  1275  	if len(m.Md5Checksum) > 0 {
  1276  		for _, b := range m.Md5Checksum {
  1277  			l = len(b)
  1278  			n += 1 + l + sovTypes(uint64(l))
  1279  		}
  1280  	}
  1281  	return n
  1282  }
  1283  
  1284  func (m *FileRequest) Size() (n int) {
  1285  	if m == nil {
  1286  		return 0
  1287  	}
  1288  	var l int
  1289  	_ = l
  1290  	if m.Height != 0 {
  1291  		n += 1 + sovTypes(uint64(m.Height))
  1292  	}
  1293  	l = len(m.Filename)
  1294  	if l > 0 {
  1295  		n += 1 + l + sovTypes(uint64(l))
  1296  	}
  1297  	return n
  1298  }
  1299  
  1300  func (m *FileResponse) Size() (n int) {
  1301  	if m == nil {
  1302  		return 0
  1303  	}
  1304  	var l int
  1305  	_ = l
  1306  	if m.Height != 0 {
  1307  		n += 1 + sovTypes(uint64(m.Height))
  1308  	}
  1309  	l = len(m.Filename)
  1310  	if l > 0 {
  1311  		n += 1 + l + sovTypes(uint64(l))
  1312  	}
  1313  	l = len(m.Data)
  1314  	if l > 0 {
  1315  		n += 1 + l + sovTypes(uint64(l))
  1316  	}
  1317  	return n
  1318  }
  1319  
  1320  func (m *LightBlockRequest) Size() (n int) {
  1321  	if m == nil {
  1322  		return 0
  1323  	}
  1324  	var l int
  1325  	_ = l
  1326  	if m.Height != 0 {
  1327  		n += 1 + sovTypes(uint64(m.Height))
  1328  	}
  1329  	return n
  1330  }
  1331  
  1332  func (m *LightBlockResponse) Size() (n int) {
  1333  	if m == nil {
  1334  		return 0
  1335  	}
  1336  	var l int
  1337  	_ = l
  1338  	if m.LightBlock != nil {
  1339  		l = m.LightBlock.Size()
  1340  		n += 1 + l + sovTypes(uint64(l))
  1341  	}
  1342  	return n
  1343  }
  1344  
  1345  func (m *ParamsRequest) Size() (n int) {
  1346  	if m == nil {
  1347  		return 0
  1348  	}
  1349  	var l int
  1350  	_ = l
  1351  	if m.Height != 0 {
  1352  		n += 1 + sovTypes(uint64(m.Height))
  1353  	}
  1354  	return n
  1355  }
  1356  
  1357  func (m *ParamsResponse) Size() (n int) {
  1358  	if m == nil {
  1359  		return 0
  1360  	}
  1361  	var l int
  1362  	_ = l
  1363  	if m.Height != 0 {
  1364  		n += 1 + sovTypes(uint64(m.Height))
  1365  	}
  1366  	l = m.ConsensusParams.Size()
  1367  	n += 1 + l + sovTypes(uint64(l))
  1368  	return n
  1369  }
  1370  
  1371  func sovTypes(x uint64) (n int) {
  1372  	return (math_bits.Len64(x|1) + 6) / 7
  1373  }
  1374  func sozTypes(x uint64) (n int) {
  1375  	return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1376  }
  1377  func (m *Message) Unmarshal(dAtA []byte) error {
  1378  	l := len(dAtA)
  1379  	iNdEx := 0
  1380  	for iNdEx < l {
  1381  		preIndex := iNdEx
  1382  		var wire uint64
  1383  		for shift := uint(0); ; shift += 7 {
  1384  			if shift >= 64 {
  1385  				return ErrIntOverflowTypes
  1386  			}
  1387  			if iNdEx >= l {
  1388  				return io.ErrUnexpectedEOF
  1389  			}
  1390  			b := dAtA[iNdEx]
  1391  			iNdEx++
  1392  			wire |= uint64(b&0x7F) << shift
  1393  			if b < 0x80 {
  1394  				break
  1395  			}
  1396  		}
  1397  		fieldNum := int32(wire >> 3)
  1398  		wireType := int(wire & 0x7)
  1399  		if wireType == 4 {
  1400  			return fmt.Errorf("proto: Message: wiretype end group for non-group")
  1401  		}
  1402  		if fieldNum <= 0 {
  1403  			return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
  1404  		}
  1405  		switch fieldNum {
  1406  		case 1:
  1407  			if wireType != 2 {
  1408  				return fmt.Errorf("proto: wrong wireType = %d for field MetadataRequest", wireType)
  1409  			}
  1410  			var msglen int
  1411  			for shift := uint(0); ; shift += 7 {
  1412  				if shift >= 64 {
  1413  					return ErrIntOverflowTypes
  1414  				}
  1415  				if iNdEx >= l {
  1416  					return io.ErrUnexpectedEOF
  1417  				}
  1418  				b := dAtA[iNdEx]
  1419  				iNdEx++
  1420  				msglen |= int(b&0x7F) << shift
  1421  				if b < 0x80 {
  1422  					break
  1423  				}
  1424  			}
  1425  			if msglen < 0 {
  1426  				return ErrInvalidLengthTypes
  1427  			}
  1428  			postIndex := iNdEx + msglen
  1429  			if postIndex < 0 {
  1430  				return ErrInvalidLengthTypes
  1431  			}
  1432  			if postIndex > l {
  1433  				return io.ErrUnexpectedEOF
  1434  			}
  1435  			v := &MetadataRequest{}
  1436  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1437  				return err
  1438  			}
  1439  			m.Sum = &Message_MetadataRequest{v}
  1440  			iNdEx = postIndex
  1441  		case 2:
  1442  			if wireType != 2 {
  1443  				return fmt.Errorf("proto: wrong wireType = %d for field MetadataResponse", wireType)
  1444  			}
  1445  			var msglen int
  1446  			for shift := uint(0); ; shift += 7 {
  1447  				if shift >= 64 {
  1448  					return ErrIntOverflowTypes
  1449  				}
  1450  				if iNdEx >= l {
  1451  					return io.ErrUnexpectedEOF
  1452  				}
  1453  				b := dAtA[iNdEx]
  1454  				iNdEx++
  1455  				msglen |= int(b&0x7F) << shift
  1456  				if b < 0x80 {
  1457  					break
  1458  				}
  1459  			}
  1460  			if msglen < 0 {
  1461  				return ErrInvalidLengthTypes
  1462  			}
  1463  			postIndex := iNdEx + msglen
  1464  			if postIndex < 0 {
  1465  				return ErrInvalidLengthTypes
  1466  			}
  1467  			if postIndex > l {
  1468  				return io.ErrUnexpectedEOF
  1469  			}
  1470  			v := &MetadataResponse{}
  1471  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1472  				return err
  1473  			}
  1474  			m.Sum = &Message_MetadataResponse{v}
  1475  			iNdEx = postIndex
  1476  		case 3:
  1477  			if wireType != 2 {
  1478  				return fmt.Errorf("proto: wrong wireType = %d for field FileRequest", wireType)
  1479  			}
  1480  			var msglen int
  1481  			for shift := uint(0); ; shift += 7 {
  1482  				if shift >= 64 {
  1483  					return ErrIntOverflowTypes
  1484  				}
  1485  				if iNdEx >= l {
  1486  					return io.ErrUnexpectedEOF
  1487  				}
  1488  				b := dAtA[iNdEx]
  1489  				iNdEx++
  1490  				msglen |= int(b&0x7F) << shift
  1491  				if b < 0x80 {
  1492  					break
  1493  				}
  1494  			}
  1495  			if msglen < 0 {
  1496  				return ErrInvalidLengthTypes
  1497  			}
  1498  			postIndex := iNdEx + msglen
  1499  			if postIndex < 0 {
  1500  				return ErrInvalidLengthTypes
  1501  			}
  1502  			if postIndex > l {
  1503  				return io.ErrUnexpectedEOF
  1504  			}
  1505  			v := &FileRequest{}
  1506  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1507  				return err
  1508  			}
  1509  			m.Sum = &Message_FileRequest{v}
  1510  			iNdEx = postIndex
  1511  		case 4:
  1512  			if wireType != 2 {
  1513  				return fmt.Errorf("proto: wrong wireType = %d for field FileResponse", wireType)
  1514  			}
  1515  			var msglen int
  1516  			for shift := uint(0); ; shift += 7 {
  1517  				if shift >= 64 {
  1518  					return ErrIntOverflowTypes
  1519  				}
  1520  				if iNdEx >= l {
  1521  					return io.ErrUnexpectedEOF
  1522  				}
  1523  				b := dAtA[iNdEx]
  1524  				iNdEx++
  1525  				msglen |= int(b&0x7F) << shift
  1526  				if b < 0x80 {
  1527  					break
  1528  				}
  1529  			}
  1530  			if msglen < 0 {
  1531  				return ErrInvalidLengthTypes
  1532  			}
  1533  			postIndex := iNdEx + msglen
  1534  			if postIndex < 0 {
  1535  				return ErrInvalidLengthTypes
  1536  			}
  1537  			if postIndex > l {
  1538  				return io.ErrUnexpectedEOF
  1539  			}
  1540  			v := &FileResponse{}
  1541  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1542  				return err
  1543  			}
  1544  			m.Sum = &Message_FileResponse{v}
  1545  			iNdEx = postIndex
  1546  		case 5:
  1547  			if wireType != 2 {
  1548  				return fmt.Errorf("proto: wrong wireType = %d for field LightBlockRequest", wireType)
  1549  			}
  1550  			var msglen int
  1551  			for shift := uint(0); ; shift += 7 {
  1552  				if shift >= 64 {
  1553  					return ErrIntOverflowTypes
  1554  				}
  1555  				if iNdEx >= l {
  1556  					return io.ErrUnexpectedEOF
  1557  				}
  1558  				b := dAtA[iNdEx]
  1559  				iNdEx++
  1560  				msglen |= int(b&0x7F) << shift
  1561  				if b < 0x80 {
  1562  					break
  1563  				}
  1564  			}
  1565  			if msglen < 0 {
  1566  				return ErrInvalidLengthTypes
  1567  			}
  1568  			postIndex := iNdEx + msglen
  1569  			if postIndex < 0 {
  1570  				return ErrInvalidLengthTypes
  1571  			}
  1572  			if postIndex > l {
  1573  				return io.ErrUnexpectedEOF
  1574  			}
  1575  			v := &LightBlockRequest{}
  1576  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1577  				return err
  1578  			}
  1579  			m.Sum = &Message_LightBlockRequest{v}
  1580  			iNdEx = postIndex
  1581  		case 6:
  1582  			if wireType != 2 {
  1583  				return fmt.Errorf("proto: wrong wireType = %d for field LightBlockResponse", wireType)
  1584  			}
  1585  			var msglen int
  1586  			for shift := uint(0); ; shift += 7 {
  1587  				if shift >= 64 {
  1588  					return ErrIntOverflowTypes
  1589  				}
  1590  				if iNdEx >= l {
  1591  					return io.ErrUnexpectedEOF
  1592  				}
  1593  				b := dAtA[iNdEx]
  1594  				iNdEx++
  1595  				msglen |= int(b&0x7F) << shift
  1596  				if b < 0x80 {
  1597  					break
  1598  				}
  1599  			}
  1600  			if msglen < 0 {
  1601  				return ErrInvalidLengthTypes
  1602  			}
  1603  			postIndex := iNdEx + msglen
  1604  			if postIndex < 0 {
  1605  				return ErrInvalidLengthTypes
  1606  			}
  1607  			if postIndex > l {
  1608  				return io.ErrUnexpectedEOF
  1609  			}
  1610  			v := &LightBlockResponse{}
  1611  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1612  				return err
  1613  			}
  1614  			m.Sum = &Message_LightBlockResponse{v}
  1615  			iNdEx = postIndex
  1616  		case 7:
  1617  			if wireType != 2 {
  1618  				return fmt.Errorf("proto: wrong wireType = %d for field ParamsRequest", wireType)
  1619  			}
  1620  			var msglen int
  1621  			for shift := uint(0); ; shift += 7 {
  1622  				if shift >= 64 {
  1623  					return ErrIntOverflowTypes
  1624  				}
  1625  				if iNdEx >= l {
  1626  					return io.ErrUnexpectedEOF
  1627  				}
  1628  				b := dAtA[iNdEx]
  1629  				iNdEx++
  1630  				msglen |= int(b&0x7F) << shift
  1631  				if b < 0x80 {
  1632  					break
  1633  				}
  1634  			}
  1635  			if msglen < 0 {
  1636  				return ErrInvalidLengthTypes
  1637  			}
  1638  			postIndex := iNdEx + msglen
  1639  			if postIndex < 0 {
  1640  				return ErrInvalidLengthTypes
  1641  			}
  1642  			if postIndex > l {
  1643  				return io.ErrUnexpectedEOF
  1644  			}
  1645  			v := &ParamsRequest{}
  1646  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1647  				return err
  1648  			}
  1649  			m.Sum = &Message_ParamsRequest{v}
  1650  			iNdEx = postIndex
  1651  		case 8:
  1652  			if wireType != 2 {
  1653  				return fmt.Errorf("proto: wrong wireType = %d for field ParamsResponse", wireType)
  1654  			}
  1655  			var msglen int
  1656  			for shift := uint(0); ; shift += 7 {
  1657  				if shift >= 64 {
  1658  					return ErrIntOverflowTypes
  1659  				}
  1660  				if iNdEx >= l {
  1661  					return io.ErrUnexpectedEOF
  1662  				}
  1663  				b := dAtA[iNdEx]
  1664  				iNdEx++
  1665  				msglen |= int(b&0x7F) << shift
  1666  				if b < 0x80 {
  1667  					break
  1668  				}
  1669  			}
  1670  			if msglen < 0 {
  1671  				return ErrInvalidLengthTypes
  1672  			}
  1673  			postIndex := iNdEx + msglen
  1674  			if postIndex < 0 {
  1675  				return ErrInvalidLengthTypes
  1676  			}
  1677  			if postIndex > l {
  1678  				return io.ErrUnexpectedEOF
  1679  			}
  1680  			v := &ParamsResponse{}
  1681  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1682  				return err
  1683  			}
  1684  			m.Sum = &Message_ParamsResponse{v}
  1685  			iNdEx = postIndex
  1686  		default:
  1687  			iNdEx = preIndex
  1688  			skippy, err := skipTypes(dAtA[iNdEx:])
  1689  			if err != nil {
  1690  				return err
  1691  			}
  1692  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1693  				return ErrInvalidLengthTypes
  1694  			}
  1695  			if (iNdEx + skippy) > l {
  1696  				return io.ErrUnexpectedEOF
  1697  			}
  1698  			iNdEx += skippy
  1699  		}
  1700  	}
  1701  
  1702  	if iNdEx > l {
  1703  		return io.ErrUnexpectedEOF
  1704  	}
  1705  	return nil
  1706  }
  1707  func (m *MetadataRequest) Unmarshal(dAtA []byte) error {
  1708  	l := len(dAtA)
  1709  	iNdEx := 0
  1710  	for iNdEx < l {
  1711  		preIndex := iNdEx
  1712  		var wire uint64
  1713  		for shift := uint(0); ; shift += 7 {
  1714  			if shift >= 64 {
  1715  				return ErrIntOverflowTypes
  1716  			}
  1717  			if iNdEx >= l {
  1718  				return io.ErrUnexpectedEOF
  1719  			}
  1720  			b := dAtA[iNdEx]
  1721  			iNdEx++
  1722  			wire |= uint64(b&0x7F) << shift
  1723  			if b < 0x80 {
  1724  				break
  1725  			}
  1726  		}
  1727  		fieldNum := int32(wire >> 3)
  1728  		wireType := int(wire & 0x7)
  1729  		if wireType == 4 {
  1730  			return fmt.Errorf("proto: MetadataRequest: wiretype end group for non-group")
  1731  		}
  1732  		if fieldNum <= 0 {
  1733  			return fmt.Errorf("proto: MetadataRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1734  		}
  1735  		switch fieldNum {
  1736  		default:
  1737  			iNdEx = preIndex
  1738  			skippy, err := skipTypes(dAtA[iNdEx:])
  1739  			if err != nil {
  1740  				return err
  1741  			}
  1742  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1743  				return ErrInvalidLengthTypes
  1744  			}
  1745  			if (iNdEx + skippy) > l {
  1746  				return io.ErrUnexpectedEOF
  1747  			}
  1748  			iNdEx += skippy
  1749  		}
  1750  	}
  1751  
  1752  	if iNdEx > l {
  1753  		return io.ErrUnexpectedEOF
  1754  	}
  1755  	return nil
  1756  }
  1757  func (m *MetadataResponse) Unmarshal(dAtA []byte) error {
  1758  	l := len(dAtA)
  1759  	iNdEx := 0
  1760  	for iNdEx < l {
  1761  		preIndex := iNdEx
  1762  		var wire uint64
  1763  		for shift := uint(0); ; shift += 7 {
  1764  			if shift >= 64 {
  1765  				return ErrIntOverflowTypes
  1766  			}
  1767  			if iNdEx >= l {
  1768  				return io.ErrUnexpectedEOF
  1769  			}
  1770  			b := dAtA[iNdEx]
  1771  			iNdEx++
  1772  			wire |= uint64(b&0x7F) << shift
  1773  			if b < 0x80 {
  1774  				break
  1775  			}
  1776  		}
  1777  		fieldNum := int32(wire >> 3)
  1778  		wireType := int(wire & 0x7)
  1779  		if wireType == 4 {
  1780  			return fmt.Errorf("proto: MetadataResponse: wiretype end group for non-group")
  1781  		}
  1782  		if fieldNum <= 0 {
  1783  			return fmt.Errorf("proto: MetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1784  		}
  1785  		switch fieldNum {
  1786  		case 1:
  1787  			if wireType != 0 {
  1788  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  1789  			}
  1790  			m.Height = 0
  1791  			for shift := uint(0); ; shift += 7 {
  1792  				if shift >= 64 {
  1793  					return ErrIntOverflowTypes
  1794  				}
  1795  				if iNdEx >= l {
  1796  					return io.ErrUnexpectedEOF
  1797  				}
  1798  				b := dAtA[iNdEx]
  1799  				iNdEx++
  1800  				m.Height |= uint64(b&0x7F) << shift
  1801  				if b < 0x80 {
  1802  					break
  1803  				}
  1804  			}
  1805  		case 2:
  1806  			if wireType != 2 {
  1807  				return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  1808  			}
  1809  			var byteLen int
  1810  			for shift := uint(0); ; shift += 7 {
  1811  				if shift >= 64 {
  1812  					return ErrIntOverflowTypes
  1813  				}
  1814  				if iNdEx >= l {
  1815  					return io.ErrUnexpectedEOF
  1816  				}
  1817  				b := dAtA[iNdEx]
  1818  				iNdEx++
  1819  				byteLen |= int(b&0x7F) << shift
  1820  				if b < 0x80 {
  1821  					break
  1822  				}
  1823  			}
  1824  			if byteLen < 0 {
  1825  				return ErrInvalidLengthTypes
  1826  			}
  1827  			postIndex := iNdEx + byteLen
  1828  			if postIndex < 0 {
  1829  				return ErrInvalidLengthTypes
  1830  			}
  1831  			if postIndex > l {
  1832  				return io.ErrUnexpectedEOF
  1833  			}
  1834  			m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  1835  			if m.Hash == nil {
  1836  				m.Hash = []byte{}
  1837  			}
  1838  			iNdEx = postIndex
  1839  		case 3:
  1840  			if wireType != 2 {
  1841  				return fmt.Errorf("proto: wrong wireType = %d for field Filenames", wireType)
  1842  			}
  1843  			var stringLen uint64
  1844  			for shift := uint(0); ; shift += 7 {
  1845  				if shift >= 64 {
  1846  					return ErrIntOverflowTypes
  1847  				}
  1848  				if iNdEx >= l {
  1849  					return io.ErrUnexpectedEOF
  1850  				}
  1851  				b := dAtA[iNdEx]
  1852  				iNdEx++
  1853  				stringLen |= uint64(b&0x7F) << shift
  1854  				if b < 0x80 {
  1855  					break
  1856  				}
  1857  			}
  1858  			intStringLen := int(stringLen)
  1859  			if intStringLen < 0 {
  1860  				return ErrInvalidLengthTypes
  1861  			}
  1862  			postIndex := iNdEx + intStringLen
  1863  			if postIndex < 0 {
  1864  				return ErrInvalidLengthTypes
  1865  			}
  1866  			if postIndex > l {
  1867  				return io.ErrUnexpectedEOF
  1868  			}
  1869  			m.Filenames = append(m.Filenames, string(dAtA[iNdEx:postIndex]))
  1870  			iNdEx = postIndex
  1871  		case 4:
  1872  			if wireType != 2 {
  1873  				return fmt.Errorf("proto: wrong wireType = %d for field Md5Checksum", wireType)
  1874  			}
  1875  			var byteLen int
  1876  			for shift := uint(0); ; shift += 7 {
  1877  				if shift >= 64 {
  1878  					return ErrIntOverflowTypes
  1879  				}
  1880  				if iNdEx >= l {
  1881  					return io.ErrUnexpectedEOF
  1882  				}
  1883  				b := dAtA[iNdEx]
  1884  				iNdEx++
  1885  				byteLen |= int(b&0x7F) << shift
  1886  				if b < 0x80 {
  1887  					break
  1888  				}
  1889  			}
  1890  			if byteLen < 0 {
  1891  				return ErrInvalidLengthTypes
  1892  			}
  1893  			postIndex := iNdEx + byteLen
  1894  			if postIndex < 0 {
  1895  				return ErrInvalidLengthTypes
  1896  			}
  1897  			if postIndex > l {
  1898  				return io.ErrUnexpectedEOF
  1899  			}
  1900  			m.Md5Checksum = append(m.Md5Checksum, make([]byte, postIndex-iNdEx))
  1901  			copy(m.Md5Checksum[len(m.Md5Checksum)-1], dAtA[iNdEx:postIndex])
  1902  			iNdEx = postIndex
  1903  		default:
  1904  			iNdEx = preIndex
  1905  			skippy, err := skipTypes(dAtA[iNdEx:])
  1906  			if err != nil {
  1907  				return err
  1908  			}
  1909  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1910  				return ErrInvalidLengthTypes
  1911  			}
  1912  			if (iNdEx + skippy) > l {
  1913  				return io.ErrUnexpectedEOF
  1914  			}
  1915  			iNdEx += skippy
  1916  		}
  1917  	}
  1918  
  1919  	if iNdEx > l {
  1920  		return io.ErrUnexpectedEOF
  1921  	}
  1922  	return nil
  1923  }
  1924  func (m *FileRequest) Unmarshal(dAtA []byte) error {
  1925  	l := len(dAtA)
  1926  	iNdEx := 0
  1927  	for iNdEx < l {
  1928  		preIndex := iNdEx
  1929  		var wire uint64
  1930  		for shift := uint(0); ; shift += 7 {
  1931  			if shift >= 64 {
  1932  				return ErrIntOverflowTypes
  1933  			}
  1934  			if iNdEx >= l {
  1935  				return io.ErrUnexpectedEOF
  1936  			}
  1937  			b := dAtA[iNdEx]
  1938  			iNdEx++
  1939  			wire |= uint64(b&0x7F) << shift
  1940  			if b < 0x80 {
  1941  				break
  1942  			}
  1943  		}
  1944  		fieldNum := int32(wire >> 3)
  1945  		wireType := int(wire & 0x7)
  1946  		if wireType == 4 {
  1947  			return fmt.Errorf("proto: FileRequest: wiretype end group for non-group")
  1948  		}
  1949  		if fieldNum <= 0 {
  1950  			return fmt.Errorf("proto: FileRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1951  		}
  1952  		switch fieldNum {
  1953  		case 1:
  1954  			if wireType != 0 {
  1955  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  1956  			}
  1957  			m.Height = 0
  1958  			for shift := uint(0); ; shift += 7 {
  1959  				if shift >= 64 {
  1960  					return ErrIntOverflowTypes
  1961  				}
  1962  				if iNdEx >= l {
  1963  					return io.ErrUnexpectedEOF
  1964  				}
  1965  				b := dAtA[iNdEx]
  1966  				iNdEx++
  1967  				m.Height |= uint64(b&0x7F) << shift
  1968  				if b < 0x80 {
  1969  					break
  1970  				}
  1971  			}
  1972  		case 2:
  1973  			if wireType != 2 {
  1974  				return fmt.Errorf("proto: wrong wireType = %d for field Filename", wireType)
  1975  			}
  1976  			var stringLen uint64
  1977  			for shift := uint(0); ; shift += 7 {
  1978  				if shift >= 64 {
  1979  					return ErrIntOverflowTypes
  1980  				}
  1981  				if iNdEx >= l {
  1982  					return io.ErrUnexpectedEOF
  1983  				}
  1984  				b := dAtA[iNdEx]
  1985  				iNdEx++
  1986  				stringLen |= uint64(b&0x7F) << shift
  1987  				if b < 0x80 {
  1988  					break
  1989  				}
  1990  			}
  1991  			intStringLen := int(stringLen)
  1992  			if intStringLen < 0 {
  1993  				return ErrInvalidLengthTypes
  1994  			}
  1995  			postIndex := iNdEx + intStringLen
  1996  			if postIndex < 0 {
  1997  				return ErrInvalidLengthTypes
  1998  			}
  1999  			if postIndex > l {
  2000  				return io.ErrUnexpectedEOF
  2001  			}
  2002  			m.Filename = string(dAtA[iNdEx:postIndex])
  2003  			iNdEx = postIndex
  2004  		default:
  2005  			iNdEx = preIndex
  2006  			skippy, err := skipTypes(dAtA[iNdEx:])
  2007  			if err != nil {
  2008  				return err
  2009  			}
  2010  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2011  				return ErrInvalidLengthTypes
  2012  			}
  2013  			if (iNdEx + skippy) > l {
  2014  				return io.ErrUnexpectedEOF
  2015  			}
  2016  			iNdEx += skippy
  2017  		}
  2018  	}
  2019  
  2020  	if iNdEx > l {
  2021  		return io.ErrUnexpectedEOF
  2022  	}
  2023  	return nil
  2024  }
  2025  func (m *FileResponse) Unmarshal(dAtA []byte) error {
  2026  	l := len(dAtA)
  2027  	iNdEx := 0
  2028  	for iNdEx < l {
  2029  		preIndex := iNdEx
  2030  		var wire uint64
  2031  		for shift := uint(0); ; shift += 7 {
  2032  			if shift >= 64 {
  2033  				return ErrIntOverflowTypes
  2034  			}
  2035  			if iNdEx >= l {
  2036  				return io.ErrUnexpectedEOF
  2037  			}
  2038  			b := dAtA[iNdEx]
  2039  			iNdEx++
  2040  			wire |= uint64(b&0x7F) << shift
  2041  			if b < 0x80 {
  2042  				break
  2043  			}
  2044  		}
  2045  		fieldNum := int32(wire >> 3)
  2046  		wireType := int(wire & 0x7)
  2047  		if wireType == 4 {
  2048  			return fmt.Errorf("proto: FileResponse: wiretype end group for non-group")
  2049  		}
  2050  		if fieldNum <= 0 {
  2051  			return fmt.Errorf("proto: FileResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2052  		}
  2053  		switch fieldNum {
  2054  		case 1:
  2055  			if wireType != 0 {
  2056  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  2057  			}
  2058  			m.Height = 0
  2059  			for shift := uint(0); ; shift += 7 {
  2060  				if shift >= 64 {
  2061  					return ErrIntOverflowTypes
  2062  				}
  2063  				if iNdEx >= l {
  2064  					return io.ErrUnexpectedEOF
  2065  				}
  2066  				b := dAtA[iNdEx]
  2067  				iNdEx++
  2068  				m.Height |= uint64(b&0x7F) << shift
  2069  				if b < 0x80 {
  2070  					break
  2071  				}
  2072  			}
  2073  		case 2:
  2074  			if wireType != 2 {
  2075  				return fmt.Errorf("proto: wrong wireType = %d for field Filename", wireType)
  2076  			}
  2077  			var stringLen uint64
  2078  			for shift := uint(0); ; shift += 7 {
  2079  				if shift >= 64 {
  2080  					return ErrIntOverflowTypes
  2081  				}
  2082  				if iNdEx >= l {
  2083  					return io.ErrUnexpectedEOF
  2084  				}
  2085  				b := dAtA[iNdEx]
  2086  				iNdEx++
  2087  				stringLen |= uint64(b&0x7F) << shift
  2088  				if b < 0x80 {
  2089  					break
  2090  				}
  2091  			}
  2092  			intStringLen := int(stringLen)
  2093  			if intStringLen < 0 {
  2094  				return ErrInvalidLengthTypes
  2095  			}
  2096  			postIndex := iNdEx + intStringLen
  2097  			if postIndex < 0 {
  2098  				return ErrInvalidLengthTypes
  2099  			}
  2100  			if postIndex > l {
  2101  				return io.ErrUnexpectedEOF
  2102  			}
  2103  			m.Filename = string(dAtA[iNdEx:postIndex])
  2104  			iNdEx = postIndex
  2105  		case 3:
  2106  			if wireType != 2 {
  2107  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  2108  			}
  2109  			var byteLen int
  2110  			for shift := uint(0); ; shift += 7 {
  2111  				if shift >= 64 {
  2112  					return ErrIntOverflowTypes
  2113  				}
  2114  				if iNdEx >= l {
  2115  					return io.ErrUnexpectedEOF
  2116  				}
  2117  				b := dAtA[iNdEx]
  2118  				iNdEx++
  2119  				byteLen |= int(b&0x7F) << shift
  2120  				if b < 0x80 {
  2121  					break
  2122  				}
  2123  			}
  2124  			if byteLen < 0 {
  2125  				return ErrInvalidLengthTypes
  2126  			}
  2127  			postIndex := iNdEx + byteLen
  2128  			if postIndex < 0 {
  2129  				return ErrInvalidLengthTypes
  2130  			}
  2131  			if postIndex > l {
  2132  				return io.ErrUnexpectedEOF
  2133  			}
  2134  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  2135  			if m.Data == nil {
  2136  				m.Data = []byte{}
  2137  			}
  2138  			iNdEx = postIndex
  2139  		default:
  2140  			iNdEx = preIndex
  2141  			skippy, err := skipTypes(dAtA[iNdEx:])
  2142  			if err != nil {
  2143  				return err
  2144  			}
  2145  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2146  				return ErrInvalidLengthTypes
  2147  			}
  2148  			if (iNdEx + skippy) > l {
  2149  				return io.ErrUnexpectedEOF
  2150  			}
  2151  			iNdEx += skippy
  2152  		}
  2153  	}
  2154  
  2155  	if iNdEx > l {
  2156  		return io.ErrUnexpectedEOF
  2157  	}
  2158  	return nil
  2159  }
  2160  func (m *LightBlockRequest) Unmarshal(dAtA []byte) error {
  2161  	l := len(dAtA)
  2162  	iNdEx := 0
  2163  	for iNdEx < l {
  2164  		preIndex := iNdEx
  2165  		var wire uint64
  2166  		for shift := uint(0); ; shift += 7 {
  2167  			if shift >= 64 {
  2168  				return ErrIntOverflowTypes
  2169  			}
  2170  			if iNdEx >= l {
  2171  				return io.ErrUnexpectedEOF
  2172  			}
  2173  			b := dAtA[iNdEx]
  2174  			iNdEx++
  2175  			wire |= uint64(b&0x7F) << shift
  2176  			if b < 0x80 {
  2177  				break
  2178  			}
  2179  		}
  2180  		fieldNum := int32(wire >> 3)
  2181  		wireType := int(wire & 0x7)
  2182  		if wireType == 4 {
  2183  			return fmt.Errorf("proto: LightBlockRequest: wiretype end group for non-group")
  2184  		}
  2185  		if fieldNum <= 0 {
  2186  			return fmt.Errorf("proto: LightBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2187  		}
  2188  		switch fieldNum {
  2189  		case 1:
  2190  			if wireType != 0 {
  2191  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  2192  			}
  2193  			m.Height = 0
  2194  			for shift := uint(0); ; shift += 7 {
  2195  				if shift >= 64 {
  2196  					return ErrIntOverflowTypes
  2197  				}
  2198  				if iNdEx >= l {
  2199  					return io.ErrUnexpectedEOF
  2200  				}
  2201  				b := dAtA[iNdEx]
  2202  				iNdEx++
  2203  				m.Height |= uint64(b&0x7F) << shift
  2204  				if b < 0x80 {
  2205  					break
  2206  				}
  2207  			}
  2208  		default:
  2209  			iNdEx = preIndex
  2210  			skippy, err := skipTypes(dAtA[iNdEx:])
  2211  			if err != nil {
  2212  				return err
  2213  			}
  2214  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2215  				return ErrInvalidLengthTypes
  2216  			}
  2217  			if (iNdEx + skippy) > l {
  2218  				return io.ErrUnexpectedEOF
  2219  			}
  2220  			iNdEx += skippy
  2221  		}
  2222  	}
  2223  
  2224  	if iNdEx > l {
  2225  		return io.ErrUnexpectedEOF
  2226  	}
  2227  	return nil
  2228  }
  2229  func (m *LightBlockResponse) Unmarshal(dAtA []byte) error {
  2230  	l := len(dAtA)
  2231  	iNdEx := 0
  2232  	for iNdEx < l {
  2233  		preIndex := iNdEx
  2234  		var wire uint64
  2235  		for shift := uint(0); ; shift += 7 {
  2236  			if shift >= 64 {
  2237  				return ErrIntOverflowTypes
  2238  			}
  2239  			if iNdEx >= l {
  2240  				return io.ErrUnexpectedEOF
  2241  			}
  2242  			b := dAtA[iNdEx]
  2243  			iNdEx++
  2244  			wire |= uint64(b&0x7F) << shift
  2245  			if b < 0x80 {
  2246  				break
  2247  			}
  2248  		}
  2249  		fieldNum := int32(wire >> 3)
  2250  		wireType := int(wire & 0x7)
  2251  		if wireType == 4 {
  2252  			return fmt.Errorf("proto: LightBlockResponse: wiretype end group for non-group")
  2253  		}
  2254  		if fieldNum <= 0 {
  2255  			return fmt.Errorf("proto: LightBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2256  		}
  2257  		switch fieldNum {
  2258  		case 1:
  2259  			if wireType != 2 {
  2260  				return fmt.Errorf("proto: wrong wireType = %d for field LightBlock", wireType)
  2261  			}
  2262  			var msglen int
  2263  			for shift := uint(0); ; shift += 7 {
  2264  				if shift >= 64 {
  2265  					return ErrIntOverflowTypes
  2266  				}
  2267  				if iNdEx >= l {
  2268  					return io.ErrUnexpectedEOF
  2269  				}
  2270  				b := dAtA[iNdEx]
  2271  				iNdEx++
  2272  				msglen |= int(b&0x7F) << shift
  2273  				if b < 0x80 {
  2274  					break
  2275  				}
  2276  			}
  2277  			if msglen < 0 {
  2278  				return ErrInvalidLengthTypes
  2279  			}
  2280  			postIndex := iNdEx + msglen
  2281  			if postIndex < 0 {
  2282  				return ErrInvalidLengthTypes
  2283  			}
  2284  			if postIndex > l {
  2285  				return io.ErrUnexpectedEOF
  2286  			}
  2287  			if m.LightBlock == nil {
  2288  				m.LightBlock = &types.LightBlock{}
  2289  			}
  2290  			if err := m.LightBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2291  				return err
  2292  			}
  2293  			iNdEx = postIndex
  2294  		default:
  2295  			iNdEx = preIndex
  2296  			skippy, err := skipTypes(dAtA[iNdEx:])
  2297  			if err != nil {
  2298  				return err
  2299  			}
  2300  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2301  				return ErrInvalidLengthTypes
  2302  			}
  2303  			if (iNdEx + skippy) > l {
  2304  				return io.ErrUnexpectedEOF
  2305  			}
  2306  			iNdEx += skippy
  2307  		}
  2308  	}
  2309  
  2310  	if iNdEx > l {
  2311  		return io.ErrUnexpectedEOF
  2312  	}
  2313  	return nil
  2314  }
  2315  func (m *ParamsRequest) Unmarshal(dAtA []byte) error {
  2316  	l := len(dAtA)
  2317  	iNdEx := 0
  2318  	for iNdEx < l {
  2319  		preIndex := iNdEx
  2320  		var wire uint64
  2321  		for shift := uint(0); ; shift += 7 {
  2322  			if shift >= 64 {
  2323  				return ErrIntOverflowTypes
  2324  			}
  2325  			if iNdEx >= l {
  2326  				return io.ErrUnexpectedEOF
  2327  			}
  2328  			b := dAtA[iNdEx]
  2329  			iNdEx++
  2330  			wire |= uint64(b&0x7F) << shift
  2331  			if b < 0x80 {
  2332  				break
  2333  			}
  2334  		}
  2335  		fieldNum := int32(wire >> 3)
  2336  		wireType := int(wire & 0x7)
  2337  		if wireType == 4 {
  2338  			return fmt.Errorf("proto: ParamsRequest: wiretype end group for non-group")
  2339  		}
  2340  		if fieldNum <= 0 {
  2341  			return fmt.Errorf("proto: ParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2342  		}
  2343  		switch fieldNum {
  2344  		case 1:
  2345  			if wireType != 0 {
  2346  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  2347  			}
  2348  			m.Height = 0
  2349  			for shift := uint(0); ; shift += 7 {
  2350  				if shift >= 64 {
  2351  					return ErrIntOverflowTypes
  2352  				}
  2353  				if iNdEx >= l {
  2354  					return io.ErrUnexpectedEOF
  2355  				}
  2356  				b := dAtA[iNdEx]
  2357  				iNdEx++
  2358  				m.Height |= uint64(b&0x7F) << shift
  2359  				if b < 0x80 {
  2360  					break
  2361  				}
  2362  			}
  2363  		default:
  2364  			iNdEx = preIndex
  2365  			skippy, err := skipTypes(dAtA[iNdEx:])
  2366  			if err != nil {
  2367  				return err
  2368  			}
  2369  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2370  				return ErrInvalidLengthTypes
  2371  			}
  2372  			if (iNdEx + skippy) > l {
  2373  				return io.ErrUnexpectedEOF
  2374  			}
  2375  			iNdEx += skippy
  2376  		}
  2377  	}
  2378  
  2379  	if iNdEx > l {
  2380  		return io.ErrUnexpectedEOF
  2381  	}
  2382  	return nil
  2383  }
  2384  func (m *ParamsResponse) Unmarshal(dAtA []byte) error {
  2385  	l := len(dAtA)
  2386  	iNdEx := 0
  2387  	for iNdEx < l {
  2388  		preIndex := iNdEx
  2389  		var wire uint64
  2390  		for shift := uint(0); ; shift += 7 {
  2391  			if shift >= 64 {
  2392  				return ErrIntOverflowTypes
  2393  			}
  2394  			if iNdEx >= l {
  2395  				return io.ErrUnexpectedEOF
  2396  			}
  2397  			b := dAtA[iNdEx]
  2398  			iNdEx++
  2399  			wire |= uint64(b&0x7F) << shift
  2400  			if b < 0x80 {
  2401  				break
  2402  			}
  2403  		}
  2404  		fieldNum := int32(wire >> 3)
  2405  		wireType := int(wire & 0x7)
  2406  		if wireType == 4 {
  2407  			return fmt.Errorf("proto: ParamsResponse: wiretype end group for non-group")
  2408  		}
  2409  		if fieldNum <= 0 {
  2410  			return fmt.Errorf("proto: ParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2411  		}
  2412  		switch fieldNum {
  2413  		case 1:
  2414  			if wireType != 0 {
  2415  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  2416  			}
  2417  			m.Height = 0
  2418  			for shift := uint(0); ; shift += 7 {
  2419  				if shift >= 64 {
  2420  					return ErrIntOverflowTypes
  2421  				}
  2422  				if iNdEx >= l {
  2423  					return io.ErrUnexpectedEOF
  2424  				}
  2425  				b := dAtA[iNdEx]
  2426  				iNdEx++
  2427  				m.Height |= uint64(b&0x7F) << shift
  2428  				if b < 0x80 {
  2429  					break
  2430  				}
  2431  			}
  2432  		case 2:
  2433  			if wireType != 2 {
  2434  				return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType)
  2435  			}
  2436  			var msglen int
  2437  			for shift := uint(0); ; shift += 7 {
  2438  				if shift >= 64 {
  2439  					return ErrIntOverflowTypes
  2440  				}
  2441  				if iNdEx >= l {
  2442  					return io.ErrUnexpectedEOF
  2443  				}
  2444  				b := dAtA[iNdEx]
  2445  				iNdEx++
  2446  				msglen |= int(b&0x7F) << shift
  2447  				if b < 0x80 {
  2448  					break
  2449  				}
  2450  			}
  2451  			if msglen < 0 {
  2452  				return ErrInvalidLengthTypes
  2453  			}
  2454  			postIndex := iNdEx + msglen
  2455  			if postIndex < 0 {
  2456  				return ErrInvalidLengthTypes
  2457  			}
  2458  			if postIndex > l {
  2459  				return io.ErrUnexpectedEOF
  2460  			}
  2461  			if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2462  				return err
  2463  			}
  2464  			iNdEx = postIndex
  2465  		default:
  2466  			iNdEx = preIndex
  2467  			skippy, err := skipTypes(dAtA[iNdEx:])
  2468  			if err != nil {
  2469  				return err
  2470  			}
  2471  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2472  				return ErrInvalidLengthTypes
  2473  			}
  2474  			if (iNdEx + skippy) > l {
  2475  				return io.ErrUnexpectedEOF
  2476  			}
  2477  			iNdEx += skippy
  2478  		}
  2479  	}
  2480  
  2481  	if iNdEx > l {
  2482  		return io.ErrUnexpectedEOF
  2483  	}
  2484  	return nil
  2485  }
  2486  func skipTypes(dAtA []byte) (n int, err error) {
  2487  	l := len(dAtA)
  2488  	iNdEx := 0
  2489  	depth := 0
  2490  	for iNdEx < l {
  2491  		var wire uint64
  2492  		for shift := uint(0); ; shift += 7 {
  2493  			if shift >= 64 {
  2494  				return 0, ErrIntOverflowTypes
  2495  			}
  2496  			if iNdEx >= l {
  2497  				return 0, io.ErrUnexpectedEOF
  2498  			}
  2499  			b := dAtA[iNdEx]
  2500  			iNdEx++
  2501  			wire |= (uint64(b) & 0x7F) << shift
  2502  			if b < 0x80 {
  2503  				break
  2504  			}
  2505  		}
  2506  		wireType := int(wire & 0x7)
  2507  		switch wireType {
  2508  		case 0:
  2509  			for shift := uint(0); ; shift += 7 {
  2510  				if shift >= 64 {
  2511  					return 0, ErrIntOverflowTypes
  2512  				}
  2513  				if iNdEx >= l {
  2514  					return 0, io.ErrUnexpectedEOF
  2515  				}
  2516  				iNdEx++
  2517  				if dAtA[iNdEx-1] < 0x80 {
  2518  					break
  2519  				}
  2520  			}
  2521  		case 1:
  2522  			iNdEx += 8
  2523  		case 2:
  2524  			var length int
  2525  			for shift := uint(0); ; shift += 7 {
  2526  				if shift >= 64 {
  2527  					return 0, ErrIntOverflowTypes
  2528  				}
  2529  				if iNdEx >= l {
  2530  					return 0, io.ErrUnexpectedEOF
  2531  				}
  2532  				b := dAtA[iNdEx]
  2533  				iNdEx++
  2534  				length |= (int(b) & 0x7F) << shift
  2535  				if b < 0x80 {
  2536  					break
  2537  				}
  2538  			}
  2539  			if length < 0 {
  2540  				return 0, ErrInvalidLengthTypes
  2541  			}
  2542  			iNdEx += length
  2543  		case 3:
  2544  			depth++
  2545  		case 4:
  2546  			if depth == 0 {
  2547  				return 0, ErrUnexpectedEndOfGroupTypes
  2548  			}
  2549  			depth--
  2550  		case 5:
  2551  			iNdEx += 4
  2552  		default:
  2553  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2554  		}
  2555  		if iNdEx < 0 {
  2556  			return 0, ErrInvalidLengthTypes
  2557  		}
  2558  		if depth == 0 {
  2559  			return iNdEx, nil
  2560  		}
  2561  	}
  2562  	return 0, io.ErrUnexpectedEOF
  2563  }
  2564  
  2565  var (
  2566  	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
  2567  	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
  2568  	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
  2569  )