github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/cdc/model/sink_gen.go (about)

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