github.com/matrixorigin/matrixone@v1.2.0/pkg/pb/api/api.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: api.proto
     3  
     4  package api
     5  
     6  import (
     7  	fmt "fmt"
     8  	io "io"
     9  	math "math"
    10  	math_bits "math/bits"
    11  
    12  	_ "github.com/gogo/protobuf/gogoproto"
    13  	proto "github.com/gogo/protobuf/proto"
    14  	plan "github.com/matrixorigin/matrixone/pkg/pb/plan"
    15  	timestamp "github.com/matrixorigin/matrixone/pkg/pb/timestamp"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  type OpCode int32
    30  
    31  const (
    32  	OpCode_Nop                OpCode = 0
    33  	OpCode_OpGetLogTail       OpCode = 1000
    34  	OpCode_OpPreCommit        OpCode = 1001
    35  	OpCode_OpPing             OpCode = 2000
    36  	OpCode_OpFlush            OpCode = 2001
    37  	OpCode_OpCheckpoint       OpCode = 2003
    38  	OpCode_OpInspect          OpCode = 2004
    39  	OpCode_OpAddFaultPoint    OpCode = 2005
    40  	OpCode_OpBackup           OpCode = 2006
    41  	OpCode_OpTraceSpan        OpCode = 2007
    42  	OpCode_OpStorageUsage     OpCode = 2008
    43  	OpCode_OpGlobalCheckpoint OpCode = 2009
    44  	OpCode_OpInterceptCommit  OpCode = 2010
    45  	OpCode_OpCommitMerge      OpCode = 2011
    46  )
    47  
    48  var OpCode_name = map[int32]string{
    49  	0:    "Nop",
    50  	1000: "OpGetLogTail",
    51  	1001: "OpPreCommit",
    52  	2000: "OpPing",
    53  	2001: "OpFlush",
    54  	2003: "OpCheckpoint",
    55  	2004: "OpInspect",
    56  	2005: "OpAddFaultPoint",
    57  	2006: "OpBackup",
    58  	2007: "OpTraceSpan",
    59  	2008: "OpStorageUsage",
    60  	2009: "OpGlobalCheckpoint",
    61  	2010: "OpInterceptCommit",
    62  	2011: "OpCommitMerge",
    63  }
    64  
    65  var OpCode_value = map[string]int32{
    66  	"Nop":                0,
    67  	"OpGetLogTail":       1000,
    68  	"OpPreCommit":        1001,
    69  	"OpPing":             2000,
    70  	"OpFlush":            2001,
    71  	"OpCheckpoint":       2003,
    72  	"OpInspect":          2004,
    73  	"OpAddFaultPoint":    2005,
    74  	"OpBackup":           2006,
    75  	"OpTraceSpan":        2007,
    76  	"OpStorageUsage":     2008,
    77  	"OpGlobalCheckpoint": 2009,
    78  	"OpInterceptCommit":  2010,
    79  	"OpCommitMerge":      2011,
    80  }
    81  
    82  func (x OpCode) String() string {
    83  	return proto.EnumName(OpCode_name, int32(x))
    84  }
    85  
    86  func (OpCode) EnumDescriptor() ([]byte, []int) {
    87  	return fileDescriptor_00212fb1f9d3bf1c, []int{0}
    88  }
    89  
    90  type AlterKind int32
    91  
    92  const (
    93  	AlterKind_Invalid          AlterKind = 0
    94  	AlterKind_AddColumn        AlterKind = 1
    95  	AlterKind_DropColumn       AlterKind = 2
    96  	AlterKind_RenameTable      AlterKind = 3
    97  	AlterKind_UpdateComment    AlterKind = 4
    98  	AlterKind_UpdateConstraint AlterKind = 5
    99  	AlterKind_UpdatePolicy     AlterKind = 6
   100  	AlterKind_AddPartition     AlterKind = 7
   101  	AlterKind_RenameColumn     AlterKind = 8
   102  )
   103  
   104  var AlterKind_name = map[int32]string{
   105  	0: "Invalid",
   106  	1: "AddColumn",
   107  	2: "DropColumn",
   108  	3: "RenameTable",
   109  	4: "UpdateComment",
   110  	5: "UpdateConstraint",
   111  	6: "UpdatePolicy",
   112  	7: "AddPartition",
   113  	8: "RenameColumn",
   114  }
   115  
   116  var AlterKind_value = map[string]int32{
   117  	"Invalid":          0,
   118  	"AddColumn":        1,
   119  	"DropColumn":       2,
   120  	"RenameTable":      3,
   121  	"UpdateComment":    4,
   122  	"UpdateConstraint": 5,
   123  	"UpdatePolicy":     6,
   124  	"AddPartition":     7,
   125  	"RenameColumn":     8,
   126  }
   127  
   128  func (x AlterKind) String() string {
   129  	return proto.EnumName(AlterKind_name, int32(x))
   130  }
   131  
   132  func (AlterKind) EnumDescriptor() ([]byte, []int) {
   133  	return fileDescriptor_00212fb1f9d3bf1c, []int{1}
   134  }
   135  
   136  type MergeHint int32
   137  
   138  const (
   139  	MergeHint_Auto            MergeHint = 0
   140  	MergeHint_NoDeletes       MergeHint = 1
   141  	MergeHint_BigTable        MergeHint = 2
   142  	MergeHint_ContinuousWrite MergeHint = 3
   143  )
   144  
   145  var MergeHint_name = map[int32]string{
   146  	0: "Auto",
   147  	1: "NoDeletes",
   148  	2: "BigTable",
   149  	3: "ContinuousWrite",
   150  }
   151  
   152  var MergeHint_value = map[string]int32{
   153  	"Auto":            0,
   154  	"NoDeletes":       1,
   155  	"BigTable":        2,
   156  	"ContinuousWrite": 3,
   157  }
   158  
   159  func (x MergeHint) String() string {
   160  	return proto.EnumName(MergeHint_name, int32(x))
   161  }
   162  
   163  func (MergeHint) EnumDescriptor() ([]byte, []int) {
   164  	return fileDescriptor_00212fb1f9d3bf1c, []int{2}
   165  }
   166  
   167  type Entry_EntryType int32
   168  
   169  const (
   170  	Entry_Insert        Entry_EntryType = 0
   171  	Entry_Delete        Entry_EntryType = 1
   172  	Entry_Update        Entry_EntryType = 2
   173  	Entry_Alter         Entry_EntryType = 3
   174  	Entry_SpecialDelete Entry_EntryType = 4
   175  )
   176  
   177  var Entry_EntryType_name = map[int32]string{
   178  	0: "Insert",
   179  	1: "Delete",
   180  	2: "Update",
   181  	3: "Alter",
   182  	4: "SpecialDelete",
   183  }
   184  
   185  var Entry_EntryType_value = map[string]int32{
   186  	"Insert":        0,
   187  	"Delete":        1,
   188  	"Update":        2,
   189  	"Alter":         3,
   190  	"SpecialDelete": 4,
   191  }
   192  
   193  func (x Entry_EntryType) String() string {
   194  	return proto.EnumName(Entry_EntryType_name, int32(x))
   195  }
   196  
   197  func (Entry_EntryType) EnumDescriptor() ([]byte, []int) {
   198  	return fileDescriptor_00212fb1f9d3bf1c, []int{9, 0}
   199  }
   200  
   201  // TNPingRequest ping request
   202  type TNPingRequest struct {
   203  	Parameter            string   `protobuf:"bytes,1,opt,name=parameter,proto3" json:"parameter,omitempty"`
   204  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   205  	XXX_unrecognized     []byte   `json:"-"`
   206  	XXX_sizecache        int32    `json:"-"`
   207  }
   208  
   209  func (m *TNPingRequest) Reset()         { *m = TNPingRequest{} }
   210  func (m *TNPingRequest) String() string { return proto.CompactTextString(m) }
   211  func (*TNPingRequest) ProtoMessage()    {}
   212  func (*TNPingRequest) Descriptor() ([]byte, []int) {
   213  	return fileDescriptor_00212fb1f9d3bf1c, []int{0}
   214  }
   215  func (m *TNPingRequest) XXX_Unmarshal(b []byte) error {
   216  	return m.Unmarshal(b)
   217  }
   218  func (m *TNPingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   219  	if deterministic {
   220  		return xxx_messageInfo_TNPingRequest.Marshal(b, m, deterministic)
   221  	} else {
   222  		b = b[:cap(b)]
   223  		n, err := m.MarshalToSizedBuffer(b)
   224  		if err != nil {
   225  			return nil, err
   226  		}
   227  		return b[:n], nil
   228  	}
   229  }
   230  func (m *TNPingRequest) XXX_Merge(src proto.Message) {
   231  	xxx_messageInfo_TNPingRequest.Merge(m, src)
   232  }
   233  func (m *TNPingRequest) XXX_Size() int {
   234  	return m.Size()
   235  }
   236  func (m *TNPingRequest) XXX_DiscardUnknown() {
   237  	xxx_messageInfo_TNPingRequest.DiscardUnknown(m)
   238  }
   239  
   240  var xxx_messageInfo_TNPingRequest proto.InternalMessageInfo
   241  
   242  func (m *TNPingRequest) GetParameter() string {
   243  	if m != nil {
   244  		return m.Parameter
   245  	}
   246  	return ""
   247  }
   248  
   249  // TNPingResponse ping response
   250  type TNPingResponse struct {
   251  	StoreID              string   `protobuf:"bytes,1,opt,name=storeID,proto3" json:"storeID,omitempty"`
   252  	ServiceAddress       string   `protobuf:"bytes,2,opt,name=serviceAddress,proto3" json:"serviceAddress,omitempty"`
   253  	ShardID              uint64   `protobuf:"varint,3,opt,name=shardID,proto3" json:"shardID,omitempty"`
   254  	ReplicaID            uint64   `protobuf:"varint,4,opt,name=replicaID,proto3" json:"replicaID,omitempty"`
   255  	LogShardID           uint64   `protobuf:"varint,5,opt,name=logShardID,proto3" json:"logShardID,omitempty"`
   256  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   257  	XXX_unrecognized     []byte   `json:"-"`
   258  	XXX_sizecache        int32    `json:"-"`
   259  }
   260  
   261  func (m *TNPingResponse) Reset()         { *m = TNPingResponse{} }
   262  func (m *TNPingResponse) String() string { return proto.CompactTextString(m) }
   263  func (*TNPingResponse) ProtoMessage()    {}
   264  func (*TNPingResponse) Descriptor() ([]byte, []int) {
   265  	return fileDescriptor_00212fb1f9d3bf1c, []int{1}
   266  }
   267  func (m *TNPingResponse) XXX_Unmarshal(b []byte) error {
   268  	return m.Unmarshal(b)
   269  }
   270  func (m *TNPingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   271  	if deterministic {
   272  		return xxx_messageInfo_TNPingResponse.Marshal(b, m, deterministic)
   273  	} else {
   274  		b = b[:cap(b)]
   275  		n, err := m.MarshalToSizedBuffer(b)
   276  		if err != nil {
   277  			return nil, err
   278  		}
   279  		return b[:n], nil
   280  	}
   281  }
   282  func (m *TNPingResponse) XXX_Merge(src proto.Message) {
   283  	xxx_messageInfo_TNPingResponse.Merge(m, src)
   284  }
   285  func (m *TNPingResponse) XXX_Size() int {
   286  	return m.Size()
   287  }
   288  func (m *TNPingResponse) XXX_DiscardUnknown() {
   289  	xxx_messageInfo_TNPingResponse.DiscardUnknown(m)
   290  }
   291  
   292  var xxx_messageInfo_TNPingResponse proto.InternalMessageInfo
   293  
   294  func (m *TNPingResponse) GetStoreID() string {
   295  	if m != nil {
   296  		return m.StoreID
   297  	}
   298  	return ""
   299  }
   300  
   301  func (m *TNPingResponse) GetServiceAddress() string {
   302  	if m != nil {
   303  		return m.ServiceAddress
   304  	}
   305  	return ""
   306  }
   307  
   308  func (m *TNPingResponse) GetShardID() uint64 {
   309  	if m != nil {
   310  		return m.ShardID
   311  	}
   312  	return 0
   313  }
   314  
   315  func (m *TNPingResponse) GetReplicaID() uint64 {
   316  	if m != nil {
   317  		return m.ReplicaID
   318  	}
   319  	return 0
   320  }
   321  
   322  func (m *TNPingResponse) GetLogShardID() uint64 {
   323  	if m != nil {
   324  		return m.LogShardID
   325  	}
   326  	return 0
   327  }
   328  
   329  // TNStringResponse string type response
   330  type TNStringResponse struct {
   331  	ReturnStr            string   `protobuf:"bytes,1,opt,name=returnStr,proto3" json:"returnStr,omitempty"`
   332  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   333  	XXX_unrecognized     []byte   `json:"-"`
   334  	XXX_sizecache        int32    `json:"-"`
   335  }
   336  
   337  func (m *TNStringResponse) Reset()         { *m = TNStringResponse{} }
   338  func (m *TNStringResponse) String() string { return proto.CompactTextString(m) }
   339  func (*TNStringResponse) ProtoMessage()    {}
   340  func (*TNStringResponse) Descriptor() ([]byte, []int) {
   341  	return fileDescriptor_00212fb1f9d3bf1c, []int{2}
   342  }
   343  func (m *TNStringResponse) XXX_Unmarshal(b []byte) error {
   344  	return m.Unmarshal(b)
   345  }
   346  func (m *TNStringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   347  	if deterministic {
   348  		return xxx_messageInfo_TNStringResponse.Marshal(b, m, deterministic)
   349  	} else {
   350  		b = b[:cap(b)]
   351  		n, err := m.MarshalToSizedBuffer(b)
   352  		if err != nil {
   353  			return nil, err
   354  		}
   355  		return b[:n], nil
   356  	}
   357  }
   358  func (m *TNStringResponse) XXX_Merge(src proto.Message) {
   359  	xxx_messageInfo_TNStringResponse.Merge(m, src)
   360  }
   361  func (m *TNStringResponse) XXX_Size() int {
   362  	return m.Size()
   363  }
   364  func (m *TNStringResponse) XXX_DiscardUnknown() {
   365  	xxx_messageInfo_TNStringResponse.DiscardUnknown(m)
   366  }
   367  
   368  var xxx_messageInfo_TNStringResponse proto.InternalMessageInfo
   369  
   370  func (m *TNStringResponse) GetReturnStr() string {
   371  	if m != nil {
   372  		return m.ReturnStr
   373  	}
   374  	return ""
   375  }
   376  
   377  type Vector struct {
   378  	Data                 []byte     `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
   379  	Type                 *plan.Type `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
   380  	Nullable             bool       `protobuf:"varint,3,opt,name=nullable,proto3" json:"nullable,omitempty"`
   381  	Nsp                  []byte     `protobuf:"bytes,4,opt,name=nsp,proto3" json:"nsp,omitempty"`
   382  	IsConst              bool       `protobuf:"varint,5,opt,name=is_const,json=isConst,proto3" json:"is_const,omitempty"`
   383  	Len                  uint32     `protobuf:"varint,6,opt,name=len,proto3" json:"len,omitempty"`
   384  	Area                 []byte     `protobuf:"bytes,7,opt,name=area,proto3" json:"area,omitempty"`
   385  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
   386  	XXX_unrecognized     []byte     `json:"-"`
   387  	XXX_sizecache        int32      `json:"-"`
   388  }
   389  
   390  func (m *Vector) Reset()         { *m = Vector{} }
   391  func (m *Vector) String() string { return proto.CompactTextString(m) }
   392  func (*Vector) ProtoMessage()    {}
   393  func (*Vector) Descriptor() ([]byte, []int) {
   394  	return fileDescriptor_00212fb1f9d3bf1c, []int{3}
   395  }
   396  func (m *Vector) XXX_Unmarshal(b []byte) error {
   397  	return m.Unmarshal(b)
   398  }
   399  func (m *Vector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   400  	if deterministic {
   401  		return xxx_messageInfo_Vector.Marshal(b, m, deterministic)
   402  	} else {
   403  		b = b[:cap(b)]
   404  		n, err := m.MarshalToSizedBuffer(b)
   405  		if err != nil {
   406  			return nil, err
   407  		}
   408  		return b[:n], nil
   409  	}
   410  }
   411  func (m *Vector) XXX_Merge(src proto.Message) {
   412  	xxx_messageInfo_Vector.Merge(m, src)
   413  }
   414  func (m *Vector) XXX_Size() int {
   415  	return m.ProtoSize()
   416  }
   417  func (m *Vector) XXX_DiscardUnknown() {
   418  	xxx_messageInfo_Vector.DiscardUnknown(m)
   419  }
   420  
   421  var xxx_messageInfo_Vector proto.InternalMessageInfo
   422  
   423  func (m *Vector) GetData() []byte {
   424  	if m != nil {
   425  		return m.Data
   426  	}
   427  	return nil
   428  }
   429  
   430  func (m *Vector) GetType() *plan.Type {
   431  	if m != nil {
   432  		return m.Type
   433  	}
   434  	return nil
   435  }
   436  
   437  func (m *Vector) GetNullable() bool {
   438  	if m != nil {
   439  		return m.Nullable
   440  	}
   441  	return false
   442  }
   443  
   444  func (m *Vector) GetNsp() []byte {
   445  	if m != nil {
   446  		return m.Nsp
   447  	}
   448  	return nil
   449  }
   450  
   451  func (m *Vector) GetIsConst() bool {
   452  	if m != nil {
   453  		return m.IsConst
   454  	}
   455  	return false
   456  }
   457  
   458  func (m *Vector) GetLen() uint32 {
   459  	if m != nil {
   460  		return m.Len
   461  	}
   462  	return 0
   463  }
   464  
   465  func (m *Vector) GetArea() []byte {
   466  	if m != nil {
   467  		return m.Area
   468  	}
   469  	return nil
   470  }
   471  
   472  type Batch struct {
   473  	Attrs                []string `protobuf:"bytes,1,rep,name=attrs,proto3" json:"attrs,omitempty"`
   474  	Vecs                 []Vector `protobuf:"bytes,2,rep,name=vecs,proto3" json:"vecs"`
   475  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   476  	XXX_unrecognized     []byte   `json:"-"`
   477  	XXX_sizecache        int32    `json:"-"`
   478  }
   479  
   480  func (m *Batch) Reset()         { *m = Batch{} }
   481  func (m *Batch) String() string { return proto.CompactTextString(m) }
   482  func (*Batch) ProtoMessage()    {}
   483  func (*Batch) Descriptor() ([]byte, []int) {
   484  	return fileDescriptor_00212fb1f9d3bf1c, []int{4}
   485  }
   486  func (m *Batch) XXX_Unmarshal(b []byte) error {
   487  	return m.Unmarshal(b)
   488  }
   489  func (m *Batch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   490  	if deterministic {
   491  		return xxx_messageInfo_Batch.Marshal(b, m, deterministic)
   492  	} else {
   493  		b = b[:cap(b)]
   494  		n, err := m.MarshalToSizedBuffer(b)
   495  		if err != nil {
   496  			return nil, err
   497  		}
   498  		return b[:n], nil
   499  	}
   500  }
   501  func (m *Batch) XXX_Merge(src proto.Message) {
   502  	xxx_messageInfo_Batch.Merge(m, src)
   503  }
   504  func (m *Batch) XXX_Size() int {
   505  	return m.ProtoSize()
   506  }
   507  func (m *Batch) XXX_DiscardUnknown() {
   508  	xxx_messageInfo_Batch.DiscardUnknown(m)
   509  }
   510  
   511  var xxx_messageInfo_Batch proto.InternalMessageInfo
   512  
   513  func (m *Batch) GetAttrs() []string {
   514  	if m != nil {
   515  		return m.Attrs
   516  	}
   517  	return nil
   518  }
   519  
   520  func (m *Batch) GetVecs() []Vector {
   521  	if m != nil {
   522  		return m.Vecs
   523  	}
   524  	return nil
   525  }
   526  
   527  type TableID struct {
   528  	DbId                 uint64   `protobuf:"varint,1,opt,name=db_id,json=dbId,proto3" json:"db_id,omitempty"`
   529  	TbId                 uint64   `protobuf:"varint,2,opt,name=tb_id,json=tbId,proto3" json:"tb_id,omitempty"`
   530  	PartitionId          uint64   `protobuf:"varint,3,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"`
   531  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   532  	XXX_unrecognized     []byte   `json:"-"`
   533  	XXX_sizecache        int32    `json:"-"`
   534  }
   535  
   536  func (m *TableID) Reset()         { *m = TableID{} }
   537  func (m *TableID) String() string { return proto.CompactTextString(m) }
   538  func (*TableID) ProtoMessage()    {}
   539  func (*TableID) Descriptor() ([]byte, []int) {
   540  	return fileDescriptor_00212fb1f9d3bf1c, []int{5}
   541  }
   542  func (m *TableID) XXX_Unmarshal(b []byte) error {
   543  	return m.Unmarshal(b)
   544  }
   545  func (m *TableID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   546  	if deterministic {
   547  		return xxx_messageInfo_TableID.Marshal(b, m, deterministic)
   548  	} else {
   549  		b = b[:cap(b)]
   550  		n, err := m.MarshalToSizedBuffer(b)
   551  		if err != nil {
   552  			return nil, err
   553  		}
   554  		return b[:n], nil
   555  	}
   556  }
   557  func (m *TableID) XXX_Merge(src proto.Message) {
   558  	xxx_messageInfo_TableID.Merge(m, src)
   559  }
   560  func (m *TableID) XXX_Size() int {
   561  	return m.ProtoSize()
   562  }
   563  func (m *TableID) XXX_DiscardUnknown() {
   564  	xxx_messageInfo_TableID.DiscardUnknown(m)
   565  }
   566  
   567  var xxx_messageInfo_TableID proto.InternalMessageInfo
   568  
   569  func (m *TableID) GetDbId() uint64 {
   570  	if m != nil {
   571  		return m.DbId
   572  	}
   573  	return 0
   574  }
   575  
   576  func (m *TableID) GetTbId() uint64 {
   577  	if m != nil {
   578  		return m.TbId
   579  	}
   580  	return 0
   581  }
   582  
   583  func (m *TableID) GetPartitionId() uint64 {
   584  	if m != nil {
   585  		return m.PartitionId
   586  	}
   587  	return 0
   588  }
   589  
   590  // CN pull the log tail of table from TN.
   591  type SyncLogTailReq struct {
   592  	CnHave               *timestamp.Timestamp `protobuf:"bytes,1,opt,name=cn_have,json=cnHave,proto3" json:"cn_have,omitempty"`
   593  	CnWant               *timestamp.Timestamp `protobuf:"bytes,2,opt,name=cn_want,json=cnWant,proto3" json:"cn_want,omitempty"`
   594  	Table                *TableID             `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`
   595  	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
   596  	XXX_unrecognized     []byte               `json:"-"`
   597  	XXX_sizecache        int32                `json:"-"`
   598  }
   599  
   600  func (m *SyncLogTailReq) Reset()         { *m = SyncLogTailReq{} }
   601  func (m *SyncLogTailReq) String() string { return proto.CompactTextString(m) }
   602  func (*SyncLogTailReq) ProtoMessage()    {}
   603  func (*SyncLogTailReq) Descriptor() ([]byte, []int) {
   604  	return fileDescriptor_00212fb1f9d3bf1c, []int{6}
   605  }
   606  func (m *SyncLogTailReq) XXX_Unmarshal(b []byte) error {
   607  	return m.Unmarshal(b)
   608  }
   609  func (m *SyncLogTailReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   610  	if deterministic {
   611  		return xxx_messageInfo_SyncLogTailReq.Marshal(b, m, deterministic)
   612  	} else {
   613  		b = b[:cap(b)]
   614  		n, err := m.MarshalToSizedBuffer(b)
   615  		if err != nil {
   616  			return nil, err
   617  		}
   618  		return b[:n], nil
   619  	}
   620  }
   621  func (m *SyncLogTailReq) XXX_Merge(src proto.Message) {
   622  	xxx_messageInfo_SyncLogTailReq.Merge(m, src)
   623  }
   624  func (m *SyncLogTailReq) XXX_Size() int {
   625  	return m.ProtoSize()
   626  }
   627  func (m *SyncLogTailReq) XXX_DiscardUnknown() {
   628  	xxx_messageInfo_SyncLogTailReq.DiscardUnknown(m)
   629  }
   630  
   631  var xxx_messageInfo_SyncLogTailReq proto.InternalMessageInfo
   632  
   633  func (m *SyncLogTailReq) GetCnHave() *timestamp.Timestamp {
   634  	if m != nil {
   635  		return m.CnHave
   636  	}
   637  	return nil
   638  }
   639  
   640  func (m *SyncLogTailReq) GetCnWant() *timestamp.Timestamp {
   641  	if m != nil {
   642  		return m.CnWant
   643  	}
   644  	return nil
   645  }
   646  
   647  func (m *SyncLogTailReq) GetTable() *TableID {
   648  	if m != nil {
   649  		return m.Table
   650  	}
   651  	return nil
   652  }
   653  
   654  type SyncLogTailResp struct {
   655  	// ckp_location is a checkpoint location list.
   656  	// How to get checkpoint data on S3 by the ckp_location ,
   657  	// pls ref to disttae/logtail.go/consumeLogTail function.
   658  	CkpLocation string `protobuf:"bytes,1,opt,name=ckp_location,json=ckpLocation,proto3" json:"ckp_location,omitempty"`
   659  	// commands is log tail for a system or user table,
   660  	// pls ref to tae/logtail/handle.go/HandleSyncLogTailReq function.
   661  	Commands             []*Entry `protobuf:"bytes,2,rep,name=commands,proto3" json:"commands,omitempty"`
   662  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   663  	XXX_unrecognized     []byte   `json:"-"`
   664  	XXX_sizecache        int32    `json:"-"`
   665  }
   666  
   667  func (m *SyncLogTailResp) Reset()         { *m = SyncLogTailResp{} }
   668  func (m *SyncLogTailResp) String() string { return proto.CompactTextString(m) }
   669  func (*SyncLogTailResp) ProtoMessage()    {}
   670  func (*SyncLogTailResp) Descriptor() ([]byte, []int) {
   671  	return fileDescriptor_00212fb1f9d3bf1c, []int{7}
   672  }
   673  func (m *SyncLogTailResp) XXX_Unmarshal(b []byte) error {
   674  	return m.Unmarshal(b)
   675  }
   676  func (m *SyncLogTailResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   677  	if deterministic {
   678  		return xxx_messageInfo_SyncLogTailResp.Marshal(b, m, deterministic)
   679  	} else {
   680  		b = b[:cap(b)]
   681  		n, err := m.MarshalToSizedBuffer(b)
   682  		if err != nil {
   683  			return nil, err
   684  		}
   685  		return b[:n], nil
   686  	}
   687  }
   688  func (m *SyncLogTailResp) XXX_Merge(src proto.Message) {
   689  	xxx_messageInfo_SyncLogTailResp.Merge(m, src)
   690  }
   691  func (m *SyncLogTailResp) XXX_Size() int {
   692  	return m.ProtoSize()
   693  }
   694  func (m *SyncLogTailResp) XXX_DiscardUnknown() {
   695  	xxx_messageInfo_SyncLogTailResp.DiscardUnknown(m)
   696  }
   697  
   698  var xxx_messageInfo_SyncLogTailResp proto.InternalMessageInfo
   699  
   700  func (m *SyncLogTailResp) GetCkpLocation() string {
   701  	if m != nil {
   702  		return m.CkpLocation
   703  	}
   704  	return ""
   705  }
   706  
   707  func (m *SyncLogTailResp) GetCommands() []*Entry {
   708  	if m != nil {
   709  		return m.Commands
   710  	}
   711  	return nil
   712  }
   713  
   714  // How to parse and handle PrecommiWriteCmd , pls ref to
   715  // tae/rpc/handle.go/HandlePreCommit function
   716  type PrecommitWriteCmd struct {
   717  	EntryList            []*Entry `protobuf:"bytes,1,rep,name=entry_list,json=entryList,proto3" json:"entry_list,omitempty"`
   718  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   719  	XXX_unrecognized     []byte   `json:"-"`
   720  	XXX_sizecache        int32    `json:"-"`
   721  }
   722  
   723  func (m *PrecommitWriteCmd) Reset()         { *m = PrecommitWriteCmd{} }
   724  func (m *PrecommitWriteCmd) String() string { return proto.CompactTextString(m) }
   725  func (*PrecommitWriteCmd) ProtoMessage()    {}
   726  func (*PrecommitWriteCmd) Descriptor() ([]byte, []int) {
   727  	return fileDescriptor_00212fb1f9d3bf1c, []int{8}
   728  }
   729  func (m *PrecommitWriteCmd) XXX_Unmarshal(b []byte) error {
   730  	return m.Unmarshal(b)
   731  }
   732  func (m *PrecommitWriteCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   733  	if deterministic {
   734  		return xxx_messageInfo_PrecommitWriteCmd.Marshal(b, m, deterministic)
   735  	} else {
   736  		b = b[:cap(b)]
   737  		n, err := m.MarshalToSizedBuffer(b)
   738  		if err != nil {
   739  			return nil, err
   740  		}
   741  		return b[:n], nil
   742  	}
   743  }
   744  func (m *PrecommitWriteCmd) XXX_Merge(src proto.Message) {
   745  	xxx_messageInfo_PrecommitWriteCmd.Merge(m, src)
   746  }
   747  func (m *PrecommitWriteCmd) XXX_Size() int {
   748  	return m.ProtoSize()
   749  }
   750  func (m *PrecommitWriteCmd) XXX_DiscardUnknown() {
   751  	xxx_messageInfo_PrecommitWriteCmd.DiscardUnknown(m)
   752  }
   753  
   754  var xxx_messageInfo_PrecommitWriteCmd proto.InternalMessageInfo
   755  
   756  func (m *PrecommitWriteCmd) GetEntryList() []*Entry {
   757  	if m != nil {
   758  		return m.EntryList
   759  	}
   760  	return nil
   761  }
   762  
   763  type Entry struct {
   764  	EntryType    Entry_EntryType `protobuf:"varint,1,opt,name=entry_type,json=entryType,proto3,enum=api.Entry_EntryType" json:"entry_type,omitempty"`
   765  	TableId      uint64          `protobuf:"varint,2,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
   766  	DatabaseId   uint64          `protobuf:"varint,3,opt,name=database_id,json=databaseId,proto3" json:"database_id,omitempty"`
   767  	TableName    string          `protobuf:"bytes,4,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
   768  	DatabaseName string          `protobuf:"bytes,5,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"`
   769  	FileName     string          `protobuf:"bytes,6,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
   770  	Bat          *Batch          `protobuf:"bytes,7,opt,name=bat,proto3" json:"bat,omitempty"`
   771  	// whether TN do the PK uniqueness check against txn's workspace or not.
   772  	PkCheckByTn          int32    `protobuf:"varint,8,opt,name=pk_check_by_tn,json=pkCheckByTn,proto3" json:"pk_check_by_tn,omitempty"`
   773  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   774  	XXX_unrecognized     []byte   `json:"-"`
   775  	XXX_sizecache        int32    `json:"-"`
   776  }
   777  
   778  func (m *Entry) Reset()         { *m = Entry{} }
   779  func (m *Entry) String() string { return proto.CompactTextString(m) }
   780  func (*Entry) ProtoMessage()    {}
   781  func (*Entry) Descriptor() ([]byte, []int) {
   782  	return fileDescriptor_00212fb1f9d3bf1c, []int{9}
   783  }
   784  func (m *Entry) XXX_Unmarshal(b []byte) error {
   785  	return m.Unmarshal(b)
   786  }
   787  func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   788  	if deterministic {
   789  		return xxx_messageInfo_Entry.Marshal(b, m, deterministic)
   790  	} else {
   791  		b = b[:cap(b)]
   792  		n, err := m.MarshalToSizedBuffer(b)
   793  		if err != nil {
   794  			return nil, err
   795  		}
   796  		return b[:n], nil
   797  	}
   798  }
   799  func (m *Entry) XXX_Merge(src proto.Message) {
   800  	xxx_messageInfo_Entry.Merge(m, src)
   801  }
   802  func (m *Entry) XXX_Size() int {
   803  	return m.ProtoSize()
   804  }
   805  func (m *Entry) XXX_DiscardUnknown() {
   806  	xxx_messageInfo_Entry.DiscardUnknown(m)
   807  }
   808  
   809  var xxx_messageInfo_Entry proto.InternalMessageInfo
   810  
   811  func (m *Entry) GetEntryType() Entry_EntryType {
   812  	if m != nil {
   813  		return m.EntryType
   814  	}
   815  	return Entry_Insert
   816  }
   817  
   818  func (m *Entry) GetTableId() uint64 {
   819  	if m != nil {
   820  		return m.TableId
   821  	}
   822  	return 0
   823  }
   824  
   825  func (m *Entry) GetDatabaseId() uint64 {
   826  	if m != nil {
   827  		return m.DatabaseId
   828  	}
   829  	return 0
   830  }
   831  
   832  func (m *Entry) GetTableName() string {
   833  	if m != nil {
   834  		return m.TableName
   835  	}
   836  	return ""
   837  }
   838  
   839  func (m *Entry) GetDatabaseName() string {
   840  	if m != nil {
   841  		return m.DatabaseName
   842  	}
   843  	return ""
   844  }
   845  
   846  func (m *Entry) GetFileName() string {
   847  	if m != nil {
   848  		return m.FileName
   849  	}
   850  	return ""
   851  }
   852  
   853  func (m *Entry) GetBat() *Batch {
   854  	if m != nil {
   855  		return m.Bat
   856  	}
   857  	return nil
   858  }
   859  
   860  func (m *Entry) GetPkCheckByTn() int32 {
   861  	if m != nil {
   862  		return m.PkCheckByTn
   863  	}
   864  	return 0
   865  }
   866  
   867  // CatalogCkp contains information about database and tables in the system,and
   868  // MetadataCkp contains information about blocks.
   869  type Checkpoint struct {
   870  	// min_ts TN is the lower bounds of the checkpoint
   871  	//  CN maybe don't care about it.
   872  	MinTs *timestamp.Timestamp `protobuf:"bytes,1,opt,name=min_ts,json=minTs,proto3" json:"min_ts,omitempty"`
   873  	// max_ts is the upper bounds of the checkpoint.
   874  	//  CN maybe don't care about it.
   875  	MaxTs                *timestamp.Timestamp `protobuf:"bytes,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"`
   876  	Bat                  *Batch               `protobuf:"bytes,3,opt,name=bat,proto3" json:"bat,omitempty"`
   877  	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
   878  	XXX_unrecognized     []byte               `json:"-"`
   879  	XXX_sizecache        int32                `json:"-"`
   880  }
   881  
   882  func (m *Checkpoint) Reset()         { *m = Checkpoint{} }
   883  func (m *Checkpoint) String() string { return proto.CompactTextString(m) }
   884  func (*Checkpoint) ProtoMessage()    {}
   885  func (*Checkpoint) Descriptor() ([]byte, []int) {
   886  	return fileDescriptor_00212fb1f9d3bf1c, []int{10}
   887  }
   888  func (m *Checkpoint) XXX_Unmarshal(b []byte) error {
   889  	return m.Unmarshal(b)
   890  }
   891  func (m *Checkpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   892  	if deterministic {
   893  		return xxx_messageInfo_Checkpoint.Marshal(b, m, deterministic)
   894  	} else {
   895  		b = b[:cap(b)]
   896  		n, err := m.MarshalToSizedBuffer(b)
   897  		if err != nil {
   898  			return nil, err
   899  		}
   900  		return b[:n], nil
   901  	}
   902  }
   903  func (m *Checkpoint) XXX_Merge(src proto.Message) {
   904  	xxx_messageInfo_Checkpoint.Merge(m, src)
   905  }
   906  func (m *Checkpoint) XXX_Size() int {
   907  	return m.ProtoSize()
   908  }
   909  func (m *Checkpoint) XXX_DiscardUnknown() {
   910  	xxx_messageInfo_Checkpoint.DiscardUnknown(m)
   911  }
   912  
   913  var xxx_messageInfo_Checkpoint proto.InternalMessageInfo
   914  
   915  func (m *Checkpoint) GetMinTs() *timestamp.Timestamp {
   916  	if m != nil {
   917  		return m.MinTs
   918  	}
   919  	return nil
   920  }
   921  
   922  func (m *Checkpoint) GetMaxTs() *timestamp.Timestamp {
   923  	if m != nil {
   924  		return m.MaxTs
   925  	}
   926  	return nil
   927  }
   928  
   929  func (m *Checkpoint) GetBat() *Batch {
   930  	if m != nil {
   931  		return m.Bat
   932  	}
   933  	return nil
   934  }
   935  
   936  // catalog checkpoint:
   937  // one Batch represents a table, such as : mo_databases, mo_tables,
   938  // mo_columns,... etc. knowing more about system tables, pls ref to
   939  // pkg/vm/engine/tae/catalog/model.go
   940  type CatalogCkp struct {
   941  	MinTs                *timestamp.Timestamp `protobuf:"bytes,1,opt,name=min_ts,json=minTs,proto3" json:"min_ts,omitempty"`
   942  	MaxTs                *timestamp.Timestamp `protobuf:"bytes,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"`
   943  	Bat                  *Batch               `protobuf:"bytes,3,opt,name=bat,proto3" json:"bat,omitempty"`
   944  	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
   945  	XXX_unrecognized     []byte               `json:"-"`
   946  	XXX_sizecache        int32                `json:"-"`
   947  }
   948  
   949  func (m *CatalogCkp) Reset()         { *m = CatalogCkp{} }
   950  func (m *CatalogCkp) String() string { return proto.CompactTextString(m) }
   951  func (*CatalogCkp) ProtoMessage()    {}
   952  func (*CatalogCkp) Descriptor() ([]byte, []int) {
   953  	return fileDescriptor_00212fb1f9d3bf1c, []int{11}
   954  }
   955  func (m *CatalogCkp) XXX_Unmarshal(b []byte) error {
   956  	return m.Unmarshal(b)
   957  }
   958  func (m *CatalogCkp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   959  	if deterministic {
   960  		return xxx_messageInfo_CatalogCkp.Marshal(b, m, deterministic)
   961  	} else {
   962  		b = b[:cap(b)]
   963  		n, err := m.MarshalToSizedBuffer(b)
   964  		if err != nil {
   965  			return nil, err
   966  		}
   967  		return b[:n], nil
   968  	}
   969  }
   970  func (m *CatalogCkp) XXX_Merge(src proto.Message) {
   971  	xxx_messageInfo_CatalogCkp.Merge(m, src)
   972  }
   973  func (m *CatalogCkp) XXX_Size() int {
   974  	return m.ProtoSize()
   975  }
   976  func (m *CatalogCkp) XXX_DiscardUnknown() {
   977  	xxx_messageInfo_CatalogCkp.DiscardUnknown(m)
   978  }
   979  
   980  var xxx_messageInfo_CatalogCkp proto.InternalMessageInfo
   981  
   982  func (m *CatalogCkp) GetMinTs() *timestamp.Timestamp {
   983  	if m != nil {
   984  		return m.MinTs
   985  	}
   986  	return nil
   987  }
   988  
   989  func (m *CatalogCkp) GetMaxTs() *timestamp.Timestamp {
   990  	if m != nil {
   991  		return m.MaxTs
   992  	}
   993  	return nil
   994  }
   995  
   996  func (m *CatalogCkp) GetBat() *Batch {
   997  	if m != nil {
   998  		return m.Bat
   999  	}
  1000  	return nil
  1001  }
  1002  
  1003  // metadata checkpoint:
  1004  //
  1005  //	Batch is a batch of block metadata for a table,
  1006  //	one row of Batch represents a block meta data.
  1007  //	TODO::
  1008  //	knowing more about block meta data , pls ref to ...
  1009  type MetadataCkp struct {
  1010  	MinTs *timestamp.Timestamp `protobuf:"bytes,1,opt,name=min_ts,json=minTs,proto3" json:"min_ts,omitempty"`
  1011  	MaxTs *timestamp.Timestamp `protobuf:"bytes,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"`
  1012  	// block meta data for a table;
  1013  	Bat                  *Batch   `protobuf:"bytes,3,opt,name=bat,proto3" json:"bat,omitempty"`
  1014  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1015  	XXX_unrecognized     []byte   `json:"-"`
  1016  	XXX_sizecache        int32    `json:"-"`
  1017  }
  1018  
  1019  func (m *MetadataCkp) Reset()         { *m = MetadataCkp{} }
  1020  func (m *MetadataCkp) String() string { return proto.CompactTextString(m) }
  1021  func (*MetadataCkp) ProtoMessage()    {}
  1022  func (*MetadataCkp) Descriptor() ([]byte, []int) {
  1023  	return fileDescriptor_00212fb1f9d3bf1c, []int{12}
  1024  }
  1025  func (m *MetadataCkp) XXX_Unmarshal(b []byte) error {
  1026  	return m.Unmarshal(b)
  1027  }
  1028  func (m *MetadataCkp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1029  	if deterministic {
  1030  		return xxx_messageInfo_MetadataCkp.Marshal(b, m, deterministic)
  1031  	} else {
  1032  		b = b[:cap(b)]
  1033  		n, err := m.MarshalToSizedBuffer(b)
  1034  		if err != nil {
  1035  			return nil, err
  1036  		}
  1037  		return b[:n], nil
  1038  	}
  1039  }
  1040  func (m *MetadataCkp) XXX_Merge(src proto.Message) {
  1041  	xxx_messageInfo_MetadataCkp.Merge(m, src)
  1042  }
  1043  func (m *MetadataCkp) XXX_Size() int {
  1044  	return m.ProtoSize()
  1045  }
  1046  func (m *MetadataCkp) XXX_DiscardUnknown() {
  1047  	xxx_messageInfo_MetadataCkp.DiscardUnknown(m)
  1048  }
  1049  
  1050  var xxx_messageInfo_MetadataCkp proto.InternalMessageInfo
  1051  
  1052  func (m *MetadataCkp) GetMinTs() *timestamp.Timestamp {
  1053  	if m != nil {
  1054  		return m.MinTs
  1055  	}
  1056  	return nil
  1057  }
  1058  
  1059  func (m *MetadataCkp) GetMaxTs() *timestamp.Timestamp {
  1060  	if m != nil {
  1061  		return m.MaxTs
  1062  	}
  1063  	return nil
  1064  }
  1065  
  1066  func (m *MetadataCkp) GetBat() *Batch {
  1067  	if m != nil {
  1068  		return m.Bat
  1069  	}
  1070  	return nil
  1071  }
  1072  
  1073  type AlterTablePolicy struct {
  1074  	MinOsizeQuailifed    uint32      `protobuf:"varint,1,opt,name=min_osize_quailifed,json=minOsizeQuailifed,proto3" json:"min_osize_quailifed,omitempty"`
  1075  	MaxObjOnerun         uint32      `protobuf:"varint,2,opt,name=max_obj_onerun,json=maxObjOnerun,proto3" json:"max_obj_onerun,omitempty"`
  1076  	MaxOsizeMergedObj    uint32      `protobuf:"varint,3,opt,name=max_osize_merged_obj,json=maxOsizeMergedObj,proto3" json:"max_osize_merged_obj,omitempty"`
  1077  	Hints                []MergeHint `protobuf:"varint,4,rep,packed,name=hints,proto3,enum=api.MergeHint" json:"hints,omitempty"`
  1078  	MinCnMergeSize       uint64      `protobuf:"varint,5,opt,name=min_cn_merge_size,json=minCnMergeSize,proto3" json:"min_cn_merge_size,omitempty"`
  1079  	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
  1080  	XXX_unrecognized     []byte      `json:"-"`
  1081  	XXX_sizecache        int32       `json:"-"`
  1082  }
  1083  
  1084  func (m *AlterTablePolicy) Reset()         { *m = AlterTablePolicy{} }
  1085  func (m *AlterTablePolicy) String() string { return proto.CompactTextString(m) }
  1086  func (*AlterTablePolicy) ProtoMessage()    {}
  1087  func (*AlterTablePolicy) Descriptor() ([]byte, []int) {
  1088  	return fileDescriptor_00212fb1f9d3bf1c, []int{13}
  1089  }
  1090  func (m *AlterTablePolicy) XXX_Unmarshal(b []byte) error {
  1091  	return m.Unmarshal(b)
  1092  }
  1093  func (m *AlterTablePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1094  	if deterministic {
  1095  		return xxx_messageInfo_AlterTablePolicy.Marshal(b, m, deterministic)
  1096  	} else {
  1097  		b = b[:cap(b)]
  1098  		n, err := m.MarshalToSizedBuffer(b)
  1099  		if err != nil {
  1100  			return nil, err
  1101  		}
  1102  		return b[:n], nil
  1103  	}
  1104  }
  1105  func (m *AlterTablePolicy) XXX_Merge(src proto.Message) {
  1106  	xxx_messageInfo_AlterTablePolicy.Merge(m, src)
  1107  }
  1108  func (m *AlterTablePolicy) XXX_Size() int {
  1109  	return m.ProtoSize()
  1110  }
  1111  func (m *AlterTablePolicy) XXX_DiscardUnknown() {
  1112  	xxx_messageInfo_AlterTablePolicy.DiscardUnknown(m)
  1113  }
  1114  
  1115  var xxx_messageInfo_AlterTablePolicy proto.InternalMessageInfo
  1116  
  1117  func (m *AlterTablePolicy) GetMinOsizeQuailifed() uint32 {
  1118  	if m != nil {
  1119  		return m.MinOsizeQuailifed
  1120  	}
  1121  	return 0
  1122  }
  1123  
  1124  func (m *AlterTablePolicy) GetMaxObjOnerun() uint32 {
  1125  	if m != nil {
  1126  		return m.MaxObjOnerun
  1127  	}
  1128  	return 0
  1129  }
  1130  
  1131  func (m *AlterTablePolicy) GetMaxOsizeMergedObj() uint32 {
  1132  	if m != nil {
  1133  		return m.MaxOsizeMergedObj
  1134  	}
  1135  	return 0
  1136  }
  1137  
  1138  func (m *AlterTablePolicy) GetHints() []MergeHint {
  1139  	if m != nil {
  1140  		return m.Hints
  1141  	}
  1142  	return nil
  1143  }
  1144  
  1145  func (m *AlterTablePolicy) GetMinCnMergeSize() uint64 {
  1146  	if m != nil {
  1147  		return m.MinCnMergeSize
  1148  	}
  1149  	return 0
  1150  }
  1151  
  1152  type AlterTableConstraint struct {
  1153  	Constraints          []byte   `protobuf:"bytes,1,opt,name=constraints,proto3" json:"constraints,omitempty"`
  1154  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1155  	XXX_unrecognized     []byte   `json:"-"`
  1156  	XXX_sizecache        int32    `json:"-"`
  1157  }
  1158  
  1159  func (m *AlterTableConstraint) Reset()         { *m = AlterTableConstraint{} }
  1160  func (m *AlterTableConstraint) String() string { return proto.CompactTextString(m) }
  1161  func (*AlterTableConstraint) ProtoMessage()    {}
  1162  func (*AlterTableConstraint) Descriptor() ([]byte, []int) {
  1163  	return fileDescriptor_00212fb1f9d3bf1c, []int{14}
  1164  }
  1165  func (m *AlterTableConstraint) XXX_Unmarshal(b []byte) error {
  1166  	return m.Unmarshal(b)
  1167  }
  1168  func (m *AlterTableConstraint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1169  	if deterministic {
  1170  		return xxx_messageInfo_AlterTableConstraint.Marshal(b, m, deterministic)
  1171  	} else {
  1172  		b = b[:cap(b)]
  1173  		n, err := m.MarshalToSizedBuffer(b)
  1174  		if err != nil {
  1175  			return nil, err
  1176  		}
  1177  		return b[:n], nil
  1178  	}
  1179  }
  1180  func (m *AlterTableConstraint) XXX_Merge(src proto.Message) {
  1181  	xxx_messageInfo_AlterTableConstraint.Merge(m, src)
  1182  }
  1183  func (m *AlterTableConstraint) XXX_Size() int {
  1184  	return m.ProtoSize()
  1185  }
  1186  func (m *AlterTableConstraint) XXX_DiscardUnknown() {
  1187  	xxx_messageInfo_AlterTableConstraint.DiscardUnknown(m)
  1188  }
  1189  
  1190  var xxx_messageInfo_AlterTableConstraint proto.InternalMessageInfo
  1191  
  1192  func (m *AlterTableConstraint) GetConstraints() []byte {
  1193  	if m != nil {
  1194  		return m.Constraints
  1195  	}
  1196  	return nil
  1197  }
  1198  
  1199  type AlterTableComment struct {
  1200  	Comment              string   `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
  1201  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1202  	XXX_unrecognized     []byte   `json:"-"`
  1203  	XXX_sizecache        int32    `json:"-"`
  1204  }
  1205  
  1206  func (m *AlterTableComment) Reset()         { *m = AlterTableComment{} }
  1207  func (m *AlterTableComment) String() string { return proto.CompactTextString(m) }
  1208  func (*AlterTableComment) ProtoMessage()    {}
  1209  func (*AlterTableComment) Descriptor() ([]byte, []int) {
  1210  	return fileDescriptor_00212fb1f9d3bf1c, []int{15}
  1211  }
  1212  func (m *AlterTableComment) XXX_Unmarshal(b []byte) error {
  1213  	return m.Unmarshal(b)
  1214  }
  1215  func (m *AlterTableComment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1216  	if deterministic {
  1217  		return xxx_messageInfo_AlterTableComment.Marshal(b, m, deterministic)
  1218  	} else {
  1219  		b = b[:cap(b)]
  1220  		n, err := m.MarshalToSizedBuffer(b)
  1221  		if err != nil {
  1222  			return nil, err
  1223  		}
  1224  		return b[:n], nil
  1225  	}
  1226  }
  1227  func (m *AlterTableComment) XXX_Merge(src proto.Message) {
  1228  	xxx_messageInfo_AlterTableComment.Merge(m, src)
  1229  }
  1230  func (m *AlterTableComment) XXX_Size() int {
  1231  	return m.ProtoSize()
  1232  }
  1233  func (m *AlterTableComment) XXX_DiscardUnknown() {
  1234  	xxx_messageInfo_AlterTableComment.DiscardUnknown(m)
  1235  }
  1236  
  1237  var xxx_messageInfo_AlterTableComment proto.InternalMessageInfo
  1238  
  1239  func (m *AlterTableComment) GetComment() string {
  1240  	if m != nil {
  1241  		return m.Comment
  1242  	}
  1243  	return ""
  1244  }
  1245  
  1246  type AlterTableRenameTable struct {
  1247  	OldName              string   `protobuf:"bytes,1,opt,name=old_name,json=oldName,proto3" json:"old_name,omitempty"`
  1248  	NewName              string   `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
  1249  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1250  	XXX_unrecognized     []byte   `json:"-"`
  1251  	XXX_sizecache        int32    `json:"-"`
  1252  }
  1253  
  1254  func (m *AlterTableRenameTable) Reset()         { *m = AlterTableRenameTable{} }
  1255  func (m *AlterTableRenameTable) String() string { return proto.CompactTextString(m) }
  1256  func (*AlterTableRenameTable) ProtoMessage()    {}
  1257  func (*AlterTableRenameTable) Descriptor() ([]byte, []int) {
  1258  	return fileDescriptor_00212fb1f9d3bf1c, []int{16}
  1259  }
  1260  func (m *AlterTableRenameTable) XXX_Unmarshal(b []byte) error {
  1261  	return m.Unmarshal(b)
  1262  }
  1263  func (m *AlterTableRenameTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1264  	if deterministic {
  1265  		return xxx_messageInfo_AlterTableRenameTable.Marshal(b, m, deterministic)
  1266  	} else {
  1267  		b = b[:cap(b)]
  1268  		n, err := m.MarshalToSizedBuffer(b)
  1269  		if err != nil {
  1270  			return nil, err
  1271  		}
  1272  		return b[:n], nil
  1273  	}
  1274  }
  1275  func (m *AlterTableRenameTable) XXX_Merge(src proto.Message) {
  1276  	xxx_messageInfo_AlterTableRenameTable.Merge(m, src)
  1277  }
  1278  func (m *AlterTableRenameTable) XXX_Size() int {
  1279  	return m.ProtoSize()
  1280  }
  1281  func (m *AlterTableRenameTable) XXX_DiscardUnknown() {
  1282  	xxx_messageInfo_AlterTableRenameTable.DiscardUnknown(m)
  1283  }
  1284  
  1285  var xxx_messageInfo_AlterTableRenameTable proto.InternalMessageInfo
  1286  
  1287  func (m *AlterTableRenameTable) GetOldName() string {
  1288  	if m != nil {
  1289  		return m.OldName
  1290  	}
  1291  	return ""
  1292  }
  1293  
  1294  func (m *AlterTableRenameTable) GetNewName() string {
  1295  	if m != nil {
  1296  		return m.NewName
  1297  	}
  1298  	return ""
  1299  }
  1300  
  1301  type AlterTableRenameCol struct {
  1302  	OldName              string   `protobuf:"bytes,1,opt,name=old_name,json=oldName,proto3" json:"old_name,omitempty"`
  1303  	NewName              string   `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
  1304  	SequenceNum          uint32   `protobuf:"varint,3,opt,name=sequence_num,json=sequenceNum,proto3" json:"sequence_num,omitempty"`
  1305  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1306  	XXX_unrecognized     []byte   `json:"-"`
  1307  	XXX_sizecache        int32    `json:"-"`
  1308  }
  1309  
  1310  func (m *AlterTableRenameCol) Reset()         { *m = AlterTableRenameCol{} }
  1311  func (m *AlterTableRenameCol) String() string { return proto.CompactTextString(m) }
  1312  func (*AlterTableRenameCol) ProtoMessage()    {}
  1313  func (*AlterTableRenameCol) Descriptor() ([]byte, []int) {
  1314  	return fileDescriptor_00212fb1f9d3bf1c, []int{17}
  1315  }
  1316  func (m *AlterTableRenameCol) XXX_Unmarshal(b []byte) error {
  1317  	return m.Unmarshal(b)
  1318  }
  1319  func (m *AlterTableRenameCol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1320  	if deterministic {
  1321  		return xxx_messageInfo_AlterTableRenameCol.Marshal(b, m, deterministic)
  1322  	} else {
  1323  		b = b[:cap(b)]
  1324  		n, err := m.MarshalToSizedBuffer(b)
  1325  		if err != nil {
  1326  			return nil, err
  1327  		}
  1328  		return b[:n], nil
  1329  	}
  1330  }
  1331  func (m *AlterTableRenameCol) XXX_Merge(src proto.Message) {
  1332  	xxx_messageInfo_AlterTableRenameCol.Merge(m, src)
  1333  }
  1334  func (m *AlterTableRenameCol) XXX_Size() int {
  1335  	return m.ProtoSize()
  1336  }
  1337  func (m *AlterTableRenameCol) XXX_DiscardUnknown() {
  1338  	xxx_messageInfo_AlterTableRenameCol.DiscardUnknown(m)
  1339  }
  1340  
  1341  var xxx_messageInfo_AlterTableRenameCol proto.InternalMessageInfo
  1342  
  1343  func (m *AlterTableRenameCol) GetOldName() string {
  1344  	if m != nil {
  1345  		return m.OldName
  1346  	}
  1347  	return ""
  1348  }
  1349  
  1350  func (m *AlterTableRenameCol) GetNewName() string {
  1351  	if m != nil {
  1352  		return m.NewName
  1353  	}
  1354  	return ""
  1355  }
  1356  
  1357  func (m *AlterTableRenameCol) GetSequenceNum() uint32 {
  1358  	if m != nil {
  1359  		return m.SequenceNum
  1360  	}
  1361  	return 0
  1362  }
  1363  
  1364  type AlterTableAddColumn struct {
  1365  	Column               *plan.ColDef `protobuf:"bytes,1,opt,name=column,proto3" json:"column,omitempty"`
  1366  	InsertPosition       int32        `protobuf:"varint,2,opt,name=insert_position,json=insertPosition,proto3" json:"insert_position,omitempty"`
  1367  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
  1368  	XXX_unrecognized     []byte       `json:"-"`
  1369  	XXX_sizecache        int32        `json:"-"`
  1370  }
  1371  
  1372  func (m *AlterTableAddColumn) Reset()         { *m = AlterTableAddColumn{} }
  1373  func (m *AlterTableAddColumn) String() string { return proto.CompactTextString(m) }
  1374  func (*AlterTableAddColumn) ProtoMessage()    {}
  1375  func (*AlterTableAddColumn) Descriptor() ([]byte, []int) {
  1376  	return fileDescriptor_00212fb1f9d3bf1c, []int{18}
  1377  }
  1378  func (m *AlterTableAddColumn) XXX_Unmarshal(b []byte) error {
  1379  	return m.Unmarshal(b)
  1380  }
  1381  func (m *AlterTableAddColumn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1382  	if deterministic {
  1383  		return xxx_messageInfo_AlterTableAddColumn.Marshal(b, m, deterministic)
  1384  	} else {
  1385  		b = b[:cap(b)]
  1386  		n, err := m.MarshalToSizedBuffer(b)
  1387  		if err != nil {
  1388  			return nil, err
  1389  		}
  1390  		return b[:n], nil
  1391  	}
  1392  }
  1393  func (m *AlterTableAddColumn) XXX_Merge(src proto.Message) {
  1394  	xxx_messageInfo_AlterTableAddColumn.Merge(m, src)
  1395  }
  1396  func (m *AlterTableAddColumn) XXX_Size() int {
  1397  	return m.ProtoSize()
  1398  }
  1399  func (m *AlterTableAddColumn) XXX_DiscardUnknown() {
  1400  	xxx_messageInfo_AlterTableAddColumn.DiscardUnknown(m)
  1401  }
  1402  
  1403  var xxx_messageInfo_AlterTableAddColumn proto.InternalMessageInfo
  1404  
  1405  func (m *AlterTableAddColumn) GetColumn() *plan.ColDef {
  1406  	if m != nil {
  1407  		return m.Column
  1408  	}
  1409  	return nil
  1410  }
  1411  
  1412  func (m *AlterTableAddColumn) GetInsertPosition() int32 {
  1413  	if m != nil {
  1414  		return m.InsertPosition
  1415  	}
  1416  	return 0
  1417  }
  1418  
  1419  type AlterTableAddPartition struct {
  1420  	PartitionDef         *plan.PartitionByDef `protobuf:"bytes,1,opt,name=partition_def,json=partitionDef,proto3" json:"partition_def,omitempty"`
  1421  	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
  1422  	XXX_unrecognized     []byte               `json:"-"`
  1423  	XXX_sizecache        int32                `json:"-"`
  1424  }
  1425  
  1426  func (m *AlterTableAddPartition) Reset()         { *m = AlterTableAddPartition{} }
  1427  func (m *AlterTableAddPartition) String() string { return proto.CompactTextString(m) }
  1428  func (*AlterTableAddPartition) ProtoMessage()    {}
  1429  func (*AlterTableAddPartition) Descriptor() ([]byte, []int) {
  1430  	return fileDescriptor_00212fb1f9d3bf1c, []int{19}
  1431  }
  1432  func (m *AlterTableAddPartition) XXX_Unmarshal(b []byte) error {
  1433  	return m.Unmarshal(b)
  1434  }
  1435  func (m *AlterTableAddPartition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1436  	if deterministic {
  1437  		return xxx_messageInfo_AlterTableAddPartition.Marshal(b, m, deterministic)
  1438  	} else {
  1439  		b = b[:cap(b)]
  1440  		n, err := m.MarshalToSizedBuffer(b)
  1441  		if err != nil {
  1442  			return nil, err
  1443  		}
  1444  		return b[:n], nil
  1445  	}
  1446  }
  1447  func (m *AlterTableAddPartition) XXX_Merge(src proto.Message) {
  1448  	xxx_messageInfo_AlterTableAddPartition.Merge(m, src)
  1449  }
  1450  func (m *AlterTableAddPartition) XXX_Size() int {
  1451  	return m.ProtoSize()
  1452  }
  1453  func (m *AlterTableAddPartition) XXX_DiscardUnknown() {
  1454  	xxx_messageInfo_AlterTableAddPartition.DiscardUnknown(m)
  1455  }
  1456  
  1457  var xxx_messageInfo_AlterTableAddPartition proto.InternalMessageInfo
  1458  
  1459  func (m *AlterTableAddPartition) GetPartitionDef() *plan.PartitionByDef {
  1460  	if m != nil {
  1461  		return m.PartitionDef
  1462  	}
  1463  	return nil
  1464  }
  1465  
  1466  type AlterTableDropColumn struct {
  1467  	LogicalIdx           uint32   `protobuf:"varint,1,opt,name=logical_idx,json=logicalIdx,proto3" json:"logical_idx,omitempty"`
  1468  	SequenceNum          uint32   `protobuf:"varint,2,opt,name=sequence_num,json=sequenceNum,proto3" json:"sequence_num,omitempty"`
  1469  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1470  	XXX_unrecognized     []byte   `json:"-"`
  1471  	XXX_sizecache        int32    `json:"-"`
  1472  }
  1473  
  1474  func (m *AlterTableDropColumn) Reset()         { *m = AlterTableDropColumn{} }
  1475  func (m *AlterTableDropColumn) String() string { return proto.CompactTextString(m) }
  1476  func (*AlterTableDropColumn) ProtoMessage()    {}
  1477  func (*AlterTableDropColumn) Descriptor() ([]byte, []int) {
  1478  	return fileDescriptor_00212fb1f9d3bf1c, []int{20}
  1479  }
  1480  func (m *AlterTableDropColumn) XXX_Unmarshal(b []byte) error {
  1481  	return m.Unmarshal(b)
  1482  }
  1483  func (m *AlterTableDropColumn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1484  	if deterministic {
  1485  		return xxx_messageInfo_AlterTableDropColumn.Marshal(b, m, deterministic)
  1486  	} else {
  1487  		b = b[:cap(b)]
  1488  		n, err := m.MarshalToSizedBuffer(b)
  1489  		if err != nil {
  1490  			return nil, err
  1491  		}
  1492  		return b[:n], nil
  1493  	}
  1494  }
  1495  func (m *AlterTableDropColumn) XXX_Merge(src proto.Message) {
  1496  	xxx_messageInfo_AlterTableDropColumn.Merge(m, src)
  1497  }
  1498  func (m *AlterTableDropColumn) XXX_Size() int {
  1499  	return m.ProtoSize()
  1500  }
  1501  func (m *AlterTableDropColumn) XXX_DiscardUnknown() {
  1502  	xxx_messageInfo_AlterTableDropColumn.DiscardUnknown(m)
  1503  }
  1504  
  1505  var xxx_messageInfo_AlterTableDropColumn proto.InternalMessageInfo
  1506  
  1507  func (m *AlterTableDropColumn) GetLogicalIdx() uint32 {
  1508  	if m != nil {
  1509  		return m.LogicalIdx
  1510  	}
  1511  	return 0
  1512  }
  1513  
  1514  func (m *AlterTableDropColumn) GetSequenceNum() uint32 {
  1515  	if m != nil {
  1516  		return m.SequenceNum
  1517  	}
  1518  	return 0
  1519  }
  1520  
  1521  type AlterTableReq struct {
  1522  	TableId uint64    `protobuf:"varint,1,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
  1523  	DbId    uint64    `protobuf:"varint,2,opt,name=db_id,json=dbId,proto3" json:"db_id,omitempty"`
  1524  	Kind    AlterKind `protobuf:"varint,3,opt,name=kind,proto3,enum=api.AlterKind" json:"kind,omitempty"`
  1525  	// Types that are valid to be assigned to Operation:
  1526  	//	*AlterTableReq_AddColumn
  1527  	//	*AlterTableReq_DropColumn
  1528  	//	*AlterTableReq_RenameTable
  1529  	//	*AlterTableReq_UpdateComment
  1530  	//	*AlterTableReq_UpdateCstr
  1531  	//	*AlterTableReq_UpdatePolicy
  1532  	//	*AlterTableReq_AddPartition
  1533  	//	*AlterTableReq_RenameCol
  1534  	Operation            isAlterTableReq_Operation `protobuf_oneof:"operation"`
  1535  	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
  1536  	XXX_unrecognized     []byte                    `json:"-"`
  1537  	XXX_sizecache        int32                     `json:"-"`
  1538  }
  1539  
  1540  func (m *AlterTableReq) Reset()         { *m = AlterTableReq{} }
  1541  func (m *AlterTableReq) String() string { return proto.CompactTextString(m) }
  1542  func (*AlterTableReq) ProtoMessage()    {}
  1543  func (*AlterTableReq) Descriptor() ([]byte, []int) {
  1544  	return fileDescriptor_00212fb1f9d3bf1c, []int{21}
  1545  }
  1546  func (m *AlterTableReq) XXX_Unmarshal(b []byte) error {
  1547  	return m.Unmarshal(b)
  1548  }
  1549  func (m *AlterTableReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1550  	if deterministic {
  1551  		return xxx_messageInfo_AlterTableReq.Marshal(b, m, deterministic)
  1552  	} else {
  1553  		b = b[:cap(b)]
  1554  		n, err := m.MarshalToSizedBuffer(b)
  1555  		if err != nil {
  1556  			return nil, err
  1557  		}
  1558  		return b[:n], nil
  1559  	}
  1560  }
  1561  func (m *AlterTableReq) XXX_Merge(src proto.Message) {
  1562  	xxx_messageInfo_AlterTableReq.Merge(m, src)
  1563  }
  1564  func (m *AlterTableReq) XXX_Size() int {
  1565  	return m.ProtoSize()
  1566  }
  1567  func (m *AlterTableReq) XXX_DiscardUnknown() {
  1568  	xxx_messageInfo_AlterTableReq.DiscardUnknown(m)
  1569  }
  1570  
  1571  var xxx_messageInfo_AlterTableReq proto.InternalMessageInfo
  1572  
  1573  type isAlterTableReq_Operation interface {
  1574  	isAlterTableReq_Operation()
  1575  	MarshalTo([]byte) (int, error)
  1576  	ProtoSize() int
  1577  }
  1578  
  1579  type AlterTableReq_AddColumn struct {
  1580  	AddColumn *AlterTableAddColumn `protobuf:"bytes,4,opt,name=add_column,json=addColumn,proto3,oneof" json:"add_column,omitempty"`
  1581  }
  1582  type AlterTableReq_DropColumn struct {
  1583  	DropColumn *AlterTableDropColumn `protobuf:"bytes,5,opt,name=drop_column,json=dropColumn,proto3,oneof" json:"drop_column,omitempty"`
  1584  }
  1585  type AlterTableReq_RenameTable struct {
  1586  	RenameTable *AlterTableRenameTable `protobuf:"bytes,6,opt,name=rename_table,json=renameTable,proto3,oneof" json:"rename_table,omitempty"`
  1587  }
  1588  type AlterTableReq_UpdateComment struct {
  1589  	UpdateComment *AlterTableComment `protobuf:"bytes,7,opt,name=update_comment,json=updateComment,proto3,oneof" json:"update_comment,omitempty"`
  1590  }
  1591  type AlterTableReq_UpdateCstr struct {
  1592  	UpdateCstr *AlterTableConstraint `protobuf:"bytes,8,opt,name=update_cstr,json=updateCstr,proto3,oneof" json:"update_cstr,omitempty"`
  1593  }
  1594  type AlterTableReq_UpdatePolicy struct {
  1595  	UpdatePolicy *AlterTablePolicy `protobuf:"bytes,9,opt,name=update_policy,json=updatePolicy,proto3,oneof" json:"update_policy,omitempty"`
  1596  }
  1597  type AlterTableReq_AddPartition struct {
  1598  	AddPartition *AlterTableAddPartition `protobuf:"bytes,10,opt,name=add_partition,json=addPartition,proto3,oneof" json:"add_partition,omitempty"`
  1599  }
  1600  type AlterTableReq_RenameCol struct {
  1601  	RenameCol *AlterTableRenameCol `protobuf:"bytes,11,opt,name=rename_col,json=renameCol,proto3,oneof" json:"rename_col,omitempty"`
  1602  }
  1603  
  1604  func (*AlterTableReq_AddColumn) isAlterTableReq_Operation()     {}
  1605  func (*AlterTableReq_DropColumn) isAlterTableReq_Operation()    {}
  1606  func (*AlterTableReq_RenameTable) isAlterTableReq_Operation()   {}
  1607  func (*AlterTableReq_UpdateComment) isAlterTableReq_Operation() {}
  1608  func (*AlterTableReq_UpdateCstr) isAlterTableReq_Operation()    {}
  1609  func (*AlterTableReq_UpdatePolicy) isAlterTableReq_Operation()  {}
  1610  func (*AlterTableReq_AddPartition) isAlterTableReq_Operation()  {}
  1611  func (*AlterTableReq_RenameCol) isAlterTableReq_Operation()     {}
  1612  
  1613  func (m *AlterTableReq) GetOperation() isAlterTableReq_Operation {
  1614  	if m != nil {
  1615  		return m.Operation
  1616  	}
  1617  	return nil
  1618  }
  1619  
  1620  func (m *AlterTableReq) GetTableId() uint64 {
  1621  	if m != nil {
  1622  		return m.TableId
  1623  	}
  1624  	return 0
  1625  }
  1626  
  1627  func (m *AlterTableReq) GetDbId() uint64 {
  1628  	if m != nil {
  1629  		return m.DbId
  1630  	}
  1631  	return 0
  1632  }
  1633  
  1634  func (m *AlterTableReq) GetKind() AlterKind {
  1635  	if m != nil {
  1636  		return m.Kind
  1637  	}
  1638  	return AlterKind_Invalid
  1639  }
  1640  
  1641  func (m *AlterTableReq) GetAddColumn() *AlterTableAddColumn {
  1642  	if x, ok := m.GetOperation().(*AlterTableReq_AddColumn); ok {
  1643  		return x.AddColumn
  1644  	}
  1645  	return nil
  1646  }
  1647  
  1648  func (m *AlterTableReq) GetDropColumn() *AlterTableDropColumn {
  1649  	if x, ok := m.GetOperation().(*AlterTableReq_DropColumn); ok {
  1650  		return x.DropColumn
  1651  	}
  1652  	return nil
  1653  }
  1654  
  1655  func (m *AlterTableReq) GetRenameTable() *AlterTableRenameTable {
  1656  	if x, ok := m.GetOperation().(*AlterTableReq_RenameTable); ok {
  1657  		return x.RenameTable
  1658  	}
  1659  	return nil
  1660  }
  1661  
  1662  func (m *AlterTableReq) GetUpdateComment() *AlterTableComment {
  1663  	if x, ok := m.GetOperation().(*AlterTableReq_UpdateComment); ok {
  1664  		return x.UpdateComment
  1665  	}
  1666  	return nil
  1667  }
  1668  
  1669  func (m *AlterTableReq) GetUpdateCstr() *AlterTableConstraint {
  1670  	if x, ok := m.GetOperation().(*AlterTableReq_UpdateCstr); ok {
  1671  		return x.UpdateCstr
  1672  	}
  1673  	return nil
  1674  }
  1675  
  1676  func (m *AlterTableReq) GetUpdatePolicy() *AlterTablePolicy {
  1677  	if x, ok := m.GetOperation().(*AlterTableReq_UpdatePolicy); ok {
  1678  		return x.UpdatePolicy
  1679  	}
  1680  	return nil
  1681  }
  1682  
  1683  func (m *AlterTableReq) GetAddPartition() *AlterTableAddPartition {
  1684  	if x, ok := m.GetOperation().(*AlterTableReq_AddPartition); ok {
  1685  		return x.AddPartition
  1686  	}
  1687  	return nil
  1688  }
  1689  
  1690  func (m *AlterTableReq) GetRenameCol() *AlterTableRenameCol {
  1691  	if x, ok := m.GetOperation().(*AlterTableReq_RenameCol); ok {
  1692  		return x.RenameCol
  1693  	}
  1694  	return nil
  1695  }
  1696  
  1697  // XXX_OneofWrappers is for the internal use of the proto package.
  1698  func (*AlterTableReq) XXX_OneofWrappers() []interface{} {
  1699  	return []interface{}{
  1700  		(*AlterTableReq_AddColumn)(nil),
  1701  		(*AlterTableReq_DropColumn)(nil),
  1702  		(*AlterTableReq_RenameTable)(nil),
  1703  		(*AlterTableReq_UpdateComment)(nil),
  1704  		(*AlterTableReq_UpdateCstr)(nil),
  1705  		(*AlterTableReq_UpdatePolicy)(nil),
  1706  		(*AlterTableReq_AddPartition)(nil),
  1707  		(*AlterTableReq_RenameCol)(nil),
  1708  	}
  1709  }
  1710  
  1711  type SchemaExtra struct {
  1712  	NextColSeqnum uint32 `protobuf:"varint,1,opt,name=next_col_seqnum,json=nextColSeqnum,proto3" json:"next_col_seqnum,omitempty"`
  1713  	// sending mo_columns deletes according to this.
  1714  	DroppedAttrs  []string `protobuf:"bytes,2,rep,name=dropped_attrs,json=droppedAttrs,proto3" json:"dropped_attrs,omitempty"`
  1715  	ColumnChanged bool     `protobuf:"varint,3,opt,name=column_changed,json=columnChanged,proto3" json:"column_changed,omitempty"`
  1716  	// sending mo_tables deletes by this.
  1717  	OldName              string      `protobuf:"bytes,4,opt,name=old_name,json=oldName,proto3" json:"old_name,omitempty"`
  1718  	MinOsizeQuailifed    uint32      `protobuf:"varint,5,opt,name=min_osize_quailifed,json=minOsizeQuailifed,proto3" json:"min_osize_quailifed,omitempty"`
  1719  	MaxObjOnerun         uint32      `protobuf:"varint,6,opt,name=max_obj_onerun,json=maxObjOnerun,proto3" json:"max_obj_onerun,omitempty"`
  1720  	MaxOsizeMergedObj    uint32      `protobuf:"varint,7,opt,name=max_osize_merged_obj,json=maxOsizeMergedObj,proto3" json:"max_osize_merged_obj,omitempty"`
  1721  	Hints                []MergeHint `protobuf:"varint,8,rep,packed,name=hints,proto3,enum=api.MergeHint" json:"hints,omitempty"`
  1722  	MinCnMergeSize       uint64      `protobuf:"varint,9,opt,name=min_cn_merge_size,json=minCnMergeSize,proto3" json:"min_cn_merge_size,omitempty"`
  1723  	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
  1724  	XXX_unrecognized     []byte      `json:"-"`
  1725  	XXX_sizecache        int32       `json:"-"`
  1726  }
  1727  
  1728  func (m *SchemaExtra) Reset()         { *m = SchemaExtra{} }
  1729  func (m *SchemaExtra) String() string { return proto.CompactTextString(m) }
  1730  func (*SchemaExtra) ProtoMessage()    {}
  1731  func (*SchemaExtra) Descriptor() ([]byte, []int) {
  1732  	return fileDescriptor_00212fb1f9d3bf1c, []int{22}
  1733  }
  1734  func (m *SchemaExtra) XXX_Unmarshal(b []byte) error {
  1735  	return m.Unmarshal(b)
  1736  }
  1737  func (m *SchemaExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1738  	if deterministic {
  1739  		return xxx_messageInfo_SchemaExtra.Marshal(b, m, deterministic)
  1740  	} else {
  1741  		b = b[:cap(b)]
  1742  		n, err := m.MarshalToSizedBuffer(b)
  1743  		if err != nil {
  1744  			return nil, err
  1745  		}
  1746  		return b[:n], nil
  1747  	}
  1748  }
  1749  func (m *SchemaExtra) XXX_Merge(src proto.Message) {
  1750  	xxx_messageInfo_SchemaExtra.Merge(m, src)
  1751  }
  1752  func (m *SchemaExtra) XXX_Size() int {
  1753  	return m.ProtoSize()
  1754  }
  1755  func (m *SchemaExtra) XXX_DiscardUnknown() {
  1756  	xxx_messageInfo_SchemaExtra.DiscardUnknown(m)
  1757  }
  1758  
  1759  var xxx_messageInfo_SchemaExtra proto.InternalMessageInfo
  1760  
  1761  func (m *SchemaExtra) GetNextColSeqnum() uint32 {
  1762  	if m != nil {
  1763  		return m.NextColSeqnum
  1764  	}
  1765  	return 0
  1766  }
  1767  
  1768  func (m *SchemaExtra) GetDroppedAttrs() []string {
  1769  	if m != nil {
  1770  		return m.DroppedAttrs
  1771  	}
  1772  	return nil
  1773  }
  1774  
  1775  func (m *SchemaExtra) GetColumnChanged() bool {
  1776  	if m != nil {
  1777  		return m.ColumnChanged
  1778  	}
  1779  	return false
  1780  }
  1781  
  1782  func (m *SchemaExtra) GetOldName() string {
  1783  	if m != nil {
  1784  		return m.OldName
  1785  	}
  1786  	return ""
  1787  }
  1788  
  1789  func (m *SchemaExtra) GetMinOsizeQuailifed() uint32 {
  1790  	if m != nil {
  1791  		return m.MinOsizeQuailifed
  1792  	}
  1793  	return 0
  1794  }
  1795  
  1796  func (m *SchemaExtra) GetMaxObjOnerun() uint32 {
  1797  	if m != nil {
  1798  		return m.MaxObjOnerun
  1799  	}
  1800  	return 0
  1801  }
  1802  
  1803  func (m *SchemaExtra) GetMaxOsizeMergedObj() uint32 {
  1804  	if m != nil {
  1805  		return m.MaxOsizeMergedObj
  1806  	}
  1807  	return 0
  1808  }
  1809  
  1810  func (m *SchemaExtra) GetHints() []MergeHint {
  1811  	if m != nil {
  1812  		return m.Hints
  1813  	}
  1814  	return nil
  1815  }
  1816  
  1817  func (m *SchemaExtra) GetMinCnMergeSize() uint64 {
  1818  	if m != nil {
  1819  		return m.MinCnMergeSize
  1820  	}
  1821  	return 0
  1822  }
  1823  
  1824  // Int64Map mainly used in unit test
  1825  type Int64Map struct {
  1826  	M                    map[int64]int64 `protobuf:"bytes,1,rep,name=m,proto3" json:"m,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  1827  	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
  1828  	XXX_unrecognized     []byte          `json:"-"`
  1829  	XXX_sizecache        int32           `json:"-"`
  1830  }
  1831  
  1832  func (m *Int64Map) Reset()         { *m = Int64Map{} }
  1833  func (m *Int64Map) String() string { return proto.CompactTextString(m) }
  1834  func (*Int64Map) ProtoMessage()    {}
  1835  func (*Int64Map) Descriptor() ([]byte, []int) {
  1836  	return fileDescriptor_00212fb1f9d3bf1c, []int{23}
  1837  }
  1838  func (m *Int64Map) XXX_Unmarshal(b []byte) error {
  1839  	return m.Unmarshal(b)
  1840  }
  1841  func (m *Int64Map) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1842  	if deterministic {
  1843  		return xxx_messageInfo_Int64Map.Marshal(b, m, deterministic)
  1844  	} else {
  1845  		b = b[:cap(b)]
  1846  		n, err := m.MarshalToSizedBuffer(b)
  1847  		if err != nil {
  1848  			return nil, err
  1849  		}
  1850  		return b[:n], nil
  1851  	}
  1852  }
  1853  func (m *Int64Map) XXX_Merge(src proto.Message) {
  1854  	xxx_messageInfo_Int64Map.Merge(m, src)
  1855  }
  1856  func (m *Int64Map) XXX_Size() int {
  1857  	return m.ProtoSize()
  1858  }
  1859  func (m *Int64Map) XXX_DiscardUnknown() {
  1860  	xxx_messageInfo_Int64Map.DiscardUnknown(m)
  1861  }
  1862  
  1863  var xxx_messageInfo_Int64Map proto.InternalMessageInfo
  1864  
  1865  func (m *Int64Map) GetM() map[int64]int64 {
  1866  	if m != nil {
  1867  		return m.M
  1868  	}
  1869  	return nil
  1870  }
  1871  
  1872  type TransDestPos struct {
  1873  	ObjIdx               int32    `protobuf:"varint,1,opt,name=objIdx,proto3" json:"objIdx,omitempty"`
  1874  	BlkIdx               int32    `protobuf:"varint,2,opt,name=blkIdx,proto3" json:"blkIdx,omitempty"`
  1875  	RowIdx               int32    `protobuf:"varint,3,opt,name=rowIdx,proto3" json:"rowIdx,omitempty"`
  1876  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1877  	XXX_unrecognized     []byte   `json:"-"`
  1878  	XXX_sizecache        int32    `json:"-"`
  1879  }
  1880  
  1881  func (m *TransDestPos) Reset()         { *m = TransDestPos{} }
  1882  func (m *TransDestPos) String() string { return proto.CompactTextString(m) }
  1883  func (*TransDestPos) ProtoMessage()    {}
  1884  func (*TransDestPos) Descriptor() ([]byte, []int) {
  1885  	return fileDescriptor_00212fb1f9d3bf1c, []int{24}
  1886  }
  1887  func (m *TransDestPos) XXX_Unmarshal(b []byte) error {
  1888  	return m.Unmarshal(b)
  1889  }
  1890  func (m *TransDestPos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1891  	if deterministic {
  1892  		return xxx_messageInfo_TransDestPos.Marshal(b, m, deterministic)
  1893  	} else {
  1894  		b = b[:cap(b)]
  1895  		n, err := m.MarshalToSizedBuffer(b)
  1896  		if err != nil {
  1897  			return nil, err
  1898  		}
  1899  		return b[:n], nil
  1900  	}
  1901  }
  1902  func (m *TransDestPos) XXX_Merge(src proto.Message) {
  1903  	xxx_messageInfo_TransDestPos.Merge(m, src)
  1904  }
  1905  func (m *TransDestPos) XXX_Size() int {
  1906  	return m.ProtoSize()
  1907  }
  1908  func (m *TransDestPos) XXX_DiscardUnknown() {
  1909  	xxx_messageInfo_TransDestPos.DiscardUnknown(m)
  1910  }
  1911  
  1912  var xxx_messageInfo_TransDestPos proto.InternalMessageInfo
  1913  
  1914  func (m *TransDestPos) GetObjIdx() int32 {
  1915  	if m != nil {
  1916  		return m.ObjIdx
  1917  	}
  1918  	return 0
  1919  }
  1920  
  1921  func (m *TransDestPos) GetBlkIdx() int32 {
  1922  	if m != nil {
  1923  		return m.BlkIdx
  1924  	}
  1925  	return 0
  1926  }
  1927  
  1928  func (m *TransDestPos) GetRowIdx() int32 {
  1929  	if m != nil {
  1930  		return m.RowIdx
  1931  	}
  1932  	return 0
  1933  }
  1934  
  1935  type BlkTransMap struct {
  1936  	M                    map[int32]TransDestPos `protobuf:"bytes,1,rep,name=m,proto3" json:"m" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1937  	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
  1938  	XXX_unrecognized     []byte                 `json:"-"`
  1939  	XXX_sizecache        int32                  `json:"-"`
  1940  }
  1941  
  1942  func (m *BlkTransMap) Reset()         { *m = BlkTransMap{} }
  1943  func (m *BlkTransMap) String() string { return proto.CompactTextString(m) }
  1944  func (*BlkTransMap) ProtoMessage()    {}
  1945  func (*BlkTransMap) Descriptor() ([]byte, []int) {
  1946  	return fileDescriptor_00212fb1f9d3bf1c, []int{25}
  1947  }
  1948  func (m *BlkTransMap) XXX_Unmarshal(b []byte) error {
  1949  	return m.Unmarshal(b)
  1950  }
  1951  func (m *BlkTransMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1952  	if deterministic {
  1953  		return xxx_messageInfo_BlkTransMap.Marshal(b, m, deterministic)
  1954  	} else {
  1955  		b = b[:cap(b)]
  1956  		n, err := m.MarshalToSizedBuffer(b)
  1957  		if err != nil {
  1958  			return nil, err
  1959  		}
  1960  		return b[:n], nil
  1961  	}
  1962  }
  1963  func (m *BlkTransMap) XXX_Merge(src proto.Message) {
  1964  	xxx_messageInfo_BlkTransMap.Merge(m, src)
  1965  }
  1966  func (m *BlkTransMap) XXX_Size() int {
  1967  	return m.ProtoSize()
  1968  }
  1969  func (m *BlkTransMap) XXX_DiscardUnknown() {
  1970  	xxx_messageInfo_BlkTransMap.DiscardUnknown(m)
  1971  }
  1972  
  1973  var xxx_messageInfo_BlkTransMap proto.InternalMessageInfo
  1974  
  1975  func (m *BlkTransMap) GetM() map[int32]TransDestPos {
  1976  	if m != nil {
  1977  		return m.M
  1978  	}
  1979  	return nil
  1980  }
  1981  
  1982  type BlkTransferBooking struct {
  1983  	Mappings             []BlkTransMap `protobuf:"bytes,1,rep,name=mappings,proto3" json:"mappings"`
  1984  	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
  1985  	XXX_unrecognized     []byte        `json:"-"`
  1986  	XXX_sizecache        int32         `json:"-"`
  1987  }
  1988  
  1989  func (m *BlkTransferBooking) Reset()         { *m = BlkTransferBooking{} }
  1990  func (m *BlkTransferBooking) String() string { return proto.CompactTextString(m) }
  1991  func (*BlkTransferBooking) ProtoMessage()    {}
  1992  func (*BlkTransferBooking) Descriptor() ([]byte, []int) {
  1993  	return fileDescriptor_00212fb1f9d3bf1c, []int{26}
  1994  }
  1995  func (m *BlkTransferBooking) XXX_Unmarshal(b []byte) error {
  1996  	return m.Unmarshal(b)
  1997  }
  1998  func (m *BlkTransferBooking) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1999  	if deterministic {
  2000  		return xxx_messageInfo_BlkTransferBooking.Marshal(b, m, deterministic)
  2001  	} else {
  2002  		b = b[:cap(b)]
  2003  		n, err := m.MarshalToSizedBuffer(b)
  2004  		if err != nil {
  2005  			return nil, err
  2006  		}
  2007  		return b[:n], nil
  2008  	}
  2009  }
  2010  func (m *BlkTransferBooking) XXX_Merge(src proto.Message) {
  2011  	xxx_messageInfo_BlkTransferBooking.Merge(m, src)
  2012  }
  2013  func (m *BlkTransferBooking) XXX_Size() int {
  2014  	return m.ProtoSize()
  2015  }
  2016  func (m *BlkTransferBooking) XXX_DiscardUnknown() {
  2017  	xxx_messageInfo_BlkTransferBooking.DiscardUnknown(m)
  2018  }
  2019  
  2020  var xxx_messageInfo_BlkTransferBooking proto.InternalMessageInfo
  2021  
  2022  func (m *BlkTransferBooking) GetMappings() []BlkTransMap {
  2023  	if m != nil {
  2024  		return m.Mappings
  2025  	}
  2026  	return nil
  2027  }
  2028  
  2029  type MergeCommitEntry struct {
  2030  	DbId                 uint64              `protobuf:"varint,1,opt,name=db_id,json=dbId,proto3" json:"db_id,omitempty"`
  2031  	TblId                uint64              `protobuf:"varint,2,opt,name=tbl_id,json=tblId,proto3" json:"tbl_id,omitempty"`
  2032  	TableName            string              `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
  2033  	StartTs              timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_ts,json=startTs,proto3" json:"start_ts"`
  2034  	MergedObjs           [][]byte            `protobuf:"bytes,5,rep,name=merged_objs,json=mergedObjs,proto3" json:"merged_objs,omitempty"`
  2035  	CreatedObjs          [][]byte            `protobuf:"bytes,6,rep,name=created_objs,json=createdObjs,proto3" json:"created_objs,omitempty"`
  2036  	Booking              *BlkTransferBooking `protobuf:"bytes,7,opt,name=booking,proto3" json:"booking,omitempty"`
  2037  	BookingLoc           []byte              `protobuf:"bytes,8,opt,name=booking_loc,json=bookingLoc,proto3" json:"booking_loc,omitempty"`
  2038  	Err                  string              `protobuf:"bytes,9,opt,name=err,proto3" json:"err,omitempty"`
  2039  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
  2040  	XXX_unrecognized     []byte              `json:"-"`
  2041  	XXX_sizecache        int32               `json:"-"`
  2042  }
  2043  
  2044  func (m *MergeCommitEntry) Reset()         { *m = MergeCommitEntry{} }
  2045  func (m *MergeCommitEntry) String() string { return proto.CompactTextString(m) }
  2046  func (*MergeCommitEntry) ProtoMessage()    {}
  2047  func (*MergeCommitEntry) Descriptor() ([]byte, []int) {
  2048  	return fileDescriptor_00212fb1f9d3bf1c, []int{27}
  2049  }
  2050  func (m *MergeCommitEntry) XXX_Unmarshal(b []byte) error {
  2051  	return m.Unmarshal(b)
  2052  }
  2053  func (m *MergeCommitEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2054  	if deterministic {
  2055  		return xxx_messageInfo_MergeCommitEntry.Marshal(b, m, deterministic)
  2056  	} else {
  2057  		b = b[:cap(b)]
  2058  		n, err := m.MarshalToSizedBuffer(b)
  2059  		if err != nil {
  2060  			return nil, err
  2061  		}
  2062  		return b[:n], nil
  2063  	}
  2064  }
  2065  func (m *MergeCommitEntry) XXX_Merge(src proto.Message) {
  2066  	xxx_messageInfo_MergeCommitEntry.Merge(m, src)
  2067  }
  2068  func (m *MergeCommitEntry) XXX_Size() int {
  2069  	return m.ProtoSize()
  2070  }
  2071  func (m *MergeCommitEntry) XXX_DiscardUnknown() {
  2072  	xxx_messageInfo_MergeCommitEntry.DiscardUnknown(m)
  2073  }
  2074  
  2075  var xxx_messageInfo_MergeCommitEntry proto.InternalMessageInfo
  2076  
  2077  func (m *MergeCommitEntry) GetDbId() uint64 {
  2078  	if m != nil {
  2079  		return m.DbId
  2080  	}
  2081  	return 0
  2082  }
  2083  
  2084  func (m *MergeCommitEntry) GetTblId() uint64 {
  2085  	if m != nil {
  2086  		return m.TblId
  2087  	}
  2088  	return 0
  2089  }
  2090  
  2091  func (m *MergeCommitEntry) GetTableName() string {
  2092  	if m != nil {
  2093  		return m.TableName
  2094  	}
  2095  	return ""
  2096  }
  2097  
  2098  func (m *MergeCommitEntry) GetStartTs() timestamp.Timestamp {
  2099  	if m != nil {
  2100  		return m.StartTs
  2101  	}
  2102  	return timestamp.Timestamp{}
  2103  }
  2104  
  2105  func (m *MergeCommitEntry) GetMergedObjs() [][]byte {
  2106  	if m != nil {
  2107  		return m.MergedObjs
  2108  	}
  2109  	return nil
  2110  }
  2111  
  2112  func (m *MergeCommitEntry) GetCreatedObjs() [][]byte {
  2113  	if m != nil {
  2114  		return m.CreatedObjs
  2115  	}
  2116  	return nil
  2117  }
  2118  
  2119  func (m *MergeCommitEntry) GetBooking() *BlkTransferBooking {
  2120  	if m != nil {
  2121  		return m.Booking
  2122  	}
  2123  	return nil
  2124  }
  2125  
  2126  func (m *MergeCommitEntry) GetBookingLoc() []byte {
  2127  	if m != nil {
  2128  		return m.BookingLoc
  2129  	}
  2130  	return nil
  2131  }
  2132  
  2133  func (m *MergeCommitEntry) GetErr() string {
  2134  	if m != nil {
  2135  		return m.Err
  2136  	}
  2137  	return ""
  2138  }
  2139  
  2140  type MergeTaskEntry struct {
  2141  	DbId      uint64 `protobuf:"varint,1,opt,name=db_id,json=dbId,proto3" json:"db_id,omitempty"`
  2142  	TblId     uint64 `protobuf:"varint,2,opt,name=tbl_id,json=tblId,proto3" json:"tbl_id,omitempty"`
  2143  	TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
  2144  	DbName    string `protobuf:"bytes,4,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
  2145  	// ObjectStats
  2146  	ToMergeObjs          [][]byte `protobuf:"bytes,5,rep,name=to_merge_objs,json=toMergeObjs,proto3" json:"to_merge_objs,omitempty"`
  2147  	EstimatedMemUsage    uint64   `protobuf:"varint,6,opt,name=estimated_mem_usage,json=estimatedMemUsage,proto3" json:"estimated_mem_usage,omitempty"`
  2148  	AccountId            uint32   `protobuf:"varint,7,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
  2149  	UserId               uint32   `protobuf:"varint,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  2150  	RoleId               uint32   `protobuf:"varint,9,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
  2151  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2152  	XXX_unrecognized     []byte   `json:"-"`
  2153  	XXX_sizecache        int32    `json:"-"`
  2154  }
  2155  
  2156  func (m *MergeTaskEntry) Reset()         { *m = MergeTaskEntry{} }
  2157  func (m *MergeTaskEntry) String() string { return proto.CompactTextString(m) }
  2158  func (*MergeTaskEntry) ProtoMessage()    {}
  2159  func (*MergeTaskEntry) Descriptor() ([]byte, []int) {
  2160  	return fileDescriptor_00212fb1f9d3bf1c, []int{28}
  2161  }
  2162  func (m *MergeTaskEntry) XXX_Unmarshal(b []byte) error {
  2163  	return m.Unmarshal(b)
  2164  }
  2165  func (m *MergeTaskEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2166  	if deterministic {
  2167  		return xxx_messageInfo_MergeTaskEntry.Marshal(b, m, deterministic)
  2168  	} else {
  2169  		b = b[:cap(b)]
  2170  		n, err := m.MarshalToSizedBuffer(b)
  2171  		if err != nil {
  2172  			return nil, err
  2173  		}
  2174  		return b[:n], nil
  2175  	}
  2176  }
  2177  func (m *MergeTaskEntry) XXX_Merge(src proto.Message) {
  2178  	xxx_messageInfo_MergeTaskEntry.Merge(m, src)
  2179  }
  2180  func (m *MergeTaskEntry) XXX_Size() int {
  2181  	return m.ProtoSize()
  2182  }
  2183  func (m *MergeTaskEntry) XXX_DiscardUnknown() {
  2184  	xxx_messageInfo_MergeTaskEntry.DiscardUnknown(m)
  2185  }
  2186  
  2187  var xxx_messageInfo_MergeTaskEntry proto.InternalMessageInfo
  2188  
  2189  func (m *MergeTaskEntry) GetDbId() uint64 {
  2190  	if m != nil {
  2191  		return m.DbId
  2192  	}
  2193  	return 0
  2194  }
  2195  
  2196  func (m *MergeTaskEntry) GetTblId() uint64 {
  2197  	if m != nil {
  2198  		return m.TblId
  2199  	}
  2200  	return 0
  2201  }
  2202  
  2203  func (m *MergeTaskEntry) GetTableName() string {
  2204  	if m != nil {
  2205  		return m.TableName
  2206  	}
  2207  	return ""
  2208  }
  2209  
  2210  func (m *MergeTaskEntry) GetDbName() string {
  2211  	if m != nil {
  2212  		return m.DbName
  2213  	}
  2214  	return ""
  2215  }
  2216  
  2217  func (m *MergeTaskEntry) GetToMergeObjs() [][]byte {
  2218  	if m != nil {
  2219  		return m.ToMergeObjs
  2220  	}
  2221  	return nil
  2222  }
  2223  
  2224  func (m *MergeTaskEntry) GetEstimatedMemUsage() uint64 {
  2225  	if m != nil {
  2226  		return m.EstimatedMemUsage
  2227  	}
  2228  	return 0
  2229  }
  2230  
  2231  func (m *MergeTaskEntry) GetAccountId() uint32 {
  2232  	if m != nil {
  2233  		return m.AccountId
  2234  	}
  2235  	return 0
  2236  }
  2237  
  2238  func (m *MergeTaskEntry) GetUserId() uint32 {
  2239  	if m != nil {
  2240  		return m.UserId
  2241  	}
  2242  	return 0
  2243  }
  2244  
  2245  func (m *MergeTaskEntry) GetRoleId() uint32 {
  2246  	if m != nil {
  2247  		return m.RoleId
  2248  	}
  2249  	return 0
  2250  }
  2251  
  2252  func init() {
  2253  	proto.RegisterEnum("api.OpCode", OpCode_name, OpCode_value)
  2254  	proto.RegisterEnum("api.AlterKind", AlterKind_name, AlterKind_value)
  2255  	proto.RegisterEnum("api.MergeHint", MergeHint_name, MergeHint_value)
  2256  	proto.RegisterEnum("api.Entry_EntryType", Entry_EntryType_name, Entry_EntryType_value)
  2257  	proto.RegisterType((*TNPingRequest)(nil), "api.TNPingRequest")
  2258  	proto.RegisterType((*TNPingResponse)(nil), "api.TNPingResponse")
  2259  	proto.RegisterType((*TNStringResponse)(nil), "api.TNStringResponse")
  2260  	proto.RegisterType((*Vector)(nil), "api.Vector")
  2261  	proto.RegisterType((*Batch)(nil), "api.Batch")
  2262  	proto.RegisterType((*TableID)(nil), "api.TableID")
  2263  	proto.RegisterType((*SyncLogTailReq)(nil), "api.SyncLogTailReq")
  2264  	proto.RegisterType((*SyncLogTailResp)(nil), "api.SyncLogTailResp")
  2265  	proto.RegisterType((*PrecommitWriteCmd)(nil), "api.PrecommitWriteCmd")
  2266  	proto.RegisterType((*Entry)(nil), "api.Entry")
  2267  	proto.RegisterType((*Checkpoint)(nil), "api.Checkpoint")
  2268  	proto.RegisterType((*CatalogCkp)(nil), "api.CatalogCkp")
  2269  	proto.RegisterType((*MetadataCkp)(nil), "api.MetadataCkp")
  2270  	proto.RegisterType((*AlterTablePolicy)(nil), "api.AlterTablePolicy")
  2271  	proto.RegisterType((*AlterTableConstraint)(nil), "api.AlterTableConstraint")
  2272  	proto.RegisterType((*AlterTableComment)(nil), "api.AlterTableComment")
  2273  	proto.RegisterType((*AlterTableRenameTable)(nil), "api.AlterTableRenameTable")
  2274  	proto.RegisterType((*AlterTableRenameCol)(nil), "api.AlterTableRenameCol")
  2275  	proto.RegisterType((*AlterTableAddColumn)(nil), "api.AlterTableAddColumn")
  2276  	proto.RegisterType((*AlterTableAddPartition)(nil), "api.AlterTableAddPartition")
  2277  	proto.RegisterType((*AlterTableDropColumn)(nil), "api.AlterTableDropColumn")
  2278  	proto.RegisterType((*AlterTableReq)(nil), "api.AlterTableReq")
  2279  	proto.RegisterType((*SchemaExtra)(nil), "api.SchemaExtra")
  2280  	proto.RegisterType((*Int64Map)(nil), "api.Int64Map")
  2281  	proto.RegisterMapType((map[int64]int64)(nil), "api.Int64Map.MEntry")
  2282  	proto.RegisterType((*TransDestPos)(nil), "api.TransDestPos")
  2283  	proto.RegisterType((*BlkTransMap)(nil), "api.BlkTransMap")
  2284  	proto.RegisterMapType((map[int32]TransDestPos)(nil), "api.BlkTransMap.MEntry")
  2285  	proto.RegisterType((*BlkTransferBooking)(nil), "api.BlkTransferBooking")
  2286  	proto.RegisterType((*MergeCommitEntry)(nil), "api.MergeCommitEntry")
  2287  	proto.RegisterType((*MergeTaskEntry)(nil), "api.MergeTaskEntry")
  2288  }
  2289  
  2290  func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) }
  2291  
  2292  var fileDescriptor_00212fb1f9d3bf1c = []byte{
  2293  	// 2305 bytes of a gzipped FileDescriptorProto
  2294  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x4b, 0x6f, 0x23, 0xc7,
  2295  	0xf1, 0xd7, 0xf0, 0xcd, 0x1a, 0x3e, 0x46, 0xbd, 0xf2, 0x9a, 0x96, 0xfd, 0xdf, 0xd5, 0x7f, 0xec,
  2296  	0xd8, 0xb2, 0x1d, 0x6b, 0x11, 0xd9, 0x49, 0x6c, 0xc3, 0xb0, 0xb1, 0xa2, 0xec, 0x15, 0x93, 0x95,
  2297  	0xa8, 0x8c, 0xb8, 0x36, 0x60, 0x04, 0x18, 0x34, 0x67, 0x5a, 0xd4, 0x2c, 0x67, 0xba, 0x7b, 0x67,
  2298  	0x9a, 0x5a, 0xc9, 0xd7, 0xc4, 0x5f, 0x20, 0xb7, 0xdc, 0xec, 0x53, 0x0e, 0xb9, 0xe6, 0x9c, 0xb3,
  2299  	0x8f, 0x0e, 0xf2, 0x4e, 0x80, 0xc0, 0x70, 0x80, 0x20, 0x8f, 0x6b, 0x3e, 0x40, 0xd0, 0xd5, 0x33,
  2300  	0x24, 0xa5, 0xdd, 0x75, 0xe2, 0x20, 0x80, 0x2f, 0x44, 0xd7, 0xaf, 0x1e, 0x5d, 0x55, 0x5d, 0xdd,
  2301  	0x55, 0x43, 0x68, 0x52, 0x19, 0x6d, 0xc9, 0x54, 0x28, 0x41, 0xca, 0x54, 0x46, 0xeb, 0x2f, 0x4d,
  2302  	0x22, 0x75, 0x32, 0x1b, 0x6f, 0x05, 0x22, 0xb9, 0x31, 0x11, 0x13, 0x71, 0x03, 0x79, 0xe3, 0xd9,
  2303  	0x31, 0x52, 0x48, 0xe0, 0xca, 0xe8, 0xac, 0x77, 0x55, 0x94, 0xb0, 0x4c, 0xd1, 0x44, 0xe6, 0x00,
  2304  	0xc8, 0x98, 0x72, 0xb3, 0x76, 0xbf, 0x0d, 0xed, 0xd1, 0xc1, 0x61, 0xc4, 0x27, 0x1e, 0xbb, 0x37,
  2305  	0x63, 0x99, 0x22, 0x4f, 0x41, 0x53, 0xd2, 0x94, 0x26, 0x4c, 0xb1, 0xb4, 0x67, 0x6d, 0x58, 0x9b,
  2306  	0x4d, 0x6f, 0x01, 0xbc, 0xde, 0xf8, 0xe8, 0xe3, 0xeb, 0xd6, 0x67, 0x1f, 0x5f, 0x5f, 0x71, 0x7f,
  2307  	0x66, 0x41, 0xa7, 0xd0, 0xcc, 0xa4, 0xe0, 0x19, 0x23, 0x3d, 0xa8, 0x67, 0x4a, 0xa4, 0x6c, 0xb0,
  2308  	0x9b, 0x2b, 0x16, 0x24, 0x79, 0x16, 0x3a, 0x19, 0x4b, 0x4f, 0xa3, 0x80, 0xdd, 0x0c, 0xc3, 0x94,
  2309  	0x65, 0x59, 0xaf, 0x84, 0x02, 0x97, 0x50, 0xb4, 0x70, 0x42, 0xd3, 0x70, 0xb0, 0xdb, 0x2b, 0x6f,
  2310  	0x58, 0x9b, 0x15, 0xaf, 0x20, 0xb5, 0x5b, 0x29, 0x93, 0x71, 0x14, 0xd0, 0xc1, 0x6e, 0xaf, 0x82,
  2311  	0xbc, 0x05, 0x40, 0xae, 0x01, 0xc4, 0x62, 0x72, 0x94, 0xab, 0x56, 0x91, 0xbd, 0x84, 0x2c, 0xb9,
  2312  	0xfd, 0x3a, 0x38, 0xa3, 0x83, 0x23, 0x95, 0x2e, 0xfb, 0x8d, 0xb6, 0xd5, 0x2c, 0xe5, 0x47, 0x6a,
  2313  	0x1e, 0xf2, 0x1c, 0x58, 0xd2, 0xfd, 0xa9, 0x05, 0xb5, 0x77, 0x59, 0xa0, 0x44, 0x4a, 0x08, 0x54,
  2314  	0x42, 0xaa, 0x28, 0x4a, 0xb7, 0x3c, 0x5c, 0x93, 0x6b, 0x50, 0x51, 0xe7, 0x92, 0x61, 0x68, 0xf6,
  2315  	0x36, 0x6c, 0x61, 0x96, 0x47, 0xe7, 0x92, 0x79, 0x88, 0x93, 0x75, 0x68, 0xf0, 0x59, 0x1c, 0xd3,
  2316  	0x71, 0xcc, 0x30, 0xba, 0x86, 0x37, 0xa7, 0x89, 0x03, 0x65, 0x9e, 0x49, 0x0c, 0xac, 0xe5, 0xe9,
  2317  	0x25, 0x79, 0x02, 0x1a, 0x51, 0xe6, 0x07, 0x82, 0x67, 0x0a, 0x03, 0x6a, 0x78, 0xf5, 0x28, 0xeb,
  2318  	0x6b, 0x52, 0x0b, 0xc7, 0x8c, 0xf7, 0x6a, 0x1b, 0xd6, 0x66, 0xdb, 0xd3, 0x4b, 0xed, 0x0e, 0x4d,
  2319  	0x19, 0xed, 0xd5, 0x8d, 0x3b, 0x7a, 0xed, 0x7e, 0x07, 0xaa, 0x3b, 0x54, 0x05, 0x27, 0x64, 0x1d,
  2320  	0xaa, 0x54, 0xa9, 0x34, 0xeb, 0x59, 0x1b, 0xe5, 0xcd, 0xe6, 0x4e, 0xe5, 0x93, 0x3f, 0x5d, 0x5f,
  2321  	0xf1, 0x0c, 0x44, 0xbe, 0x06, 0x95, 0x53, 0x16, 0xe8, 0xe3, 0x28, 0x6f, 0xda, 0xdb, 0xf6, 0x96,
  2322  	0xae, 0x34, 0x13, 0x62, 0x2e, 0x87, 0x6c, 0xf7, 0x5d, 0xa8, 0x8f, 0xb4, 0x9f, 0x83, 0x5d, 0x72,
  2323  	0x05, 0xaa, 0xe1, 0xd8, 0x8f, 0x42, 0x0c, 0xbd, 0xe2, 0x55, 0xc2, 0xf1, 0x20, 0xd4, 0xa0, 0x42,
  2324  	0xb0, 0x64, 0x40, 0xa5, 0xc1, 0xff, 0x87, 0x96, 0xa4, 0xa9, 0x8a, 0x54, 0x24, 0xb8, 0xe6, 0x99,
  2325  	0x13, 0xb5, 0xe7, 0xd8, 0x20, 0x74, 0x7f, 0x64, 0x41, 0xe7, 0xe8, 0x9c, 0x07, 0xb7, 0xc5, 0x64,
  2326  	0x44, 0xa3, 0xd8, 0x63, 0xf7, 0xc8, 0x4b, 0x50, 0x0f, 0xb8, 0x7f, 0x42, 0x4f, 0x19, 0xee, 0x60,
  2327  	0x6f, 0xaf, 0x6d, 0x2d, 0xea, 0x77, 0x54, 0xac, 0xbc, 0x5a, 0xc0, 0xf7, 0xe8, 0x29, 0xcb, 0xc5,
  2328  	0xef, 0x53, 0xae, 0xf2, 0xbc, 0x3f, 0x52, 0xfc, 0x3d, 0xca, 0x15, 0x71, 0xa1, 0xaa, 0xe6, 0x07,
  2329  	0x60, 0x6f, 0xb7, 0x30, 0xe0, 0x3c, 0x34, 0xcf, 0xb0, 0xdc, 0xef, 0x43, 0xf7, 0x82, 0x4f, 0x99,
  2330  	0xd4, 0xa1, 0x04, 0x53, 0xe9, 0xc7, 0x22, 0xa0, 0xda, 0xf3, 0xbc, 0x48, 0xec, 0x60, 0x2a, 0x6f,
  2331  	0xe7, 0x10, 0x79, 0x16, 0x1a, 0x81, 0x48, 0x12, 0xca, 0xc3, 0x22, 0x9b, 0x80, 0xc6, 0xdf, 0xe6,
  2332  	0x2a, 0x3d, 0xf7, 0xe6, 0x3c, 0xf7, 0x4d, 0x58, 0x3d, 0x4c, 0x99, 0x26, 0x23, 0xf5, 0x5e, 0x1a,
  2333  	0x29, 0xd6, 0x4f, 0x42, 0xf2, 0x3c, 0x00, 0xd3, 0x72, 0x7e, 0x1c, 0x65, 0x0a, 0xcf, 0xe9, 0xa2,
  2334  	0x7a, 0x13, 0xb9, 0xb7, 0xa3, 0x4c, 0xb9, 0xff, 0x28, 0x41, 0x15, 0x41, 0xf2, 0x72, 0xa1, 0x84,
  2335  	0x55, 0xa7, 0x5d, 0xea, 0x6c, 0xaf, 0x2d, 0x94, 0xcc, 0x2f, 0xd6, 0x9f, 0x51, 0xd7, 0x4b, 0x5d,
  2336  	0x56, 0x18, 0xe5, 0xe2, 0xb0, 0xea, 0x48, 0x0f, 0x42, 0x72, 0x1d, 0x6c, 0x5d, 0xc7, 0x63, 0x9a,
  2337  	0xb1, 0xc5, 0x71, 0x41, 0x01, 0x0d, 0x42, 0xf2, 0x7f, 0x00, 0x46, 0x97, 0xd3, 0x84, 0x61, 0xad,
  2338  	0x36, 0xbd, 0x26, 0x22, 0x07, 0x34, 0x61, 0xe4, 0x69, 0x68, 0xcf, 0xf5, 0x51, 0xa2, 0x8a, 0x12,
  2339  	0xad, 0x02, 0x44, 0xa1, 0x27, 0xa1, 0x79, 0x1c, 0x15, 0x26, 0x6a, 0x28, 0xd0, 0xd0, 0x00, 0x32,
  2340  	0x9f, 0x82, 0xf2, 0x98, 0x2a, 0xac, 0xe2, 0x22, 0x7e, 0x2c, 0x61, 0x4f, 0xc3, 0xe4, 0x69, 0xe8,
  2341  	0xc8, 0xa9, 0x1f, 0x9c, 0xb0, 0x60, 0xea, 0x8f, 0xcf, 0x7d, 0xc5, 0x7b, 0x8d, 0x0d, 0x6b, 0xb3,
  2342  	0xea, 0xd9, 0x72, 0xda, 0xd7, 0xe0, 0xce, 0xf9, 0x88, 0xbb, 0xfb, 0xd0, 0x9c, 0xc7, 0x4d, 0x00,
  2343  	0x6a, 0x03, 0x9e, 0xb1, 0x54, 0x39, 0x2b, 0x7a, 0xbd, 0xcb, 0x62, 0xa6, 0x98, 0x63, 0xe9, 0xf5,
  2344  	0x1d, 0x19, 0x52, 0xc5, 0x9c, 0x12, 0x69, 0x42, 0xf5, 0x66, 0xac, 0x58, 0xea, 0x94, 0xc9, 0x2a,
  2345  	0xb4, 0x8f, 0x24, 0x0b, 0x22, 0x1a, 0xe7, 0x92, 0x15, 0xf7, 0x87, 0x16, 0x00, 0x1a, 0x97, 0x22,
  2346  	0xe2, 0x8a, 0xbc, 0x08, 0xb5, 0x24, 0xe2, 0xbe, 0xca, 0xbe, 0xb0, 0x36, 0xab, 0x49, 0xc4, 0x47,
  2347  	0x19, 0x0a, 0xd3, 0x33, 0x2d, 0x5c, 0xfa, 0x42, 0x61, 0x7a, 0x36, 0xca, 0x8a, 0xd0, 0xcb, 0x0f,
  2348  	0x0d, 0xdd, 0xb8, 0x41, 0x15, 0x8d, 0xc5, 0xa4, 0x3f, 0x95, 0x5f, 0x99, 0x1b, 0x1f, 0x5a, 0x60,
  2349  	0xef, 0x33, 0x45, 0xf5, 0x89, 0x7e, 0x95, 0x7e, 0xfc, 0xdd, 0x02, 0x07, 0x0f, 0x0d, 0x6f, 0xee,
  2350  	0xa1, 0x88, 0xa3, 0xe0, 0x9c, 0x6c, 0xc1, 0x15, 0xed, 0x8c, 0xc8, 0xa2, 0x0f, 0x98, 0x7f, 0x6f,
  2351  	0x46, 0xa3, 0x38, 0x3a, 0x66, 0xe6, 0x99, 0x6a, 0x7b, 0xab, 0x49, 0xc4, 0x87, 0x9a, 0xf3, 0xbd,
  2352  	0x82, 0x41, 0x9e, 0x81, 0x8e, 0xf6, 0x47, 0x8c, 0xef, 0xfa, 0x82, 0xb3, 0x74, 0xc6, 0xd1, 0xaf,
  2353  	0xb6, 0xd7, 0x4a, 0xe8, 0xd9, 0x70, 0x7c, 0x77, 0x88, 0x18, 0xb9, 0x01, 0x6b, 0x28, 0x85, 0x56,
  2354  	0x13, 0x96, 0x4e, 0x58, 0xa8, 0x55, 0xd0, 0x33, 0x6d, 0x96, 0x9e, 0xa1, 0xd9, 0x7d, 0xe4, 0x0c,
  2355  	0xc7, 0x77, 0xc9, 0x33, 0x50, 0x3d, 0x89, 0xb8, 0xca, 0x7a, 0x95, 0x8d, 0xf2, 0x66, 0x67, 0xbb,
  2356  	0x83, 0xbe, 0x23, 0x7b, 0x2f, 0xe2, 0xca, 0x33, 0x4c, 0xf2, 0x3c, 0x68, 0x8f, 0xfc, 0x80, 0x1b,
  2357  	0x9b, 0xbe, 0xb6, 0x91, 0xf7, 0xad, 0x4e, 0x12, 0xf1, 0x3e, 0x47, 0x8d, 0xa3, 0xe8, 0x03, 0xe6,
  2358  	0xbe, 0x0a, 0x6b, 0x8b, 0x58, 0xb1, 0x01, 0xa4, 0x54, 0xd7, 0xe2, 0x06, 0xd8, 0xc1, 0x9c, 0xca,
  2359  	0xf2, 0x4e, 0xb4, 0x0c, 0xb9, 0x2f, 0xc1, 0xea, 0xb2, 0x66, 0x92, 0x30, 0xae, 0x74, 0x8b, 0x0d,
  2360  	0xcc, 0xb2, 0x68, 0xd2, 0x39, 0xe9, 0xee, 0xc3, 0x63, 0x0b, 0x71, 0x8f, 0xe9, 0x1b, 0x8a, 0x4b,
  2361  	0xfd, 0x66, 0x88, 0x38, 0x34, 0x57, 0x36, 0xd7, 0x11, 0x71, 0x88, 0x37, 0xf6, 0x09, 0x68, 0x70,
  2362  	0x76, 0xdf, 0xb0, 0x4c, 0x4b, 0xaf, 0x73, 0x76, 0x5f, 0xb3, 0x5c, 0x0e, 0x57, 0x2e, 0x9b, 0xeb,
  2363  	0x8b, 0xf8, 0xbf, 0x33, 0xa6, 0x1f, 0xe0, 0x4c, 0x0f, 0x28, 0x3c, 0x60, 0x3e, 0x9f, 0x25, 0x79,
  2364  	0xfa, 0xed, 0x02, 0x3b, 0x98, 0x25, 0x6e, 0xb8, 0xbc, 0xdf, 0xcd, 0x30, 0xec, 0x8b, 0x78, 0x96,
  2365  	0x70, 0xf2, 0x0c, 0xd4, 0x02, 0x5c, 0xe5, 0x35, 0xda, 0x32, 0x7d, 0xb9, 0x2f, 0xe2, 0x5d, 0x76,
  2366  	0xec, 0xe5, 0x3c, 0xf2, 0x1c, 0x74, 0x23, 0x7c, 0x29, 0x7c, 0x29, 0x32, 0xec, 0x4e, 0xe8, 0x41,
  2367  	0xd5, 0xeb, 0x18, 0xf8, 0x30, 0x47, 0xdd, 0x23, 0xb8, 0x7a, 0x61, 0x97, 0xc3, 0xa2, 0x9b, 0x91,
  2368  	0xd7, 0xa0, 0xbd, 0x68, 0x77, 0x21, 0x3b, 0x9e, 0xdf, 0x09, 0xdc, 0x6f, 0x2e, 0xb7, 0x73, 0xae,
  2369  	0xf7, 0x5d, 0x74, 0xc6, 0x5d, 0x76, 0xec, 0xbe, 0xbf, 0x7c, 0xc4, 0xbb, 0xa9, 0x90, 0xb9, 0xef,
  2370  	0xd7, 0xc1, 0x8e, 0xc5, 0x24, 0x0a, 0x68, 0xec, 0x47, 0xe1, 0x59, 0x5e, 0xca, 0x90, 0x43, 0x83,
  2371  	0xf0, 0xec, 0x81, 0xb4, 0x94, 0x1e, 0x4c, 0xcb, 0x5f, 0x2a, 0xd0, 0x5e, 0x3e, 0x87, 0x7b, 0x17,
  2372  	0x5a, 0x80, 0x75, 0xb1, 0x05, 0xcc, 0x9b, 0x7b, 0x69, 0xa9, 0xb9, 0xbb, 0x50, 0x99, 0x46, 0xdc,
  2373  	0x34, 0x84, 0xa2, 0xa0, 0xd1, 0xe2, 0x77, 0x23, 0x1e, 0x7a, 0xc8, 0x23, 0xaf, 0x01, 0xd0, 0x30,
  2374  	0xf4, 0xf3, 0x4c, 0x57, 0x30, 0xf2, 0xde, 0x42, 0xf2, 0xe2, 0x99, 0xec, 0xad, 0x78, 0x4d, 0x3a,
  2375  	0x3f, 0xa0, 0x37, 0xc0, 0x0e, 0x53, 0x21, 0x0b, 0xdd, 0x2a, 0xea, 0x3e, 0x71, 0x49, 0x77, 0x91,
  2376  	0x94, 0xbd, 0x15, 0x0f, 0xc2, 0x45, 0x8a, 0xde, 0x82, 0x56, 0x8a, 0xb5, 0xe5, 0x9b, 0xbe, 0x5e,
  2377  	0x43, 0xf5, 0xf5, 0x4b, 0xea, 0x4b, 0xd5, 0xbc, 0xb7, 0xe2, 0xd9, 0xe9, 0x52, 0x71, 0xbf, 0x05,
  2378  	0x9d, 0x19, 0xf6, 0x02, 0xbf, 0xb8, 0x16, 0xa6, 0xfd, 0x5c, 0xbd, 0x64, 0x22, 0xbf, 0x3f, 0x7b,
  2379  	0x2b, 0x5e, 0xdb, 0xc8, 0x17, 0x17, 0xea, 0x0d, 0xb0, 0x0b, 0x03, 0x99, 0x4a, 0xb1, 0x27, 0x3d,
  2380  	0xe8, 0xff, 0xe2, 0xde, 0x6a, 0xff, 0x73, 0x03, 0x99, 0x4a, 0xc9, 0x1b, 0x90, 0x9b, 0xf3, 0x25,
  2381  	0x3e, 0x63, 0xbd, 0x26, 0xea, 0x3f, 0x76, 0x49, 0xdf, 0xbc, 0x71, 0x7b, 0x2b, 0x5e, 0xcb, 0x48,
  2382  	0xe7, 0x6f, 0xde, 0x0e, 0xb4, 0x75, 0xda, 0xe7, 0xc5, 0xd4, 0x03, 0xd4, 0x7e, 0xf2, 0xc1, 0xcc,
  2383  	0xcf, 0xeb, 0x4f, 0xdb, 0xa0, 0x17, 0xeb, 0x16, 0xf2, 0x0c, 0x06, 0x22, 0xee, 0xd9, 0x0f, 0x3d,
  2384  	0xba, 0xf9, 0xf5, 0xd5, 0x47, 0x97, 0x16, 0xc4, 0x8e, 0x0d, 0x4d, 0x21, 0x59, 0x8a, 0x03, 0x90,
  2385  	0xfb, 0xcf, 0x12, 0xd8, 0x47, 0xc1, 0x09, 0x4b, 0xe8, 0xdb, 0x67, 0x2a, 0xa5, 0xe4, 0x59, 0xe8,
  2386  	0x72, 0x76, 0xa6, 0xb4, 0x55, 0x3f, 0x63, 0xf7, 0x74, 0x79, 0x9a, 0x02, 0x6e, 0x6b, 0xb8, 0x2f,
  2387  	0xe2, 0x23, 0x04, 0x71, 0x6c, 0x48, 0x85, 0x94, 0x2c, 0xf4, 0xcd, 0x98, 0xaa, 0xa7, 0x27, 0x3d,
  2388  	0x36, 0x18, 0xf0, 0x66, 0x3e, 0xa7, 0x76, 0x4c, 0x7d, 0xf8, 0xc1, 0x09, 0xe5, 0x13, 0x16, 0xe6,
  2389  	0x13, 0x74, 0xdb, 0xa0, 0x7d, 0x03, 0x5e, 0x78, 0x5c, 0x2a, 0x17, 0x1f, 0x97, 0x47, 0xb4, 0x87,
  2390  	0xea, 0x7f, 0xde, 0x1e, 0x6a, 0x5f, 0xa2, 0x3d, 0xd4, 0xff, 0x6d, 0x7b, 0x68, 0x7c, 0xe9, 0xf6,
  2391  	0xd0, 0x7c, 0x68, 0x7b, 0x08, 0xa1, 0x31, 0xe0, 0xea, 0x5b, 0xaf, 0xec, 0x53, 0x49, 0x5c, 0xb0,
  2392  	0x92, 0x7c, 0x7a, 0x34, 0x83, 0x60, 0xc1, 0xd9, 0xda, 0x37, 0x73, 0xa4, 0x95, 0xac, 0xbf, 0x02,
  2393  	0x35, 0x43, 0xe8, 0xcf, 0x88, 0x29, 0x3b, 0xc7, 0x43, 0x29, 0x7b, 0x7a, 0x49, 0xd6, 0xa0, 0x7a,
  2394  	0x4a, 0xe3, 0x99, 0x79, 0x7d, 0xcb, 0x9e, 0x21, 0x5e, 0x2f, 0xbd, 0x6a, 0xb9, 0xef, 0x42, 0x6b,
  2395  	0x94, 0x52, 0x9e, 0xed, 0xb2, 0x4c, 0xbf, 0x85, 0xe4, 0x2a, 0xd4, 0xc4, 0xf8, 0xee, 0x20, 0x7f,
  2396  	0x94, 0xaa, 0x5e, 0x4e, 0x69, 0x7c, 0x1c, 0x4f, 0x35, 0x6e, 0x9e, 0xcf, 0x9c, 0xd2, 0x78, 0x2a,
  2397  	0xee, 0x6b, 0xbc, 0x6c, 0x70, 0x43, 0xb9, 0x3f, 0xb0, 0xc0, 0xde, 0x89, 0xa7, 0x68, 0x5b, 0x47,
  2398  	0xf0, 0xe2, 0x22, 0x82, 0xc7, 0x4d, 0xd7, 0x5f, 0x30, 0xf3, 0x20, 0xf2, 0x0f, 0x13, 0x2b, 0x59,
  2399  	0xbf, 0xf5, 0xb0, 0x50, 0xaa, 0x26, 0x94, 0xe7, 0x96, 0x43, 0xb1, 0xb7, 0x57, 0xcd, 0xa0, 0xbf,
  2400  	0x14, 0xc2, 0x72, 0x74, 0x7b, 0x40, 0x8a, 0x7d, 0x8e, 0x59, 0xba, 0x23, 0xc4, 0x34, 0xe2, 0x13,
  2401  	0xb2, 0x0d, 0x8d, 0x84, 0x4a, 0x19, 0xf1, 0x49, 0x96, 0xbb, 0xe4, 0x5c, 0x76, 0x29, 0xf7, 0x65,
  2402  	0x2e, 0xe7, 0xfe, 0xbc, 0x04, 0x0e, 0x9e, 0x4d, 0x1f, 0x07, 0x7c, 0xe3, 0xdd, 0x43, 0x3f, 0x99,
  2403  	0x1e, 0x83, 0x9a, 0x1a, 0xc7, 0x8b, 0xb7, 0xb6, 0xaa, 0xc6, 0xf1, 0x03, 0x33, 0x76, 0xf9, 0xf2,
  2404  	0x8c, 0xfd, 0x4d, 0x68, 0x64, 0x8a, 0xa6, 0xca, 0xc7, 0x01, 0xe3, 0x91, 0x63, 0x54, 0xee, 0x57,
  2405  	0x1d, 0x65, 0x47, 0x99, 0x6e, 0x24, 0x8b, 0xe2, 0xcc, 0x7a, 0xd5, 0x8d, 0xf2, 0x66, 0xcb, 0x83,
  2406  	0xa4, 0xa8, 0xca, 0x0c, 0x3f, 0x70, 0x52, 0x46, 0x55, 0x21, 0x51, 0x43, 0x09, 0x3b, 0xc7, 0x50,
  2407  	0xe4, 0x1b, 0x50, 0x1f, 0x9b, 0xcc, 0xe4, 0x2f, 0xe4, 0xc5, 0x03, 0x5a, 0x24, 0xce, 0x2b, 0xe4,
  2408  	0xf4, 0xb6, 0xf9, 0x52, 0x7f, 0x3a, 0xe1, 0xd3, 0xd8, 0xf2, 0x20, 0x87, 0x6e, 0x8b, 0x40, 0x9f,
  2409  	0x1b, 0x4b, 0x53, 0xac, 0xec, 0xa6, 0xa7, 0x97, 0xee, 0x8f, 0x4b, 0xd0, 0xc1, 0x04, 0x8e, 0x68,
  2410  	0x36, 0xfd, 0x9f, 0xa7, 0xef, 0x71, 0xa8, 0x87, 0xe3, 0xe5, 0xe7, 0xa1, 0x16, 0x8e, 0x91, 0xe1,
  2411  	0x42, 0x5b, 0x89, 0xfc, 0xb2, 0x2d, 0xa5, 0xc8, 0x56, 0x02, 0x9d, 0xc1, 0x04, 0x6c, 0xc1, 0x15,
  2412  	0x96, 0xa9, 0x28, 0xc1, 0x2c, 0x25, 0x2c, 0xf1, 0x67, 0x19, 0x9d, 0x98, 0x8e, 0x53, 0xf1, 0x56,
  2413  	0xe7, 0xac, 0x7d, 0x96, 0xdc, 0xd1, 0x0c, 0xed, 0x0b, 0x0d, 0x02, 0x31, 0xe3, 0x4a, 0xbb, 0x69,
  2414  	0x5e, 0x84, 0x66, 0x8e, 0x0c, 0x42, 0xed, 0xcb, 0x2c, 0x63, 0xa9, 0xe6, 0x35, 0x90, 0x57, 0xd3,
  2415  	0xa4, 0x61, 0xa4, 0xc2, 0xb4, 0xe7, 0xa6, 0x61, 0x68, 0x72, 0x10, 0xbe, 0xf0, 0x61, 0x09, 0x6a,
  2416  	0x43, 0xd9, 0x17, 0x21, 0x23, 0x75, 0x28, 0x1f, 0x08, 0xe9, 0xac, 0x90, 0x55, 0x68, 0x0d, 0xe5,
  2417  	0x2d, 0xa6, 0xf2, 0xaf, 0x55, 0xe7, 0xaf, 0x75, 0xe2, 0x80, 0x3d, 0x94, 0x87, 0x69, 0x5e, 0x82,
  2418  	0xce, 0xdf, 0xea, 0xc4, 0xd6, 0x7a, 0x87, 0x11, 0x9f, 0x38, 0x9f, 0x76, 0x49, 0x0b, 0xea, 0x43,
  2419  	0xf9, 0x4e, 0x3c, 0xcb, 0x4e, 0x9c, 0x5f, 0x74, 0x8d, 0xfe, 0xe2, 0x0b, 0xc7, 0xf9, 0x65, 0x97,
  2420  	0x74, 0xa0, 0x39, 0x94, 0x03, 0x9e, 0x49, 0x16, 0x28, 0xe7, 0x57, 0x5d, 0xb2, 0x06, 0xdd, 0xa1,
  2421  	0xbc, 0x19, 0x86, 0xef, 0xd0, 0x59, 0xac, 0x0e, 0x51, 0xea, 0xd7, 0x5d, 0xd2, 0x86, 0xc6, 0x50,
  2422  	0xee, 0xd0, 0x60, 0x3a, 0x93, 0xce, 0x6f, 0xba, 0x66, 0xd3, 0x51, 0x4a, 0x03, 0x76, 0x24, 0x29,
  2423  	0x77, 0x7e, 0xdb, 0x25, 0x57, 0xa0, 0x33, 0x94, 0x47, 0x4a, 0xa4, 0x74, 0xc2, 0x30, 0x21, 0xce,
  2424  	0xef, 0xba, 0xe4, 0x71, 0x20, 0x43, 0x79, 0x2b, 0x16, 0x63, 0x1a, 0x2f, 0x6d, 0xfa, 0xfb, 0x2e,
  2425  	0xb9, 0x0a, 0xab, 0x7a, 0x53, 0xc5, 0xd2, 0x80, 0x49, 0x95, 0xbb, 0xfe, 0x87, 0x2e, 0x21, 0xd0,
  2426  	0xd6, 0x21, 0x6b, 0x12, 0x4f, 0xc2, 0xf9, 0x63, 0xf7, 0x85, 0x9f, 0x58, 0xd0, 0x9c, 0x0f, 0x20,
  2427  	0xc4, 0x86, 0xfa, 0x80, 0x9f, 0xd2, 0x38, 0x0a, 0x9d, 0x15, 0xd2, 0x86, 0xe6, 0x7c, 0xcc, 0x70,
  2428  	0x2c, 0xd2, 0x01, 0x58, 0x4c, 0x0e, 0x4e, 0x89, 0x74, 0xc1, 0x5e, 0x1a, 0x05, 0xcc, 0x27, 0xdf,
  2429  	0x9d, 0xe5, 0x6e, 0xee, 0x54, 0xc8, 0x1a, 0x38, 0x05, 0x54, 0xf4, 0x6c, 0xa7, 0x4a, 0x1c, 0x68,
  2430  	0xdd, 0x59, 0xea, 0xbc, 0x4e, 0x4d, 0x23, 0xcb, 0x7d, 0xd5, 0xd1, 0x89, 0x6f, 0xcd, 0x1b, 0xa5,
  2431  	0xde, 0xaf, 0xf1, 0xc2, 0x2d, 0x68, 0xce, 0xdf, 0x76, 0xd2, 0x80, 0xca, 0xcd, 0x99, 0x12, 0xc6,
  2432  	0xcb, 0x03, 0x61, 0xbe, 0x31, 0x33, 0xc7, 0x22, 0x2d, 0x68, 0xec, 0x44, 0x13, 0xe3, 0x52, 0x89,
  2433  	0x5c, 0x81, 0x6e, 0x5f, 0x70, 0x15, 0xf1, 0x99, 0x98, 0x65, 0xf8, 0x0f, 0x81, 0x53, 0xde, 0x79,
  2434  	0xf3, 0x93, 0xcf, 0xaf, 0x59, 0x9f, 0x7e, 0x7e, 0xcd, 0xfa, 0xec, 0xf3, 0x6b, 0x2b, 0x1f, 0xfd,
  2435  	0xf9, 0x9a, 0xf5, 0xfe, 0xd7, 0x97, 0xfe, 0x04, 0x4c, 0xa8, 0x4a, 0xa3, 0x33, 0x91, 0x46, 0x93,
  2436  	0x88, 0x17, 0x04, 0x67, 0x37, 0xe4, 0x74, 0x72, 0x43, 0x8e, 0x6f, 0x50, 0x19, 0x8d, 0x6b, 0xf8,
  2437  	0x6f, 0xdf, 0xcb, 0xff, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x6b, 0x24, 0x22, 0xee, 0x4b, 0x14, 0x00,
  2438  	0x00,
  2439  }
  2440  
  2441  func (m *TNPingRequest) Marshal() (dAtA []byte, err error) {
  2442  	size := m.Size()
  2443  	dAtA = make([]byte, size)
  2444  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2445  	if err != nil {
  2446  		return nil, err
  2447  	}
  2448  	return dAtA[:n], nil
  2449  }
  2450  
  2451  func (m *TNPingRequest) MarshalTo(dAtA []byte) (int, error) {
  2452  	size := m.Size()
  2453  	return m.MarshalToSizedBuffer(dAtA[:size])
  2454  }
  2455  
  2456  func (m *TNPingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2457  	i := len(dAtA)
  2458  	_ = i
  2459  	var l int
  2460  	_ = l
  2461  	if m.XXX_unrecognized != nil {
  2462  		i -= len(m.XXX_unrecognized)
  2463  		copy(dAtA[i:], m.XXX_unrecognized)
  2464  	}
  2465  	if len(m.Parameter) > 0 {
  2466  		i -= len(m.Parameter)
  2467  		copy(dAtA[i:], m.Parameter)
  2468  		i = encodeVarintApi(dAtA, i, uint64(len(m.Parameter)))
  2469  		i--
  2470  		dAtA[i] = 0xa
  2471  	}
  2472  	return len(dAtA) - i, nil
  2473  }
  2474  
  2475  func (m *TNPingResponse) Marshal() (dAtA []byte, err error) {
  2476  	size := m.Size()
  2477  	dAtA = make([]byte, size)
  2478  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2479  	if err != nil {
  2480  		return nil, err
  2481  	}
  2482  	return dAtA[:n], nil
  2483  }
  2484  
  2485  func (m *TNPingResponse) MarshalTo(dAtA []byte) (int, error) {
  2486  	size := m.Size()
  2487  	return m.MarshalToSizedBuffer(dAtA[:size])
  2488  }
  2489  
  2490  func (m *TNPingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2491  	i := len(dAtA)
  2492  	_ = i
  2493  	var l int
  2494  	_ = l
  2495  	if m.XXX_unrecognized != nil {
  2496  		i -= len(m.XXX_unrecognized)
  2497  		copy(dAtA[i:], m.XXX_unrecognized)
  2498  	}
  2499  	if m.LogShardID != 0 {
  2500  		i = encodeVarintApi(dAtA, i, uint64(m.LogShardID))
  2501  		i--
  2502  		dAtA[i] = 0x28
  2503  	}
  2504  	if m.ReplicaID != 0 {
  2505  		i = encodeVarintApi(dAtA, i, uint64(m.ReplicaID))
  2506  		i--
  2507  		dAtA[i] = 0x20
  2508  	}
  2509  	if m.ShardID != 0 {
  2510  		i = encodeVarintApi(dAtA, i, uint64(m.ShardID))
  2511  		i--
  2512  		dAtA[i] = 0x18
  2513  	}
  2514  	if len(m.ServiceAddress) > 0 {
  2515  		i -= len(m.ServiceAddress)
  2516  		copy(dAtA[i:], m.ServiceAddress)
  2517  		i = encodeVarintApi(dAtA, i, uint64(len(m.ServiceAddress)))
  2518  		i--
  2519  		dAtA[i] = 0x12
  2520  	}
  2521  	if len(m.StoreID) > 0 {
  2522  		i -= len(m.StoreID)
  2523  		copy(dAtA[i:], m.StoreID)
  2524  		i = encodeVarintApi(dAtA, i, uint64(len(m.StoreID)))
  2525  		i--
  2526  		dAtA[i] = 0xa
  2527  	}
  2528  	return len(dAtA) - i, nil
  2529  }
  2530  
  2531  func (m *TNStringResponse) Marshal() (dAtA []byte, err error) {
  2532  	size := m.Size()
  2533  	dAtA = make([]byte, size)
  2534  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2535  	if err != nil {
  2536  		return nil, err
  2537  	}
  2538  	return dAtA[:n], nil
  2539  }
  2540  
  2541  func (m *TNStringResponse) MarshalTo(dAtA []byte) (int, error) {
  2542  	size := m.Size()
  2543  	return m.MarshalToSizedBuffer(dAtA[:size])
  2544  }
  2545  
  2546  func (m *TNStringResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2547  	i := len(dAtA)
  2548  	_ = i
  2549  	var l int
  2550  	_ = l
  2551  	if m.XXX_unrecognized != nil {
  2552  		i -= len(m.XXX_unrecognized)
  2553  		copy(dAtA[i:], m.XXX_unrecognized)
  2554  	}
  2555  	if len(m.ReturnStr) > 0 {
  2556  		i -= len(m.ReturnStr)
  2557  		copy(dAtA[i:], m.ReturnStr)
  2558  		i = encodeVarintApi(dAtA, i, uint64(len(m.ReturnStr)))
  2559  		i--
  2560  		dAtA[i] = 0xa
  2561  	}
  2562  	return len(dAtA) - i, nil
  2563  }
  2564  
  2565  func (m *Vector) Marshal() (dAtA []byte, err error) {
  2566  	size := m.ProtoSize()
  2567  	dAtA = make([]byte, size)
  2568  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2569  	if err != nil {
  2570  		return nil, err
  2571  	}
  2572  	return dAtA[:n], nil
  2573  }
  2574  
  2575  func (m *Vector) MarshalTo(dAtA []byte) (int, error) {
  2576  	size := m.ProtoSize()
  2577  	return m.MarshalToSizedBuffer(dAtA[:size])
  2578  }
  2579  
  2580  func (m *Vector) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2581  	i := len(dAtA)
  2582  	_ = i
  2583  	var l int
  2584  	_ = l
  2585  	if m.XXX_unrecognized != nil {
  2586  		i -= len(m.XXX_unrecognized)
  2587  		copy(dAtA[i:], m.XXX_unrecognized)
  2588  	}
  2589  	if len(m.Area) > 0 {
  2590  		i -= len(m.Area)
  2591  		copy(dAtA[i:], m.Area)
  2592  		i = encodeVarintApi(dAtA, i, uint64(len(m.Area)))
  2593  		i--
  2594  		dAtA[i] = 0x3a
  2595  	}
  2596  	if m.Len != 0 {
  2597  		i = encodeVarintApi(dAtA, i, uint64(m.Len))
  2598  		i--
  2599  		dAtA[i] = 0x30
  2600  	}
  2601  	if m.IsConst {
  2602  		i--
  2603  		if m.IsConst {
  2604  			dAtA[i] = 1
  2605  		} else {
  2606  			dAtA[i] = 0
  2607  		}
  2608  		i--
  2609  		dAtA[i] = 0x28
  2610  	}
  2611  	if len(m.Nsp) > 0 {
  2612  		i -= len(m.Nsp)
  2613  		copy(dAtA[i:], m.Nsp)
  2614  		i = encodeVarintApi(dAtA, i, uint64(len(m.Nsp)))
  2615  		i--
  2616  		dAtA[i] = 0x22
  2617  	}
  2618  	if m.Nullable {
  2619  		i--
  2620  		if m.Nullable {
  2621  			dAtA[i] = 1
  2622  		} else {
  2623  			dAtA[i] = 0
  2624  		}
  2625  		i--
  2626  		dAtA[i] = 0x18
  2627  	}
  2628  	if m.Type != nil {
  2629  		{
  2630  			size, err := m.Type.MarshalToSizedBuffer(dAtA[:i])
  2631  			if err != nil {
  2632  				return 0, err
  2633  			}
  2634  			i -= size
  2635  			i = encodeVarintApi(dAtA, i, uint64(size))
  2636  		}
  2637  		i--
  2638  		dAtA[i] = 0x12
  2639  	}
  2640  	if len(m.Data) > 0 {
  2641  		i -= len(m.Data)
  2642  		copy(dAtA[i:], m.Data)
  2643  		i = encodeVarintApi(dAtA, i, uint64(len(m.Data)))
  2644  		i--
  2645  		dAtA[i] = 0xa
  2646  	}
  2647  	return len(dAtA) - i, nil
  2648  }
  2649  
  2650  func (m *Batch) Marshal() (dAtA []byte, err error) {
  2651  	size := m.ProtoSize()
  2652  	dAtA = make([]byte, size)
  2653  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2654  	if err != nil {
  2655  		return nil, err
  2656  	}
  2657  	return dAtA[:n], nil
  2658  }
  2659  
  2660  func (m *Batch) MarshalTo(dAtA []byte) (int, error) {
  2661  	size := m.ProtoSize()
  2662  	return m.MarshalToSizedBuffer(dAtA[:size])
  2663  }
  2664  
  2665  func (m *Batch) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2666  	i := len(dAtA)
  2667  	_ = i
  2668  	var l int
  2669  	_ = l
  2670  	if m.XXX_unrecognized != nil {
  2671  		i -= len(m.XXX_unrecognized)
  2672  		copy(dAtA[i:], m.XXX_unrecognized)
  2673  	}
  2674  	if len(m.Vecs) > 0 {
  2675  		for iNdEx := len(m.Vecs) - 1; iNdEx >= 0; iNdEx-- {
  2676  			{
  2677  				size, err := m.Vecs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2678  				if err != nil {
  2679  					return 0, err
  2680  				}
  2681  				i -= size
  2682  				i = encodeVarintApi(dAtA, i, uint64(size))
  2683  			}
  2684  			i--
  2685  			dAtA[i] = 0x12
  2686  		}
  2687  	}
  2688  	if len(m.Attrs) > 0 {
  2689  		for iNdEx := len(m.Attrs) - 1; iNdEx >= 0; iNdEx-- {
  2690  			i -= len(m.Attrs[iNdEx])
  2691  			copy(dAtA[i:], m.Attrs[iNdEx])
  2692  			i = encodeVarintApi(dAtA, i, uint64(len(m.Attrs[iNdEx])))
  2693  			i--
  2694  			dAtA[i] = 0xa
  2695  		}
  2696  	}
  2697  	return len(dAtA) - i, nil
  2698  }
  2699  
  2700  func (m *TableID) Marshal() (dAtA []byte, err error) {
  2701  	size := m.ProtoSize()
  2702  	dAtA = make([]byte, size)
  2703  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2704  	if err != nil {
  2705  		return nil, err
  2706  	}
  2707  	return dAtA[:n], nil
  2708  }
  2709  
  2710  func (m *TableID) MarshalTo(dAtA []byte) (int, error) {
  2711  	size := m.ProtoSize()
  2712  	return m.MarshalToSizedBuffer(dAtA[:size])
  2713  }
  2714  
  2715  func (m *TableID) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2716  	i := len(dAtA)
  2717  	_ = i
  2718  	var l int
  2719  	_ = l
  2720  	if m.XXX_unrecognized != nil {
  2721  		i -= len(m.XXX_unrecognized)
  2722  		copy(dAtA[i:], m.XXX_unrecognized)
  2723  	}
  2724  	if m.PartitionId != 0 {
  2725  		i = encodeVarintApi(dAtA, i, uint64(m.PartitionId))
  2726  		i--
  2727  		dAtA[i] = 0x18
  2728  	}
  2729  	if m.TbId != 0 {
  2730  		i = encodeVarintApi(dAtA, i, uint64(m.TbId))
  2731  		i--
  2732  		dAtA[i] = 0x10
  2733  	}
  2734  	if m.DbId != 0 {
  2735  		i = encodeVarintApi(dAtA, i, uint64(m.DbId))
  2736  		i--
  2737  		dAtA[i] = 0x8
  2738  	}
  2739  	return len(dAtA) - i, nil
  2740  }
  2741  
  2742  func (m *SyncLogTailReq) Marshal() (dAtA []byte, err error) {
  2743  	size := m.ProtoSize()
  2744  	dAtA = make([]byte, size)
  2745  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2746  	if err != nil {
  2747  		return nil, err
  2748  	}
  2749  	return dAtA[:n], nil
  2750  }
  2751  
  2752  func (m *SyncLogTailReq) MarshalTo(dAtA []byte) (int, error) {
  2753  	size := m.ProtoSize()
  2754  	return m.MarshalToSizedBuffer(dAtA[:size])
  2755  }
  2756  
  2757  func (m *SyncLogTailReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2758  	i := len(dAtA)
  2759  	_ = i
  2760  	var l int
  2761  	_ = l
  2762  	if m.XXX_unrecognized != nil {
  2763  		i -= len(m.XXX_unrecognized)
  2764  		copy(dAtA[i:], m.XXX_unrecognized)
  2765  	}
  2766  	if m.Table != nil {
  2767  		{
  2768  			size, err := m.Table.MarshalToSizedBuffer(dAtA[:i])
  2769  			if err != nil {
  2770  				return 0, err
  2771  			}
  2772  			i -= size
  2773  			i = encodeVarintApi(dAtA, i, uint64(size))
  2774  		}
  2775  		i--
  2776  		dAtA[i] = 0x1a
  2777  	}
  2778  	if m.CnWant != nil {
  2779  		{
  2780  			size, err := m.CnWant.MarshalToSizedBuffer(dAtA[:i])
  2781  			if err != nil {
  2782  				return 0, err
  2783  			}
  2784  			i -= size
  2785  			i = encodeVarintApi(dAtA, i, uint64(size))
  2786  		}
  2787  		i--
  2788  		dAtA[i] = 0x12
  2789  	}
  2790  	if m.CnHave != nil {
  2791  		{
  2792  			size, err := m.CnHave.MarshalToSizedBuffer(dAtA[:i])
  2793  			if err != nil {
  2794  				return 0, err
  2795  			}
  2796  			i -= size
  2797  			i = encodeVarintApi(dAtA, i, uint64(size))
  2798  		}
  2799  		i--
  2800  		dAtA[i] = 0xa
  2801  	}
  2802  	return len(dAtA) - i, nil
  2803  }
  2804  
  2805  func (m *SyncLogTailResp) Marshal() (dAtA []byte, err error) {
  2806  	size := m.ProtoSize()
  2807  	dAtA = make([]byte, size)
  2808  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2809  	if err != nil {
  2810  		return nil, err
  2811  	}
  2812  	return dAtA[:n], nil
  2813  }
  2814  
  2815  func (m *SyncLogTailResp) MarshalTo(dAtA []byte) (int, error) {
  2816  	size := m.ProtoSize()
  2817  	return m.MarshalToSizedBuffer(dAtA[:size])
  2818  }
  2819  
  2820  func (m *SyncLogTailResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2821  	i := len(dAtA)
  2822  	_ = i
  2823  	var l int
  2824  	_ = l
  2825  	if m.XXX_unrecognized != nil {
  2826  		i -= len(m.XXX_unrecognized)
  2827  		copy(dAtA[i:], m.XXX_unrecognized)
  2828  	}
  2829  	if len(m.Commands) > 0 {
  2830  		for iNdEx := len(m.Commands) - 1; iNdEx >= 0; iNdEx-- {
  2831  			{
  2832  				size, err := m.Commands[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2833  				if err != nil {
  2834  					return 0, err
  2835  				}
  2836  				i -= size
  2837  				i = encodeVarintApi(dAtA, i, uint64(size))
  2838  			}
  2839  			i--
  2840  			dAtA[i] = 0x12
  2841  		}
  2842  	}
  2843  	if len(m.CkpLocation) > 0 {
  2844  		i -= len(m.CkpLocation)
  2845  		copy(dAtA[i:], m.CkpLocation)
  2846  		i = encodeVarintApi(dAtA, i, uint64(len(m.CkpLocation)))
  2847  		i--
  2848  		dAtA[i] = 0xa
  2849  	}
  2850  	return len(dAtA) - i, nil
  2851  }
  2852  
  2853  func (m *PrecommitWriteCmd) Marshal() (dAtA []byte, err error) {
  2854  	size := m.ProtoSize()
  2855  	dAtA = make([]byte, size)
  2856  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2857  	if err != nil {
  2858  		return nil, err
  2859  	}
  2860  	return dAtA[:n], nil
  2861  }
  2862  
  2863  func (m *PrecommitWriteCmd) MarshalTo(dAtA []byte) (int, error) {
  2864  	size := m.ProtoSize()
  2865  	return m.MarshalToSizedBuffer(dAtA[:size])
  2866  }
  2867  
  2868  func (m *PrecommitWriteCmd) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2869  	i := len(dAtA)
  2870  	_ = i
  2871  	var l int
  2872  	_ = l
  2873  	if m.XXX_unrecognized != nil {
  2874  		i -= len(m.XXX_unrecognized)
  2875  		copy(dAtA[i:], m.XXX_unrecognized)
  2876  	}
  2877  	if len(m.EntryList) > 0 {
  2878  		for iNdEx := len(m.EntryList) - 1; iNdEx >= 0; iNdEx-- {
  2879  			{
  2880  				size, err := m.EntryList[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2881  				if err != nil {
  2882  					return 0, err
  2883  				}
  2884  				i -= size
  2885  				i = encodeVarintApi(dAtA, i, uint64(size))
  2886  			}
  2887  			i--
  2888  			dAtA[i] = 0xa
  2889  		}
  2890  	}
  2891  	return len(dAtA) - i, nil
  2892  }
  2893  
  2894  func (m *Entry) Marshal() (dAtA []byte, err error) {
  2895  	size := m.ProtoSize()
  2896  	dAtA = make([]byte, size)
  2897  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2898  	if err != nil {
  2899  		return nil, err
  2900  	}
  2901  	return dAtA[:n], nil
  2902  }
  2903  
  2904  func (m *Entry) MarshalTo(dAtA []byte) (int, error) {
  2905  	size := m.ProtoSize()
  2906  	return m.MarshalToSizedBuffer(dAtA[:size])
  2907  }
  2908  
  2909  func (m *Entry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2910  	i := len(dAtA)
  2911  	_ = i
  2912  	var l int
  2913  	_ = l
  2914  	if m.XXX_unrecognized != nil {
  2915  		i -= len(m.XXX_unrecognized)
  2916  		copy(dAtA[i:], m.XXX_unrecognized)
  2917  	}
  2918  	if m.PkCheckByTn != 0 {
  2919  		i = encodeVarintApi(dAtA, i, uint64(m.PkCheckByTn))
  2920  		i--
  2921  		dAtA[i] = 0x40
  2922  	}
  2923  	if m.Bat != nil {
  2924  		{
  2925  			size, err := m.Bat.MarshalToSizedBuffer(dAtA[:i])
  2926  			if err != nil {
  2927  				return 0, err
  2928  			}
  2929  			i -= size
  2930  			i = encodeVarintApi(dAtA, i, uint64(size))
  2931  		}
  2932  		i--
  2933  		dAtA[i] = 0x3a
  2934  	}
  2935  	if len(m.FileName) > 0 {
  2936  		i -= len(m.FileName)
  2937  		copy(dAtA[i:], m.FileName)
  2938  		i = encodeVarintApi(dAtA, i, uint64(len(m.FileName)))
  2939  		i--
  2940  		dAtA[i] = 0x32
  2941  	}
  2942  	if len(m.DatabaseName) > 0 {
  2943  		i -= len(m.DatabaseName)
  2944  		copy(dAtA[i:], m.DatabaseName)
  2945  		i = encodeVarintApi(dAtA, i, uint64(len(m.DatabaseName)))
  2946  		i--
  2947  		dAtA[i] = 0x2a
  2948  	}
  2949  	if len(m.TableName) > 0 {
  2950  		i -= len(m.TableName)
  2951  		copy(dAtA[i:], m.TableName)
  2952  		i = encodeVarintApi(dAtA, i, uint64(len(m.TableName)))
  2953  		i--
  2954  		dAtA[i] = 0x22
  2955  	}
  2956  	if m.DatabaseId != 0 {
  2957  		i = encodeVarintApi(dAtA, i, uint64(m.DatabaseId))
  2958  		i--
  2959  		dAtA[i] = 0x18
  2960  	}
  2961  	if m.TableId != 0 {
  2962  		i = encodeVarintApi(dAtA, i, uint64(m.TableId))
  2963  		i--
  2964  		dAtA[i] = 0x10
  2965  	}
  2966  	if m.EntryType != 0 {
  2967  		i = encodeVarintApi(dAtA, i, uint64(m.EntryType))
  2968  		i--
  2969  		dAtA[i] = 0x8
  2970  	}
  2971  	return len(dAtA) - i, nil
  2972  }
  2973  
  2974  func (m *Checkpoint) Marshal() (dAtA []byte, err error) {
  2975  	size := m.ProtoSize()
  2976  	dAtA = make([]byte, size)
  2977  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2978  	if err != nil {
  2979  		return nil, err
  2980  	}
  2981  	return dAtA[:n], nil
  2982  }
  2983  
  2984  func (m *Checkpoint) MarshalTo(dAtA []byte) (int, error) {
  2985  	size := m.ProtoSize()
  2986  	return m.MarshalToSizedBuffer(dAtA[:size])
  2987  }
  2988  
  2989  func (m *Checkpoint) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2990  	i := len(dAtA)
  2991  	_ = i
  2992  	var l int
  2993  	_ = l
  2994  	if m.XXX_unrecognized != nil {
  2995  		i -= len(m.XXX_unrecognized)
  2996  		copy(dAtA[i:], m.XXX_unrecognized)
  2997  	}
  2998  	if m.Bat != nil {
  2999  		{
  3000  			size, err := m.Bat.MarshalToSizedBuffer(dAtA[:i])
  3001  			if err != nil {
  3002  				return 0, err
  3003  			}
  3004  			i -= size
  3005  			i = encodeVarintApi(dAtA, i, uint64(size))
  3006  		}
  3007  		i--
  3008  		dAtA[i] = 0x1a
  3009  	}
  3010  	if m.MaxTs != nil {
  3011  		{
  3012  			size, err := m.MaxTs.MarshalToSizedBuffer(dAtA[:i])
  3013  			if err != nil {
  3014  				return 0, err
  3015  			}
  3016  			i -= size
  3017  			i = encodeVarintApi(dAtA, i, uint64(size))
  3018  		}
  3019  		i--
  3020  		dAtA[i] = 0x12
  3021  	}
  3022  	if m.MinTs != nil {
  3023  		{
  3024  			size, err := m.MinTs.MarshalToSizedBuffer(dAtA[:i])
  3025  			if err != nil {
  3026  				return 0, err
  3027  			}
  3028  			i -= size
  3029  			i = encodeVarintApi(dAtA, i, uint64(size))
  3030  		}
  3031  		i--
  3032  		dAtA[i] = 0xa
  3033  	}
  3034  	return len(dAtA) - i, nil
  3035  }
  3036  
  3037  func (m *CatalogCkp) Marshal() (dAtA []byte, err error) {
  3038  	size := m.ProtoSize()
  3039  	dAtA = make([]byte, size)
  3040  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3041  	if err != nil {
  3042  		return nil, err
  3043  	}
  3044  	return dAtA[:n], nil
  3045  }
  3046  
  3047  func (m *CatalogCkp) MarshalTo(dAtA []byte) (int, error) {
  3048  	size := m.ProtoSize()
  3049  	return m.MarshalToSizedBuffer(dAtA[:size])
  3050  }
  3051  
  3052  func (m *CatalogCkp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3053  	i := len(dAtA)
  3054  	_ = i
  3055  	var l int
  3056  	_ = l
  3057  	if m.XXX_unrecognized != nil {
  3058  		i -= len(m.XXX_unrecognized)
  3059  		copy(dAtA[i:], m.XXX_unrecognized)
  3060  	}
  3061  	if m.Bat != nil {
  3062  		{
  3063  			size, err := m.Bat.MarshalToSizedBuffer(dAtA[:i])
  3064  			if err != nil {
  3065  				return 0, err
  3066  			}
  3067  			i -= size
  3068  			i = encodeVarintApi(dAtA, i, uint64(size))
  3069  		}
  3070  		i--
  3071  		dAtA[i] = 0x1a
  3072  	}
  3073  	if m.MaxTs != nil {
  3074  		{
  3075  			size, err := m.MaxTs.MarshalToSizedBuffer(dAtA[:i])
  3076  			if err != nil {
  3077  				return 0, err
  3078  			}
  3079  			i -= size
  3080  			i = encodeVarintApi(dAtA, i, uint64(size))
  3081  		}
  3082  		i--
  3083  		dAtA[i] = 0x12
  3084  	}
  3085  	if m.MinTs != nil {
  3086  		{
  3087  			size, err := m.MinTs.MarshalToSizedBuffer(dAtA[:i])
  3088  			if err != nil {
  3089  				return 0, err
  3090  			}
  3091  			i -= size
  3092  			i = encodeVarintApi(dAtA, i, uint64(size))
  3093  		}
  3094  		i--
  3095  		dAtA[i] = 0xa
  3096  	}
  3097  	return len(dAtA) - i, nil
  3098  }
  3099  
  3100  func (m *MetadataCkp) Marshal() (dAtA []byte, err error) {
  3101  	size := m.ProtoSize()
  3102  	dAtA = make([]byte, size)
  3103  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3104  	if err != nil {
  3105  		return nil, err
  3106  	}
  3107  	return dAtA[:n], nil
  3108  }
  3109  
  3110  func (m *MetadataCkp) MarshalTo(dAtA []byte) (int, error) {
  3111  	size := m.ProtoSize()
  3112  	return m.MarshalToSizedBuffer(dAtA[:size])
  3113  }
  3114  
  3115  func (m *MetadataCkp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3116  	i := len(dAtA)
  3117  	_ = i
  3118  	var l int
  3119  	_ = l
  3120  	if m.XXX_unrecognized != nil {
  3121  		i -= len(m.XXX_unrecognized)
  3122  		copy(dAtA[i:], m.XXX_unrecognized)
  3123  	}
  3124  	if m.Bat != nil {
  3125  		{
  3126  			size, err := m.Bat.MarshalToSizedBuffer(dAtA[:i])
  3127  			if err != nil {
  3128  				return 0, err
  3129  			}
  3130  			i -= size
  3131  			i = encodeVarintApi(dAtA, i, uint64(size))
  3132  		}
  3133  		i--
  3134  		dAtA[i] = 0x1a
  3135  	}
  3136  	if m.MaxTs != nil {
  3137  		{
  3138  			size, err := m.MaxTs.MarshalToSizedBuffer(dAtA[:i])
  3139  			if err != nil {
  3140  				return 0, err
  3141  			}
  3142  			i -= size
  3143  			i = encodeVarintApi(dAtA, i, uint64(size))
  3144  		}
  3145  		i--
  3146  		dAtA[i] = 0x12
  3147  	}
  3148  	if m.MinTs != nil {
  3149  		{
  3150  			size, err := m.MinTs.MarshalToSizedBuffer(dAtA[:i])
  3151  			if err != nil {
  3152  				return 0, err
  3153  			}
  3154  			i -= size
  3155  			i = encodeVarintApi(dAtA, i, uint64(size))
  3156  		}
  3157  		i--
  3158  		dAtA[i] = 0xa
  3159  	}
  3160  	return len(dAtA) - i, nil
  3161  }
  3162  
  3163  func (m *AlterTablePolicy) Marshal() (dAtA []byte, err error) {
  3164  	size := m.ProtoSize()
  3165  	dAtA = make([]byte, size)
  3166  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3167  	if err != nil {
  3168  		return nil, err
  3169  	}
  3170  	return dAtA[:n], nil
  3171  }
  3172  
  3173  func (m *AlterTablePolicy) MarshalTo(dAtA []byte) (int, error) {
  3174  	size := m.ProtoSize()
  3175  	return m.MarshalToSizedBuffer(dAtA[:size])
  3176  }
  3177  
  3178  func (m *AlterTablePolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3179  	i := len(dAtA)
  3180  	_ = i
  3181  	var l int
  3182  	_ = l
  3183  	if m.XXX_unrecognized != nil {
  3184  		i -= len(m.XXX_unrecognized)
  3185  		copy(dAtA[i:], m.XXX_unrecognized)
  3186  	}
  3187  	if m.MinCnMergeSize != 0 {
  3188  		i = encodeVarintApi(dAtA, i, uint64(m.MinCnMergeSize))
  3189  		i--
  3190  		dAtA[i] = 0x28
  3191  	}
  3192  	if len(m.Hints) > 0 {
  3193  		dAtA16 := make([]byte, len(m.Hints)*10)
  3194  		var j15 int
  3195  		for _, num := range m.Hints {
  3196  			for num >= 1<<7 {
  3197  				dAtA16[j15] = uint8(uint64(num)&0x7f | 0x80)
  3198  				num >>= 7
  3199  				j15++
  3200  			}
  3201  			dAtA16[j15] = uint8(num)
  3202  			j15++
  3203  		}
  3204  		i -= j15
  3205  		copy(dAtA[i:], dAtA16[:j15])
  3206  		i = encodeVarintApi(dAtA, i, uint64(j15))
  3207  		i--
  3208  		dAtA[i] = 0x22
  3209  	}
  3210  	if m.MaxOsizeMergedObj != 0 {
  3211  		i = encodeVarintApi(dAtA, i, uint64(m.MaxOsizeMergedObj))
  3212  		i--
  3213  		dAtA[i] = 0x18
  3214  	}
  3215  	if m.MaxObjOnerun != 0 {
  3216  		i = encodeVarintApi(dAtA, i, uint64(m.MaxObjOnerun))
  3217  		i--
  3218  		dAtA[i] = 0x10
  3219  	}
  3220  	if m.MinOsizeQuailifed != 0 {
  3221  		i = encodeVarintApi(dAtA, i, uint64(m.MinOsizeQuailifed))
  3222  		i--
  3223  		dAtA[i] = 0x8
  3224  	}
  3225  	return len(dAtA) - i, nil
  3226  }
  3227  
  3228  func (m *AlterTableConstraint) Marshal() (dAtA []byte, err error) {
  3229  	size := m.ProtoSize()
  3230  	dAtA = make([]byte, size)
  3231  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3232  	if err != nil {
  3233  		return nil, err
  3234  	}
  3235  	return dAtA[:n], nil
  3236  }
  3237  
  3238  func (m *AlterTableConstraint) MarshalTo(dAtA []byte) (int, error) {
  3239  	size := m.ProtoSize()
  3240  	return m.MarshalToSizedBuffer(dAtA[:size])
  3241  }
  3242  
  3243  func (m *AlterTableConstraint) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3244  	i := len(dAtA)
  3245  	_ = i
  3246  	var l int
  3247  	_ = l
  3248  	if m.XXX_unrecognized != nil {
  3249  		i -= len(m.XXX_unrecognized)
  3250  		copy(dAtA[i:], m.XXX_unrecognized)
  3251  	}
  3252  	if len(m.Constraints) > 0 {
  3253  		i -= len(m.Constraints)
  3254  		copy(dAtA[i:], m.Constraints)
  3255  		i = encodeVarintApi(dAtA, i, uint64(len(m.Constraints)))
  3256  		i--
  3257  		dAtA[i] = 0xa
  3258  	}
  3259  	return len(dAtA) - i, nil
  3260  }
  3261  
  3262  func (m *AlterTableComment) Marshal() (dAtA []byte, err error) {
  3263  	size := m.ProtoSize()
  3264  	dAtA = make([]byte, size)
  3265  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3266  	if err != nil {
  3267  		return nil, err
  3268  	}
  3269  	return dAtA[:n], nil
  3270  }
  3271  
  3272  func (m *AlterTableComment) MarshalTo(dAtA []byte) (int, error) {
  3273  	size := m.ProtoSize()
  3274  	return m.MarshalToSizedBuffer(dAtA[:size])
  3275  }
  3276  
  3277  func (m *AlterTableComment) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3278  	i := len(dAtA)
  3279  	_ = i
  3280  	var l int
  3281  	_ = l
  3282  	if m.XXX_unrecognized != nil {
  3283  		i -= len(m.XXX_unrecognized)
  3284  		copy(dAtA[i:], m.XXX_unrecognized)
  3285  	}
  3286  	if len(m.Comment) > 0 {
  3287  		i -= len(m.Comment)
  3288  		copy(dAtA[i:], m.Comment)
  3289  		i = encodeVarintApi(dAtA, i, uint64(len(m.Comment)))
  3290  		i--
  3291  		dAtA[i] = 0xa
  3292  	}
  3293  	return len(dAtA) - i, nil
  3294  }
  3295  
  3296  func (m *AlterTableRenameTable) Marshal() (dAtA []byte, err error) {
  3297  	size := m.ProtoSize()
  3298  	dAtA = make([]byte, size)
  3299  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3300  	if err != nil {
  3301  		return nil, err
  3302  	}
  3303  	return dAtA[:n], nil
  3304  }
  3305  
  3306  func (m *AlterTableRenameTable) MarshalTo(dAtA []byte) (int, error) {
  3307  	size := m.ProtoSize()
  3308  	return m.MarshalToSizedBuffer(dAtA[:size])
  3309  }
  3310  
  3311  func (m *AlterTableRenameTable) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3312  	i := len(dAtA)
  3313  	_ = i
  3314  	var l int
  3315  	_ = l
  3316  	if m.XXX_unrecognized != nil {
  3317  		i -= len(m.XXX_unrecognized)
  3318  		copy(dAtA[i:], m.XXX_unrecognized)
  3319  	}
  3320  	if len(m.NewName) > 0 {
  3321  		i -= len(m.NewName)
  3322  		copy(dAtA[i:], m.NewName)
  3323  		i = encodeVarintApi(dAtA, i, uint64(len(m.NewName)))
  3324  		i--
  3325  		dAtA[i] = 0x12
  3326  	}
  3327  	if len(m.OldName) > 0 {
  3328  		i -= len(m.OldName)
  3329  		copy(dAtA[i:], m.OldName)
  3330  		i = encodeVarintApi(dAtA, i, uint64(len(m.OldName)))
  3331  		i--
  3332  		dAtA[i] = 0xa
  3333  	}
  3334  	return len(dAtA) - i, nil
  3335  }
  3336  
  3337  func (m *AlterTableRenameCol) Marshal() (dAtA []byte, err error) {
  3338  	size := m.ProtoSize()
  3339  	dAtA = make([]byte, size)
  3340  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3341  	if err != nil {
  3342  		return nil, err
  3343  	}
  3344  	return dAtA[:n], nil
  3345  }
  3346  
  3347  func (m *AlterTableRenameCol) MarshalTo(dAtA []byte) (int, error) {
  3348  	size := m.ProtoSize()
  3349  	return m.MarshalToSizedBuffer(dAtA[:size])
  3350  }
  3351  
  3352  func (m *AlterTableRenameCol) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3353  	i := len(dAtA)
  3354  	_ = i
  3355  	var l int
  3356  	_ = l
  3357  	if m.XXX_unrecognized != nil {
  3358  		i -= len(m.XXX_unrecognized)
  3359  		copy(dAtA[i:], m.XXX_unrecognized)
  3360  	}
  3361  	if m.SequenceNum != 0 {
  3362  		i = encodeVarintApi(dAtA, i, uint64(m.SequenceNum))
  3363  		i--
  3364  		dAtA[i] = 0x18
  3365  	}
  3366  	if len(m.NewName) > 0 {
  3367  		i -= len(m.NewName)
  3368  		copy(dAtA[i:], m.NewName)
  3369  		i = encodeVarintApi(dAtA, i, uint64(len(m.NewName)))
  3370  		i--
  3371  		dAtA[i] = 0x12
  3372  	}
  3373  	if len(m.OldName) > 0 {
  3374  		i -= len(m.OldName)
  3375  		copy(dAtA[i:], m.OldName)
  3376  		i = encodeVarintApi(dAtA, i, uint64(len(m.OldName)))
  3377  		i--
  3378  		dAtA[i] = 0xa
  3379  	}
  3380  	return len(dAtA) - i, nil
  3381  }
  3382  
  3383  func (m *AlterTableAddColumn) Marshal() (dAtA []byte, err error) {
  3384  	size := m.ProtoSize()
  3385  	dAtA = make([]byte, size)
  3386  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3387  	if err != nil {
  3388  		return nil, err
  3389  	}
  3390  	return dAtA[:n], nil
  3391  }
  3392  
  3393  func (m *AlterTableAddColumn) MarshalTo(dAtA []byte) (int, error) {
  3394  	size := m.ProtoSize()
  3395  	return m.MarshalToSizedBuffer(dAtA[:size])
  3396  }
  3397  
  3398  func (m *AlterTableAddColumn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3399  	i := len(dAtA)
  3400  	_ = i
  3401  	var l int
  3402  	_ = l
  3403  	if m.XXX_unrecognized != nil {
  3404  		i -= len(m.XXX_unrecognized)
  3405  		copy(dAtA[i:], m.XXX_unrecognized)
  3406  	}
  3407  	if m.InsertPosition != 0 {
  3408  		i = encodeVarintApi(dAtA, i, uint64(m.InsertPosition))
  3409  		i--
  3410  		dAtA[i] = 0x10
  3411  	}
  3412  	if m.Column != nil {
  3413  		{
  3414  			size, err := m.Column.MarshalToSizedBuffer(dAtA[:i])
  3415  			if err != nil {
  3416  				return 0, err
  3417  			}
  3418  			i -= size
  3419  			i = encodeVarintApi(dAtA, i, uint64(size))
  3420  		}
  3421  		i--
  3422  		dAtA[i] = 0xa
  3423  	}
  3424  	return len(dAtA) - i, nil
  3425  }
  3426  
  3427  func (m *AlterTableAddPartition) Marshal() (dAtA []byte, err error) {
  3428  	size := m.ProtoSize()
  3429  	dAtA = make([]byte, size)
  3430  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3431  	if err != nil {
  3432  		return nil, err
  3433  	}
  3434  	return dAtA[:n], nil
  3435  }
  3436  
  3437  func (m *AlterTableAddPartition) MarshalTo(dAtA []byte) (int, error) {
  3438  	size := m.ProtoSize()
  3439  	return m.MarshalToSizedBuffer(dAtA[:size])
  3440  }
  3441  
  3442  func (m *AlterTableAddPartition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3443  	i := len(dAtA)
  3444  	_ = i
  3445  	var l int
  3446  	_ = l
  3447  	if m.XXX_unrecognized != nil {
  3448  		i -= len(m.XXX_unrecognized)
  3449  		copy(dAtA[i:], m.XXX_unrecognized)
  3450  	}
  3451  	if m.PartitionDef != nil {
  3452  		{
  3453  			size, err := m.PartitionDef.MarshalToSizedBuffer(dAtA[:i])
  3454  			if err != nil {
  3455  				return 0, err
  3456  			}
  3457  			i -= size
  3458  			i = encodeVarintApi(dAtA, i, uint64(size))
  3459  		}
  3460  		i--
  3461  		dAtA[i] = 0xa
  3462  	}
  3463  	return len(dAtA) - i, nil
  3464  }
  3465  
  3466  func (m *AlterTableDropColumn) Marshal() (dAtA []byte, err error) {
  3467  	size := m.ProtoSize()
  3468  	dAtA = make([]byte, size)
  3469  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3470  	if err != nil {
  3471  		return nil, err
  3472  	}
  3473  	return dAtA[:n], nil
  3474  }
  3475  
  3476  func (m *AlterTableDropColumn) MarshalTo(dAtA []byte) (int, error) {
  3477  	size := m.ProtoSize()
  3478  	return m.MarshalToSizedBuffer(dAtA[:size])
  3479  }
  3480  
  3481  func (m *AlterTableDropColumn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3482  	i := len(dAtA)
  3483  	_ = i
  3484  	var l int
  3485  	_ = l
  3486  	if m.XXX_unrecognized != nil {
  3487  		i -= len(m.XXX_unrecognized)
  3488  		copy(dAtA[i:], m.XXX_unrecognized)
  3489  	}
  3490  	if m.SequenceNum != 0 {
  3491  		i = encodeVarintApi(dAtA, i, uint64(m.SequenceNum))
  3492  		i--
  3493  		dAtA[i] = 0x10
  3494  	}
  3495  	if m.LogicalIdx != 0 {
  3496  		i = encodeVarintApi(dAtA, i, uint64(m.LogicalIdx))
  3497  		i--
  3498  		dAtA[i] = 0x8
  3499  	}
  3500  	return len(dAtA) - i, nil
  3501  }
  3502  
  3503  func (m *AlterTableReq) Marshal() (dAtA []byte, err error) {
  3504  	size := m.ProtoSize()
  3505  	dAtA = make([]byte, size)
  3506  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3507  	if err != nil {
  3508  		return nil, err
  3509  	}
  3510  	return dAtA[:n], nil
  3511  }
  3512  
  3513  func (m *AlterTableReq) MarshalTo(dAtA []byte) (int, error) {
  3514  	size := m.ProtoSize()
  3515  	return m.MarshalToSizedBuffer(dAtA[:size])
  3516  }
  3517  
  3518  func (m *AlterTableReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3519  	i := len(dAtA)
  3520  	_ = i
  3521  	var l int
  3522  	_ = l
  3523  	if m.XXX_unrecognized != nil {
  3524  		i -= len(m.XXX_unrecognized)
  3525  		copy(dAtA[i:], m.XXX_unrecognized)
  3526  	}
  3527  	if m.Operation != nil {
  3528  		{
  3529  			size := m.Operation.ProtoSize()
  3530  			i -= size
  3531  			if _, err := m.Operation.MarshalTo(dAtA[i:]); err != nil {
  3532  				return 0, err
  3533  			}
  3534  		}
  3535  	}
  3536  	if m.Kind != 0 {
  3537  		i = encodeVarintApi(dAtA, i, uint64(m.Kind))
  3538  		i--
  3539  		dAtA[i] = 0x18
  3540  	}
  3541  	if m.DbId != 0 {
  3542  		i = encodeVarintApi(dAtA, i, uint64(m.DbId))
  3543  		i--
  3544  		dAtA[i] = 0x10
  3545  	}
  3546  	if m.TableId != 0 {
  3547  		i = encodeVarintApi(dAtA, i, uint64(m.TableId))
  3548  		i--
  3549  		dAtA[i] = 0x8
  3550  	}
  3551  	return len(dAtA) - i, nil
  3552  }
  3553  
  3554  func (m *AlterTableReq_AddColumn) MarshalTo(dAtA []byte) (int, error) {
  3555  	size := m.ProtoSize()
  3556  	return m.MarshalToSizedBuffer(dAtA[:size])
  3557  }
  3558  
  3559  func (m *AlterTableReq_AddColumn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3560  	i := len(dAtA)
  3561  	if m.AddColumn != nil {
  3562  		{
  3563  			size, err := m.AddColumn.MarshalToSizedBuffer(dAtA[:i])
  3564  			if err != nil {
  3565  				return 0, err
  3566  			}
  3567  			i -= size
  3568  			i = encodeVarintApi(dAtA, i, uint64(size))
  3569  		}
  3570  		i--
  3571  		dAtA[i] = 0x22
  3572  	}
  3573  	return len(dAtA) - i, nil
  3574  }
  3575  func (m *AlterTableReq_DropColumn) MarshalTo(dAtA []byte) (int, error) {
  3576  	size := m.ProtoSize()
  3577  	return m.MarshalToSizedBuffer(dAtA[:size])
  3578  }
  3579  
  3580  func (m *AlterTableReq_DropColumn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3581  	i := len(dAtA)
  3582  	if m.DropColumn != nil {
  3583  		{
  3584  			size, err := m.DropColumn.MarshalToSizedBuffer(dAtA[:i])
  3585  			if err != nil {
  3586  				return 0, err
  3587  			}
  3588  			i -= size
  3589  			i = encodeVarintApi(dAtA, i, uint64(size))
  3590  		}
  3591  		i--
  3592  		dAtA[i] = 0x2a
  3593  	}
  3594  	return len(dAtA) - i, nil
  3595  }
  3596  func (m *AlterTableReq_RenameTable) MarshalTo(dAtA []byte) (int, error) {
  3597  	size := m.ProtoSize()
  3598  	return m.MarshalToSizedBuffer(dAtA[:size])
  3599  }
  3600  
  3601  func (m *AlterTableReq_RenameTable) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3602  	i := len(dAtA)
  3603  	if m.RenameTable != nil {
  3604  		{
  3605  			size, err := m.RenameTable.MarshalToSizedBuffer(dAtA[:i])
  3606  			if err != nil {
  3607  				return 0, err
  3608  			}
  3609  			i -= size
  3610  			i = encodeVarintApi(dAtA, i, uint64(size))
  3611  		}
  3612  		i--
  3613  		dAtA[i] = 0x32
  3614  	}
  3615  	return len(dAtA) - i, nil
  3616  }
  3617  func (m *AlterTableReq_UpdateComment) MarshalTo(dAtA []byte) (int, error) {
  3618  	size := m.ProtoSize()
  3619  	return m.MarshalToSizedBuffer(dAtA[:size])
  3620  }
  3621  
  3622  func (m *AlterTableReq_UpdateComment) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3623  	i := len(dAtA)
  3624  	if m.UpdateComment != nil {
  3625  		{
  3626  			size, err := m.UpdateComment.MarshalToSizedBuffer(dAtA[:i])
  3627  			if err != nil {
  3628  				return 0, err
  3629  			}
  3630  			i -= size
  3631  			i = encodeVarintApi(dAtA, i, uint64(size))
  3632  		}
  3633  		i--
  3634  		dAtA[i] = 0x3a
  3635  	}
  3636  	return len(dAtA) - i, nil
  3637  }
  3638  func (m *AlterTableReq_UpdateCstr) MarshalTo(dAtA []byte) (int, error) {
  3639  	size := m.ProtoSize()
  3640  	return m.MarshalToSizedBuffer(dAtA[:size])
  3641  }
  3642  
  3643  func (m *AlterTableReq_UpdateCstr) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3644  	i := len(dAtA)
  3645  	if m.UpdateCstr != nil {
  3646  		{
  3647  			size, err := m.UpdateCstr.MarshalToSizedBuffer(dAtA[:i])
  3648  			if err != nil {
  3649  				return 0, err
  3650  			}
  3651  			i -= size
  3652  			i = encodeVarintApi(dAtA, i, uint64(size))
  3653  		}
  3654  		i--
  3655  		dAtA[i] = 0x42
  3656  	}
  3657  	return len(dAtA) - i, nil
  3658  }
  3659  func (m *AlterTableReq_UpdatePolicy) MarshalTo(dAtA []byte) (int, error) {
  3660  	size := m.ProtoSize()
  3661  	return m.MarshalToSizedBuffer(dAtA[:size])
  3662  }
  3663  
  3664  func (m *AlterTableReq_UpdatePolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3665  	i := len(dAtA)
  3666  	if m.UpdatePolicy != nil {
  3667  		{
  3668  			size, err := m.UpdatePolicy.MarshalToSizedBuffer(dAtA[:i])
  3669  			if err != nil {
  3670  				return 0, err
  3671  			}
  3672  			i -= size
  3673  			i = encodeVarintApi(dAtA, i, uint64(size))
  3674  		}
  3675  		i--
  3676  		dAtA[i] = 0x4a
  3677  	}
  3678  	return len(dAtA) - i, nil
  3679  }
  3680  func (m *AlterTableReq_AddPartition) MarshalTo(dAtA []byte) (int, error) {
  3681  	size := m.ProtoSize()
  3682  	return m.MarshalToSizedBuffer(dAtA[:size])
  3683  }
  3684  
  3685  func (m *AlterTableReq_AddPartition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3686  	i := len(dAtA)
  3687  	if m.AddPartition != nil {
  3688  		{
  3689  			size, err := m.AddPartition.MarshalToSizedBuffer(dAtA[:i])
  3690  			if err != nil {
  3691  				return 0, err
  3692  			}
  3693  			i -= size
  3694  			i = encodeVarintApi(dAtA, i, uint64(size))
  3695  		}
  3696  		i--
  3697  		dAtA[i] = 0x52
  3698  	}
  3699  	return len(dAtA) - i, nil
  3700  }
  3701  func (m *AlterTableReq_RenameCol) MarshalTo(dAtA []byte) (int, error) {
  3702  	size := m.ProtoSize()
  3703  	return m.MarshalToSizedBuffer(dAtA[:size])
  3704  }
  3705  
  3706  func (m *AlterTableReq_RenameCol) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3707  	i := len(dAtA)
  3708  	if m.RenameCol != nil {
  3709  		{
  3710  			size, err := m.RenameCol.MarshalToSizedBuffer(dAtA[:i])
  3711  			if err != nil {
  3712  				return 0, err
  3713  			}
  3714  			i -= size
  3715  			i = encodeVarintApi(dAtA, i, uint64(size))
  3716  		}
  3717  		i--
  3718  		dAtA[i] = 0x5a
  3719  	}
  3720  	return len(dAtA) - i, nil
  3721  }
  3722  func (m *SchemaExtra) Marshal() (dAtA []byte, err error) {
  3723  	size := m.ProtoSize()
  3724  	dAtA = make([]byte, size)
  3725  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3726  	if err != nil {
  3727  		return nil, err
  3728  	}
  3729  	return dAtA[:n], nil
  3730  }
  3731  
  3732  func (m *SchemaExtra) MarshalTo(dAtA []byte) (int, error) {
  3733  	size := m.ProtoSize()
  3734  	return m.MarshalToSizedBuffer(dAtA[:size])
  3735  }
  3736  
  3737  func (m *SchemaExtra) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3738  	i := len(dAtA)
  3739  	_ = i
  3740  	var l int
  3741  	_ = l
  3742  	if m.XXX_unrecognized != nil {
  3743  		i -= len(m.XXX_unrecognized)
  3744  		copy(dAtA[i:], m.XXX_unrecognized)
  3745  	}
  3746  	if m.MinCnMergeSize != 0 {
  3747  		i = encodeVarintApi(dAtA, i, uint64(m.MinCnMergeSize))
  3748  		i--
  3749  		dAtA[i] = 0x48
  3750  	}
  3751  	if len(m.Hints) > 0 {
  3752  		dAtA28 := make([]byte, len(m.Hints)*10)
  3753  		var j27 int
  3754  		for _, num := range m.Hints {
  3755  			for num >= 1<<7 {
  3756  				dAtA28[j27] = uint8(uint64(num)&0x7f | 0x80)
  3757  				num >>= 7
  3758  				j27++
  3759  			}
  3760  			dAtA28[j27] = uint8(num)
  3761  			j27++
  3762  		}
  3763  		i -= j27
  3764  		copy(dAtA[i:], dAtA28[:j27])
  3765  		i = encodeVarintApi(dAtA, i, uint64(j27))
  3766  		i--
  3767  		dAtA[i] = 0x42
  3768  	}
  3769  	if m.MaxOsizeMergedObj != 0 {
  3770  		i = encodeVarintApi(dAtA, i, uint64(m.MaxOsizeMergedObj))
  3771  		i--
  3772  		dAtA[i] = 0x38
  3773  	}
  3774  	if m.MaxObjOnerun != 0 {
  3775  		i = encodeVarintApi(dAtA, i, uint64(m.MaxObjOnerun))
  3776  		i--
  3777  		dAtA[i] = 0x30
  3778  	}
  3779  	if m.MinOsizeQuailifed != 0 {
  3780  		i = encodeVarintApi(dAtA, i, uint64(m.MinOsizeQuailifed))
  3781  		i--
  3782  		dAtA[i] = 0x28
  3783  	}
  3784  	if len(m.OldName) > 0 {
  3785  		i -= len(m.OldName)
  3786  		copy(dAtA[i:], m.OldName)
  3787  		i = encodeVarintApi(dAtA, i, uint64(len(m.OldName)))
  3788  		i--
  3789  		dAtA[i] = 0x22
  3790  	}
  3791  	if m.ColumnChanged {
  3792  		i--
  3793  		if m.ColumnChanged {
  3794  			dAtA[i] = 1
  3795  		} else {
  3796  			dAtA[i] = 0
  3797  		}
  3798  		i--
  3799  		dAtA[i] = 0x18
  3800  	}
  3801  	if len(m.DroppedAttrs) > 0 {
  3802  		for iNdEx := len(m.DroppedAttrs) - 1; iNdEx >= 0; iNdEx-- {
  3803  			i -= len(m.DroppedAttrs[iNdEx])
  3804  			copy(dAtA[i:], m.DroppedAttrs[iNdEx])
  3805  			i = encodeVarintApi(dAtA, i, uint64(len(m.DroppedAttrs[iNdEx])))
  3806  			i--
  3807  			dAtA[i] = 0x12
  3808  		}
  3809  	}
  3810  	if m.NextColSeqnum != 0 {
  3811  		i = encodeVarintApi(dAtA, i, uint64(m.NextColSeqnum))
  3812  		i--
  3813  		dAtA[i] = 0x8
  3814  	}
  3815  	return len(dAtA) - i, nil
  3816  }
  3817  
  3818  func (m *Int64Map) Marshal() (dAtA []byte, err error) {
  3819  	size := m.ProtoSize()
  3820  	dAtA = make([]byte, size)
  3821  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3822  	if err != nil {
  3823  		return nil, err
  3824  	}
  3825  	return dAtA[:n], nil
  3826  }
  3827  
  3828  func (m *Int64Map) MarshalTo(dAtA []byte) (int, error) {
  3829  	size := m.ProtoSize()
  3830  	return m.MarshalToSizedBuffer(dAtA[:size])
  3831  }
  3832  
  3833  func (m *Int64Map) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3834  	i := len(dAtA)
  3835  	_ = i
  3836  	var l int
  3837  	_ = l
  3838  	if m.XXX_unrecognized != nil {
  3839  		i -= len(m.XXX_unrecognized)
  3840  		copy(dAtA[i:], m.XXX_unrecognized)
  3841  	}
  3842  	if len(m.M) > 0 {
  3843  		for k := range m.M {
  3844  			v := m.M[k]
  3845  			baseI := i
  3846  			i = encodeVarintApi(dAtA, i, uint64(v))
  3847  			i--
  3848  			dAtA[i] = 0x10
  3849  			i = encodeVarintApi(dAtA, i, uint64(k))
  3850  			i--
  3851  			dAtA[i] = 0x8
  3852  			i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  3853  			i--
  3854  			dAtA[i] = 0xa
  3855  		}
  3856  	}
  3857  	return len(dAtA) - i, nil
  3858  }
  3859  
  3860  func (m *TransDestPos) Marshal() (dAtA []byte, err error) {
  3861  	size := m.ProtoSize()
  3862  	dAtA = make([]byte, size)
  3863  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3864  	if err != nil {
  3865  		return nil, err
  3866  	}
  3867  	return dAtA[:n], nil
  3868  }
  3869  
  3870  func (m *TransDestPos) MarshalTo(dAtA []byte) (int, error) {
  3871  	size := m.ProtoSize()
  3872  	return m.MarshalToSizedBuffer(dAtA[:size])
  3873  }
  3874  
  3875  func (m *TransDestPos) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3876  	i := len(dAtA)
  3877  	_ = i
  3878  	var l int
  3879  	_ = l
  3880  	if m.XXX_unrecognized != nil {
  3881  		i -= len(m.XXX_unrecognized)
  3882  		copy(dAtA[i:], m.XXX_unrecognized)
  3883  	}
  3884  	if m.RowIdx != 0 {
  3885  		i = encodeVarintApi(dAtA, i, uint64(m.RowIdx))
  3886  		i--
  3887  		dAtA[i] = 0x18
  3888  	}
  3889  	if m.BlkIdx != 0 {
  3890  		i = encodeVarintApi(dAtA, i, uint64(m.BlkIdx))
  3891  		i--
  3892  		dAtA[i] = 0x10
  3893  	}
  3894  	if m.ObjIdx != 0 {
  3895  		i = encodeVarintApi(dAtA, i, uint64(m.ObjIdx))
  3896  		i--
  3897  		dAtA[i] = 0x8
  3898  	}
  3899  	return len(dAtA) - i, nil
  3900  }
  3901  
  3902  func (m *BlkTransMap) Marshal() (dAtA []byte, err error) {
  3903  	size := m.ProtoSize()
  3904  	dAtA = make([]byte, size)
  3905  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3906  	if err != nil {
  3907  		return nil, err
  3908  	}
  3909  	return dAtA[:n], nil
  3910  }
  3911  
  3912  func (m *BlkTransMap) MarshalTo(dAtA []byte) (int, error) {
  3913  	size := m.ProtoSize()
  3914  	return m.MarshalToSizedBuffer(dAtA[:size])
  3915  }
  3916  
  3917  func (m *BlkTransMap) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3918  	i := len(dAtA)
  3919  	_ = i
  3920  	var l int
  3921  	_ = l
  3922  	if m.XXX_unrecognized != nil {
  3923  		i -= len(m.XXX_unrecognized)
  3924  		copy(dAtA[i:], m.XXX_unrecognized)
  3925  	}
  3926  	if len(m.M) > 0 {
  3927  		for k := range m.M {
  3928  			v := m.M[k]
  3929  			baseI := i
  3930  			{
  3931  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  3932  				if err != nil {
  3933  					return 0, err
  3934  				}
  3935  				i -= size
  3936  				i = encodeVarintApi(dAtA, i, uint64(size))
  3937  			}
  3938  			i--
  3939  			dAtA[i] = 0x12
  3940  			i = encodeVarintApi(dAtA, i, uint64(k))
  3941  			i--
  3942  			dAtA[i] = 0x8
  3943  			i = encodeVarintApi(dAtA, i, uint64(baseI-i))
  3944  			i--
  3945  			dAtA[i] = 0xa
  3946  		}
  3947  	}
  3948  	return len(dAtA) - i, nil
  3949  }
  3950  
  3951  func (m *BlkTransferBooking) Marshal() (dAtA []byte, err error) {
  3952  	size := m.ProtoSize()
  3953  	dAtA = make([]byte, size)
  3954  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3955  	if err != nil {
  3956  		return nil, err
  3957  	}
  3958  	return dAtA[:n], nil
  3959  }
  3960  
  3961  func (m *BlkTransferBooking) MarshalTo(dAtA []byte) (int, error) {
  3962  	size := m.ProtoSize()
  3963  	return m.MarshalToSizedBuffer(dAtA[:size])
  3964  }
  3965  
  3966  func (m *BlkTransferBooking) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3967  	i := len(dAtA)
  3968  	_ = i
  3969  	var l int
  3970  	_ = l
  3971  	if m.XXX_unrecognized != nil {
  3972  		i -= len(m.XXX_unrecognized)
  3973  		copy(dAtA[i:], m.XXX_unrecognized)
  3974  	}
  3975  	if len(m.Mappings) > 0 {
  3976  		for iNdEx := len(m.Mappings) - 1; iNdEx >= 0; iNdEx-- {
  3977  			{
  3978  				size, err := m.Mappings[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3979  				if err != nil {
  3980  					return 0, err
  3981  				}
  3982  				i -= size
  3983  				i = encodeVarintApi(dAtA, i, uint64(size))
  3984  			}
  3985  			i--
  3986  			dAtA[i] = 0xa
  3987  		}
  3988  	}
  3989  	return len(dAtA) - i, nil
  3990  }
  3991  
  3992  func (m *MergeCommitEntry) Marshal() (dAtA []byte, err error) {
  3993  	size := m.ProtoSize()
  3994  	dAtA = make([]byte, size)
  3995  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3996  	if err != nil {
  3997  		return nil, err
  3998  	}
  3999  	return dAtA[:n], nil
  4000  }
  4001  
  4002  func (m *MergeCommitEntry) MarshalTo(dAtA []byte) (int, error) {
  4003  	size := m.ProtoSize()
  4004  	return m.MarshalToSizedBuffer(dAtA[:size])
  4005  }
  4006  
  4007  func (m *MergeCommitEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4008  	i := len(dAtA)
  4009  	_ = i
  4010  	var l int
  4011  	_ = l
  4012  	if m.XXX_unrecognized != nil {
  4013  		i -= len(m.XXX_unrecognized)
  4014  		copy(dAtA[i:], m.XXX_unrecognized)
  4015  	}
  4016  	if len(m.Err) > 0 {
  4017  		i -= len(m.Err)
  4018  		copy(dAtA[i:], m.Err)
  4019  		i = encodeVarintApi(dAtA, i, uint64(len(m.Err)))
  4020  		i--
  4021  		dAtA[i] = 0x4a
  4022  	}
  4023  	if len(m.BookingLoc) > 0 {
  4024  		i -= len(m.BookingLoc)
  4025  		copy(dAtA[i:], m.BookingLoc)
  4026  		i = encodeVarintApi(dAtA, i, uint64(len(m.BookingLoc)))
  4027  		i--
  4028  		dAtA[i] = 0x42
  4029  	}
  4030  	if m.Booking != nil {
  4031  		{
  4032  			size, err := m.Booking.MarshalToSizedBuffer(dAtA[:i])
  4033  			if err != nil {
  4034  				return 0, err
  4035  			}
  4036  			i -= size
  4037  			i = encodeVarintApi(dAtA, i, uint64(size))
  4038  		}
  4039  		i--
  4040  		dAtA[i] = 0x3a
  4041  	}
  4042  	if len(m.CreatedObjs) > 0 {
  4043  		for iNdEx := len(m.CreatedObjs) - 1; iNdEx >= 0; iNdEx-- {
  4044  			i -= len(m.CreatedObjs[iNdEx])
  4045  			copy(dAtA[i:], m.CreatedObjs[iNdEx])
  4046  			i = encodeVarintApi(dAtA, i, uint64(len(m.CreatedObjs[iNdEx])))
  4047  			i--
  4048  			dAtA[i] = 0x32
  4049  		}
  4050  	}
  4051  	if len(m.MergedObjs) > 0 {
  4052  		for iNdEx := len(m.MergedObjs) - 1; iNdEx >= 0; iNdEx-- {
  4053  			i -= len(m.MergedObjs[iNdEx])
  4054  			copy(dAtA[i:], m.MergedObjs[iNdEx])
  4055  			i = encodeVarintApi(dAtA, i, uint64(len(m.MergedObjs[iNdEx])))
  4056  			i--
  4057  			dAtA[i] = 0x2a
  4058  		}
  4059  	}
  4060  	{
  4061  		size, err := m.StartTs.MarshalToSizedBuffer(dAtA[:i])
  4062  		if err != nil {
  4063  			return 0, err
  4064  		}
  4065  		i -= size
  4066  		i = encodeVarintApi(dAtA, i, uint64(size))
  4067  	}
  4068  	i--
  4069  	dAtA[i] = 0x22
  4070  	if len(m.TableName) > 0 {
  4071  		i -= len(m.TableName)
  4072  		copy(dAtA[i:], m.TableName)
  4073  		i = encodeVarintApi(dAtA, i, uint64(len(m.TableName)))
  4074  		i--
  4075  		dAtA[i] = 0x1a
  4076  	}
  4077  	if m.TblId != 0 {
  4078  		i = encodeVarintApi(dAtA, i, uint64(m.TblId))
  4079  		i--
  4080  		dAtA[i] = 0x10
  4081  	}
  4082  	if m.DbId != 0 {
  4083  		i = encodeVarintApi(dAtA, i, uint64(m.DbId))
  4084  		i--
  4085  		dAtA[i] = 0x8
  4086  	}
  4087  	return len(dAtA) - i, nil
  4088  }
  4089  
  4090  func (m *MergeTaskEntry) Marshal() (dAtA []byte, err error) {
  4091  	size := m.ProtoSize()
  4092  	dAtA = make([]byte, size)
  4093  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4094  	if err != nil {
  4095  		return nil, err
  4096  	}
  4097  	return dAtA[:n], nil
  4098  }
  4099  
  4100  func (m *MergeTaskEntry) MarshalTo(dAtA []byte) (int, error) {
  4101  	size := m.ProtoSize()
  4102  	return m.MarshalToSizedBuffer(dAtA[:size])
  4103  }
  4104  
  4105  func (m *MergeTaskEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4106  	i := len(dAtA)
  4107  	_ = i
  4108  	var l int
  4109  	_ = l
  4110  	if m.XXX_unrecognized != nil {
  4111  		i -= len(m.XXX_unrecognized)
  4112  		copy(dAtA[i:], m.XXX_unrecognized)
  4113  	}
  4114  	if m.RoleId != 0 {
  4115  		i = encodeVarintApi(dAtA, i, uint64(m.RoleId))
  4116  		i--
  4117  		dAtA[i] = 0x48
  4118  	}
  4119  	if m.UserId != 0 {
  4120  		i = encodeVarintApi(dAtA, i, uint64(m.UserId))
  4121  		i--
  4122  		dAtA[i] = 0x40
  4123  	}
  4124  	if m.AccountId != 0 {
  4125  		i = encodeVarintApi(dAtA, i, uint64(m.AccountId))
  4126  		i--
  4127  		dAtA[i] = 0x38
  4128  	}
  4129  	if m.EstimatedMemUsage != 0 {
  4130  		i = encodeVarintApi(dAtA, i, uint64(m.EstimatedMemUsage))
  4131  		i--
  4132  		dAtA[i] = 0x30
  4133  	}
  4134  	if len(m.ToMergeObjs) > 0 {
  4135  		for iNdEx := len(m.ToMergeObjs) - 1; iNdEx >= 0; iNdEx-- {
  4136  			i -= len(m.ToMergeObjs[iNdEx])
  4137  			copy(dAtA[i:], m.ToMergeObjs[iNdEx])
  4138  			i = encodeVarintApi(dAtA, i, uint64(len(m.ToMergeObjs[iNdEx])))
  4139  			i--
  4140  			dAtA[i] = 0x2a
  4141  		}
  4142  	}
  4143  	if len(m.DbName) > 0 {
  4144  		i -= len(m.DbName)
  4145  		copy(dAtA[i:], m.DbName)
  4146  		i = encodeVarintApi(dAtA, i, uint64(len(m.DbName)))
  4147  		i--
  4148  		dAtA[i] = 0x22
  4149  	}
  4150  	if len(m.TableName) > 0 {
  4151  		i -= len(m.TableName)
  4152  		copy(dAtA[i:], m.TableName)
  4153  		i = encodeVarintApi(dAtA, i, uint64(len(m.TableName)))
  4154  		i--
  4155  		dAtA[i] = 0x1a
  4156  	}
  4157  	if m.TblId != 0 {
  4158  		i = encodeVarintApi(dAtA, i, uint64(m.TblId))
  4159  		i--
  4160  		dAtA[i] = 0x10
  4161  	}
  4162  	if m.DbId != 0 {
  4163  		i = encodeVarintApi(dAtA, i, uint64(m.DbId))
  4164  		i--
  4165  		dAtA[i] = 0x8
  4166  	}
  4167  	return len(dAtA) - i, nil
  4168  }
  4169  
  4170  func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  4171  	offset -= sovApi(v)
  4172  	base := offset
  4173  	for v >= 1<<7 {
  4174  		dAtA[offset] = uint8(v&0x7f | 0x80)
  4175  		v >>= 7
  4176  		offset++
  4177  	}
  4178  	dAtA[offset] = uint8(v)
  4179  	return base
  4180  }
  4181  func (m *TNPingRequest) Size() (n int) {
  4182  	if m == nil {
  4183  		return 0
  4184  	}
  4185  	var l int
  4186  	_ = l
  4187  	l = len(m.Parameter)
  4188  	if l > 0 {
  4189  		n += 1 + l + sovApi(uint64(l))
  4190  	}
  4191  	if m.XXX_unrecognized != nil {
  4192  		n += len(m.XXX_unrecognized)
  4193  	}
  4194  	return n
  4195  }
  4196  
  4197  func (m *TNPingResponse) Size() (n int) {
  4198  	if m == nil {
  4199  		return 0
  4200  	}
  4201  	var l int
  4202  	_ = l
  4203  	l = len(m.StoreID)
  4204  	if l > 0 {
  4205  		n += 1 + l + sovApi(uint64(l))
  4206  	}
  4207  	l = len(m.ServiceAddress)
  4208  	if l > 0 {
  4209  		n += 1 + l + sovApi(uint64(l))
  4210  	}
  4211  	if m.ShardID != 0 {
  4212  		n += 1 + sovApi(uint64(m.ShardID))
  4213  	}
  4214  	if m.ReplicaID != 0 {
  4215  		n += 1 + sovApi(uint64(m.ReplicaID))
  4216  	}
  4217  	if m.LogShardID != 0 {
  4218  		n += 1 + sovApi(uint64(m.LogShardID))
  4219  	}
  4220  	if m.XXX_unrecognized != nil {
  4221  		n += len(m.XXX_unrecognized)
  4222  	}
  4223  	return n
  4224  }
  4225  
  4226  func (m *TNStringResponse) Size() (n int) {
  4227  	if m == nil {
  4228  		return 0
  4229  	}
  4230  	var l int
  4231  	_ = l
  4232  	l = len(m.ReturnStr)
  4233  	if l > 0 {
  4234  		n += 1 + l + sovApi(uint64(l))
  4235  	}
  4236  	if m.XXX_unrecognized != nil {
  4237  		n += len(m.XXX_unrecognized)
  4238  	}
  4239  	return n
  4240  }
  4241  
  4242  func (m *Vector) ProtoSize() (n int) {
  4243  	if m == nil {
  4244  		return 0
  4245  	}
  4246  	var l int
  4247  	_ = l
  4248  	l = len(m.Data)
  4249  	if l > 0 {
  4250  		n += 1 + l + sovApi(uint64(l))
  4251  	}
  4252  	if m.Type != nil {
  4253  		l = m.Type.ProtoSize()
  4254  		n += 1 + l + sovApi(uint64(l))
  4255  	}
  4256  	if m.Nullable {
  4257  		n += 2
  4258  	}
  4259  	l = len(m.Nsp)
  4260  	if l > 0 {
  4261  		n += 1 + l + sovApi(uint64(l))
  4262  	}
  4263  	if m.IsConst {
  4264  		n += 2
  4265  	}
  4266  	if m.Len != 0 {
  4267  		n += 1 + sovApi(uint64(m.Len))
  4268  	}
  4269  	l = len(m.Area)
  4270  	if l > 0 {
  4271  		n += 1 + l + sovApi(uint64(l))
  4272  	}
  4273  	if m.XXX_unrecognized != nil {
  4274  		n += len(m.XXX_unrecognized)
  4275  	}
  4276  	return n
  4277  }
  4278  
  4279  func (m *Batch) ProtoSize() (n int) {
  4280  	if m == nil {
  4281  		return 0
  4282  	}
  4283  	var l int
  4284  	_ = l
  4285  	if len(m.Attrs) > 0 {
  4286  		for _, s := range m.Attrs {
  4287  			l = len(s)
  4288  			n += 1 + l + sovApi(uint64(l))
  4289  		}
  4290  	}
  4291  	if len(m.Vecs) > 0 {
  4292  		for _, e := range m.Vecs {
  4293  			l = e.ProtoSize()
  4294  			n += 1 + l + sovApi(uint64(l))
  4295  		}
  4296  	}
  4297  	if m.XXX_unrecognized != nil {
  4298  		n += len(m.XXX_unrecognized)
  4299  	}
  4300  	return n
  4301  }
  4302  
  4303  func (m *TableID) ProtoSize() (n int) {
  4304  	if m == nil {
  4305  		return 0
  4306  	}
  4307  	var l int
  4308  	_ = l
  4309  	if m.DbId != 0 {
  4310  		n += 1 + sovApi(uint64(m.DbId))
  4311  	}
  4312  	if m.TbId != 0 {
  4313  		n += 1 + sovApi(uint64(m.TbId))
  4314  	}
  4315  	if m.PartitionId != 0 {
  4316  		n += 1 + sovApi(uint64(m.PartitionId))
  4317  	}
  4318  	if m.XXX_unrecognized != nil {
  4319  		n += len(m.XXX_unrecognized)
  4320  	}
  4321  	return n
  4322  }
  4323  
  4324  func (m *SyncLogTailReq) ProtoSize() (n int) {
  4325  	if m == nil {
  4326  		return 0
  4327  	}
  4328  	var l int
  4329  	_ = l
  4330  	if m.CnHave != nil {
  4331  		l = m.CnHave.ProtoSize()
  4332  		n += 1 + l + sovApi(uint64(l))
  4333  	}
  4334  	if m.CnWant != nil {
  4335  		l = m.CnWant.ProtoSize()
  4336  		n += 1 + l + sovApi(uint64(l))
  4337  	}
  4338  	if m.Table != nil {
  4339  		l = m.Table.ProtoSize()
  4340  		n += 1 + l + sovApi(uint64(l))
  4341  	}
  4342  	if m.XXX_unrecognized != nil {
  4343  		n += len(m.XXX_unrecognized)
  4344  	}
  4345  	return n
  4346  }
  4347  
  4348  func (m *SyncLogTailResp) ProtoSize() (n int) {
  4349  	if m == nil {
  4350  		return 0
  4351  	}
  4352  	var l int
  4353  	_ = l
  4354  	l = len(m.CkpLocation)
  4355  	if l > 0 {
  4356  		n += 1 + l + sovApi(uint64(l))
  4357  	}
  4358  	if len(m.Commands) > 0 {
  4359  		for _, e := range m.Commands {
  4360  			l = e.ProtoSize()
  4361  			n += 1 + l + sovApi(uint64(l))
  4362  		}
  4363  	}
  4364  	if m.XXX_unrecognized != nil {
  4365  		n += len(m.XXX_unrecognized)
  4366  	}
  4367  	return n
  4368  }
  4369  
  4370  func (m *PrecommitWriteCmd) ProtoSize() (n int) {
  4371  	if m == nil {
  4372  		return 0
  4373  	}
  4374  	var l int
  4375  	_ = l
  4376  	if len(m.EntryList) > 0 {
  4377  		for _, e := range m.EntryList {
  4378  			l = e.ProtoSize()
  4379  			n += 1 + l + sovApi(uint64(l))
  4380  		}
  4381  	}
  4382  	if m.XXX_unrecognized != nil {
  4383  		n += len(m.XXX_unrecognized)
  4384  	}
  4385  	return n
  4386  }
  4387  
  4388  func (m *Entry) ProtoSize() (n int) {
  4389  	if m == nil {
  4390  		return 0
  4391  	}
  4392  	var l int
  4393  	_ = l
  4394  	if m.EntryType != 0 {
  4395  		n += 1 + sovApi(uint64(m.EntryType))
  4396  	}
  4397  	if m.TableId != 0 {
  4398  		n += 1 + sovApi(uint64(m.TableId))
  4399  	}
  4400  	if m.DatabaseId != 0 {
  4401  		n += 1 + sovApi(uint64(m.DatabaseId))
  4402  	}
  4403  	l = len(m.TableName)
  4404  	if l > 0 {
  4405  		n += 1 + l + sovApi(uint64(l))
  4406  	}
  4407  	l = len(m.DatabaseName)
  4408  	if l > 0 {
  4409  		n += 1 + l + sovApi(uint64(l))
  4410  	}
  4411  	l = len(m.FileName)
  4412  	if l > 0 {
  4413  		n += 1 + l + sovApi(uint64(l))
  4414  	}
  4415  	if m.Bat != nil {
  4416  		l = m.Bat.ProtoSize()
  4417  		n += 1 + l + sovApi(uint64(l))
  4418  	}
  4419  	if m.PkCheckByTn != 0 {
  4420  		n += 1 + sovApi(uint64(m.PkCheckByTn))
  4421  	}
  4422  	if m.XXX_unrecognized != nil {
  4423  		n += len(m.XXX_unrecognized)
  4424  	}
  4425  	return n
  4426  }
  4427  
  4428  func (m *Checkpoint) ProtoSize() (n int) {
  4429  	if m == nil {
  4430  		return 0
  4431  	}
  4432  	var l int
  4433  	_ = l
  4434  	if m.MinTs != nil {
  4435  		l = m.MinTs.ProtoSize()
  4436  		n += 1 + l + sovApi(uint64(l))
  4437  	}
  4438  	if m.MaxTs != nil {
  4439  		l = m.MaxTs.ProtoSize()
  4440  		n += 1 + l + sovApi(uint64(l))
  4441  	}
  4442  	if m.Bat != nil {
  4443  		l = m.Bat.ProtoSize()
  4444  		n += 1 + l + sovApi(uint64(l))
  4445  	}
  4446  	if m.XXX_unrecognized != nil {
  4447  		n += len(m.XXX_unrecognized)
  4448  	}
  4449  	return n
  4450  }
  4451  
  4452  func (m *CatalogCkp) ProtoSize() (n int) {
  4453  	if m == nil {
  4454  		return 0
  4455  	}
  4456  	var l int
  4457  	_ = l
  4458  	if m.MinTs != nil {
  4459  		l = m.MinTs.ProtoSize()
  4460  		n += 1 + l + sovApi(uint64(l))
  4461  	}
  4462  	if m.MaxTs != nil {
  4463  		l = m.MaxTs.ProtoSize()
  4464  		n += 1 + l + sovApi(uint64(l))
  4465  	}
  4466  	if m.Bat != nil {
  4467  		l = m.Bat.ProtoSize()
  4468  		n += 1 + l + sovApi(uint64(l))
  4469  	}
  4470  	if m.XXX_unrecognized != nil {
  4471  		n += len(m.XXX_unrecognized)
  4472  	}
  4473  	return n
  4474  }
  4475  
  4476  func (m *MetadataCkp) ProtoSize() (n int) {
  4477  	if m == nil {
  4478  		return 0
  4479  	}
  4480  	var l int
  4481  	_ = l
  4482  	if m.MinTs != nil {
  4483  		l = m.MinTs.ProtoSize()
  4484  		n += 1 + l + sovApi(uint64(l))
  4485  	}
  4486  	if m.MaxTs != nil {
  4487  		l = m.MaxTs.ProtoSize()
  4488  		n += 1 + l + sovApi(uint64(l))
  4489  	}
  4490  	if m.Bat != nil {
  4491  		l = m.Bat.ProtoSize()
  4492  		n += 1 + l + sovApi(uint64(l))
  4493  	}
  4494  	if m.XXX_unrecognized != nil {
  4495  		n += len(m.XXX_unrecognized)
  4496  	}
  4497  	return n
  4498  }
  4499  
  4500  func (m *AlterTablePolicy) ProtoSize() (n int) {
  4501  	if m == nil {
  4502  		return 0
  4503  	}
  4504  	var l int
  4505  	_ = l
  4506  	if m.MinOsizeQuailifed != 0 {
  4507  		n += 1 + sovApi(uint64(m.MinOsizeQuailifed))
  4508  	}
  4509  	if m.MaxObjOnerun != 0 {
  4510  		n += 1 + sovApi(uint64(m.MaxObjOnerun))
  4511  	}
  4512  	if m.MaxOsizeMergedObj != 0 {
  4513  		n += 1 + sovApi(uint64(m.MaxOsizeMergedObj))
  4514  	}
  4515  	if len(m.Hints) > 0 {
  4516  		l = 0
  4517  		for _, e := range m.Hints {
  4518  			l += sovApi(uint64(e))
  4519  		}
  4520  		n += 1 + sovApi(uint64(l)) + l
  4521  	}
  4522  	if m.MinCnMergeSize != 0 {
  4523  		n += 1 + sovApi(uint64(m.MinCnMergeSize))
  4524  	}
  4525  	if m.XXX_unrecognized != nil {
  4526  		n += len(m.XXX_unrecognized)
  4527  	}
  4528  	return n
  4529  }
  4530  
  4531  func (m *AlterTableConstraint) ProtoSize() (n int) {
  4532  	if m == nil {
  4533  		return 0
  4534  	}
  4535  	var l int
  4536  	_ = l
  4537  	l = len(m.Constraints)
  4538  	if l > 0 {
  4539  		n += 1 + l + sovApi(uint64(l))
  4540  	}
  4541  	if m.XXX_unrecognized != nil {
  4542  		n += len(m.XXX_unrecognized)
  4543  	}
  4544  	return n
  4545  }
  4546  
  4547  func (m *AlterTableComment) ProtoSize() (n int) {
  4548  	if m == nil {
  4549  		return 0
  4550  	}
  4551  	var l int
  4552  	_ = l
  4553  	l = len(m.Comment)
  4554  	if l > 0 {
  4555  		n += 1 + l + sovApi(uint64(l))
  4556  	}
  4557  	if m.XXX_unrecognized != nil {
  4558  		n += len(m.XXX_unrecognized)
  4559  	}
  4560  	return n
  4561  }
  4562  
  4563  func (m *AlterTableRenameTable) ProtoSize() (n int) {
  4564  	if m == nil {
  4565  		return 0
  4566  	}
  4567  	var l int
  4568  	_ = l
  4569  	l = len(m.OldName)
  4570  	if l > 0 {
  4571  		n += 1 + l + sovApi(uint64(l))
  4572  	}
  4573  	l = len(m.NewName)
  4574  	if l > 0 {
  4575  		n += 1 + l + sovApi(uint64(l))
  4576  	}
  4577  	if m.XXX_unrecognized != nil {
  4578  		n += len(m.XXX_unrecognized)
  4579  	}
  4580  	return n
  4581  }
  4582  
  4583  func (m *AlterTableRenameCol) ProtoSize() (n int) {
  4584  	if m == nil {
  4585  		return 0
  4586  	}
  4587  	var l int
  4588  	_ = l
  4589  	l = len(m.OldName)
  4590  	if l > 0 {
  4591  		n += 1 + l + sovApi(uint64(l))
  4592  	}
  4593  	l = len(m.NewName)
  4594  	if l > 0 {
  4595  		n += 1 + l + sovApi(uint64(l))
  4596  	}
  4597  	if m.SequenceNum != 0 {
  4598  		n += 1 + sovApi(uint64(m.SequenceNum))
  4599  	}
  4600  	if m.XXX_unrecognized != nil {
  4601  		n += len(m.XXX_unrecognized)
  4602  	}
  4603  	return n
  4604  }
  4605  
  4606  func (m *AlterTableAddColumn) ProtoSize() (n int) {
  4607  	if m == nil {
  4608  		return 0
  4609  	}
  4610  	var l int
  4611  	_ = l
  4612  	if m.Column != nil {
  4613  		l = m.Column.ProtoSize()
  4614  		n += 1 + l + sovApi(uint64(l))
  4615  	}
  4616  	if m.InsertPosition != 0 {
  4617  		n += 1 + sovApi(uint64(m.InsertPosition))
  4618  	}
  4619  	if m.XXX_unrecognized != nil {
  4620  		n += len(m.XXX_unrecognized)
  4621  	}
  4622  	return n
  4623  }
  4624  
  4625  func (m *AlterTableAddPartition) ProtoSize() (n int) {
  4626  	if m == nil {
  4627  		return 0
  4628  	}
  4629  	var l int
  4630  	_ = l
  4631  	if m.PartitionDef != nil {
  4632  		l = m.PartitionDef.ProtoSize()
  4633  		n += 1 + l + sovApi(uint64(l))
  4634  	}
  4635  	if m.XXX_unrecognized != nil {
  4636  		n += len(m.XXX_unrecognized)
  4637  	}
  4638  	return n
  4639  }
  4640  
  4641  func (m *AlterTableDropColumn) ProtoSize() (n int) {
  4642  	if m == nil {
  4643  		return 0
  4644  	}
  4645  	var l int
  4646  	_ = l
  4647  	if m.LogicalIdx != 0 {
  4648  		n += 1 + sovApi(uint64(m.LogicalIdx))
  4649  	}
  4650  	if m.SequenceNum != 0 {
  4651  		n += 1 + sovApi(uint64(m.SequenceNum))
  4652  	}
  4653  	if m.XXX_unrecognized != nil {
  4654  		n += len(m.XXX_unrecognized)
  4655  	}
  4656  	return n
  4657  }
  4658  
  4659  func (m *AlterTableReq) ProtoSize() (n int) {
  4660  	if m == nil {
  4661  		return 0
  4662  	}
  4663  	var l int
  4664  	_ = l
  4665  	if m.TableId != 0 {
  4666  		n += 1 + sovApi(uint64(m.TableId))
  4667  	}
  4668  	if m.DbId != 0 {
  4669  		n += 1 + sovApi(uint64(m.DbId))
  4670  	}
  4671  	if m.Kind != 0 {
  4672  		n += 1 + sovApi(uint64(m.Kind))
  4673  	}
  4674  	if m.Operation != nil {
  4675  		n += m.Operation.ProtoSize()
  4676  	}
  4677  	if m.XXX_unrecognized != nil {
  4678  		n += len(m.XXX_unrecognized)
  4679  	}
  4680  	return n
  4681  }
  4682  
  4683  func (m *AlterTableReq_AddColumn) ProtoSize() (n int) {
  4684  	if m == nil {
  4685  		return 0
  4686  	}
  4687  	var l int
  4688  	_ = l
  4689  	if m.AddColumn != nil {
  4690  		l = m.AddColumn.ProtoSize()
  4691  		n += 1 + l + sovApi(uint64(l))
  4692  	}
  4693  	return n
  4694  }
  4695  func (m *AlterTableReq_DropColumn) ProtoSize() (n int) {
  4696  	if m == nil {
  4697  		return 0
  4698  	}
  4699  	var l int
  4700  	_ = l
  4701  	if m.DropColumn != nil {
  4702  		l = m.DropColumn.ProtoSize()
  4703  		n += 1 + l + sovApi(uint64(l))
  4704  	}
  4705  	return n
  4706  }
  4707  func (m *AlterTableReq_RenameTable) ProtoSize() (n int) {
  4708  	if m == nil {
  4709  		return 0
  4710  	}
  4711  	var l int
  4712  	_ = l
  4713  	if m.RenameTable != nil {
  4714  		l = m.RenameTable.ProtoSize()
  4715  		n += 1 + l + sovApi(uint64(l))
  4716  	}
  4717  	return n
  4718  }
  4719  func (m *AlterTableReq_UpdateComment) ProtoSize() (n int) {
  4720  	if m == nil {
  4721  		return 0
  4722  	}
  4723  	var l int
  4724  	_ = l
  4725  	if m.UpdateComment != nil {
  4726  		l = m.UpdateComment.ProtoSize()
  4727  		n += 1 + l + sovApi(uint64(l))
  4728  	}
  4729  	return n
  4730  }
  4731  func (m *AlterTableReq_UpdateCstr) ProtoSize() (n int) {
  4732  	if m == nil {
  4733  		return 0
  4734  	}
  4735  	var l int
  4736  	_ = l
  4737  	if m.UpdateCstr != nil {
  4738  		l = m.UpdateCstr.ProtoSize()
  4739  		n += 1 + l + sovApi(uint64(l))
  4740  	}
  4741  	return n
  4742  }
  4743  func (m *AlterTableReq_UpdatePolicy) ProtoSize() (n int) {
  4744  	if m == nil {
  4745  		return 0
  4746  	}
  4747  	var l int
  4748  	_ = l
  4749  	if m.UpdatePolicy != nil {
  4750  		l = m.UpdatePolicy.ProtoSize()
  4751  		n += 1 + l + sovApi(uint64(l))
  4752  	}
  4753  	return n
  4754  }
  4755  func (m *AlterTableReq_AddPartition) ProtoSize() (n int) {
  4756  	if m == nil {
  4757  		return 0
  4758  	}
  4759  	var l int
  4760  	_ = l
  4761  	if m.AddPartition != nil {
  4762  		l = m.AddPartition.ProtoSize()
  4763  		n += 1 + l + sovApi(uint64(l))
  4764  	}
  4765  	return n
  4766  }
  4767  func (m *AlterTableReq_RenameCol) ProtoSize() (n int) {
  4768  	if m == nil {
  4769  		return 0
  4770  	}
  4771  	var l int
  4772  	_ = l
  4773  	if m.RenameCol != nil {
  4774  		l = m.RenameCol.ProtoSize()
  4775  		n += 1 + l + sovApi(uint64(l))
  4776  	}
  4777  	return n
  4778  }
  4779  func (m *SchemaExtra) ProtoSize() (n int) {
  4780  	if m == nil {
  4781  		return 0
  4782  	}
  4783  	var l int
  4784  	_ = l
  4785  	if m.NextColSeqnum != 0 {
  4786  		n += 1 + sovApi(uint64(m.NextColSeqnum))
  4787  	}
  4788  	if len(m.DroppedAttrs) > 0 {
  4789  		for _, s := range m.DroppedAttrs {
  4790  			l = len(s)
  4791  			n += 1 + l + sovApi(uint64(l))
  4792  		}
  4793  	}
  4794  	if m.ColumnChanged {
  4795  		n += 2
  4796  	}
  4797  	l = len(m.OldName)
  4798  	if l > 0 {
  4799  		n += 1 + l + sovApi(uint64(l))
  4800  	}
  4801  	if m.MinOsizeQuailifed != 0 {
  4802  		n += 1 + sovApi(uint64(m.MinOsizeQuailifed))
  4803  	}
  4804  	if m.MaxObjOnerun != 0 {
  4805  		n += 1 + sovApi(uint64(m.MaxObjOnerun))
  4806  	}
  4807  	if m.MaxOsizeMergedObj != 0 {
  4808  		n += 1 + sovApi(uint64(m.MaxOsizeMergedObj))
  4809  	}
  4810  	if len(m.Hints) > 0 {
  4811  		l = 0
  4812  		for _, e := range m.Hints {
  4813  			l += sovApi(uint64(e))
  4814  		}
  4815  		n += 1 + sovApi(uint64(l)) + l
  4816  	}
  4817  	if m.MinCnMergeSize != 0 {
  4818  		n += 1 + sovApi(uint64(m.MinCnMergeSize))
  4819  	}
  4820  	if m.XXX_unrecognized != nil {
  4821  		n += len(m.XXX_unrecognized)
  4822  	}
  4823  	return n
  4824  }
  4825  
  4826  func (m *Int64Map) ProtoSize() (n int) {
  4827  	if m == nil {
  4828  		return 0
  4829  	}
  4830  	var l int
  4831  	_ = l
  4832  	if len(m.M) > 0 {
  4833  		for k, v := range m.M {
  4834  			_ = k
  4835  			_ = v
  4836  			mapEntrySize := 1 + sovApi(uint64(k)) + 1 + sovApi(uint64(v))
  4837  			n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  4838  		}
  4839  	}
  4840  	if m.XXX_unrecognized != nil {
  4841  		n += len(m.XXX_unrecognized)
  4842  	}
  4843  	return n
  4844  }
  4845  
  4846  func (m *TransDestPos) ProtoSize() (n int) {
  4847  	if m == nil {
  4848  		return 0
  4849  	}
  4850  	var l int
  4851  	_ = l
  4852  	if m.ObjIdx != 0 {
  4853  		n += 1 + sovApi(uint64(m.ObjIdx))
  4854  	}
  4855  	if m.BlkIdx != 0 {
  4856  		n += 1 + sovApi(uint64(m.BlkIdx))
  4857  	}
  4858  	if m.RowIdx != 0 {
  4859  		n += 1 + sovApi(uint64(m.RowIdx))
  4860  	}
  4861  	if m.XXX_unrecognized != nil {
  4862  		n += len(m.XXX_unrecognized)
  4863  	}
  4864  	return n
  4865  }
  4866  
  4867  func (m *BlkTransMap) ProtoSize() (n int) {
  4868  	if m == nil {
  4869  		return 0
  4870  	}
  4871  	var l int
  4872  	_ = l
  4873  	if len(m.M) > 0 {
  4874  		for k, v := range m.M {
  4875  			_ = k
  4876  			_ = v
  4877  			l = v.ProtoSize()
  4878  			mapEntrySize := 1 + sovApi(uint64(k)) + 1 + l + sovApi(uint64(l))
  4879  			n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  4880  		}
  4881  	}
  4882  	if m.XXX_unrecognized != nil {
  4883  		n += len(m.XXX_unrecognized)
  4884  	}
  4885  	return n
  4886  }
  4887  
  4888  func (m *BlkTransferBooking) ProtoSize() (n int) {
  4889  	if m == nil {
  4890  		return 0
  4891  	}
  4892  	var l int
  4893  	_ = l
  4894  	if len(m.Mappings) > 0 {
  4895  		for _, e := range m.Mappings {
  4896  			l = e.ProtoSize()
  4897  			n += 1 + l + sovApi(uint64(l))
  4898  		}
  4899  	}
  4900  	if m.XXX_unrecognized != nil {
  4901  		n += len(m.XXX_unrecognized)
  4902  	}
  4903  	return n
  4904  }
  4905  
  4906  func (m *MergeCommitEntry) ProtoSize() (n int) {
  4907  	if m == nil {
  4908  		return 0
  4909  	}
  4910  	var l int
  4911  	_ = l
  4912  	if m.DbId != 0 {
  4913  		n += 1 + sovApi(uint64(m.DbId))
  4914  	}
  4915  	if m.TblId != 0 {
  4916  		n += 1 + sovApi(uint64(m.TblId))
  4917  	}
  4918  	l = len(m.TableName)
  4919  	if l > 0 {
  4920  		n += 1 + l + sovApi(uint64(l))
  4921  	}
  4922  	l = m.StartTs.ProtoSize()
  4923  	n += 1 + l + sovApi(uint64(l))
  4924  	if len(m.MergedObjs) > 0 {
  4925  		for _, b := range m.MergedObjs {
  4926  			l = len(b)
  4927  			n += 1 + l + sovApi(uint64(l))
  4928  		}
  4929  	}
  4930  	if len(m.CreatedObjs) > 0 {
  4931  		for _, b := range m.CreatedObjs {
  4932  			l = len(b)
  4933  			n += 1 + l + sovApi(uint64(l))
  4934  		}
  4935  	}
  4936  	if m.Booking != nil {
  4937  		l = m.Booking.ProtoSize()
  4938  		n += 1 + l + sovApi(uint64(l))
  4939  	}
  4940  	l = len(m.BookingLoc)
  4941  	if l > 0 {
  4942  		n += 1 + l + sovApi(uint64(l))
  4943  	}
  4944  	l = len(m.Err)
  4945  	if l > 0 {
  4946  		n += 1 + l + sovApi(uint64(l))
  4947  	}
  4948  	if m.XXX_unrecognized != nil {
  4949  		n += len(m.XXX_unrecognized)
  4950  	}
  4951  	return n
  4952  }
  4953  
  4954  func (m *MergeTaskEntry) ProtoSize() (n int) {
  4955  	if m == nil {
  4956  		return 0
  4957  	}
  4958  	var l int
  4959  	_ = l
  4960  	if m.DbId != 0 {
  4961  		n += 1 + sovApi(uint64(m.DbId))
  4962  	}
  4963  	if m.TblId != 0 {
  4964  		n += 1 + sovApi(uint64(m.TblId))
  4965  	}
  4966  	l = len(m.TableName)
  4967  	if l > 0 {
  4968  		n += 1 + l + sovApi(uint64(l))
  4969  	}
  4970  	l = len(m.DbName)
  4971  	if l > 0 {
  4972  		n += 1 + l + sovApi(uint64(l))
  4973  	}
  4974  	if len(m.ToMergeObjs) > 0 {
  4975  		for _, b := range m.ToMergeObjs {
  4976  			l = len(b)
  4977  			n += 1 + l + sovApi(uint64(l))
  4978  		}
  4979  	}
  4980  	if m.EstimatedMemUsage != 0 {
  4981  		n += 1 + sovApi(uint64(m.EstimatedMemUsage))
  4982  	}
  4983  	if m.AccountId != 0 {
  4984  		n += 1 + sovApi(uint64(m.AccountId))
  4985  	}
  4986  	if m.UserId != 0 {
  4987  		n += 1 + sovApi(uint64(m.UserId))
  4988  	}
  4989  	if m.RoleId != 0 {
  4990  		n += 1 + sovApi(uint64(m.RoleId))
  4991  	}
  4992  	if m.XXX_unrecognized != nil {
  4993  		n += len(m.XXX_unrecognized)
  4994  	}
  4995  	return n
  4996  }
  4997  
  4998  func sovApi(x uint64) (n int) {
  4999  	return (math_bits.Len64(x|1) + 6) / 7
  5000  }
  5001  func sozApi(x uint64) (n int) {
  5002  	return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  5003  }
  5004  func (m *TNPingRequest) Unmarshal(dAtA []byte) error {
  5005  	l := len(dAtA)
  5006  	iNdEx := 0
  5007  	for iNdEx < l {
  5008  		preIndex := iNdEx
  5009  		var wire uint64
  5010  		for shift := uint(0); ; shift += 7 {
  5011  			if shift >= 64 {
  5012  				return ErrIntOverflowApi
  5013  			}
  5014  			if iNdEx >= l {
  5015  				return io.ErrUnexpectedEOF
  5016  			}
  5017  			b := dAtA[iNdEx]
  5018  			iNdEx++
  5019  			wire |= uint64(b&0x7F) << shift
  5020  			if b < 0x80 {
  5021  				break
  5022  			}
  5023  		}
  5024  		fieldNum := int32(wire >> 3)
  5025  		wireType := int(wire & 0x7)
  5026  		if wireType == 4 {
  5027  			return fmt.Errorf("proto: TNPingRequest: wiretype end group for non-group")
  5028  		}
  5029  		if fieldNum <= 0 {
  5030  			return fmt.Errorf("proto: TNPingRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5031  		}
  5032  		switch fieldNum {
  5033  		case 1:
  5034  			if wireType != 2 {
  5035  				return fmt.Errorf("proto: wrong wireType = %d for field Parameter", wireType)
  5036  			}
  5037  			var stringLen uint64
  5038  			for shift := uint(0); ; shift += 7 {
  5039  				if shift >= 64 {
  5040  					return ErrIntOverflowApi
  5041  				}
  5042  				if iNdEx >= l {
  5043  					return io.ErrUnexpectedEOF
  5044  				}
  5045  				b := dAtA[iNdEx]
  5046  				iNdEx++
  5047  				stringLen |= uint64(b&0x7F) << shift
  5048  				if b < 0x80 {
  5049  					break
  5050  				}
  5051  			}
  5052  			intStringLen := int(stringLen)
  5053  			if intStringLen < 0 {
  5054  				return ErrInvalidLengthApi
  5055  			}
  5056  			postIndex := iNdEx + intStringLen
  5057  			if postIndex < 0 {
  5058  				return ErrInvalidLengthApi
  5059  			}
  5060  			if postIndex > l {
  5061  				return io.ErrUnexpectedEOF
  5062  			}
  5063  			m.Parameter = string(dAtA[iNdEx:postIndex])
  5064  			iNdEx = postIndex
  5065  		default:
  5066  			iNdEx = preIndex
  5067  			skippy, err := skipApi(dAtA[iNdEx:])
  5068  			if err != nil {
  5069  				return err
  5070  			}
  5071  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5072  				return ErrInvalidLengthApi
  5073  			}
  5074  			if (iNdEx + skippy) > l {
  5075  				return io.ErrUnexpectedEOF
  5076  			}
  5077  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5078  			iNdEx += skippy
  5079  		}
  5080  	}
  5081  
  5082  	if iNdEx > l {
  5083  		return io.ErrUnexpectedEOF
  5084  	}
  5085  	return nil
  5086  }
  5087  func (m *TNPingResponse) Unmarshal(dAtA []byte) error {
  5088  	l := len(dAtA)
  5089  	iNdEx := 0
  5090  	for iNdEx < l {
  5091  		preIndex := iNdEx
  5092  		var wire uint64
  5093  		for shift := uint(0); ; shift += 7 {
  5094  			if shift >= 64 {
  5095  				return ErrIntOverflowApi
  5096  			}
  5097  			if iNdEx >= l {
  5098  				return io.ErrUnexpectedEOF
  5099  			}
  5100  			b := dAtA[iNdEx]
  5101  			iNdEx++
  5102  			wire |= uint64(b&0x7F) << shift
  5103  			if b < 0x80 {
  5104  				break
  5105  			}
  5106  		}
  5107  		fieldNum := int32(wire >> 3)
  5108  		wireType := int(wire & 0x7)
  5109  		if wireType == 4 {
  5110  			return fmt.Errorf("proto: TNPingResponse: wiretype end group for non-group")
  5111  		}
  5112  		if fieldNum <= 0 {
  5113  			return fmt.Errorf("proto: TNPingResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5114  		}
  5115  		switch fieldNum {
  5116  		case 1:
  5117  			if wireType != 2 {
  5118  				return fmt.Errorf("proto: wrong wireType = %d for field StoreID", wireType)
  5119  			}
  5120  			var stringLen uint64
  5121  			for shift := uint(0); ; shift += 7 {
  5122  				if shift >= 64 {
  5123  					return ErrIntOverflowApi
  5124  				}
  5125  				if iNdEx >= l {
  5126  					return io.ErrUnexpectedEOF
  5127  				}
  5128  				b := dAtA[iNdEx]
  5129  				iNdEx++
  5130  				stringLen |= uint64(b&0x7F) << shift
  5131  				if b < 0x80 {
  5132  					break
  5133  				}
  5134  			}
  5135  			intStringLen := int(stringLen)
  5136  			if intStringLen < 0 {
  5137  				return ErrInvalidLengthApi
  5138  			}
  5139  			postIndex := iNdEx + intStringLen
  5140  			if postIndex < 0 {
  5141  				return ErrInvalidLengthApi
  5142  			}
  5143  			if postIndex > l {
  5144  				return io.ErrUnexpectedEOF
  5145  			}
  5146  			m.StoreID = string(dAtA[iNdEx:postIndex])
  5147  			iNdEx = postIndex
  5148  		case 2:
  5149  			if wireType != 2 {
  5150  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAddress", wireType)
  5151  			}
  5152  			var stringLen uint64
  5153  			for shift := uint(0); ; shift += 7 {
  5154  				if shift >= 64 {
  5155  					return ErrIntOverflowApi
  5156  				}
  5157  				if iNdEx >= l {
  5158  					return io.ErrUnexpectedEOF
  5159  				}
  5160  				b := dAtA[iNdEx]
  5161  				iNdEx++
  5162  				stringLen |= uint64(b&0x7F) << shift
  5163  				if b < 0x80 {
  5164  					break
  5165  				}
  5166  			}
  5167  			intStringLen := int(stringLen)
  5168  			if intStringLen < 0 {
  5169  				return ErrInvalidLengthApi
  5170  			}
  5171  			postIndex := iNdEx + intStringLen
  5172  			if postIndex < 0 {
  5173  				return ErrInvalidLengthApi
  5174  			}
  5175  			if postIndex > l {
  5176  				return io.ErrUnexpectedEOF
  5177  			}
  5178  			m.ServiceAddress = string(dAtA[iNdEx:postIndex])
  5179  			iNdEx = postIndex
  5180  		case 3:
  5181  			if wireType != 0 {
  5182  				return fmt.Errorf("proto: wrong wireType = %d for field ShardID", wireType)
  5183  			}
  5184  			m.ShardID = 0
  5185  			for shift := uint(0); ; shift += 7 {
  5186  				if shift >= 64 {
  5187  					return ErrIntOverflowApi
  5188  				}
  5189  				if iNdEx >= l {
  5190  					return io.ErrUnexpectedEOF
  5191  				}
  5192  				b := dAtA[iNdEx]
  5193  				iNdEx++
  5194  				m.ShardID |= uint64(b&0x7F) << shift
  5195  				if b < 0x80 {
  5196  					break
  5197  				}
  5198  			}
  5199  		case 4:
  5200  			if wireType != 0 {
  5201  				return fmt.Errorf("proto: wrong wireType = %d for field ReplicaID", wireType)
  5202  			}
  5203  			m.ReplicaID = 0
  5204  			for shift := uint(0); ; shift += 7 {
  5205  				if shift >= 64 {
  5206  					return ErrIntOverflowApi
  5207  				}
  5208  				if iNdEx >= l {
  5209  					return io.ErrUnexpectedEOF
  5210  				}
  5211  				b := dAtA[iNdEx]
  5212  				iNdEx++
  5213  				m.ReplicaID |= uint64(b&0x7F) << shift
  5214  				if b < 0x80 {
  5215  					break
  5216  				}
  5217  			}
  5218  		case 5:
  5219  			if wireType != 0 {
  5220  				return fmt.Errorf("proto: wrong wireType = %d for field LogShardID", wireType)
  5221  			}
  5222  			m.LogShardID = 0
  5223  			for shift := uint(0); ; shift += 7 {
  5224  				if shift >= 64 {
  5225  					return ErrIntOverflowApi
  5226  				}
  5227  				if iNdEx >= l {
  5228  					return io.ErrUnexpectedEOF
  5229  				}
  5230  				b := dAtA[iNdEx]
  5231  				iNdEx++
  5232  				m.LogShardID |= uint64(b&0x7F) << shift
  5233  				if b < 0x80 {
  5234  					break
  5235  				}
  5236  			}
  5237  		default:
  5238  			iNdEx = preIndex
  5239  			skippy, err := skipApi(dAtA[iNdEx:])
  5240  			if err != nil {
  5241  				return err
  5242  			}
  5243  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5244  				return ErrInvalidLengthApi
  5245  			}
  5246  			if (iNdEx + skippy) > l {
  5247  				return io.ErrUnexpectedEOF
  5248  			}
  5249  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5250  			iNdEx += skippy
  5251  		}
  5252  	}
  5253  
  5254  	if iNdEx > l {
  5255  		return io.ErrUnexpectedEOF
  5256  	}
  5257  	return nil
  5258  }
  5259  func (m *TNStringResponse) Unmarshal(dAtA []byte) error {
  5260  	l := len(dAtA)
  5261  	iNdEx := 0
  5262  	for iNdEx < l {
  5263  		preIndex := iNdEx
  5264  		var wire uint64
  5265  		for shift := uint(0); ; shift += 7 {
  5266  			if shift >= 64 {
  5267  				return ErrIntOverflowApi
  5268  			}
  5269  			if iNdEx >= l {
  5270  				return io.ErrUnexpectedEOF
  5271  			}
  5272  			b := dAtA[iNdEx]
  5273  			iNdEx++
  5274  			wire |= uint64(b&0x7F) << shift
  5275  			if b < 0x80 {
  5276  				break
  5277  			}
  5278  		}
  5279  		fieldNum := int32(wire >> 3)
  5280  		wireType := int(wire & 0x7)
  5281  		if wireType == 4 {
  5282  			return fmt.Errorf("proto: TNStringResponse: wiretype end group for non-group")
  5283  		}
  5284  		if fieldNum <= 0 {
  5285  			return fmt.Errorf("proto: TNStringResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5286  		}
  5287  		switch fieldNum {
  5288  		case 1:
  5289  			if wireType != 2 {
  5290  				return fmt.Errorf("proto: wrong wireType = %d for field ReturnStr", wireType)
  5291  			}
  5292  			var stringLen uint64
  5293  			for shift := uint(0); ; shift += 7 {
  5294  				if shift >= 64 {
  5295  					return ErrIntOverflowApi
  5296  				}
  5297  				if iNdEx >= l {
  5298  					return io.ErrUnexpectedEOF
  5299  				}
  5300  				b := dAtA[iNdEx]
  5301  				iNdEx++
  5302  				stringLen |= uint64(b&0x7F) << shift
  5303  				if b < 0x80 {
  5304  					break
  5305  				}
  5306  			}
  5307  			intStringLen := int(stringLen)
  5308  			if intStringLen < 0 {
  5309  				return ErrInvalidLengthApi
  5310  			}
  5311  			postIndex := iNdEx + intStringLen
  5312  			if postIndex < 0 {
  5313  				return ErrInvalidLengthApi
  5314  			}
  5315  			if postIndex > l {
  5316  				return io.ErrUnexpectedEOF
  5317  			}
  5318  			m.ReturnStr = string(dAtA[iNdEx:postIndex])
  5319  			iNdEx = postIndex
  5320  		default:
  5321  			iNdEx = preIndex
  5322  			skippy, err := skipApi(dAtA[iNdEx:])
  5323  			if err != nil {
  5324  				return err
  5325  			}
  5326  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5327  				return ErrInvalidLengthApi
  5328  			}
  5329  			if (iNdEx + skippy) > l {
  5330  				return io.ErrUnexpectedEOF
  5331  			}
  5332  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5333  			iNdEx += skippy
  5334  		}
  5335  	}
  5336  
  5337  	if iNdEx > l {
  5338  		return io.ErrUnexpectedEOF
  5339  	}
  5340  	return nil
  5341  }
  5342  func (m *Vector) Unmarshal(dAtA []byte) error {
  5343  	l := len(dAtA)
  5344  	iNdEx := 0
  5345  	for iNdEx < l {
  5346  		preIndex := iNdEx
  5347  		var wire uint64
  5348  		for shift := uint(0); ; shift += 7 {
  5349  			if shift >= 64 {
  5350  				return ErrIntOverflowApi
  5351  			}
  5352  			if iNdEx >= l {
  5353  				return io.ErrUnexpectedEOF
  5354  			}
  5355  			b := dAtA[iNdEx]
  5356  			iNdEx++
  5357  			wire |= uint64(b&0x7F) << shift
  5358  			if b < 0x80 {
  5359  				break
  5360  			}
  5361  		}
  5362  		fieldNum := int32(wire >> 3)
  5363  		wireType := int(wire & 0x7)
  5364  		if wireType == 4 {
  5365  			return fmt.Errorf("proto: Vector: wiretype end group for non-group")
  5366  		}
  5367  		if fieldNum <= 0 {
  5368  			return fmt.Errorf("proto: Vector: illegal tag %d (wire type %d)", fieldNum, wire)
  5369  		}
  5370  		switch fieldNum {
  5371  		case 1:
  5372  			if wireType != 2 {
  5373  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  5374  			}
  5375  			var byteLen int
  5376  			for shift := uint(0); ; shift += 7 {
  5377  				if shift >= 64 {
  5378  					return ErrIntOverflowApi
  5379  				}
  5380  				if iNdEx >= l {
  5381  					return io.ErrUnexpectedEOF
  5382  				}
  5383  				b := dAtA[iNdEx]
  5384  				iNdEx++
  5385  				byteLen |= int(b&0x7F) << shift
  5386  				if b < 0x80 {
  5387  					break
  5388  				}
  5389  			}
  5390  			if byteLen < 0 {
  5391  				return ErrInvalidLengthApi
  5392  			}
  5393  			postIndex := iNdEx + byteLen
  5394  			if postIndex < 0 {
  5395  				return ErrInvalidLengthApi
  5396  			}
  5397  			if postIndex > l {
  5398  				return io.ErrUnexpectedEOF
  5399  			}
  5400  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  5401  			if m.Data == nil {
  5402  				m.Data = []byte{}
  5403  			}
  5404  			iNdEx = postIndex
  5405  		case 2:
  5406  			if wireType != 2 {
  5407  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  5408  			}
  5409  			var msglen int
  5410  			for shift := uint(0); ; shift += 7 {
  5411  				if shift >= 64 {
  5412  					return ErrIntOverflowApi
  5413  				}
  5414  				if iNdEx >= l {
  5415  					return io.ErrUnexpectedEOF
  5416  				}
  5417  				b := dAtA[iNdEx]
  5418  				iNdEx++
  5419  				msglen |= int(b&0x7F) << shift
  5420  				if b < 0x80 {
  5421  					break
  5422  				}
  5423  			}
  5424  			if msglen < 0 {
  5425  				return ErrInvalidLengthApi
  5426  			}
  5427  			postIndex := iNdEx + msglen
  5428  			if postIndex < 0 {
  5429  				return ErrInvalidLengthApi
  5430  			}
  5431  			if postIndex > l {
  5432  				return io.ErrUnexpectedEOF
  5433  			}
  5434  			if m.Type == nil {
  5435  				m.Type = &plan.Type{}
  5436  			}
  5437  			if err := m.Type.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5438  				return err
  5439  			}
  5440  			iNdEx = postIndex
  5441  		case 3:
  5442  			if wireType != 0 {
  5443  				return fmt.Errorf("proto: wrong wireType = %d for field Nullable", wireType)
  5444  			}
  5445  			var v int
  5446  			for shift := uint(0); ; shift += 7 {
  5447  				if shift >= 64 {
  5448  					return ErrIntOverflowApi
  5449  				}
  5450  				if iNdEx >= l {
  5451  					return io.ErrUnexpectedEOF
  5452  				}
  5453  				b := dAtA[iNdEx]
  5454  				iNdEx++
  5455  				v |= int(b&0x7F) << shift
  5456  				if b < 0x80 {
  5457  					break
  5458  				}
  5459  			}
  5460  			m.Nullable = bool(v != 0)
  5461  		case 4:
  5462  			if wireType != 2 {
  5463  				return fmt.Errorf("proto: wrong wireType = %d for field Nsp", wireType)
  5464  			}
  5465  			var byteLen int
  5466  			for shift := uint(0); ; shift += 7 {
  5467  				if shift >= 64 {
  5468  					return ErrIntOverflowApi
  5469  				}
  5470  				if iNdEx >= l {
  5471  					return io.ErrUnexpectedEOF
  5472  				}
  5473  				b := dAtA[iNdEx]
  5474  				iNdEx++
  5475  				byteLen |= int(b&0x7F) << shift
  5476  				if b < 0x80 {
  5477  					break
  5478  				}
  5479  			}
  5480  			if byteLen < 0 {
  5481  				return ErrInvalidLengthApi
  5482  			}
  5483  			postIndex := iNdEx + byteLen
  5484  			if postIndex < 0 {
  5485  				return ErrInvalidLengthApi
  5486  			}
  5487  			if postIndex > l {
  5488  				return io.ErrUnexpectedEOF
  5489  			}
  5490  			m.Nsp = append(m.Nsp[:0], dAtA[iNdEx:postIndex]...)
  5491  			if m.Nsp == nil {
  5492  				m.Nsp = []byte{}
  5493  			}
  5494  			iNdEx = postIndex
  5495  		case 5:
  5496  			if wireType != 0 {
  5497  				return fmt.Errorf("proto: wrong wireType = %d for field IsConst", wireType)
  5498  			}
  5499  			var v int
  5500  			for shift := uint(0); ; shift += 7 {
  5501  				if shift >= 64 {
  5502  					return ErrIntOverflowApi
  5503  				}
  5504  				if iNdEx >= l {
  5505  					return io.ErrUnexpectedEOF
  5506  				}
  5507  				b := dAtA[iNdEx]
  5508  				iNdEx++
  5509  				v |= int(b&0x7F) << shift
  5510  				if b < 0x80 {
  5511  					break
  5512  				}
  5513  			}
  5514  			m.IsConst = bool(v != 0)
  5515  		case 6:
  5516  			if wireType != 0 {
  5517  				return fmt.Errorf("proto: wrong wireType = %d for field Len", wireType)
  5518  			}
  5519  			m.Len = 0
  5520  			for shift := uint(0); ; shift += 7 {
  5521  				if shift >= 64 {
  5522  					return ErrIntOverflowApi
  5523  				}
  5524  				if iNdEx >= l {
  5525  					return io.ErrUnexpectedEOF
  5526  				}
  5527  				b := dAtA[iNdEx]
  5528  				iNdEx++
  5529  				m.Len |= uint32(b&0x7F) << shift
  5530  				if b < 0x80 {
  5531  					break
  5532  				}
  5533  			}
  5534  		case 7:
  5535  			if wireType != 2 {
  5536  				return fmt.Errorf("proto: wrong wireType = %d for field Area", wireType)
  5537  			}
  5538  			var byteLen int
  5539  			for shift := uint(0); ; shift += 7 {
  5540  				if shift >= 64 {
  5541  					return ErrIntOverflowApi
  5542  				}
  5543  				if iNdEx >= l {
  5544  					return io.ErrUnexpectedEOF
  5545  				}
  5546  				b := dAtA[iNdEx]
  5547  				iNdEx++
  5548  				byteLen |= int(b&0x7F) << shift
  5549  				if b < 0x80 {
  5550  					break
  5551  				}
  5552  			}
  5553  			if byteLen < 0 {
  5554  				return ErrInvalidLengthApi
  5555  			}
  5556  			postIndex := iNdEx + byteLen
  5557  			if postIndex < 0 {
  5558  				return ErrInvalidLengthApi
  5559  			}
  5560  			if postIndex > l {
  5561  				return io.ErrUnexpectedEOF
  5562  			}
  5563  			m.Area = append(m.Area[:0], dAtA[iNdEx:postIndex]...)
  5564  			if m.Area == nil {
  5565  				m.Area = []byte{}
  5566  			}
  5567  			iNdEx = postIndex
  5568  		default:
  5569  			iNdEx = preIndex
  5570  			skippy, err := skipApi(dAtA[iNdEx:])
  5571  			if err != nil {
  5572  				return err
  5573  			}
  5574  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5575  				return ErrInvalidLengthApi
  5576  			}
  5577  			if (iNdEx + skippy) > l {
  5578  				return io.ErrUnexpectedEOF
  5579  			}
  5580  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5581  			iNdEx += skippy
  5582  		}
  5583  	}
  5584  
  5585  	if iNdEx > l {
  5586  		return io.ErrUnexpectedEOF
  5587  	}
  5588  	return nil
  5589  }
  5590  func (m *Batch) Unmarshal(dAtA []byte) error {
  5591  	l := len(dAtA)
  5592  	iNdEx := 0
  5593  	for iNdEx < l {
  5594  		preIndex := iNdEx
  5595  		var wire uint64
  5596  		for shift := uint(0); ; shift += 7 {
  5597  			if shift >= 64 {
  5598  				return ErrIntOverflowApi
  5599  			}
  5600  			if iNdEx >= l {
  5601  				return io.ErrUnexpectedEOF
  5602  			}
  5603  			b := dAtA[iNdEx]
  5604  			iNdEx++
  5605  			wire |= uint64(b&0x7F) << shift
  5606  			if b < 0x80 {
  5607  				break
  5608  			}
  5609  		}
  5610  		fieldNum := int32(wire >> 3)
  5611  		wireType := int(wire & 0x7)
  5612  		if wireType == 4 {
  5613  			return fmt.Errorf("proto: Batch: wiretype end group for non-group")
  5614  		}
  5615  		if fieldNum <= 0 {
  5616  			return fmt.Errorf("proto: Batch: illegal tag %d (wire type %d)", fieldNum, wire)
  5617  		}
  5618  		switch fieldNum {
  5619  		case 1:
  5620  			if wireType != 2 {
  5621  				return fmt.Errorf("proto: wrong wireType = %d for field Attrs", wireType)
  5622  			}
  5623  			var stringLen uint64
  5624  			for shift := uint(0); ; shift += 7 {
  5625  				if shift >= 64 {
  5626  					return ErrIntOverflowApi
  5627  				}
  5628  				if iNdEx >= l {
  5629  					return io.ErrUnexpectedEOF
  5630  				}
  5631  				b := dAtA[iNdEx]
  5632  				iNdEx++
  5633  				stringLen |= uint64(b&0x7F) << shift
  5634  				if b < 0x80 {
  5635  					break
  5636  				}
  5637  			}
  5638  			intStringLen := int(stringLen)
  5639  			if intStringLen < 0 {
  5640  				return ErrInvalidLengthApi
  5641  			}
  5642  			postIndex := iNdEx + intStringLen
  5643  			if postIndex < 0 {
  5644  				return ErrInvalidLengthApi
  5645  			}
  5646  			if postIndex > l {
  5647  				return io.ErrUnexpectedEOF
  5648  			}
  5649  			m.Attrs = append(m.Attrs, string(dAtA[iNdEx:postIndex]))
  5650  			iNdEx = postIndex
  5651  		case 2:
  5652  			if wireType != 2 {
  5653  				return fmt.Errorf("proto: wrong wireType = %d for field Vecs", wireType)
  5654  			}
  5655  			var msglen int
  5656  			for shift := uint(0); ; shift += 7 {
  5657  				if shift >= 64 {
  5658  					return ErrIntOverflowApi
  5659  				}
  5660  				if iNdEx >= l {
  5661  					return io.ErrUnexpectedEOF
  5662  				}
  5663  				b := dAtA[iNdEx]
  5664  				iNdEx++
  5665  				msglen |= int(b&0x7F) << shift
  5666  				if b < 0x80 {
  5667  					break
  5668  				}
  5669  			}
  5670  			if msglen < 0 {
  5671  				return ErrInvalidLengthApi
  5672  			}
  5673  			postIndex := iNdEx + msglen
  5674  			if postIndex < 0 {
  5675  				return ErrInvalidLengthApi
  5676  			}
  5677  			if postIndex > l {
  5678  				return io.ErrUnexpectedEOF
  5679  			}
  5680  			m.Vecs = append(m.Vecs, Vector{})
  5681  			if err := m.Vecs[len(m.Vecs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5682  				return err
  5683  			}
  5684  			iNdEx = postIndex
  5685  		default:
  5686  			iNdEx = preIndex
  5687  			skippy, err := skipApi(dAtA[iNdEx:])
  5688  			if err != nil {
  5689  				return err
  5690  			}
  5691  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5692  				return ErrInvalidLengthApi
  5693  			}
  5694  			if (iNdEx + skippy) > l {
  5695  				return io.ErrUnexpectedEOF
  5696  			}
  5697  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5698  			iNdEx += skippy
  5699  		}
  5700  	}
  5701  
  5702  	if iNdEx > l {
  5703  		return io.ErrUnexpectedEOF
  5704  	}
  5705  	return nil
  5706  }
  5707  func (m *TableID) Unmarshal(dAtA []byte) error {
  5708  	l := len(dAtA)
  5709  	iNdEx := 0
  5710  	for iNdEx < l {
  5711  		preIndex := iNdEx
  5712  		var wire uint64
  5713  		for shift := uint(0); ; shift += 7 {
  5714  			if shift >= 64 {
  5715  				return ErrIntOverflowApi
  5716  			}
  5717  			if iNdEx >= l {
  5718  				return io.ErrUnexpectedEOF
  5719  			}
  5720  			b := dAtA[iNdEx]
  5721  			iNdEx++
  5722  			wire |= uint64(b&0x7F) << shift
  5723  			if b < 0x80 {
  5724  				break
  5725  			}
  5726  		}
  5727  		fieldNum := int32(wire >> 3)
  5728  		wireType := int(wire & 0x7)
  5729  		if wireType == 4 {
  5730  			return fmt.Errorf("proto: TableID: wiretype end group for non-group")
  5731  		}
  5732  		if fieldNum <= 0 {
  5733  			return fmt.Errorf("proto: TableID: illegal tag %d (wire type %d)", fieldNum, wire)
  5734  		}
  5735  		switch fieldNum {
  5736  		case 1:
  5737  			if wireType != 0 {
  5738  				return fmt.Errorf("proto: wrong wireType = %d for field DbId", wireType)
  5739  			}
  5740  			m.DbId = 0
  5741  			for shift := uint(0); ; shift += 7 {
  5742  				if shift >= 64 {
  5743  					return ErrIntOverflowApi
  5744  				}
  5745  				if iNdEx >= l {
  5746  					return io.ErrUnexpectedEOF
  5747  				}
  5748  				b := dAtA[iNdEx]
  5749  				iNdEx++
  5750  				m.DbId |= uint64(b&0x7F) << shift
  5751  				if b < 0x80 {
  5752  					break
  5753  				}
  5754  			}
  5755  		case 2:
  5756  			if wireType != 0 {
  5757  				return fmt.Errorf("proto: wrong wireType = %d for field TbId", wireType)
  5758  			}
  5759  			m.TbId = 0
  5760  			for shift := uint(0); ; shift += 7 {
  5761  				if shift >= 64 {
  5762  					return ErrIntOverflowApi
  5763  				}
  5764  				if iNdEx >= l {
  5765  					return io.ErrUnexpectedEOF
  5766  				}
  5767  				b := dAtA[iNdEx]
  5768  				iNdEx++
  5769  				m.TbId |= uint64(b&0x7F) << shift
  5770  				if b < 0x80 {
  5771  					break
  5772  				}
  5773  			}
  5774  		case 3:
  5775  			if wireType != 0 {
  5776  				return fmt.Errorf("proto: wrong wireType = %d for field PartitionId", wireType)
  5777  			}
  5778  			m.PartitionId = 0
  5779  			for shift := uint(0); ; shift += 7 {
  5780  				if shift >= 64 {
  5781  					return ErrIntOverflowApi
  5782  				}
  5783  				if iNdEx >= l {
  5784  					return io.ErrUnexpectedEOF
  5785  				}
  5786  				b := dAtA[iNdEx]
  5787  				iNdEx++
  5788  				m.PartitionId |= uint64(b&0x7F) << shift
  5789  				if b < 0x80 {
  5790  					break
  5791  				}
  5792  			}
  5793  		default:
  5794  			iNdEx = preIndex
  5795  			skippy, err := skipApi(dAtA[iNdEx:])
  5796  			if err != nil {
  5797  				return err
  5798  			}
  5799  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5800  				return ErrInvalidLengthApi
  5801  			}
  5802  			if (iNdEx + skippy) > l {
  5803  				return io.ErrUnexpectedEOF
  5804  			}
  5805  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5806  			iNdEx += skippy
  5807  		}
  5808  	}
  5809  
  5810  	if iNdEx > l {
  5811  		return io.ErrUnexpectedEOF
  5812  	}
  5813  	return nil
  5814  }
  5815  func (m *SyncLogTailReq) Unmarshal(dAtA []byte) error {
  5816  	l := len(dAtA)
  5817  	iNdEx := 0
  5818  	for iNdEx < l {
  5819  		preIndex := iNdEx
  5820  		var wire uint64
  5821  		for shift := uint(0); ; shift += 7 {
  5822  			if shift >= 64 {
  5823  				return ErrIntOverflowApi
  5824  			}
  5825  			if iNdEx >= l {
  5826  				return io.ErrUnexpectedEOF
  5827  			}
  5828  			b := dAtA[iNdEx]
  5829  			iNdEx++
  5830  			wire |= uint64(b&0x7F) << shift
  5831  			if b < 0x80 {
  5832  				break
  5833  			}
  5834  		}
  5835  		fieldNum := int32(wire >> 3)
  5836  		wireType := int(wire & 0x7)
  5837  		if wireType == 4 {
  5838  			return fmt.Errorf("proto: SyncLogTailReq: wiretype end group for non-group")
  5839  		}
  5840  		if fieldNum <= 0 {
  5841  			return fmt.Errorf("proto: SyncLogTailReq: illegal tag %d (wire type %d)", fieldNum, wire)
  5842  		}
  5843  		switch fieldNum {
  5844  		case 1:
  5845  			if wireType != 2 {
  5846  				return fmt.Errorf("proto: wrong wireType = %d for field CnHave", wireType)
  5847  			}
  5848  			var msglen int
  5849  			for shift := uint(0); ; shift += 7 {
  5850  				if shift >= 64 {
  5851  					return ErrIntOverflowApi
  5852  				}
  5853  				if iNdEx >= l {
  5854  					return io.ErrUnexpectedEOF
  5855  				}
  5856  				b := dAtA[iNdEx]
  5857  				iNdEx++
  5858  				msglen |= int(b&0x7F) << shift
  5859  				if b < 0x80 {
  5860  					break
  5861  				}
  5862  			}
  5863  			if msglen < 0 {
  5864  				return ErrInvalidLengthApi
  5865  			}
  5866  			postIndex := iNdEx + msglen
  5867  			if postIndex < 0 {
  5868  				return ErrInvalidLengthApi
  5869  			}
  5870  			if postIndex > l {
  5871  				return io.ErrUnexpectedEOF
  5872  			}
  5873  			if m.CnHave == nil {
  5874  				m.CnHave = &timestamp.Timestamp{}
  5875  			}
  5876  			if err := m.CnHave.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5877  				return err
  5878  			}
  5879  			iNdEx = postIndex
  5880  		case 2:
  5881  			if wireType != 2 {
  5882  				return fmt.Errorf("proto: wrong wireType = %d for field CnWant", wireType)
  5883  			}
  5884  			var msglen int
  5885  			for shift := uint(0); ; shift += 7 {
  5886  				if shift >= 64 {
  5887  					return ErrIntOverflowApi
  5888  				}
  5889  				if iNdEx >= l {
  5890  					return io.ErrUnexpectedEOF
  5891  				}
  5892  				b := dAtA[iNdEx]
  5893  				iNdEx++
  5894  				msglen |= int(b&0x7F) << shift
  5895  				if b < 0x80 {
  5896  					break
  5897  				}
  5898  			}
  5899  			if msglen < 0 {
  5900  				return ErrInvalidLengthApi
  5901  			}
  5902  			postIndex := iNdEx + msglen
  5903  			if postIndex < 0 {
  5904  				return ErrInvalidLengthApi
  5905  			}
  5906  			if postIndex > l {
  5907  				return io.ErrUnexpectedEOF
  5908  			}
  5909  			if m.CnWant == nil {
  5910  				m.CnWant = &timestamp.Timestamp{}
  5911  			}
  5912  			if err := m.CnWant.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5913  				return err
  5914  			}
  5915  			iNdEx = postIndex
  5916  		case 3:
  5917  			if wireType != 2 {
  5918  				return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType)
  5919  			}
  5920  			var msglen int
  5921  			for shift := uint(0); ; shift += 7 {
  5922  				if shift >= 64 {
  5923  					return ErrIntOverflowApi
  5924  				}
  5925  				if iNdEx >= l {
  5926  					return io.ErrUnexpectedEOF
  5927  				}
  5928  				b := dAtA[iNdEx]
  5929  				iNdEx++
  5930  				msglen |= int(b&0x7F) << shift
  5931  				if b < 0x80 {
  5932  					break
  5933  				}
  5934  			}
  5935  			if msglen < 0 {
  5936  				return ErrInvalidLengthApi
  5937  			}
  5938  			postIndex := iNdEx + msglen
  5939  			if postIndex < 0 {
  5940  				return ErrInvalidLengthApi
  5941  			}
  5942  			if postIndex > l {
  5943  				return io.ErrUnexpectedEOF
  5944  			}
  5945  			if m.Table == nil {
  5946  				m.Table = &TableID{}
  5947  			}
  5948  			if err := m.Table.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5949  				return err
  5950  			}
  5951  			iNdEx = postIndex
  5952  		default:
  5953  			iNdEx = preIndex
  5954  			skippy, err := skipApi(dAtA[iNdEx:])
  5955  			if err != nil {
  5956  				return err
  5957  			}
  5958  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5959  				return ErrInvalidLengthApi
  5960  			}
  5961  			if (iNdEx + skippy) > l {
  5962  				return io.ErrUnexpectedEOF
  5963  			}
  5964  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5965  			iNdEx += skippy
  5966  		}
  5967  	}
  5968  
  5969  	if iNdEx > l {
  5970  		return io.ErrUnexpectedEOF
  5971  	}
  5972  	return nil
  5973  }
  5974  func (m *SyncLogTailResp) Unmarshal(dAtA []byte) error {
  5975  	l := len(dAtA)
  5976  	iNdEx := 0
  5977  	for iNdEx < l {
  5978  		preIndex := iNdEx
  5979  		var wire uint64
  5980  		for shift := uint(0); ; shift += 7 {
  5981  			if shift >= 64 {
  5982  				return ErrIntOverflowApi
  5983  			}
  5984  			if iNdEx >= l {
  5985  				return io.ErrUnexpectedEOF
  5986  			}
  5987  			b := dAtA[iNdEx]
  5988  			iNdEx++
  5989  			wire |= uint64(b&0x7F) << shift
  5990  			if b < 0x80 {
  5991  				break
  5992  			}
  5993  		}
  5994  		fieldNum := int32(wire >> 3)
  5995  		wireType := int(wire & 0x7)
  5996  		if wireType == 4 {
  5997  			return fmt.Errorf("proto: SyncLogTailResp: wiretype end group for non-group")
  5998  		}
  5999  		if fieldNum <= 0 {
  6000  			return fmt.Errorf("proto: SyncLogTailResp: illegal tag %d (wire type %d)", fieldNum, wire)
  6001  		}
  6002  		switch fieldNum {
  6003  		case 1:
  6004  			if wireType != 2 {
  6005  				return fmt.Errorf("proto: wrong wireType = %d for field CkpLocation", wireType)
  6006  			}
  6007  			var stringLen uint64
  6008  			for shift := uint(0); ; shift += 7 {
  6009  				if shift >= 64 {
  6010  					return ErrIntOverflowApi
  6011  				}
  6012  				if iNdEx >= l {
  6013  					return io.ErrUnexpectedEOF
  6014  				}
  6015  				b := dAtA[iNdEx]
  6016  				iNdEx++
  6017  				stringLen |= uint64(b&0x7F) << shift
  6018  				if b < 0x80 {
  6019  					break
  6020  				}
  6021  			}
  6022  			intStringLen := int(stringLen)
  6023  			if intStringLen < 0 {
  6024  				return ErrInvalidLengthApi
  6025  			}
  6026  			postIndex := iNdEx + intStringLen
  6027  			if postIndex < 0 {
  6028  				return ErrInvalidLengthApi
  6029  			}
  6030  			if postIndex > l {
  6031  				return io.ErrUnexpectedEOF
  6032  			}
  6033  			m.CkpLocation = string(dAtA[iNdEx:postIndex])
  6034  			iNdEx = postIndex
  6035  		case 2:
  6036  			if wireType != 2 {
  6037  				return fmt.Errorf("proto: wrong wireType = %d for field Commands", wireType)
  6038  			}
  6039  			var msglen int
  6040  			for shift := uint(0); ; shift += 7 {
  6041  				if shift >= 64 {
  6042  					return ErrIntOverflowApi
  6043  				}
  6044  				if iNdEx >= l {
  6045  					return io.ErrUnexpectedEOF
  6046  				}
  6047  				b := dAtA[iNdEx]
  6048  				iNdEx++
  6049  				msglen |= int(b&0x7F) << shift
  6050  				if b < 0x80 {
  6051  					break
  6052  				}
  6053  			}
  6054  			if msglen < 0 {
  6055  				return ErrInvalidLengthApi
  6056  			}
  6057  			postIndex := iNdEx + msglen
  6058  			if postIndex < 0 {
  6059  				return ErrInvalidLengthApi
  6060  			}
  6061  			if postIndex > l {
  6062  				return io.ErrUnexpectedEOF
  6063  			}
  6064  			m.Commands = append(m.Commands, &Entry{})
  6065  			if err := m.Commands[len(m.Commands)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6066  				return err
  6067  			}
  6068  			iNdEx = postIndex
  6069  		default:
  6070  			iNdEx = preIndex
  6071  			skippy, err := skipApi(dAtA[iNdEx:])
  6072  			if err != nil {
  6073  				return err
  6074  			}
  6075  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6076  				return ErrInvalidLengthApi
  6077  			}
  6078  			if (iNdEx + skippy) > l {
  6079  				return io.ErrUnexpectedEOF
  6080  			}
  6081  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6082  			iNdEx += skippy
  6083  		}
  6084  	}
  6085  
  6086  	if iNdEx > l {
  6087  		return io.ErrUnexpectedEOF
  6088  	}
  6089  	return nil
  6090  }
  6091  func (m *PrecommitWriteCmd) Unmarshal(dAtA []byte) error {
  6092  	l := len(dAtA)
  6093  	iNdEx := 0
  6094  	for iNdEx < l {
  6095  		preIndex := iNdEx
  6096  		var wire uint64
  6097  		for shift := uint(0); ; shift += 7 {
  6098  			if shift >= 64 {
  6099  				return ErrIntOverflowApi
  6100  			}
  6101  			if iNdEx >= l {
  6102  				return io.ErrUnexpectedEOF
  6103  			}
  6104  			b := dAtA[iNdEx]
  6105  			iNdEx++
  6106  			wire |= uint64(b&0x7F) << shift
  6107  			if b < 0x80 {
  6108  				break
  6109  			}
  6110  		}
  6111  		fieldNum := int32(wire >> 3)
  6112  		wireType := int(wire & 0x7)
  6113  		if wireType == 4 {
  6114  			return fmt.Errorf("proto: PrecommitWriteCmd: wiretype end group for non-group")
  6115  		}
  6116  		if fieldNum <= 0 {
  6117  			return fmt.Errorf("proto: PrecommitWriteCmd: illegal tag %d (wire type %d)", fieldNum, wire)
  6118  		}
  6119  		switch fieldNum {
  6120  		case 1:
  6121  			if wireType != 2 {
  6122  				return fmt.Errorf("proto: wrong wireType = %d for field EntryList", wireType)
  6123  			}
  6124  			var msglen int
  6125  			for shift := uint(0); ; shift += 7 {
  6126  				if shift >= 64 {
  6127  					return ErrIntOverflowApi
  6128  				}
  6129  				if iNdEx >= l {
  6130  					return io.ErrUnexpectedEOF
  6131  				}
  6132  				b := dAtA[iNdEx]
  6133  				iNdEx++
  6134  				msglen |= int(b&0x7F) << shift
  6135  				if b < 0x80 {
  6136  					break
  6137  				}
  6138  			}
  6139  			if msglen < 0 {
  6140  				return ErrInvalidLengthApi
  6141  			}
  6142  			postIndex := iNdEx + msglen
  6143  			if postIndex < 0 {
  6144  				return ErrInvalidLengthApi
  6145  			}
  6146  			if postIndex > l {
  6147  				return io.ErrUnexpectedEOF
  6148  			}
  6149  			m.EntryList = append(m.EntryList, &Entry{})
  6150  			if err := m.EntryList[len(m.EntryList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6151  				return err
  6152  			}
  6153  			iNdEx = postIndex
  6154  		default:
  6155  			iNdEx = preIndex
  6156  			skippy, err := skipApi(dAtA[iNdEx:])
  6157  			if err != nil {
  6158  				return err
  6159  			}
  6160  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6161  				return ErrInvalidLengthApi
  6162  			}
  6163  			if (iNdEx + skippy) > l {
  6164  				return io.ErrUnexpectedEOF
  6165  			}
  6166  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6167  			iNdEx += skippy
  6168  		}
  6169  	}
  6170  
  6171  	if iNdEx > l {
  6172  		return io.ErrUnexpectedEOF
  6173  	}
  6174  	return nil
  6175  }
  6176  func (m *Entry) Unmarshal(dAtA []byte) error {
  6177  	l := len(dAtA)
  6178  	iNdEx := 0
  6179  	for iNdEx < l {
  6180  		preIndex := iNdEx
  6181  		var wire uint64
  6182  		for shift := uint(0); ; shift += 7 {
  6183  			if shift >= 64 {
  6184  				return ErrIntOverflowApi
  6185  			}
  6186  			if iNdEx >= l {
  6187  				return io.ErrUnexpectedEOF
  6188  			}
  6189  			b := dAtA[iNdEx]
  6190  			iNdEx++
  6191  			wire |= uint64(b&0x7F) << shift
  6192  			if b < 0x80 {
  6193  				break
  6194  			}
  6195  		}
  6196  		fieldNum := int32(wire >> 3)
  6197  		wireType := int(wire & 0x7)
  6198  		if wireType == 4 {
  6199  			return fmt.Errorf("proto: Entry: wiretype end group for non-group")
  6200  		}
  6201  		if fieldNum <= 0 {
  6202  			return fmt.Errorf("proto: Entry: illegal tag %d (wire type %d)", fieldNum, wire)
  6203  		}
  6204  		switch fieldNum {
  6205  		case 1:
  6206  			if wireType != 0 {
  6207  				return fmt.Errorf("proto: wrong wireType = %d for field EntryType", wireType)
  6208  			}
  6209  			m.EntryType = 0
  6210  			for shift := uint(0); ; shift += 7 {
  6211  				if shift >= 64 {
  6212  					return ErrIntOverflowApi
  6213  				}
  6214  				if iNdEx >= l {
  6215  					return io.ErrUnexpectedEOF
  6216  				}
  6217  				b := dAtA[iNdEx]
  6218  				iNdEx++
  6219  				m.EntryType |= Entry_EntryType(b&0x7F) << shift
  6220  				if b < 0x80 {
  6221  					break
  6222  				}
  6223  			}
  6224  		case 2:
  6225  			if wireType != 0 {
  6226  				return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType)
  6227  			}
  6228  			m.TableId = 0
  6229  			for shift := uint(0); ; shift += 7 {
  6230  				if shift >= 64 {
  6231  					return ErrIntOverflowApi
  6232  				}
  6233  				if iNdEx >= l {
  6234  					return io.ErrUnexpectedEOF
  6235  				}
  6236  				b := dAtA[iNdEx]
  6237  				iNdEx++
  6238  				m.TableId |= uint64(b&0x7F) << shift
  6239  				if b < 0x80 {
  6240  					break
  6241  				}
  6242  			}
  6243  		case 3:
  6244  			if wireType != 0 {
  6245  				return fmt.Errorf("proto: wrong wireType = %d for field DatabaseId", wireType)
  6246  			}
  6247  			m.DatabaseId = 0
  6248  			for shift := uint(0); ; shift += 7 {
  6249  				if shift >= 64 {
  6250  					return ErrIntOverflowApi
  6251  				}
  6252  				if iNdEx >= l {
  6253  					return io.ErrUnexpectedEOF
  6254  				}
  6255  				b := dAtA[iNdEx]
  6256  				iNdEx++
  6257  				m.DatabaseId |= uint64(b&0x7F) << shift
  6258  				if b < 0x80 {
  6259  					break
  6260  				}
  6261  			}
  6262  		case 4:
  6263  			if wireType != 2 {
  6264  				return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType)
  6265  			}
  6266  			var stringLen uint64
  6267  			for shift := uint(0); ; shift += 7 {
  6268  				if shift >= 64 {
  6269  					return ErrIntOverflowApi
  6270  				}
  6271  				if iNdEx >= l {
  6272  					return io.ErrUnexpectedEOF
  6273  				}
  6274  				b := dAtA[iNdEx]
  6275  				iNdEx++
  6276  				stringLen |= uint64(b&0x7F) << shift
  6277  				if b < 0x80 {
  6278  					break
  6279  				}
  6280  			}
  6281  			intStringLen := int(stringLen)
  6282  			if intStringLen < 0 {
  6283  				return ErrInvalidLengthApi
  6284  			}
  6285  			postIndex := iNdEx + intStringLen
  6286  			if postIndex < 0 {
  6287  				return ErrInvalidLengthApi
  6288  			}
  6289  			if postIndex > l {
  6290  				return io.ErrUnexpectedEOF
  6291  			}
  6292  			m.TableName = string(dAtA[iNdEx:postIndex])
  6293  			iNdEx = postIndex
  6294  		case 5:
  6295  			if wireType != 2 {
  6296  				return fmt.Errorf("proto: wrong wireType = %d for field DatabaseName", wireType)
  6297  			}
  6298  			var stringLen uint64
  6299  			for shift := uint(0); ; shift += 7 {
  6300  				if shift >= 64 {
  6301  					return ErrIntOverflowApi
  6302  				}
  6303  				if iNdEx >= l {
  6304  					return io.ErrUnexpectedEOF
  6305  				}
  6306  				b := dAtA[iNdEx]
  6307  				iNdEx++
  6308  				stringLen |= uint64(b&0x7F) << shift
  6309  				if b < 0x80 {
  6310  					break
  6311  				}
  6312  			}
  6313  			intStringLen := int(stringLen)
  6314  			if intStringLen < 0 {
  6315  				return ErrInvalidLengthApi
  6316  			}
  6317  			postIndex := iNdEx + intStringLen
  6318  			if postIndex < 0 {
  6319  				return ErrInvalidLengthApi
  6320  			}
  6321  			if postIndex > l {
  6322  				return io.ErrUnexpectedEOF
  6323  			}
  6324  			m.DatabaseName = string(dAtA[iNdEx:postIndex])
  6325  			iNdEx = postIndex
  6326  		case 6:
  6327  			if wireType != 2 {
  6328  				return fmt.Errorf("proto: wrong wireType = %d for field FileName", wireType)
  6329  			}
  6330  			var stringLen uint64
  6331  			for shift := uint(0); ; shift += 7 {
  6332  				if shift >= 64 {
  6333  					return ErrIntOverflowApi
  6334  				}
  6335  				if iNdEx >= l {
  6336  					return io.ErrUnexpectedEOF
  6337  				}
  6338  				b := dAtA[iNdEx]
  6339  				iNdEx++
  6340  				stringLen |= uint64(b&0x7F) << shift
  6341  				if b < 0x80 {
  6342  					break
  6343  				}
  6344  			}
  6345  			intStringLen := int(stringLen)
  6346  			if intStringLen < 0 {
  6347  				return ErrInvalidLengthApi
  6348  			}
  6349  			postIndex := iNdEx + intStringLen
  6350  			if postIndex < 0 {
  6351  				return ErrInvalidLengthApi
  6352  			}
  6353  			if postIndex > l {
  6354  				return io.ErrUnexpectedEOF
  6355  			}
  6356  			m.FileName = string(dAtA[iNdEx:postIndex])
  6357  			iNdEx = postIndex
  6358  		case 7:
  6359  			if wireType != 2 {
  6360  				return fmt.Errorf("proto: wrong wireType = %d for field Bat", wireType)
  6361  			}
  6362  			var msglen int
  6363  			for shift := uint(0); ; shift += 7 {
  6364  				if shift >= 64 {
  6365  					return ErrIntOverflowApi
  6366  				}
  6367  				if iNdEx >= l {
  6368  					return io.ErrUnexpectedEOF
  6369  				}
  6370  				b := dAtA[iNdEx]
  6371  				iNdEx++
  6372  				msglen |= int(b&0x7F) << shift
  6373  				if b < 0x80 {
  6374  					break
  6375  				}
  6376  			}
  6377  			if msglen < 0 {
  6378  				return ErrInvalidLengthApi
  6379  			}
  6380  			postIndex := iNdEx + msglen
  6381  			if postIndex < 0 {
  6382  				return ErrInvalidLengthApi
  6383  			}
  6384  			if postIndex > l {
  6385  				return io.ErrUnexpectedEOF
  6386  			}
  6387  			if m.Bat == nil {
  6388  				m.Bat = &Batch{}
  6389  			}
  6390  			if err := m.Bat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6391  				return err
  6392  			}
  6393  			iNdEx = postIndex
  6394  		case 8:
  6395  			if wireType != 0 {
  6396  				return fmt.Errorf("proto: wrong wireType = %d for field PkCheckByTn", wireType)
  6397  			}
  6398  			m.PkCheckByTn = 0
  6399  			for shift := uint(0); ; shift += 7 {
  6400  				if shift >= 64 {
  6401  					return ErrIntOverflowApi
  6402  				}
  6403  				if iNdEx >= l {
  6404  					return io.ErrUnexpectedEOF
  6405  				}
  6406  				b := dAtA[iNdEx]
  6407  				iNdEx++
  6408  				m.PkCheckByTn |= int32(b&0x7F) << shift
  6409  				if b < 0x80 {
  6410  					break
  6411  				}
  6412  			}
  6413  		default:
  6414  			iNdEx = preIndex
  6415  			skippy, err := skipApi(dAtA[iNdEx:])
  6416  			if err != nil {
  6417  				return err
  6418  			}
  6419  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6420  				return ErrInvalidLengthApi
  6421  			}
  6422  			if (iNdEx + skippy) > l {
  6423  				return io.ErrUnexpectedEOF
  6424  			}
  6425  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6426  			iNdEx += skippy
  6427  		}
  6428  	}
  6429  
  6430  	if iNdEx > l {
  6431  		return io.ErrUnexpectedEOF
  6432  	}
  6433  	return nil
  6434  }
  6435  func (m *Checkpoint) Unmarshal(dAtA []byte) error {
  6436  	l := len(dAtA)
  6437  	iNdEx := 0
  6438  	for iNdEx < l {
  6439  		preIndex := iNdEx
  6440  		var wire uint64
  6441  		for shift := uint(0); ; shift += 7 {
  6442  			if shift >= 64 {
  6443  				return ErrIntOverflowApi
  6444  			}
  6445  			if iNdEx >= l {
  6446  				return io.ErrUnexpectedEOF
  6447  			}
  6448  			b := dAtA[iNdEx]
  6449  			iNdEx++
  6450  			wire |= uint64(b&0x7F) << shift
  6451  			if b < 0x80 {
  6452  				break
  6453  			}
  6454  		}
  6455  		fieldNum := int32(wire >> 3)
  6456  		wireType := int(wire & 0x7)
  6457  		if wireType == 4 {
  6458  			return fmt.Errorf("proto: Checkpoint: wiretype end group for non-group")
  6459  		}
  6460  		if fieldNum <= 0 {
  6461  			return fmt.Errorf("proto: Checkpoint: illegal tag %d (wire type %d)", fieldNum, wire)
  6462  		}
  6463  		switch fieldNum {
  6464  		case 1:
  6465  			if wireType != 2 {
  6466  				return fmt.Errorf("proto: wrong wireType = %d for field MinTs", wireType)
  6467  			}
  6468  			var msglen int
  6469  			for shift := uint(0); ; shift += 7 {
  6470  				if shift >= 64 {
  6471  					return ErrIntOverflowApi
  6472  				}
  6473  				if iNdEx >= l {
  6474  					return io.ErrUnexpectedEOF
  6475  				}
  6476  				b := dAtA[iNdEx]
  6477  				iNdEx++
  6478  				msglen |= int(b&0x7F) << shift
  6479  				if b < 0x80 {
  6480  					break
  6481  				}
  6482  			}
  6483  			if msglen < 0 {
  6484  				return ErrInvalidLengthApi
  6485  			}
  6486  			postIndex := iNdEx + msglen
  6487  			if postIndex < 0 {
  6488  				return ErrInvalidLengthApi
  6489  			}
  6490  			if postIndex > l {
  6491  				return io.ErrUnexpectedEOF
  6492  			}
  6493  			if m.MinTs == nil {
  6494  				m.MinTs = &timestamp.Timestamp{}
  6495  			}
  6496  			if err := m.MinTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6497  				return err
  6498  			}
  6499  			iNdEx = postIndex
  6500  		case 2:
  6501  			if wireType != 2 {
  6502  				return fmt.Errorf("proto: wrong wireType = %d for field MaxTs", wireType)
  6503  			}
  6504  			var msglen int
  6505  			for shift := uint(0); ; shift += 7 {
  6506  				if shift >= 64 {
  6507  					return ErrIntOverflowApi
  6508  				}
  6509  				if iNdEx >= l {
  6510  					return io.ErrUnexpectedEOF
  6511  				}
  6512  				b := dAtA[iNdEx]
  6513  				iNdEx++
  6514  				msglen |= int(b&0x7F) << shift
  6515  				if b < 0x80 {
  6516  					break
  6517  				}
  6518  			}
  6519  			if msglen < 0 {
  6520  				return ErrInvalidLengthApi
  6521  			}
  6522  			postIndex := iNdEx + msglen
  6523  			if postIndex < 0 {
  6524  				return ErrInvalidLengthApi
  6525  			}
  6526  			if postIndex > l {
  6527  				return io.ErrUnexpectedEOF
  6528  			}
  6529  			if m.MaxTs == nil {
  6530  				m.MaxTs = &timestamp.Timestamp{}
  6531  			}
  6532  			if err := m.MaxTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6533  				return err
  6534  			}
  6535  			iNdEx = postIndex
  6536  		case 3:
  6537  			if wireType != 2 {
  6538  				return fmt.Errorf("proto: wrong wireType = %d for field Bat", wireType)
  6539  			}
  6540  			var msglen int
  6541  			for shift := uint(0); ; shift += 7 {
  6542  				if shift >= 64 {
  6543  					return ErrIntOverflowApi
  6544  				}
  6545  				if iNdEx >= l {
  6546  					return io.ErrUnexpectedEOF
  6547  				}
  6548  				b := dAtA[iNdEx]
  6549  				iNdEx++
  6550  				msglen |= int(b&0x7F) << shift
  6551  				if b < 0x80 {
  6552  					break
  6553  				}
  6554  			}
  6555  			if msglen < 0 {
  6556  				return ErrInvalidLengthApi
  6557  			}
  6558  			postIndex := iNdEx + msglen
  6559  			if postIndex < 0 {
  6560  				return ErrInvalidLengthApi
  6561  			}
  6562  			if postIndex > l {
  6563  				return io.ErrUnexpectedEOF
  6564  			}
  6565  			if m.Bat == nil {
  6566  				m.Bat = &Batch{}
  6567  			}
  6568  			if err := m.Bat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6569  				return err
  6570  			}
  6571  			iNdEx = postIndex
  6572  		default:
  6573  			iNdEx = preIndex
  6574  			skippy, err := skipApi(dAtA[iNdEx:])
  6575  			if err != nil {
  6576  				return err
  6577  			}
  6578  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6579  				return ErrInvalidLengthApi
  6580  			}
  6581  			if (iNdEx + skippy) > l {
  6582  				return io.ErrUnexpectedEOF
  6583  			}
  6584  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6585  			iNdEx += skippy
  6586  		}
  6587  	}
  6588  
  6589  	if iNdEx > l {
  6590  		return io.ErrUnexpectedEOF
  6591  	}
  6592  	return nil
  6593  }
  6594  func (m *CatalogCkp) Unmarshal(dAtA []byte) error {
  6595  	l := len(dAtA)
  6596  	iNdEx := 0
  6597  	for iNdEx < l {
  6598  		preIndex := iNdEx
  6599  		var wire uint64
  6600  		for shift := uint(0); ; shift += 7 {
  6601  			if shift >= 64 {
  6602  				return ErrIntOverflowApi
  6603  			}
  6604  			if iNdEx >= l {
  6605  				return io.ErrUnexpectedEOF
  6606  			}
  6607  			b := dAtA[iNdEx]
  6608  			iNdEx++
  6609  			wire |= uint64(b&0x7F) << shift
  6610  			if b < 0x80 {
  6611  				break
  6612  			}
  6613  		}
  6614  		fieldNum := int32(wire >> 3)
  6615  		wireType := int(wire & 0x7)
  6616  		if wireType == 4 {
  6617  			return fmt.Errorf("proto: CatalogCkp: wiretype end group for non-group")
  6618  		}
  6619  		if fieldNum <= 0 {
  6620  			return fmt.Errorf("proto: CatalogCkp: illegal tag %d (wire type %d)", fieldNum, wire)
  6621  		}
  6622  		switch fieldNum {
  6623  		case 1:
  6624  			if wireType != 2 {
  6625  				return fmt.Errorf("proto: wrong wireType = %d for field MinTs", wireType)
  6626  			}
  6627  			var msglen int
  6628  			for shift := uint(0); ; shift += 7 {
  6629  				if shift >= 64 {
  6630  					return ErrIntOverflowApi
  6631  				}
  6632  				if iNdEx >= l {
  6633  					return io.ErrUnexpectedEOF
  6634  				}
  6635  				b := dAtA[iNdEx]
  6636  				iNdEx++
  6637  				msglen |= int(b&0x7F) << shift
  6638  				if b < 0x80 {
  6639  					break
  6640  				}
  6641  			}
  6642  			if msglen < 0 {
  6643  				return ErrInvalidLengthApi
  6644  			}
  6645  			postIndex := iNdEx + msglen
  6646  			if postIndex < 0 {
  6647  				return ErrInvalidLengthApi
  6648  			}
  6649  			if postIndex > l {
  6650  				return io.ErrUnexpectedEOF
  6651  			}
  6652  			if m.MinTs == nil {
  6653  				m.MinTs = &timestamp.Timestamp{}
  6654  			}
  6655  			if err := m.MinTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6656  				return err
  6657  			}
  6658  			iNdEx = postIndex
  6659  		case 2:
  6660  			if wireType != 2 {
  6661  				return fmt.Errorf("proto: wrong wireType = %d for field MaxTs", wireType)
  6662  			}
  6663  			var msglen int
  6664  			for shift := uint(0); ; shift += 7 {
  6665  				if shift >= 64 {
  6666  					return ErrIntOverflowApi
  6667  				}
  6668  				if iNdEx >= l {
  6669  					return io.ErrUnexpectedEOF
  6670  				}
  6671  				b := dAtA[iNdEx]
  6672  				iNdEx++
  6673  				msglen |= int(b&0x7F) << shift
  6674  				if b < 0x80 {
  6675  					break
  6676  				}
  6677  			}
  6678  			if msglen < 0 {
  6679  				return ErrInvalidLengthApi
  6680  			}
  6681  			postIndex := iNdEx + msglen
  6682  			if postIndex < 0 {
  6683  				return ErrInvalidLengthApi
  6684  			}
  6685  			if postIndex > l {
  6686  				return io.ErrUnexpectedEOF
  6687  			}
  6688  			if m.MaxTs == nil {
  6689  				m.MaxTs = &timestamp.Timestamp{}
  6690  			}
  6691  			if err := m.MaxTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6692  				return err
  6693  			}
  6694  			iNdEx = postIndex
  6695  		case 3:
  6696  			if wireType != 2 {
  6697  				return fmt.Errorf("proto: wrong wireType = %d for field Bat", wireType)
  6698  			}
  6699  			var msglen int
  6700  			for shift := uint(0); ; shift += 7 {
  6701  				if shift >= 64 {
  6702  					return ErrIntOverflowApi
  6703  				}
  6704  				if iNdEx >= l {
  6705  					return io.ErrUnexpectedEOF
  6706  				}
  6707  				b := dAtA[iNdEx]
  6708  				iNdEx++
  6709  				msglen |= int(b&0x7F) << shift
  6710  				if b < 0x80 {
  6711  					break
  6712  				}
  6713  			}
  6714  			if msglen < 0 {
  6715  				return ErrInvalidLengthApi
  6716  			}
  6717  			postIndex := iNdEx + msglen
  6718  			if postIndex < 0 {
  6719  				return ErrInvalidLengthApi
  6720  			}
  6721  			if postIndex > l {
  6722  				return io.ErrUnexpectedEOF
  6723  			}
  6724  			if m.Bat == nil {
  6725  				m.Bat = &Batch{}
  6726  			}
  6727  			if err := m.Bat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6728  				return err
  6729  			}
  6730  			iNdEx = postIndex
  6731  		default:
  6732  			iNdEx = preIndex
  6733  			skippy, err := skipApi(dAtA[iNdEx:])
  6734  			if err != nil {
  6735  				return err
  6736  			}
  6737  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6738  				return ErrInvalidLengthApi
  6739  			}
  6740  			if (iNdEx + skippy) > l {
  6741  				return io.ErrUnexpectedEOF
  6742  			}
  6743  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6744  			iNdEx += skippy
  6745  		}
  6746  	}
  6747  
  6748  	if iNdEx > l {
  6749  		return io.ErrUnexpectedEOF
  6750  	}
  6751  	return nil
  6752  }
  6753  func (m *MetadataCkp) Unmarshal(dAtA []byte) error {
  6754  	l := len(dAtA)
  6755  	iNdEx := 0
  6756  	for iNdEx < l {
  6757  		preIndex := iNdEx
  6758  		var wire uint64
  6759  		for shift := uint(0); ; shift += 7 {
  6760  			if shift >= 64 {
  6761  				return ErrIntOverflowApi
  6762  			}
  6763  			if iNdEx >= l {
  6764  				return io.ErrUnexpectedEOF
  6765  			}
  6766  			b := dAtA[iNdEx]
  6767  			iNdEx++
  6768  			wire |= uint64(b&0x7F) << shift
  6769  			if b < 0x80 {
  6770  				break
  6771  			}
  6772  		}
  6773  		fieldNum := int32(wire >> 3)
  6774  		wireType := int(wire & 0x7)
  6775  		if wireType == 4 {
  6776  			return fmt.Errorf("proto: MetadataCkp: wiretype end group for non-group")
  6777  		}
  6778  		if fieldNum <= 0 {
  6779  			return fmt.Errorf("proto: MetadataCkp: illegal tag %d (wire type %d)", fieldNum, wire)
  6780  		}
  6781  		switch fieldNum {
  6782  		case 1:
  6783  			if wireType != 2 {
  6784  				return fmt.Errorf("proto: wrong wireType = %d for field MinTs", wireType)
  6785  			}
  6786  			var msglen int
  6787  			for shift := uint(0); ; shift += 7 {
  6788  				if shift >= 64 {
  6789  					return ErrIntOverflowApi
  6790  				}
  6791  				if iNdEx >= l {
  6792  					return io.ErrUnexpectedEOF
  6793  				}
  6794  				b := dAtA[iNdEx]
  6795  				iNdEx++
  6796  				msglen |= int(b&0x7F) << shift
  6797  				if b < 0x80 {
  6798  					break
  6799  				}
  6800  			}
  6801  			if msglen < 0 {
  6802  				return ErrInvalidLengthApi
  6803  			}
  6804  			postIndex := iNdEx + msglen
  6805  			if postIndex < 0 {
  6806  				return ErrInvalidLengthApi
  6807  			}
  6808  			if postIndex > l {
  6809  				return io.ErrUnexpectedEOF
  6810  			}
  6811  			if m.MinTs == nil {
  6812  				m.MinTs = &timestamp.Timestamp{}
  6813  			}
  6814  			if err := m.MinTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6815  				return err
  6816  			}
  6817  			iNdEx = postIndex
  6818  		case 2:
  6819  			if wireType != 2 {
  6820  				return fmt.Errorf("proto: wrong wireType = %d for field MaxTs", wireType)
  6821  			}
  6822  			var msglen int
  6823  			for shift := uint(0); ; shift += 7 {
  6824  				if shift >= 64 {
  6825  					return ErrIntOverflowApi
  6826  				}
  6827  				if iNdEx >= l {
  6828  					return io.ErrUnexpectedEOF
  6829  				}
  6830  				b := dAtA[iNdEx]
  6831  				iNdEx++
  6832  				msglen |= int(b&0x7F) << shift
  6833  				if b < 0x80 {
  6834  					break
  6835  				}
  6836  			}
  6837  			if msglen < 0 {
  6838  				return ErrInvalidLengthApi
  6839  			}
  6840  			postIndex := iNdEx + msglen
  6841  			if postIndex < 0 {
  6842  				return ErrInvalidLengthApi
  6843  			}
  6844  			if postIndex > l {
  6845  				return io.ErrUnexpectedEOF
  6846  			}
  6847  			if m.MaxTs == nil {
  6848  				m.MaxTs = &timestamp.Timestamp{}
  6849  			}
  6850  			if err := m.MaxTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6851  				return err
  6852  			}
  6853  			iNdEx = postIndex
  6854  		case 3:
  6855  			if wireType != 2 {
  6856  				return fmt.Errorf("proto: wrong wireType = %d for field Bat", wireType)
  6857  			}
  6858  			var msglen int
  6859  			for shift := uint(0); ; shift += 7 {
  6860  				if shift >= 64 {
  6861  					return ErrIntOverflowApi
  6862  				}
  6863  				if iNdEx >= l {
  6864  					return io.ErrUnexpectedEOF
  6865  				}
  6866  				b := dAtA[iNdEx]
  6867  				iNdEx++
  6868  				msglen |= int(b&0x7F) << shift
  6869  				if b < 0x80 {
  6870  					break
  6871  				}
  6872  			}
  6873  			if msglen < 0 {
  6874  				return ErrInvalidLengthApi
  6875  			}
  6876  			postIndex := iNdEx + msglen
  6877  			if postIndex < 0 {
  6878  				return ErrInvalidLengthApi
  6879  			}
  6880  			if postIndex > l {
  6881  				return io.ErrUnexpectedEOF
  6882  			}
  6883  			if m.Bat == nil {
  6884  				m.Bat = &Batch{}
  6885  			}
  6886  			if err := m.Bat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6887  				return err
  6888  			}
  6889  			iNdEx = postIndex
  6890  		default:
  6891  			iNdEx = preIndex
  6892  			skippy, err := skipApi(dAtA[iNdEx:])
  6893  			if err != nil {
  6894  				return err
  6895  			}
  6896  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6897  				return ErrInvalidLengthApi
  6898  			}
  6899  			if (iNdEx + skippy) > l {
  6900  				return io.ErrUnexpectedEOF
  6901  			}
  6902  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  6903  			iNdEx += skippy
  6904  		}
  6905  	}
  6906  
  6907  	if iNdEx > l {
  6908  		return io.ErrUnexpectedEOF
  6909  	}
  6910  	return nil
  6911  }
  6912  func (m *AlterTablePolicy) Unmarshal(dAtA []byte) error {
  6913  	l := len(dAtA)
  6914  	iNdEx := 0
  6915  	for iNdEx < l {
  6916  		preIndex := iNdEx
  6917  		var wire uint64
  6918  		for shift := uint(0); ; shift += 7 {
  6919  			if shift >= 64 {
  6920  				return ErrIntOverflowApi
  6921  			}
  6922  			if iNdEx >= l {
  6923  				return io.ErrUnexpectedEOF
  6924  			}
  6925  			b := dAtA[iNdEx]
  6926  			iNdEx++
  6927  			wire |= uint64(b&0x7F) << shift
  6928  			if b < 0x80 {
  6929  				break
  6930  			}
  6931  		}
  6932  		fieldNum := int32(wire >> 3)
  6933  		wireType := int(wire & 0x7)
  6934  		if wireType == 4 {
  6935  			return fmt.Errorf("proto: AlterTablePolicy: wiretype end group for non-group")
  6936  		}
  6937  		if fieldNum <= 0 {
  6938  			return fmt.Errorf("proto: AlterTablePolicy: illegal tag %d (wire type %d)", fieldNum, wire)
  6939  		}
  6940  		switch fieldNum {
  6941  		case 1:
  6942  			if wireType != 0 {
  6943  				return fmt.Errorf("proto: wrong wireType = %d for field MinOsizeQuailifed", wireType)
  6944  			}
  6945  			m.MinOsizeQuailifed = 0
  6946  			for shift := uint(0); ; shift += 7 {
  6947  				if shift >= 64 {
  6948  					return ErrIntOverflowApi
  6949  				}
  6950  				if iNdEx >= l {
  6951  					return io.ErrUnexpectedEOF
  6952  				}
  6953  				b := dAtA[iNdEx]
  6954  				iNdEx++
  6955  				m.MinOsizeQuailifed |= uint32(b&0x7F) << shift
  6956  				if b < 0x80 {
  6957  					break
  6958  				}
  6959  			}
  6960  		case 2:
  6961  			if wireType != 0 {
  6962  				return fmt.Errorf("proto: wrong wireType = %d for field MaxObjOnerun", wireType)
  6963  			}
  6964  			m.MaxObjOnerun = 0
  6965  			for shift := uint(0); ; shift += 7 {
  6966  				if shift >= 64 {
  6967  					return ErrIntOverflowApi
  6968  				}
  6969  				if iNdEx >= l {
  6970  					return io.ErrUnexpectedEOF
  6971  				}
  6972  				b := dAtA[iNdEx]
  6973  				iNdEx++
  6974  				m.MaxObjOnerun |= uint32(b&0x7F) << shift
  6975  				if b < 0x80 {
  6976  					break
  6977  				}
  6978  			}
  6979  		case 3:
  6980  			if wireType != 0 {
  6981  				return fmt.Errorf("proto: wrong wireType = %d for field MaxOsizeMergedObj", wireType)
  6982  			}
  6983  			m.MaxOsizeMergedObj = 0
  6984  			for shift := uint(0); ; shift += 7 {
  6985  				if shift >= 64 {
  6986  					return ErrIntOverflowApi
  6987  				}
  6988  				if iNdEx >= l {
  6989  					return io.ErrUnexpectedEOF
  6990  				}
  6991  				b := dAtA[iNdEx]
  6992  				iNdEx++
  6993  				m.MaxOsizeMergedObj |= uint32(b&0x7F) << shift
  6994  				if b < 0x80 {
  6995  					break
  6996  				}
  6997  			}
  6998  		case 4:
  6999  			if wireType == 0 {
  7000  				var v MergeHint
  7001  				for shift := uint(0); ; shift += 7 {
  7002  					if shift >= 64 {
  7003  						return ErrIntOverflowApi
  7004  					}
  7005  					if iNdEx >= l {
  7006  						return io.ErrUnexpectedEOF
  7007  					}
  7008  					b := dAtA[iNdEx]
  7009  					iNdEx++
  7010  					v |= MergeHint(b&0x7F) << shift
  7011  					if b < 0x80 {
  7012  						break
  7013  					}
  7014  				}
  7015  				m.Hints = append(m.Hints, v)
  7016  			} else if wireType == 2 {
  7017  				var packedLen int
  7018  				for shift := uint(0); ; shift += 7 {
  7019  					if shift >= 64 {
  7020  						return ErrIntOverflowApi
  7021  					}
  7022  					if iNdEx >= l {
  7023  						return io.ErrUnexpectedEOF
  7024  					}
  7025  					b := dAtA[iNdEx]
  7026  					iNdEx++
  7027  					packedLen |= int(b&0x7F) << shift
  7028  					if b < 0x80 {
  7029  						break
  7030  					}
  7031  				}
  7032  				if packedLen < 0 {
  7033  					return ErrInvalidLengthApi
  7034  				}
  7035  				postIndex := iNdEx + packedLen
  7036  				if postIndex < 0 {
  7037  					return ErrInvalidLengthApi
  7038  				}
  7039  				if postIndex > l {
  7040  					return io.ErrUnexpectedEOF
  7041  				}
  7042  				var elementCount int
  7043  				if elementCount != 0 && len(m.Hints) == 0 {
  7044  					m.Hints = make([]MergeHint, 0, elementCount)
  7045  				}
  7046  				for iNdEx < postIndex {
  7047  					var v MergeHint
  7048  					for shift := uint(0); ; shift += 7 {
  7049  						if shift >= 64 {
  7050  							return ErrIntOverflowApi
  7051  						}
  7052  						if iNdEx >= l {
  7053  							return io.ErrUnexpectedEOF
  7054  						}
  7055  						b := dAtA[iNdEx]
  7056  						iNdEx++
  7057  						v |= MergeHint(b&0x7F) << shift
  7058  						if b < 0x80 {
  7059  							break
  7060  						}
  7061  					}
  7062  					m.Hints = append(m.Hints, v)
  7063  				}
  7064  			} else {
  7065  				return fmt.Errorf("proto: wrong wireType = %d for field Hints", wireType)
  7066  			}
  7067  		case 5:
  7068  			if wireType != 0 {
  7069  				return fmt.Errorf("proto: wrong wireType = %d for field MinCnMergeSize", wireType)
  7070  			}
  7071  			m.MinCnMergeSize = 0
  7072  			for shift := uint(0); ; shift += 7 {
  7073  				if shift >= 64 {
  7074  					return ErrIntOverflowApi
  7075  				}
  7076  				if iNdEx >= l {
  7077  					return io.ErrUnexpectedEOF
  7078  				}
  7079  				b := dAtA[iNdEx]
  7080  				iNdEx++
  7081  				m.MinCnMergeSize |= uint64(b&0x7F) << shift
  7082  				if b < 0x80 {
  7083  					break
  7084  				}
  7085  			}
  7086  		default:
  7087  			iNdEx = preIndex
  7088  			skippy, err := skipApi(dAtA[iNdEx:])
  7089  			if err != nil {
  7090  				return err
  7091  			}
  7092  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7093  				return ErrInvalidLengthApi
  7094  			}
  7095  			if (iNdEx + skippy) > l {
  7096  				return io.ErrUnexpectedEOF
  7097  			}
  7098  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  7099  			iNdEx += skippy
  7100  		}
  7101  	}
  7102  
  7103  	if iNdEx > l {
  7104  		return io.ErrUnexpectedEOF
  7105  	}
  7106  	return nil
  7107  }
  7108  func (m *AlterTableConstraint) Unmarshal(dAtA []byte) error {
  7109  	l := len(dAtA)
  7110  	iNdEx := 0
  7111  	for iNdEx < l {
  7112  		preIndex := iNdEx
  7113  		var wire uint64
  7114  		for shift := uint(0); ; shift += 7 {
  7115  			if shift >= 64 {
  7116  				return ErrIntOverflowApi
  7117  			}
  7118  			if iNdEx >= l {
  7119  				return io.ErrUnexpectedEOF
  7120  			}
  7121  			b := dAtA[iNdEx]
  7122  			iNdEx++
  7123  			wire |= uint64(b&0x7F) << shift
  7124  			if b < 0x80 {
  7125  				break
  7126  			}
  7127  		}
  7128  		fieldNum := int32(wire >> 3)
  7129  		wireType := int(wire & 0x7)
  7130  		if wireType == 4 {
  7131  			return fmt.Errorf("proto: AlterTableConstraint: wiretype end group for non-group")
  7132  		}
  7133  		if fieldNum <= 0 {
  7134  			return fmt.Errorf("proto: AlterTableConstraint: illegal tag %d (wire type %d)", fieldNum, wire)
  7135  		}
  7136  		switch fieldNum {
  7137  		case 1:
  7138  			if wireType != 2 {
  7139  				return fmt.Errorf("proto: wrong wireType = %d for field Constraints", wireType)
  7140  			}
  7141  			var byteLen int
  7142  			for shift := uint(0); ; shift += 7 {
  7143  				if shift >= 64 {
  7144  					return ErrIntOverflowApi
  7145  				}
  7146  				if iNdEx >= l {
  7147  					return io.ErrUnexpectedEOF
  7148  				}
  7149  				b := dAtA[iNdEx]
  7150  				iNdEx++
  7151  				byteLen |= int(b&0x7F) << shift
  7152  				if b < 0x80 {
  7153  					break
  7154  				}
  7155  			}
  7156  			if byteLen < 0 {
  7157  				return ErrInvalidLengthApi
  7158  			}
  7159  			postIndex := iNdEx + byteLen
  7160  			if postIndex < 0 {
  7161  				return ErrInvalidLengthApi
  7162  			}
  7163  			if postIndex > l {
  7164  				return io.ErrUnexpectedEOF
  7165  			}
  7166  			m.Constraints = append(m.Constraints[:0], dAtA[iNdEx:postIndex]...)
  7167  			if m.Constraints == nil {
  7168  				m.Constraints = []byte{}
  7169  			}
  7170  			iNdEx = postIndex
  7171  		default:
  7172  			iNdEx = preIndex
  7173  			skippy, err := skipApi(dAtA[iNdEx:])
  7174  			if err != nil {
  7175  				return err
  7176  			}
  7177  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7178  				return ErrInvalidLengthApi
  7179  			}
  7180  			if (iNdEx + skippy) > l {
  7181  				return io.ErrUnexpectedEOF
  7182  			}
  7183  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  7184  			iNdEx += skippy
  7185  		}
  7186  	}
  7187  
  7188  	if iNdEx > l {
  7189  		return io.ErrUnexpectedEOF
  7190  	}
  7191  	return nil
  7192  }
  7193  func (m *AlterTableComment) Unmarshal(dAtA []byte) error {
  7194  	l := len(dAtA)
  7195  	iNdEx := 0
  7196  	for iNdEx < l {
  7197  		preIndex := iNdEx
  7198  		var wire uint64
  7199  		for shift := uint(0); ; shift += 7 {
  7200  			if shift >= 64 {
  7201  				return ErrIntOverflowApi
  7202  			}
  7203  			if iNdEx >= l {
  7204  				return io.ErrUnexpectedEOF
  7205  			}
  7206  			b := dAtA[iNdEx]
  7207  			iNdEx++
  7208  			wire |= uint64(b&0x7F) << shift
  7209  			if b < 0x80 {
  7210  				break
  7211  			}
  7212  		}
  7213  		fieldNum := int32(wire >> 3)
  7214  		wireType := int(wire & 0x7)
  7215  		if wireType == 4 {
  7216  			return fmt.Errorf("proto: AlterTableComment: wiretype end group for non-group")
  7217  		}
  7218  		if fieldNum <= 0 {
  7219  			return fmt.Errorf("proto: AlterTableComment: illegal tag %d (wire type %d)", fieldNum, wire)
  7220  		}
  7221  		switch fieldNum {
  7222  		case 1:
  7223  			if wireType != 2 {
  7224  				return fmt.Errorf("proto: wrong wireType = %d for field Comment", wireType)
  7225  			}
  7226  			var stringLen uint64
  7227  			for shift := uint(0); ; shift += 7 {
  7228  				if shift >= 64 {
  7229  					return ErrIntOverflowApi
  7230  				}
  7231  				if iNdEx >= l {
  7232  					return io.ErrUnexpectedEOF
  7233  				}
  7234  				b := dAtA[iNdEx]
  7235  				iNdEx++
  7236  				stringLen |= uint64(b&0x7F) << shift
  7237  				if b < 0x80 {
  7238  					break
  7239  				}
  7240  			}
  7241  			intStringLen := int(stringLen)
  7242  			if intStringLen < 0 {
  7243  				return ErrInvalidLengthApi
  7244  			}
  7245  			postIndex := iNdEx + intStringLen
  7246  			if postIndex < 0 {
  7247  				return ErrInvalidLengthApi
  7248  			}
  7249  			if postIndex > l {
  7250  				return io.ErrUnexpectedEOF
  7251  			}
  7252  			m.Comment = string(dAtA[iNdEx:postIndex])
  7253  			iNdEx = postIndex
  7254  		default:
  7255  			iNdEx = preIndex
  7256  			skippy, err := skipApi(dAtA[iNdEx:])
  7257  			if err != nil {
  7258  				return err
  7259  			}
  7260  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7261  				return ErrInvalidLengthApi
  7262  			}
  7263  			if (iNdEx + skippy) > l {
  7264  				return io.ErrUnexpectedEOF
  7265  			}
  7266  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  7267  			iNdEx += skippy
  7268  		}
  7269  	}
  7270  
  7271  	if iNdEx > l {
  7272  		return io.ErrUnexpectedEOF
  7273  	}
  7274  	return nil
  7275  }
  7276  func (m *AlterTableRenameTable) Unmarshal(dAtA []byte) error {
  7277  	l := len(dAtA)
  7278  	iNdEx := 0
  7279  	for iNdEx < l {
  7280  		preIndex := iNdEx
  7281  		var wire uint64
  7282  		for shift := uint(0); ; shift += 7 {
  7283  			if shift >= 64 {
  7284  				return ErrIntOverflowApi
  7285  			}
  7286  			if iNdEx >= l {
  7287  				return io.ErrUnexpectedEOF
  7288  			}
  7289  			b := dAtA[iNdEx]
  7290  			iNdEx++
  7291  			wire |= uint64(b&0x7F) << shift
  7292  			if b < 0x80 {
  7293  				break
  7294  			}
  7295  		}
  7296  		fieldNum := int32(wire >> 3)
  7297  		wireType := int(wire & 0x7)
  7298  		if wireType == 4 {
  7299  			return fmt.Errorf("proto: AlterTableRenameTable: wiretype end group for non-group")
  7300  		}
  7301  		if fieldNum <= 0 {
  7302  			return fmt.Errorf("proto: AlterTableRenameTable: illegal tag %d (wire type %d)", fieldNum, wire)
  7303  		}
  7304  		switch fieldNum {
  7305  		case 1:
  7306  			if wireType != 2 {
  7307  				return fmt.Errorf("proto: wrong wireType = %d for field OldName", wireType)
  7308  			}
  7309  			var stringLen uint64
  7310  			for shift := uint(0); ; shift += 7 {
  7311  				if shift >= 64 {
  7312  					return ErrIntOverflowApi
  7313  				}
  7314  				if iNdEx >= l {
  7315  					return io.ErrUnexpectedEOF
  7316  				}
  7317  				b := dAtA[iNdEx]
  7318  				iNdEx++
  7319  				stringLen |= uint64(b&0x7F) << shift
  7320  				if b < 0x80 {
  7321  					break
  7322  				}
  7323  			}
  7324  			intStringLen := int(stringLen)
  7325  			if intStringLen < 0 {
  7326  				return ErrInvalidLengthApi
  7327  			}
  7328  			postIndex := iNdEx + intStringLen
  7329  			if postIndex < 0 {
  7330  				return ErrInvalidLengthApi
  7331  			}
  7332  			if postIndex > l {
  7333  				return io.ErrUnexpectedEOF
  7334  			}
  7335  			m.OldName = string(dAtA[iNdEx:postIndex])
  7336  			iNdEx = postIndex
  7337  		case 2:
  7338  			if wireType != 2 {
  7339  				return fmt.Errorf("proto: wrong wireType = %d for field NewName", wireType)
  7340  			}
  7341  			var stringLen uint64
  7342  			for shift := uint(0); ; shift += 7 {
  7343  				if shift >= 64 {
  7344  					return ErrIntOverflowApi
  7345  				}
  7346  				if iNdEx >= l {
  7347  					return io.ErrUnexpectedEOF
  7348  				}
  7349  				b := dAtA[iNdEx]
  7350  				iNdEx++
  7351  				stringLen |= uint64(b&0x7F) << shift
  7352  				if b < 0x80 {
  7353  					break
  7354  				}
  7355  			}
  7356  			intStringLen := int(stringLen)
  7357  			if intStringLen < 0 {
  7358  				return ErrInvalidLengthApi
  7359  			}
  7360  			postIndex := iNdEx + intStringLen
  7361  			if postIndex < 0 {
  7362  				return ErrInvalidLengthApi
  7363  			}
  7364  			if postIndex > l {
  7365  				return io.ErrUnexpectedEOF
  7366  			}
  7367  			m.NewName = string(dAtA[iNdEx:postIndex])
  7368  			iNdEx = postIndex
  7369  		default:
  7370  			iNdEx = preIndex
  7371  			skippy, err := skipApi(dAtA[iNdEx:])
  7372  			if err != nil {
  7373  				return err
  7374  			}
  7375  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7376  				return ErrInvalidLengthApi
  7377  			}
  7378  			if (iNdEx + skippy) > l {
  7379  				return io.ErrUnexpectedEOF
  7380  			}
  7381  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  7382  			iNdEx += skippy
  7383  		}
  7384  	}
  7385  
  7386  	if iNdEx > l {
  7387  		return io.ErrUnexpectedEOF
  7388  	}
  7389  	return nil
  7390  }
  7391  func (m *AlterTableRenameCol) Unmarshal(dAtA []byte) error {
  7392  	l := len(dAtA)
  7393  	iNdEx := 0
  7394  	for iNdEx < l {
  7395  		preIndex := iNdEx
  7396  		var wire uint64
  7397  		for shift := uint(0); ; shift += 7 {
  7398  			if shift >= 64 {
  7399  				return ErrIntOverflowApi
  7400  			}
  7401  			if iNdEx >= l {
  7402  				return io.ErrUnexpectedEOF
  7403  			}
  7404  			b := dAtA[iNdEx]
  7405  			iNdEx++
  7406  			wire |= uint64(b&0x7F) << shift
  7407  			if b < 0x80 {
  7408  				break
  7409  			}
  7410  		}
  7411  		fieldNum := int32(wire >> 3)
  7412  		wireType := int(wire & 0x7)
  7413  		if wireType == 4 {
  7414  			return fmt.Errorf("proto: AlterTableRenameCol: wiretype end group for non-group")
  7415  		}
  7416  		if fieldNum <= 0 {
  7417  			return fmt.Errorf("proto: AlterTableRenameCol: illegal tag %d (wire type %d)", fieldNum, wire)
  7418  		}
  7419  		switch fieldNum {
  7420  		case 1:
  7421  			if wireType != 2 {
  7422  				return fmt.Errorf("proto: wrong wireType = %d for field OldName", wireType)
  7423  			}
  7424  			var stringLen uint64
  7425  			for shift := uint(0); ; shift += 7 {
  7426  				if shift >= 64 {
  7427  					return ErrIntOverflowApi
  7428  				}
  7429  				if iNdEx >= l {
  7430  					return io.ErrUnexpectedEOF
  7431  				}
  7432  				b := dAtA[iNdEx]
  7433  				iNdEx++
  7434  				stringLen |= uint64(b&0x7F) << shift
  7435  				if b < 0x80 {
  7436  					break
  7437  				}
  7438  			}
  7439  			intStringLen := int(stringLen)
  7440  			if intStringLen < 0 {
  7441  				return ErrInvalidLengthApi
  7442  			}
  7443  			postIndex := iNdEx + intStringLen
  7444  			if postIndex < 0 {
  7445  				return ErrInvalidLengthApi
  7446  			}
  7447  			if postIndex > l {
  7448  				return io.ErrUnexpectedEOF
  7449  			}
  7450  			m.OldName = string(dAtA[iNdEx:postIndex])
  7451  			iNdEx = postIndex
  7452  		case 2:
  7453  			if wireType != 2 {
  7454  				return fmt.Errorf("proto: wrong wireType = %d for field NewName", wireType)
  7455  			}
  7456  			var stringLen uint64
  7457  			for shift := uint(0); ; shift += 7 {
  7458  				if shift >= 64 {
  7459  					return ErrIntOverflowApi
  7460  				}
  7461  				if iNdEx >= l {
  7462  					return io.ErrUnexpectedEOF
  7463  				}
  7464  				b := dAtA[iNdEx]
  7465  				iNdEx++
  7466  				stringLen |= uint64(b&0x7F) << shift
  7467  				if b < 0x80 {
  7468  					break
  7469  				}
  7470  			}
  7471  			intStringLen := int(stringLen)
  7472  			if intStringLen < 0 {
  7473  				return ErrInvalidLengthApi
  7474  			}
  7475  			postIndex := iNdEx + intStringLen
  7476  			if postIndex < 0 {
  7477  				return ErrInvalidLengthApi
  7478  			}
  7479  			if postIndex > l {
  7480  				return io.ErrUnexpectedEOF
  7481  			}
  7482  			m.NewName = string(dAtA[iNdEx:postIndex])
  7483  			iNdEx = postIndex
  7484  		case 3:
  7485  			if wireType != 0 {
  7486  				return fmt.Errorf("proto: wrong wireType = %d for field SequenceNum", wireType)
  7487  			}
  7488  			m.SequenceNum = 0
  7489  			for shift := uint(0); ; shift += 7 {
  7490  				if shift >= 64 {
  7491  					return ErrIntOverflowApi
  7492  				}
  7493  				if iNdEx >= l {
  7494  					return io.ErrUnexpectedEOF
  7495  				}
  7496  				b := dAtA[iNdEx]
  7497  				iNdEx++
  7498  				m.SequenceNum |= uint32(b&0x7F) << shift
  7499  				if b < 0x80 {
  7500  					break
  7501  				}
  7502  			}
  7503  		default:
  7504  			iNdEx = preIndex
  7505  			skippy, err := skipApi(dAtA[iNdEx:])
  7506  			if err != nil {
  7507  				return err
  7508  			}
  7509  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7510  				return ErrInvalidLengthApi
  7511  			}
  7512  			if (iNdEx + skippy) > l {
  7513  				return io.ErrUnexpectedEOF
  7514  			}
  7515  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  7516  			iNdEx += skippy
  7517  		}
  7518  	}
  7519  
  7520  	if iNdEx > l {
  7521  		return io.ErrUnexpectedEOF
  7522  	}
  7523  	return nil
  7524  }
  7525  func (m *AlterTableAddColumn) Unmarshal(dAtA []byte) error {
  7526  	l := len(dAtA)
  7527  	iNdEx := 0
  7528  	for iNdEx < l {
  7529  		preIndex := iNdEx
  7530  		var wire uint64
  7531  		for shift := uint(0); ; shift += 7 {
  7532  			if shift >= 64 {
  7533  				return ErrIntOverflowApi
  7534  			}
  7535  			if iNdEx >= l {
  7536  				return io.ErrUnexpectedEOF
  7537  			}
  7538  			b := dAtA[iNdEx]
  7539  			iNdEx++
  7540  			wire |= uint64(b&0x7F) << shift
  7541  			if b < 0x80 {
  7542  				break
  7543  			}
  7544  		}
  7545  		fieldNum := int32(wire >> 3)
  7546  		wireType := int(wire & 0x7)
  7547  		if wireType == 4 {
  7548  			return fmt.Errorf("proto: AlterTableAddColumn: wiretype end group for non-group")
  7549  		}
  7550  		if fieldNum <= 0 {
  7551  			return fmt.Errorf("proto: AlterTableAddColumn: illegal tag %d (wire type %d)", fieldNum, wire)
  7552  		}
  7553  		switch fieldNum {
  7554  		case 1:
  7555  			if wireType != 2 {
  7556  				return fmt.Errorf("proto: wrong wireType = %d for field Column", wireType)
  7557  			}
  7558  			var msglen int
  7559  			for shift := uint(0); ; shift += 7 {
  7560  				if shift >= 64 {
  7561  					return ErrIntOverflowApi
  7562  				}
  7563  				if iNdEx >= l {
  7564  					return io.ErrUnexpectedEOF
  7565  				}
  7566  				b := dAtA[iNdEx]
  7567  				iNdEx++
  7568  				msglen |= int(b&0x7F) << shift
  7569  				if b < 0x80 {
  7570  					break
  7571  				}
  7572  			}
  7573  			if msglen < 0 {
  7574  				return ErrInvalidLengthApi
  7575  			}
  7576  			postIndex := iNdEx + msglen
  7577  			if postIndex < 0 {
  7578  				return ErrInvalidLengthApi
  7579  			}
  7580  			if postIndex > l {
  7581  				return io.ErrUnexpectedEOF
  7582  			}
  7583  			if m.Column == nil {
  7584  				m.Column = &plan.ColDef{}
  7585  			}
  7586  			if err := m.Column.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7587  				return err
  7588  			}
  7589  			iNdEx = postIndex
  7590  		case 2:
  7591  			if wireType != 0 {
  7592  				return fmt.Errorf("proto: wrong wireType = %d for field InsertPosition", wireType)
  7593  			}
  7594  			m.InsertPosition = 0
  7595  			for shift := uint(0); ; shift += 7 {
  7596  				if shift >= 64 {
  7597  					return ErrIntOverflowApi
  7598  				}
  7599  				if iNdEx >= l {
  7600  					return io.ErrUnexpectedEOF
  7601  				}
  7602  				b := dAtA[iNdEx]
  7603  				iNdEx++
  7604  				m.InsertPosition |= int32(b&0x7F) << shift
  7605  				if b < 0x80 {
  7606  					break
  7607  				}
  7608  			}
  7609  		default:
  7610  			iNdEx = preIndex
  7611  			skippy, err := skipApi(dAtA[iNdEx:])
  7612  			if err != nil {
  7613  				return err
  7614  			}
  7615  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7616  				return ErrInvalidLengthApi
  7617  			}
  7618  			if (iNdEx + skippy) > l {
  7619  				return io.ErrUnexpectedEOF
  7620  			}
  7621  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  7622  			iNdEx += skippy
  7623  		}
  7624  	}
  7625  
  7626  	if iNdEx > l {
  7627  		return io.ErrUnexpectedEOF
  7628  	}
  7629  	return nil
  7630  }
  7631  func (m *AlterTableAddPartition) Unmarshal(dAtA []byte) error {
  7632  	l := len(dAtA)
  7633  	iNdEx := 0
  7634  	for iNdEx < l {
  7635  		preIndex := iNdEx
  7636  		var wire uint64
  7637  		for shift := uint(0); ; shift += 7 {
  7638  			if shift >= 64 {
  7639  				return ErrIntOverflowApi
  7640  			}
  7641  			if iNdEx >= l {
  7642  				return io.ErrUnexpectedEOF
  7643  			}
  7644  			b := dAtA[iNdEx]
  7645  			iNdEx++
  7646  			wire |= uint64(b&0x7F) << shift
  7647  			if b < 0x80 {
  7648  				break
  7649  			}
  7650  		}
  7651  		fieldNum := int32(wire >> 3)
  7652  		wireType := int(wire & 0x7)
  7653  		if wireType == 4 {
  7654  			return fmt.Errorf("proto: AlterTableAddPartition: wiretype end group for non-group")
  7655  		}
  7656  		if fieldNum <= 0 {
  7657  			return fmt.Errorf("proto: AlterTableAddPartition: illegal tag %d (wire type %d)", fieldNum, wire)
  7658  		}
  7659  		switch fieldNum {
  7660  		case 1:
  7661  			if wireType != 2 {
  7662  				return fmt.Errorf("proto: wrong wireType = %d for field PartitionDef", wireType)
  7663  			}
  7664  			var msglen int
  7665  			for shift := uint(0); ; shift += 7 {
  7666  				if shift >= 64 {
  7667  					return ErrIntOverflowApi
  7668  				}
  7669  				if iNdEx >= l {
  7670  					return io.ErrUnexpectedEOF
  7671  				}
  7672  				b := dAtA[iNdEx]
  7673  				iNdEx++
  7674  				msglen |= int(b&0x7F) << shift
  7675  				if b < 0x80 {
  7676  					break
  7677  				}
  7678  			}
  7679  			if msglen < 0 {
  7680  				return ErrInvalidLengthApi
  7681  			}
  7682  			postIndex := iNdEx + msglen
  7683  			if postIndex < 0 {
  7684  				return ErrInvalidLengthApi
  7685  			}
  7686  			if postIndex > l {
  7687  				return io.ErrUnexpectedEOF
  7688  			}
  7689  			if m.PartitionDef == nil {
  7690  				m.PartitionDef = &plan.PartitionByDef{}
  7691  			}
  7692  			if err := m.PartitionDef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7693  				return err
  7694  			}
  7695  			iNdEx = postIndex
  7696  		default:
  7697  			iNdEx = preIndex
  7698  			skippy, err := skipApi(dAtA[iNdEx:])
  7699  			if err != nil {
  7700  				return err
  7701  			}
  7702  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7703  				return ErrInvalidLengthApi
  7704  			}
  7705  			if (iNdEx + skippy) > l {
  7706  				return io.ErrUnexpectedEOF
  7707  			}
  7708  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  7709  			iNdEx += skippy
  7710  		}
  7711  	}
  7712  
  7713  	if iNdEx > l {
  7714  		return io.ErrUnexpectedEOF
  7715  	}
  7716  	return nil
  7717  }
  7718  func (m *AlterTableDropColumn) Unmarshal(dAtA []byte) error {
  7719  	l := len(dAtA)
  7720  	iNdEx := 0
  7721  	for iNdEx < l {
  7722  		preIndex := iNdEx
  7723  		var wire uint64
  7724  		for shift := uint(0); ; shift += 7 {
  7725  			if shift >= 64 {
  7726  				return ErrIntOverflowApi
  7727  			}
  7728  			if iNdEx >= l {
  7729  				return io.ErrUnexpectedEOF
  7730  			}
  7731  			b := dAtA[iNdEx]
  7732  			iNdEx++
  7733  			wire |= uint64(b&0x7F) << shift
  7734  			if b < 0x80 {
  7735  				break
  7736  			}
  7737  		}
  7738  		fieldNum := int32(wire >> 3)
  7739  		wireType := int(wire & 0x7)
  7740  		if wireType == 4 {
  7741  			return fmt.Errorf("proto: AlterTableDropColumn: wiretype end group for non-group")
  7742  		}
  7743  		if fieldNum <= 0 {
  7744  			return fmt.Errorf("proto: AlterTableDropColumn: illegal tag %d (wire type %d)", fieldNum, wire)
  7745  		}
  7746  		switch fieldNum {
  7747  		case 1:
  7748  			if wireType != 0 {
  7749  				return fmt.Errorf("proto: wrong wireType = %d for field LogicalIdx", wireType)
  7750  			}
  7751  			m.LogicalIdx = 0
  7752  			for shift := uint(0); ; shift += 7 {
  7753  				if shift >= 64 {
  7754  					return ErrIntOverflowApi
  7755  				}
  7756  				if iNdEx >= l {
  7757  					return io.ErrUnexpectedEOF
  7758  				}
  7759  				b := dAtA[iNdEx]
  7760  				iNdEx++
  7761  				m.LogicalIdx |= uint32(b&0x7F) << shift
  7762  				if b < 0x80 {
  7763  					break
  7764  				}
  7765  			}
  7766  		case 2:
  7767  			if wireType != 0 {
  7768  				return fmt.Errorf("proto: wrong wireType = %d for field SequenceNum", wireType)
  7769  			}
  7770  			m.SequenceNum = 0
  7771  			for shift := uint(0); ; shift += 7 {
  7772  				if shift >= 64 {
  7773  					return ErrIntOverflowApi
  7774  				}
  7775  				if iNdEx >= l {
  7776  					return io.ErrUnexpectedEOF
  7777  				}
  7778  				b := dAtA[iNdEx]
  7779  				iNdEx++
  7780  				m.SequenceNum |= uint32(b&0x7F) << shift
  7781  				if b < 0x80 {
  7782  					break
  7783  				}
  7784  			}
  7785  		default:
  7786  			iNdEx = preIndex
  7787  			skippy, err := skipApi(dAtA[iNdEx:])
  7788  			if err != nil {
  7789  				return err
  7790  			}
  7791  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7792  				return ErrInvalidLengthApi
  7793  			}
  7794  			if (iNdEx + skippy) > l {
  7795  				return io.ErrUnexpectedEOF
  7796  			}
  7797  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  7798  			iNdEx += skippy
  7799  		}
  7800  	}
  7801  
  7802  	if iNdEx > l {
  7803  		return io.ErrUnexpectedEOF
  7804  	}
  7805  	return nil
  7806  }
  7807  func (m *AlterTableReq) Unmarshal(dAtA []byte) error {
  7808  	l := len(dAtA)
  7809  	iNdEx := 0
  7810  	for iNdEx < l {
  7811  		preIndex := iNdEx
  7812  		var wire uint64
  7813  		for shift := uint(0); ; shift += 7 {
  7814  			if shift >= 64 {
  7815  				return ErrIntOverflowApi
  7816  			}
  7817  			if iNdEx >= l {
  7818  				return io.ErrUnexpectedEOF
  7819  			}
  7820  			b := dAtA[iNdEx]
  7821  			iNdEx++
  7822  			wire |= uint64(b&0x7F) << shift
  7823  			if b < 0x80 {
  7824  				break
  7825  			}
  7826  		}
  7827  		fieldNum := int32(wire >> 3)
  7828  		wireType := int(wire & 0x7)
  7829  		if wireType == 4 {
  7830  			return fmt.Errorf("proto: AlterTableReq: wiretype end group for non-group")
  7831  		}
  7832  		if fieldNum <= 0 {
  7833  			return fmt.Errorf("proto: AlterTableReq: illegal tag %d (wire type %d)", fieldNum, wire)
  7834  		}
  7835  		switch fieldNum {
  7836  		case 1:
  7837  			if wireType != 0 {
  7838  				return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType)
  7839  			}
  7840  			m.TableId = 0
  7841  			for shift := uint(0); ; shift += 7 {
  7842  				if shift >= 64 {
  7843  					return ErrIntOverflowApi
  7844  				}
  7845  				if iNdEx >= l {
  7846  					return io.ErrUnexpectedEOF
  7847  				}
  7848  				b := dAtA[iNdEx]
  7849  				iNdEx++
  7850  				m.TableId |= uint64(b&0x7F) << shift
  7851  				if b < 0x80 {
  7852  					break
  7853  				}
  7854  			}
  7855  		case 2:
  7856  			if wireType != 0 {
  7857  				return fmt.Errorf("proto: wrong wireType = %d for field DbId", wireType)
  7858  			}
  7859  			m.DbId = 0
  7860  			for shift := uint(0); ; shift += 7 {
  7861  				if shift >= 64 {
  7862  					return ErrIntOverflowApi
  7863  				}
  7864  				if iNdEx >= l {
  7865  					return io.ErrUnexpectedEOF
  7866  				}
  7867  				b := dAtA[iNdEx]
  7868  				iNdEx++
  7869  				m.DbId |= uint64(b&0x7F) << shift
  7870  				if b < 0x80 {
  7871  					break
  7872  				}
  7873  			}
  7874  		case 3:
  7875  			if wireType != 0 {
  7876  				return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
  7877  			}
  7878  			m.Kind = 0
  7879  			for shift := uint(0); ; shift += 7 {
  7880  				if shift >= 64 {
  7881  					return ErrIntOverflowApi
  7882  				}
  7883  				if iNdEx >= l {
  7884  					return io.ErrUnexpectedEOF
  7885  				}
  7886  				b := dAtA[iNdEx]
  7887  				iNdEx++
  7888  				m.Kind |= AlterKind(b&0x7F) << shift
  7889  				if b < 0x80 {
  7890  					break
  7891  				}
  7892  			}
  7893  		case 4:
  7894  			if wireType != 2 {
  7895  				return fmt.Errorf("proto: wrong wireType = %d for field AddColumn", wireType)
  7896  			}
  7897  			var msglen int
  7898  			for shift := uint(0); ; shift += 7 {
  7899  				if shift >= 64 {
  7900  					return ErrIntOverflowApi
  7901  				}
  7902  				if iNdEx >= l {
  7903  					return io.ErrUnexpectedEOF
  7904  				}
  7905  				b := dAtA[iNdEx]
  7906  				iNdEx++
  7907  				msglen |= int(b&0x7F) << shift
  7908  				if b < 0x80 {
  7909  					break
  7910  				}
  7911  			}
  7912  			if msglen < 0 {
  7913  				return ErrInvalidLengthApi
  7914  			}
  7915  			postIndex := iNdEx + msglen
  7916  			if postIndex < 0 {
  7917  				return ErrInvalidLengthApi
  7918  			}
  7919  			if postIndex > l {
  7920  				return io.ErrUnexpectedEOF
  7921  			}
  7922  			v := &AlterTableAddColumn{}
  7923  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7924  				return err
  7925  			}
  7926  			m.Operation = &AlterTableReq_AddColumn{v}
  7927  			iNdEx = postIndex
  7928  		case 5:
  7929  			if wireType != 2 {
  7930  				return fmt.Errorf("proto: wrong wireType = %d for field DropColumn", wireType)
  7931  			}
  7932  			var msglen int
  7933  			for shift := uint(0); ; shift += 7 {
  7934  				if shift >= 64 {
  7935  					return ErrIntOverflowApi
  7936  				}
  7937  				if iNdEx >= l {
  7938  					return io.ErrUnexpectedEOF
  7939  				}
  7940  				b := dAtA[iNdEx]
  7941  				iNdEx++
  7942  				msglen |= int(b&0x7F) << shift
  7943  				if b < 0x80 {
  7944  					break
  7945  				}
  7946  			}
  7947  			if msglen < 0 {
  7948  				return ErrInvalidLengthApi
  7949  			}
  7950  			postIndex := iNdEx + msglen
  7951  			if postIndex < 0 {
  7952  				return ErrInvalidLengthApi
  7953  			}
  7954  			if postIndex > l {
  7955  				return io.ErrUnexpectedEOF
  7956  			}
  7957  			v := &AlterTableDropColumn{}
  7958  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7959  				return err
  7960  			}
  7961  			m.Operation = &AlterTableReq_DropColumn{v}
  7962  			iNdEx = postIndex
  7963  		case 6:
  7964  			if wireType != 2 {
  7965  				return fmt.Errorf("proto: wrong wireType = %d for field RenameTable", wireType)
  7966  			}
  7967  			var msglen int
  7968  			for shift := uint(0); ; shift += 7 {
  7969  				if shift >= 64 {
  7970  					return ErrIntOverflowApi
  7971  				}
  7972  				if iNdEx >= l {
  7973  					return io.ErrUnexpectedEOF
  7974  				}
  7975  				b := dAtA[iNdEx]
  7976  				iNdEx++
  7977  				msglen |= int(b&0x7F) << shift
  7978  				if b < 0x80 {
  7979  					break
  7980  				}
  7981  			}
  7982  			if msglen < 0 {
  7983  				return ErrInvalidLengthApi
  7984  			}
  7985  			postIndex := iNdEx + msglen
  7986  			if postIndex < 0 {
  7987  				return ErrInvalidLengthApi
  7988  			}
  7989  			if postIndex > l {
  7990  				return io.ErrUnexpectedEOF
  7991  			}
  7992  			v := &AlterTableRenameTable{}
  7993  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7994  				return err
  7995  			}
  7996  			m.Operation = &AlterTableReq_RenameTable{v}
  7997  			iNdEx = postIndex
  7998  		case 7:
  7999  			if wireType != 2 {
  8000  				return fmt.Errorf("proto: wrong wireType = %d for field UpdateComment", wireType)
  8001  			}
  8002  			var msglen int
  8003  			for shift := uint(0); ; shift += 7 {
  8004  				if shift >= 64 {
  8005  					return ErrIntOverflowApi
  8006  				}
  8007  				if iNdEx >= l {
  8008  					return io.ErrUnexpectedEOF
  8009  				}
  8010  				b := dAtA[iNdEx]
  8011  				iNdEx++
  8012  				msglen |= int(b&0x7F) << shift
  8013  				if b < 0x80 {
  8014  					break
  8015  				}
  8016  			}
  8017  			if msglen < 0 {
  8018  				return ErrInvalidLengthApi
  8019  			}
  8020  			postIndex := iNdEx + msglen
  8021  			if postIndex < 0 {
  8022  				return ErrInvalidLengthApi
  8023  			}
  8024  			if postIndex > l {
  8025  				return io.ErrUnexpectedEOF
  8026  			}
  8027  			v := &AlterTableComment{}
  8028  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8029  				return err
  8030  			}
  8031  			m.Operation = &AlterTableReq_UpdateComment{v}
  8032  			iNdEx = postIndex
  8033  		case 8:
  8034  			if wireType != 2 {
  8035  				return fmt.Errorf("proto: wrong wireType = %d for field UpdateCstr", wireType)
  8036  			}
  8037  			var msglen int
  8038  			for shift := uint(0); ; shift += 7 {
  8039  				if shift >= 64 {
  8040  					return ErrIntOverflowApi
  8041  				}
  8042  				if iNdEx >= l {
  8043  					return io.ErrUnexpectedEOF
  8044  				}
  8045  				b := dAtA[iNdEx]
  8046  				iNdEx++
  8047  				msglen |= int(b&0x7F) << shift
  8048  				if b < 0x80 {
  8049  					break
  8050  				}
  8051  			}
  8052  			if msglen < 0 {
  8053  				return ErrInvalidLengthApi
  8054  			}
  8055  			postIndex := iNdEx + msglen
  8056  			if postIndex < 0 {
  8057  				return ErrInvalidLengthApi
  8058  			}
  8059  			if postIndex > l {
  8060  				return io.ErrUnexpectedEOF
  8061  			}
  8062  			v := &AlterTableConstraint{}
  8063  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8064  				return err
  8065  			}
  8066  			m.Operation = &AlterTableReq_UpdateCstr{v}
  8067  			iNdEx = postIndex
  8068  		case 9:
  8069  			if wireType != 2 {
  8070  				return fmt.Errorf("proto: wrong wireType = %d for field UpdatePolicy", wireType)
  8071  			}
  8072  			var msglen int
  8073  			for shift := uint(0); ; shift += 7 {
  8074  				if shift >= 64 {
  8075  					return ErrIntOverflowApi
  8076  				}
  8077  				if iNdEx >= l {
  8078  					return io.ErrUnexpectedEOF
  8079  				}
  8080  				b := dAtA[iNdEx]
  8081  				iNdEx++
  8082  				msglen |= int(b&0x7F) << shift
  8083  				if b < 0x80 {
  8084  					break
  8085  				}
  8086  			}
  8087  			if msglen < 0 {
  8088  				return ErrInvalidLengthApi
  8089  			}
  8090  			postIndex := iNdEx + msglen
  8091  			if postIndex < 0 {
  8092  				return ErrInvalidLengthApi
  8093  			}
  8094  			if postIndex > l {
  8095  				return io.ErrUnexpectedEOF
  8096  			}
  8097  			v := &AlterTablePolicy{}
  8098  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8099  				return err
  8100  			}
  8101  			m.Operation = &AlterTableReq_UpdatePolicy{v}
  8102  			iNdEx = postIndex
  8103  		case 10:
  8104  			if wireType != 2 {
  8105  				return fmt.Errorf("proto: wrong wireType = %d for field AddPartition", wireType)
  8106  			}
  8107  			var msglen int
  8108  			for shift := uint(0); ; shift += 7 {
  8109  				if shift >= 64 {
  8110  					return ErrIntOverflowApi
  8111  				}
  8112  				if iNdEx >= l {
  8113  					return io.ErrUnexpectedEOF
  8114  				}
  8115  				b := dAtA[iNdEx]
  8116  				iNdEx++
  8117  				msglen |= int(b&0x7F) << shift
  8118  				if b < 0x80 {
  8119  					break
  8120  				}
  8121  			}
  8122  			if msglen < 0 {
  8123  				return ErrInvalidLengthApi
  8124  			}
  8125  			postIndex := iNdEx + msglen
  8126  			if postIndex < 0 {
  8127  				return ErrInvalidLengthApi
  8128  			}
  8129  			if postIndex > l {
  8130  				return io.ErrUnexpectedEOF
  8131  			}
  8132  			v := &AlterTableAddPartition{}
  8133  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8134  				return err
  8135  			}
  8136  			m.Operation = &AlterTableReq_AddPartition{v}
  8137  			iNdEx = postIndex
  8138  		case 11:
  8139  			if wireType != 2 {
  8140  				return fmt.Errorf("proto: wrong wireType = %d for field RenameCol", wireType)
  8141  			}
  8142  			var msglen int
  8143  			for shift := uint(0); ; shift += 7 {
  8144  				if shift >= 64 {
  8145  					return ErrIntOverflowApi
  8146  				}
  8147  				if iNdEx >= l {
  8148  					return io.ErrUnexpectedEOF
  8149  				}
  8150  				b := dAtA[iNdEx]
  8151  				iNdEx++
  8152  				msglen |= int(b&0x7F) << shift
  8153  				if b < 0x80 {
  8154  					break
  8155  				}
  8156  			}
  8157  			if msglen < 0 {
  8158  				return ErrInvalidLengthApi
  8159  			}
  8160  			postIndex := iNdEx + msglen
  8161  			if postIndex < 0 {
  8162  				return ErrInvalidLengthApi
  8163  			}
  8164  			if postIndex > l {
  8165  				return io.ErrUnexpectedEOF
  8166  			}
  8167  			v := &AlterTableRenameCol{}
  8168  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8169  				return err
  8170  			}
  8171  			m.Operation = &AlterTableReq_RenameCol{v}
  8172  			iNdEx = postIndex
  8173  		default:
  8174  			iNdEx = preIndex
  8175  			skippy, err := skipApi(dAtA[iNdEx:])
  8176  			if err != nil {
  8177  				return err
  8178  			}
  8179  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8180  				return ErrInvalidLengthApi
  8181  			}
  8182  			if (iNdEx + skippy) > l {
  8183  				return io.ErrUnexpectedEOF
  8184  			}
  8185  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  8186  			iNdEx += skippy
  8187  		}
  8188  	}
  8189  
  8190  	if iNdEx > l {
  8191  		return io.ErrUnexpectedEOF
  8192  	}
  8193  	return nil
  8194  }
  8195  func (m *SchemaExtra) Unmarshal(dAtA []byte) error {
  8196  	l := len(dAtA)
  8197  	iNdEx := 0
  8198  	for iNdEx < l {
  8199  		preIndex := iNdEx
  8200  		var wire uint64
  8201  		for shift := uint(0); ; shift += 7 {
  8202  			if shift >= 64 {
  8203  				return ErrIntOverflowApi
  8204  			}
  8205  			if iNdEx >= l {
  8206  				return io.ErrUnexpectedEOF
  8207  			}
  8208  			b := dAtA[iNdEx]
  8209  			iNdEx++
  8210  			wire |= uint64(b&0x7F) << shift
  8211  			if b < 0x80 {
  8212  				break
  8213  			}
  8214  		}
  8215  		fieldNum := int32(wire >> 3)
  8216  		wireType := int(wire & 0x7)
  8217  		if wireType == 4 {
  8218  			return fmt.Errorf("proto: SchemaExtra: wiretype end group for non-group")
  8219  		}
  8220  		if fieldNum <= 0 {
  8221  			return fmt.Errorf("proto: SchemaExtra: illegal tag %d (wire type %d)", fieldNum, wire)
  8222  		}
  8223  		switch fieldNum {
  8224  		case 1:
  8225  			if wireType != 0 {
  8226  				return fmt.Errorf("proto: wrong wireType = %d for field NextColSeqnum", wireType)
  8227  			}
  8228  			m.NextColSeqnum = 0
  8229  			for shift := uint(0); ; shift += 7 {
  8230  				if shift >= 64 {
  8231  					return ErrIntOverflowApi
  8232  				}
  8233  				if iNdEx >= l {
  8234  					return io.ErrUnexpectedEOF
  8235  				}
  8236  				b := dAtA[iNdEx]
  8237  				iNdEx++
  8238  				m.NextColSeqnum |= uint32(b&0x7F) << shift
  8239  				if b < 0x80 {
  8240  					break
  8241  				}
  8242  			}
  8243  		case 2:
  8244  			if wireType != 2 {
  8245  				return fmt.Errorf("proto: wrong wireType = %d for field DroppedAttrs", wireType)
  8246  			}
  8247  			var stringLen uint64
  8248  			for shift := uint(0); ; shift += 7 {
  8249  				if shift >= 64 {
  8250  					return ErrIntOverflowApi
  8251  				}
  8252  				if iNdEx >= l {
  8253  					return io.ErrUnexpectedEOF
  8254  				}
  8255  				b := dAtA[iNdEx]
  8256  				iNdEx++
  8257  				stringLen |= uint64(b&0x7F) << shift
  8258  				if b < 0x80 {
  8259  					break
  8260  				}
  8261  			}
  8262  			intStringLen := int(stringLen)
  8263  			if intStringLen < 0 {
  8264  				return ErrInvalidLengthApi
  8265  			}
  8266  			postIndex := iNdEx + intStringLen
  8267  			if postIndex < 0 {
  8268  				return ErrInvalidLengthApi
  8269  			}
  8270  			if postIndex > l {
  8271  				return io.ErrUnexpectedEOF
  8272  			}
  8273  			m.DroppedAttrs = append(m.DroppedAttrs, string(dAtA[iNdEx:postIndex]))
  8274  			iNdEx = postIndex
  8275  		case 3:
  8276  			if wireType != 0 {
  8277  				return fmt.Errorf("proto: wrong wireType = %d for field ColumnChanged", wireType)
  8278  			}
  8279  			var v int
  8280  			for shift := uint(0); ; shift += 7 {
  8281  				if shift >= 64 {
  8282  					return ErrIntOverflowApi
  8283  				}
  8284  				if iNdEx >= l {
  8285  					return io.ErrUnexpectedEOF
  8286  				}
  8287  				b := dAtA[iNdEx]
  8288  				iNdEx++
  8289  				v |= int(b&0x7F) << shift
  8290  				if b < 0x80 {
  8291  					break
  8292  				}
  8293  			}
  8294  			m.ColumnChanged = bool(v != 0)
  8295  		case 4:
  8296  			if wireType != 2 {
  8297  				return fmt.Errorf("proto: wrong wireType = %d for field OldName", wireType)
  8298  			}
  8299  			var stringLen uint64
  8300  			for shift := uint(0); ; shift += 7 {
  8301  				if shift >= 64 {
  8302  					return ErrIntOverflowApi
  8303  				}
  8304  				if iNdEx >= l {
  8305  					return io.ErrUnexpectedEOF
  8306  				}
  8307  				b := dAtA[iNdEx]
  8308  				iNdEx++
  8309  				stringLen |= uint64(b&0x7F) << shift
  8310  				if b < 0x80 {
  8311  					break
  8312  				}
  8313  			}
  8314  			intStringLen := int(stringLen)
  8315  			if intStringLen < 0 {
  8316  				return ErrInvalidLengthApi
  8317  			}
  8318  			postIndex := iNdEx + intStringLen
  8319  			if postIndex < 0 {
  8320  				return ErrInvalidLengthApi
  8321  			}
  8322  			if postIndex > l {
  8323  				return io.ErrUnexpectedEOF
  8324  			}
  8325  			m.OldName = string(dAtA[iNdEx:postIndex])
  8326  			iNdEx = postIndex
  8327  		case 5:
  8328  			if wireType != 0 {
  8329  				return fmt.Errorf("proto: wrong wireType = %d for field MinOsizeQuailifed", wireType)
  8330  			}
  8331  			m.MinOsizeQuailifed = 0
  8332  			for shift := uint(0); ; shift += 7 {
  8333  				if shift >= 64 {
  8334  					return ErrIntOverflowApi
  8335  				}
  8336  				if iNdEx >= l {
  8337  					return io.ErrUnexpectedEOF
  8338  				}
  8339  				b := dAtA[iNdEx]
  8340  				iNdEx++
  8341  				m.MinOsizeQuailifed |= uint32(b&0x7F) << shift
  8342  				if b < 0x80 {
  8343  					break
  8344  				}
  8345  			}
  8346  		case 6:
  8347  			if wireType != 0 {
  8348  				return fmt.Errorf("proto: wrong wireType = %d for field MaxObjOnerun", wireType)
  8349  			}
  8350  			m.MaxObjOnerun = 0
  8351  			for shift := uint(0); ; shift += 7 {
  8352  				if shift >= 64 {
  8353  					return ErrIntOverflowApi
  8354  				}
  8355  				if iNdEx >= l {
  8356  					return io.ErrUnexpectedEOF
  8357  				}
  8358  				b := dAtA[iNdEx]
  8359  				iNdEx++
  8360  				m.MaxObjOnerun |= uint32(b&0x7F) << shift
  8361  				if b < 0x80 {
  8362  					break
  8363  				}
  8364  			}
  8365  		case 7:
  8366  			if wireType != 0 {
  8367  				return fmt.Errorf("proto: wrong wireType = %d for field MaxOsizeMergedObj", wireType)
  8368  			}
  8369  			m.MaxOsizeMergedObj = 0
  8370  			for shift := uint(0); ; shift += 7 {
  8371  				if shift >= 64 {
  8372  					return ErrIntOverflowApi
  8373  				}
  8374  				if iNdEx >= l {
  8375  					return io.ErrUnexpectedEOF
  8376  				}
  8377  				b := dAtA[iNdEx]
  8378  				iNdEx++
  8379  				m.MaxOsizeMergedObj |= uint32(b&0x7F) << shift
  8380  				if b < 0x80 {
  8381  					break
  8382  				}
  8383  			}
  8384  		case 8:
  8385  			if wireType == 0 {
  8386  				var v MergeHint
  8387  				for shift := uint(0); ; shift += 7 {
  8388  					if shift >= 64 {
  8389  						return ErrIntOverflowApi
  8390  					}
  8391  					if iNdEx >= l {
  8392  						return io.ErrUnexpectedEOF
  8393  					}
  8394  					b := dAtA[iNdEx]
  8395  					iNdEx++
  8396  					v |= MergeHint(b&0x7F) << shift
  8397  					if b < 0x80 {
  8398  						break
  8399  					}
  8400  				}
  8401  				m.Hints = append(m.Hints, v)
  8402  			} else if wireType == 2 {
  8403  				var packedLen int
  8404  				for shift := uint(0); ; shift += 7 {
  8405  					if shift >= 64 {
  8406  						return ErrIntOverflowApi
  8407  					}
  8408  					if iNdEx >= l {
  8409  						return io.ErrUnexpectedEOF
  8410  					}
  8411  					b := dAtA[iNdEx]
  8412  					iNdEx++
  8413  					packedLen |= int(b&0x7F) << shift
  8414  					if b < 0x80 {
  8415  						break
  8416  					}
  8417  				}
  8418  				if packedLen < 0 {
  8419  					return ErrInvalidLengthApi
  8420  				}
  8421  				postIndex := iNdEx + packedLen
  8422  				if postIndex < 0 {
  8423  					return ErrInvalidLengthApi
  8424  				}
  8425  				if postIndex > l {
  8426  					return io.ErrUnexpectedEOF
  8427  				}
  8428  				var elementCount int
  8429  				if elementCount != 0 && len(m.Hints) == 0 {
  8430  					m.Hints = make([]MergeHint, 0, elementCount)
  8431  				}
  8432  				for iNdEx < postIndex {
  8433  					var v MergeHint
  8434  					for shift := uint(0); ; shift += 7 {
  8435  						if shift >= 64 {
  8436  							return ErrIntOverflowApi
  8437  						}
  8438  						if iNdEx >= l {
  8439  							return io.ErrUnexpectedEOF
  8440  						}
  8441  						b := dAtA[iNdEx]
  8442  						iNdEx++
  8443  						v |= MergeHint(b&0x7F) << shift
  8444  						if b < 0x80 {
  8445  							break
  8446  						}
  8447  					}
  8448  					m.Hints = append(m.Hints, v)
  8449  				}
  8450  			} else {
  8451  				return fmt.Errorf("proto: wrong wireType = %d for field Hints", wireType)
  8452  			}
  8453  		case 9:
  8454  			if wireType != 0 {
  8455  				return fmt.Errorf("proto: wrong wireType = %d for field MinCnMergeSize", wireType)
  8456  			}
  8457  			m.MinCnMergeSize = 0
  8458  			for shift := uint(0); ; shift += 7 {
  8459  				if shift >= 64 {
  8460  					return ErrIntOverflowApi
  8461  				}
  8462  				if iNdEx >= l {
  8463  					return io.ErrUnexpectedEOF
  8464  				}
  8465  				b := dAtA[iNdEx]
  8466  				iNdEx++
  8467  				m.MinCnMergeSize |= uint64(b&0x7F) << shift
  8468  				if b < 0x80 {
  8469  					break
  8470  				}
  8471  			}
  8472  		default:
  8473  			iNdEx = preIndex
  8474  			skippy, err := skipApi(dAtA[iNdEx:])
  8475  			if err != nil {
  8476  				return err
  8477  			}
  8478  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8479  				return ErrInvalidLengthApi
  8480  			}
  8481  			if (iNdEx + skippy) > l {
  8482  				return io.ErrUnexpectedEOF
  8483  			}
  8484  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  8485  			iNdEx += skippy
  8486  		}
  8487  	}
  8488  
  8489  	if iNdEx > l {
  8490  		return io.ErrUnexpectedEOF
  8491  	}
  8492  	return nil
  8493  }
  8494  func (m *Int64Map) Unmarshal(dAtA []byte) error {
  8495  	l := len(dAtA)
  8496  	iNdEx := 0
  8497  	for iNdEx < l {
  8498  		preIndex := iNdEx
  8499  		var wire uint64
  8500  		for shift := uint(0); ; shift += 7 {
  8501  			if shift >= 64 {
  8502  				return ErrIntOverflowApi
  8503  			}
  8504  			if iNdEx >= l {
  8505  				return io.ErrUnexpectedEOF
  8506  			}
  8507  			b := dAtA[iNdEx]
  8508  			iNdEx++
  8509  			wire |= uint64(b&0x7F) << shift
  8510  			if b < 0x80 {
  8511  				break
  8512  			}
  8513  		}
  8514  		fieldNum := int32(wire >> 3)
  8515  		wireType := int(wire & 0x7)
  8516  		if wireType == 4 {
  8517  			return fmt.Errorf("proto: Int64Map: wiretype end group for non-group")
  8518  		}
  8519  		if fieldNum <= 0 {
  8520  			return fmt.Errorf("proto: Int64Map: illegal tag %d (wire type %d)", fieldNum, wire)
  8521  		}
  8522  		switch fieldNum {
  8523  		case 1:
  8524  			if wireType != 2 {
  8525  				return fmt.Errorf("proto: wrong wireType = %d for field M", wireType)
  8526  			}
  8527  			var msglen int
  8528  			for shift := uint(0); ; shift += 7 {
  8529  				if shift >= 64 {
  8530  					return ErrIntOverflowApi
  8531  				}
  8532  				if iNdEx >= l {
  8533  					return io.ErrUnexpectedEOF
  8534  				}
  8535  				b := dAtA[iNdEx]
  8536  				iNdEx++
  8537  				msglen |= int(b&0x7F) << shift
  8538  				if b < 0x80 {
  8539  					break
  8540  				}
  8541  			}
  8542  			if msglen < 0 {
  8543  				return ErrInvalidLengthApi
  8544  			}
  8545  			postIndex := iNdEx + msglen
  8546  			if postIndex < 0 {
  8547  				return ErrInvalidLengthApi
  8548  			}
  8549  			if postIndex > l {
  8550  				return io.ErrUnexpectedEOF
  8551  			}
  8552  			if m.M == nil {
  8553  				m.M = make(map[int64]int64)
  8554  			}
  8555  			var mapkey int64
  8556  			var mapvalue int64
  8557  			for iNdEx < postIndex {
  8558  				entryPreIndex := iNdEx
  8559  				var wire uint64
  8560  				for shift := uint(0); ; shift += 7 {
  8561  					if shift >= 64 {
  8562  						return ErrIntOverflowApi
  8563  					}
  8564  					if iNdEx >= l {
  8565  						return io.ErrUnexpectedEOF
  8566  					}
  8567  					b := dAtA[iNdEx]
  8568  					iNdEx++
  8569  					wire |= uint64(b&0x7F) << shift
  8570  					if b < 0x80 {
  8571  						break
  8572  					}
  8573  				}
  8574  				fieldNum := int32(wire >> 3)
  8575  				if fieldNum == 1 {
  8576  					for shift := uint(0); ; shift += 7 {
  8577  						if shift >= 64 {
  8578  							return ErrIntOverflowApi
  8579  						}
  8580  						if iNdEx >= l {
  8581  							return io.ErrUnexpectedEOF
  8582  						}
  8583  						b := dAtA[iNdEx]
  8584  						iNdEx++
  8585  						mapkey |= int64(b&0x7F) << shift
  8586  						if b < 0x80 {
  8587  							break
  8588  						}
  8589  					}
  8590  				} else if fieldNum == 2 {
  8591  					for shift := uint(0); ; shift += 7 {
  8592  						if shift >= 64 {
  8593  							return ErrIntOverflowApi
  8594  						}
  8595  						if iNdEx >= l {
  8596  							return io.ErrUnexpectedEOF
  8597  						}
  8598  						b := dAtA[iNdEx]
  8599  						iNdEx++
  8600  						mapvalue |= int64(b&0x7F) << shift
  8601  						if b < 0x80 {
  8602  							break
  8603  						}
  8604  					}
  8605  				} else {
  8606  					iNdEx = entryPreIndex
  8607  					skippy, err := skipApi(dAtA[iNdEx:])
  8608  					if err != nil {
  8609  						return err
  8610  					}
  8611  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  8612  						return ErrInvalidLengthApi
  8613  					}
  8614  					if (iNdEx + skippy) > postIndex {
  8615  						return io.ErrUnexpectedEOF
  8616  					}
  8617  					iNdEx += skippy
  8618  				}
  8619  			}
  8620  			m.M[mapkey] = mapvalue
  8621  			iNdEx = postIndex
  8622  		default:
  8623  			iNdEx = preIndex
  8624  			skippy, err := skipApi(dAtA[iNdEx:])
  8625  			if err != nil {
  8626  				return err
  8627  			}
  8628  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8629  				return ErrInvalidLengthApi
  8630  			}
  8631  			if (iNdEx + skippy) > l {
  8632  				return io.ErrUnexpectedEOF
  8633  			}
  8634  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  8635  			iNdEx += skippy
  8636  		}
  8637  	}
  8638  
  8639  	if iNdEx > l {
  8640  		return io.ErrUnexpectedEOF
  8641  	}
  8642  	return nil
  8643  }
  8644  func (m *TransDestPos) Unmarshal(dAtA []byte) error {
  8645  	l := len(dAtA)
  8646  	iNdEx := 0
  8647  	for iNdEx < l {
  8648  		preIndex := iNdEx
  8649  		var wire uint64
  8650  		for shift := uint(0); ; shift += 7 {
  8651  			if shift >= 64 {
  8652  				return ErrIntOverflowApi
  8653  			}
  8654  			if iNdEx >= l {
  8655  				return io.ErrUnexpectedEOF
  8656  			}
  8657  			b := dAtA[iNdEx]
  8658  			iNdEx++
  8659  			wire |= uint64(b&0x7F) << shift
  8660  			if b < 0x80 {
  8661  				break
  8662  			}
  8663  		}
  8664  		fieldNum := int32(wire >> 3)
  8665  		wireType := int(wire & 0x7)
  8666  		if wireType == 4 {
  8667  			return fmt.Errorf("proto: TransDestPos: wiretype end group for non-group")
  8668  		}
  8669  		if fieldNum <= 0 {
  8670  			return fmt.Errorf("proto: TransDestPos: illegal tag %d (wire type %d)", fieldNum, wire)
  8671  		}
  8672  		switch fieldNum {
  8673  		case 1:
  8674  			if wireType != 0 {
  8675  				return fmt.Errorf("proto: wrong wireType = %d for field ObjIdx", wireType)
  8676  			}
  8677  			m.ObjIdx = 0
  8678  			for shift := uint(0); ; shift += 7 {
  8679  				if shift >= 64 {
  8680  					return ErrIntOverflowApi
  8681  				}
  8682  				if iNdEx >= l {
  8683  					return io.ErrUnexpectedEOF
  8684  				}
  8685  				b := dAtA[iNdEx]
  8686  				iNdEx++
  8687  				m.ObjIdx |= int32(b&0x7F) << shift
  8688  				if b < 0x80 {
  8689  					break
  8690  				}
  8691  			}
  8692  		case 2:
  8693  			if wireType != 0 {
  8694  				return fmt.Errorf("proto: wrong wireType = %d for field BlkIdx", wireType)
  8695  			}
  8696  			m.BlkIdx = 0
  8697  			for shift := uint(0); ; shift += 7 {
  8698  				if shift >= 64 {
  8699  					return ErrIntOverflowApi
  8700  				}
  8701  				if iNdEx >= l {
  8702  					return io.ErrUnexpectedEOF
  8703  				}
  8704  				b := dAtA[iNdEx]
  8705  				iNdEx++
  8706  				m.BlkIdx |= int32(b&0x7F) << shift
  8707  				if b < 0x80 {
  8708  					break
  8709  				}
  8710  			}
  8711  		case 3:
  8712  			if wireType != 0 {
  8713  				return fmt.Errorf("proto: wrong wireType = %d for field RowIdx", wireType)
  8714  			}
  8715  			m.RowIdx = 0
  8716  			for shift := uint(0); ; shift += 7 {
  8717  				if shift >= 64 {
  8718  					return ErrIntOverflowApi
  8719  				}
  8720  				if iNdEx >= l {
  8721  					return io.ErrUnexpectedEOF
  8722  				}
  8723  				b := dAtA[iNdEx]
  8724  				iNdEx++
  8725  				m.RowIdx |= int32(b&0x7F) << shift
  8726  				if b < 0x80 {
  8727  					break
  8728  				}
  8729  			}
  8730  		default:
  8731  			iNdEx = preIndex
  8732  			skippy, err := skipApi(dAtA[iNdEx:])
  8733  			if err != nil {
  8734  				return err
  8735  			}
  8736  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8737  				return ErrInvalidLengthApi
  8738  			}
  8739  			if (iNdEx + skippy) > l {
  8740  				return io.ErrUnexpectedEOF
  8741  			}
  8742  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  8743  			iNdEx += skippy
  8744  		}
  8745  	}
  8746  
  8747  	if iNdEx > l {
  8748  		return io.ErrUnexpectedEOF
  8749  	}
  8750  	return nil
  8751  }
  8752  func (m *BlkTransMap) Unmarshal(dAtA []byte) error {
  8753  	l := len(dAtA)
  8754  	iNdEx := 0
  8755  	for iNdEx < l {
  8756  		preIndex := iNdEx
  8757  		var wire uint64
  8758  		for shift := uint(0); ; shift += 7 {
  8759  			if shift >= 64 {
  8760  				return ErrIntOverflowApi
  8761  			}
  8762  			if iNdEx >= l {
  8763  				return io.ErrUnexpectedEOF
  8764  			}
  8765  			b := dAtA[iNdEx]
  8766  			iNdEx++
  8767  			wire |= uint64(b&0x7F) << shift
  8768  			if b < 0x80 {
  8769  				break
  8770  			}
  8771  		}
  8772  		fieldNum := int32(wire >> 3)
  8773  		wireType := int(wire & 0x7)
  8774  		if wireType == 4 {
  8775  			return fmt.Errorf("proto: BlkTransMap: wiretype end group for non-group")
  8776  		}
  8777  		if fieldNum <= 0 {
  8778  			return fmt.Errorf("proto: BlkTransMap: illegal tag %d (wire type %d)", fieldNum, wire)
  8779  		}
  8780  		switch fieldNum {
  8781  		case 1:
  8782  			if wireType != 2 {
  8783  				return fmt.Errorf("proto: wrong wireType = %d for field M", wireType)
  8784  			}
  8785  			var msglen int
  8786  			for shift := uint(0); ; shift += 7 {
  8787  				if shift >= 64 {
  8788  					return ErrIntOverflowApi
  8789  				}
  8790  				if iNdEx >= l {
  8791  					return io.ErrUnexpectedEOF
  8792  				}
  8793  				b := dAtA[iNdEx]
  8794  				iNdEx++
  8795  				msglen |= int(b&0x7F) << shift
  8796  				if b < 0x80 {
  8797  					break
  8798  				}
  8799  			}
  8800  			if msglen < 0 {
  8801  				return ErrInvalidLengthApi
  8802  			}
  8803  			postIndex := iNdEx + msglen
  8804  			if postIndex < 0 {
  8805  				return ErrInvalidLengthApi
  8806  			}
  8807  			if postIndex > l {
  8808  				return io.ErrUnexpectedEOF
  8809  			}
  8810  			if m.M == nil {
  8811  				m.M = make(map[int32]TransDestPos)
  8812  			}
  8813  			var mapkey int32
  8814  			mapvalue := &TransDestPos{}
  8815  			for iNdEx < postIndex {
  8816  				entryPreIndex := iNdEx
  8817  				var wire uint64
  8818  				for shift := uint(0); ; shift += 7 {
  8819  					if shift >= 64 {
  8820  						return ErrIntOverflowApi
  8821  					}
  8822  					if iNdEx >= l {
  8823  						return io.ErrUnexpectedEOF
  8824  					}
  8825  					b := dAtA[iNdEx]
  8826  					iNdEx++
  8827  					wire |= uint64(b&0x7F) << shift
  8828  					if b < 0x80 {
  8829  						break
  8830  					}
  8831  				}
  8832  				fieldNum := int32(wire >> 3)
  8833  				if fieldNum == 1 {
  8834  					for shift := uint(0); ; shift += 7 {
  8835  						if shift >= 64 {
  8836  							return ErrIntOverflowApi
  8837  						}
  8838  						if iNdEx >= l {
  8839  							return io.ErrUnexpectedEOF
  8840  						}
  8841  						b := dAtA[iNdEx]
  8842  						iNdEx++
  8843  						mapkey |= int32(b&0x7F) << shift
  8844  						if b < 0x80 {
  8845  							break
  8846  						}
  8847  					}
  8848  				} else if fieldNum == 2 {
  8849  					var mapmsglen int
  8850  					for shift := uint(0); ; shift += 7 {
  8851  						if shift >= 64 {
  8852  							return ErrIntOverflowApi
  8853  						}
  8854  						if iNdEx >= l {
  8855  							return io.ErrUnexpectedEOF
  8856  						}
  8857  						b := dAtA[iNdEx]
  8858  						iNdEx++
  8859  						mapmsglen |= int(b&0x7F) << shift
  8860  						if b < 0x80 {
  8861  							break
  8862  						}
  8863  					}
  8864  					if mapmsglen < 0 {
  8865  						return ErrInvalidLengthApi
  8866  					}
  8867  					postmsgIndex := iNdEx + mapmsglen
  8868  					if postmsgIndex < 0 {
  8869  						return ErrInvalidLengthApi
  8870  					}
  8871  					if postmsgIndex > l {
  8872  						return io.ErrUnexpectedEOF
  8873  					}
  8874  					mapvalue = &TransDestPos{}
  8875  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  8876  						return err
  8877  					}
  8878  					iNdEx = postmsgIndex
  8879  				} else {
  8880  					iNdEx = entryPreIndex
  8881  					skippy, err := skipApi(dAtA[iNdEx:])
  8882  					if err != nil {
  8883  						return err
  8884  					}
  8885  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  8886  						return ErrInvalidLengthApi
  8887  					}
  8888  					if (iNdEx + skippy) > postIndex {
  8889  						return io.ErrUnexpectedEOF
  8890  					}
  8891  					iNdEx += skippy
  8892  				}
  8893  			}
  8894  			m.M[mapkey] = *mapvalue
  8895  			iNdEx = postIndex
  8896  		default:
  8897  			iNdEx = preIndex
  8898  			skippy, err := skipApi(dAtA[iNdEx:])
  8899  			if err != nil {
  8900  				return err
  8901  			}
  8902  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8903  				return ErrInvalidLengthApi
  8904  			}
  8905  			if (iNdEx + skippy) > l {
  8906  				return io.ErrUnexpectedEOF
  8907  			}
  8908  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  8909  			iNdEx += skippy
  8910  		}
  8911  	}
  8912  
  8913  	if iNdEx > l {
  8914  		return io.ErrUnexpectedEOF
  8915  	}
  8916  	return nil
  8917  }
  8918  func (m *BlkTransferBooking) Unmarshal(dAtA []byte) error {
  8919  	l := len(dAtA)
  8920  	iNdEx := 0
  8921  	for iNdEx < l {
  8922  		preIndex := iNdEx
  8923  		var wire uint64
  8924  		for shift := uint(0); ; shift += 7 {
  8925  			if shift >= 64 {
  8926  				return ErrIntOverflowApi
  8927  			}
  8928  			if iNdEx >= l {
  8929  				return io.ErrUnexpectedEOF
  8930  			}
  8931  			b := dAtA[iNdEx]
  8932  			iNdEx++
  8933  			wire |= uint64(b&0x7F) << shift
  8934  			if b < 0x80 {
  8935  				break
  8936  			}
  8937  		}
  8938  		fieldNum := int32(wire >> 3)
  8939  		wireType := int(wire & 0x7)
  8940  		if wireType == 4 {
  8941  			return fmt.Errorf("proto: BlkTransferBooking: wiretype end group for non-group")
  8942  		}
  8943  		if fieldNum <= 0 {
  8944  			return fmt.Errorf("proto: BlkTransferBooking: illegal tag %d (wire type %d)", fieldNum, wire)
  8945  		}
  8946  		switch fieldNum {
  8947  		case 1:
  8948  			if wireType != 2 {
  8949  				return fmt.Errorf("proto: wrong wireType = %d for field Mappings", wireType)
  8950  			}
  8951  			var msglen int
  8952  			for shift := uint(0); ; shift += 7 {
  8953  				if shift >= 64 {
  8954  					return ErrIntOverflowApi
  8955  				}
  8956  				if iNdEx >= l {
  8957  					return io.ErrUnexpectedEOF
  8958  				}
  8959  				b := dAtA[iNdEx]
  8960  				iNdEx++
  8961  				msglen |= int(b&0x7F) << shift
  8962  				if b < 0x80 {
  8963  					break
  8964  				}
  8965  			}
  8966  			if msglen < 0 {
  8967  				return ErrInvalidLengthApi
  8968  			}
  8969  			postIndex := iNdEx + msglen
  8970  			if postIndex < 0 {
  8971  				return ErrInvalidLengthApi
  8972  			}
  8973  			if postIndex > l {
  8974  				return io.ErrUnexpectedEOF
  8975  			}
  8976  			m.Mappings = append(m.Mappings, BlkTransMap{})
  8977  			if err := m.Mappings[len(m.Mappings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8978  				return err
  8979  			}
  8980  			iNdEx = postIndex
  8981  		default:
  8982  			iNdEx = preIndex
  8983  			skippy, err := skipApi(dAtA[iNdEx:])
  8984  			if err != nil {
  8985  				return err
  8986  			}
  8987  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8988  				return ErrInvalidLengthApi
  8989  			}
  8990  			if (iNdEx + skippy) > l {
  8991  				return io.ErrUnexpectedEOF
  8992  			}
  8993  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  8994  			iNdEx += skippy
  8995  		}
  8996  	}
  8997  
  8998  	if iNdEx > l {
  8999  		return io.ErrUnexpectedEOF
  9000  	}
  9001  	return nil
  9002  }
  9003  func (m *MergeCommitEntry) Unmarshal(dAtA []byte) error {
  9004  	l := len(dAtA)
  9005  	iNdEx := 0
  9006  	for iNdEx < l {
  9007  		preIndex := iNdEx
  9008  		var wire uint64
  9009  		for shift := uint(0); ; shift += 7 {
  9010  			if shift >= 64 {
  9011  				return ErrIntOverflowApi
  9012  			}
  9013  			if iNdEx >= l {
  9014  				return io.ErrUnexpectedEOF
  9015  			}
  9016  			b := dAtA[iNdEx]
  9017  			iNdEx++
  9018  			wire |= uint64(b&0x7F) << shift
  9019  			if b < 0x80 {
  9020  				break
  9021  			}
  9022  		}
  9023  		fieldNum := int32(wire >> 3)
  9024  		wireType := int(wire & 0x7)
  9025  		if wireType == 4 {
  9026  			return fmt.Errorf("proto: MergeCommitEntry: wiretype end group for non-group")
  9027  		}
  9028  		if fieldNum <= 0 {
  9029  			return fmt.Errorf("proto: MergeCommitEntry: illegal tag %d (wire type %d)", fieldNum, wire)
  9030  		}
  9031  		switch fieldNum {
  9032  		case 1:
  9033  			if wireType != 0 {
  9034  				return fmt.Errorf("proto: wrong wireType = %d for field DbId", wireType)
  9035  			}
  9036  			m.DbId = 0
  9037  			for shift := uint(0); ; shift += 7 {
  9038  				if shift >= 64 {
  9039  					return ErrIntOverflowApi
  9040  				}
  9041  				if iNdEx >= l {
  9042  					return io.ErrUnexpectedEOF
  9043  				}
  9044  				b := dAtA[iNdEx]
  9045  				iNdEx++
  9046  				m.DbId |= uint64(b&0x7F) << shift
  9047  				if b < 0x80 {
  9048  					break
  9049  				}
  9050  			}
  9051  		case 2:
  9052  			if wireType != 0 {
  9053  				return fmt.Errorf("proto: wrong wireType = %d for field TblId", wireType)
  9054  			}
  9055  			m.TblId = 0
  9056  			for shift := uint(0); ; shift += 7 {
  9057  				if shift >= 64 {
  9058  					return ErrIntOverflowApi
  9059  				}
  9060  				if iNdEx >= l {
  9061  					return io.ErrUnexpectedEOF
  9062  				}
  9063  				b := dAtA[iNdEx]
  9064  				iNdEx++
  9065  				m.TblId |= uint64(b&0x7F) << shift
  9066  				if b < 0x80 {
  9067  					break
  9068  				}
  9069  			}
  9070  		case 3:
  9071  			if wireType != 2 {
  9072  				return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType)
  9073  			}
  9074  			var stringLen uint64
  9075  			for shift := uint(0); ; shift += 7 {
  9076  				if shift >= 64 {
  9077  					return ErrIntOverflowApi
  9078  				}
  9079  				if iNdEx >= l {
  9080  					return io.ErrUnexpectedEOF
  9081  				}
  9082  				b := dAtA[iNdEx]
  9083  				iNdEx++
  9084  				stringLen |= uint64(b&0x7F) << shift
  9085  				if b < 0x80 {
  9086  					break
  9087  				}
  9088  			}
  9089  			intStringLen := int(stringLen)
  9090  			if intStringLen < 0 {
  9091  				return ErrInvalidLengthApi
  9092  			}
  9093  			postIndex := iNdEx + intStringLen
  9094  			if postIndex < 0 {
  9095  				return ErrInvalidLengthApi
  9096  			}
  9097  			if postIndex > l {
  9098  				return io.ErrUnexpectedEOF
  9099  			}
  9100  			m.TableName = string(dAtA[iNdEx:postIndex])
  9101  			iNdEx = postIndex
  9102  		case 4:
  9103  			if wireType != 2 {
  9104  				return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType)
  9105  			}
  9106  			var msglen int
  9107  			for shift := uint(0); ; shift += 7 {
  9108  				if shift >= 64 {
  9109  					return ErrIntOverflowApi
  9110  				}
  9111  				if iNdEx >= l {
  9112  					return io.ErrUnexpectedEOF
  9113  				}
  9114  				b := dAtA[iNdEx]
  9115  				iNdEx++
  9116  				msglen |= int(b&0x7F) << shift
  9117  				if b < 0x80 {
  9118  					break
  9119  				}
  9120  			}
  9121  			if msglen < 0 {
  9122  				return ErrInvalidLengthApi
  9123  			}
  9124  			postIndex := iNdEx + msglen
  9125  			if postIndex < 0 {
  9126  				return ErrInvalidLengthApi
  9127  			}
  9128  			if postIndex > l {
  9129  				return io.ErrUnexpectedEOF
  9130  			}
  9131  			if err := m.StartTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9132  				return err
  9133  			}
  9134  			iNdEx = postIndex
  9135  		case 5:
  9136  			if wireType != 2 {
  9137  				return fmt.Errorf("proto: wrong wireType = %d for field MergedObjs", wireType)
  9138  			}
  9139  			var byteLen int
  9140  			for shift := uint(0); ; shift += 7 {
  9141  				if shift >= 64 {
  9142  					return ErrIntOverflowApi
  9143  				}
  9144  				if iNdEx >= l {
  9145  					return io.ErrUnexpectedEOF
  9146  				}
  9147  				b := dAtA[iNdEx]
  9148  				iNdEx++
  9149  				byteLen |= int(b&0x7F) << shift
  9150  				if b < 0x80 {
  9151  					break
  9152  				}
  9153  			}
  9154  			if byteLen < 0 {
  9155  				return ErrInvalidLengthApi
  9156  			}
  9157  			postIndex := iNdEx + byteLen
  9158  			if postIndex < 0 {
  9159  				return ErrInvalidLengthApi
  9160  			}
  9161  			if postIndex > l {
  9162  				return io.ErrUnexpectedEOF
  9163  			}
  9164  			m.MergedObjs = append(m.MergedObjs, make([]byte, postIndex-iNdEx))
  9165  			copy(m.MergedObjs[len(m.MergedObjs)-1], dAtA[iNdEx:postIndex])
  9166  			iNdEx = postIndex
  9167  		case 6:
  9168  			if wireType != 2 {
  9169  				return fmt.Errorf("proto: wrong wireType = %d for field CreatedObjs", wireType)
  9170  			}
  9171  			var byteLen int
  9172  			for shift := uint(0); ; shift += 7 {
  9173  				if shift >= 64 {
  9174  					return ErrIntOverflowApi
  9175  				}
  9176  				if iNdEx >= l {
  9177  					return io.ErrUnexpectedEOF
  9178  				}
  9179  				b := dAtA[iNdEx]
  9180  				iNdEx++
  9181  				byteLen |= int(b&0x7F) << shift
  9182  				if b < 0x80 {
  9183  					break
  9184  				}
  9185  			}
  9186  			if byteLen < 0 {
  9187  				return ErrInvalidLengthApi
  9188  			}
  9189  			postIndex := iNdEx + byteLen
  9190  			if postIndex < 0 {
  9191  				return ErrInvalidLengthApi
  9192  			}
  9193  			if postIndex > l {
  9194  				return io.ErrUnexpectedEOF
  9195  			}
  9196  			m.CreatedObjs = append(m.CreatedObjs, make([]byte, postIndex-iNdEx))
  9197  			copy(m.CreatedObjs[len(m.CreatedObjs)-1], dAtA[iNdEx:postIndex])
  9198  			iNdEx = postIndex
  9199  		case 7:
  9200  			if wireType != 2 {
  9201  				return fmt.Errorf("proto: wrong wireType = %d for field Booking", wireType)
  9202  			}
  9203  			var msglen int
  9204  			for shift := uint(0); ; shift += 7 {
  9205  				if shift >= 64 {
  9206  					return ErrIntOverflowApi
  9207  				}
  9208  				if iNdEx >= l {
  9209  					return io.ErrUnexpectedEOF
  9210  				}
  9211  				b := dAtA[iNdEx]
  9212  				iNdEx++
  9213  				msglen |= int(b&0x7F) << shift
  9214  				if b < 0x80 {
  9215  					break
  9216  				}
  9217  			}
  9218  			if msglen < 0 {
  9219  				return ErrInvalidLengthApi
  9220  			}
  9221  			postIndex := iNdEx + msglen
  9222  			if postIndex < 0 {
  9223  				return ErrInvalidLengthApi
  9224  			}
  9225  			if postIndex > l {
  9226  				return io.ErrUnexpectedEOF
  9227  			}
  9228  			if m.Booking == nil {
  9229  				m.Booking = &BlkTransferBooking{}
  9230  			}
  9231  			if err := m.Booking.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9232  				return err
  9233  			}
  9234  			iNdEx = postIndex
  9235  		case 8:
  9236  			if wireType != 2 {
  9237  				return fmt.Errorf("proto: wrong wireType = %d for field BookingLoc", wireType)
  9238  			}
  9239  			var byteLen int
  9240  			for shift := uint(0); ; shift += 7 {
  9241  				if shift >= 64 {
  9242  					return ErrIntOverflowApi
  9243  				}
  9244  				if iNdEx >= l {
  9245  					return io.ErrUnexpectedEOF
  9246  				}
  9247  				b := dAtA[iNdEx]
  9248  				iNdEx++
  9249  				byteLen |= int(b&0x7F) << shift
  9250  				if b < 0x80 {
  9251  					break
  9252  				}
  9253  			}
  9254  			if byteLen < 0 {
  9255  				return ErrInvalidLengthApi
  9256  			}
  9257  			postIndex := iNdEx + byteLen
  9258  			if postIndex < 0 {
  9259  				return ErrInvalidLengthApi
  9260  			}
  9261  			if postIndex > l {
  9262  				return io.ErrUnexpectedEOF
  9263  			}
  9264  			m.BookingLoc = append(m.BookingLoc[:0], dAtA[iNdEx:postIndex]...)
  9265  			if m.BookingLoc == nil {
  9266  				m.BookingLoc = []byte{}
  9267  			}
  9268  			iNdEx = postIndex
  9269  		case 9:
  9270  			if wireType != 2 {
  9271  				return fmt.Errorf("proto: wrong wireType = %d for field Err", wireType)
  9272  			}
  9273  			var stringLen uint64
  9274  			for shift := uint(0); ; shift += 7 {
  9275  				if shift >= 64 {
  9276  					return ErrIntOverflowApi
  9277  				}
  9278  				if iNdEx >= l {
  9279  					return io.ErrUnexpectedEOF
  9280  				}
  9281  				b := dAtA[iNdEx]
  9282  				iNdEx++
  9283  				stringLen |= uint64(b&0x7F) << shift
  9284  				if b < 0x80 {
  9285  					break
  9286  				}
  9287  			}
  9288  			intStringLen := int(stringLen)
  9289  			if intStringLen < 0 {
  9290  				return ErrInvalidLengthApi
  9291  			}
  9292  			postIndex := iNdEx + intStringLen
  9293  			if postIndex < 0 {
  9294  				return ErrInvalidLengthApi
  9295  			}
  9296  			if postIndex > l {
  9297  				return io.ErrUnexpectedEOF
  9298  			}
  9299  			m.Err = string(dAtA[iNdEx:postIndex])
  9300  			iNdEx = postIndex
  9301  		default:
  9302  			iNdEx = preIndex
  9303  			skippy, err := skipApi(dAtA[iNdEx:])
  9304  			if err != nil {
  9305  				return err
  9306  			}
  9307  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9308  				return ErrInvalidLengthApi
  9309  			}
  9310  			if (iNdEx + skippy) > l {
  9311  				return io.ErrUnexpectedEOF
  9312  			}
  9313  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9314  			iNdEx += skippy
  9315  		}
  9316  	}
  9317  
  9318  	if iNdEx > l {
  9319  		return io.ErrUnexpectedEOF
  9320  	}
  9321  	return nil
  9322  }
  9323  func (m *MergeTaskEntry) Unmarshal(dAtA []byte) error {
  9324  	l := len(dAtA)
  9325  	iNdEx := 0
  9326  	for iNdEx < l {
  9327  		preIndex := iNdEx
  9328  		var wire uint64
  9329  		for shift := uint(0); ; shift += 7 {
  9330  			if shift >= 64 {
  9331  				return ErrIntOverflowApi
  9332  			}
  9333  			if iNdEx >= l {
  9334  				return io.ErrUnexpectedEOF
  9335  			}
  9336  			b := dAtA[iNdEx]
  9337  			iNdEx++
  9338  			wire |= uint64(b&0x7F) << shift
  9339  			if b < 0x80 {
  9340  				break
  9341  			}
  9342  		}
  9343  		fieldNum := int32(wire >> 3)
  9344  		wireType := int(wire & 0x7)
  9345  		if wireType == 4 {
  9346  			return fmt.Errorf("proto: MergeTaskEntry: wiretype end group for non-group")
  9347  		}
  9348  		if fieldNum <= 0 {
  9349  			return fmt.Errorf("proto: MergeTaskEntry: illegal tag %d (wire type %d)", fieldNum, wire)
  9350  		}
  9351  		switch fieldNum {
  9352  		case 1:
  9353  			if wireType != 0 {
  9354  				return fmt.Errorf("proto: wrong wireType = %d for field DbId", wireType)
  9355  			}
  9356  			m.DbId = 0
  9357  			for shift := uint(0); ; shift += 7 {
  9358  				if shift >= 64 {
  9359  					return ErrIntOverflowApi
  9360  				}
  9361  				if iNdEx >= l {
  9362  					return io.ErrUnexpectedEOF
  9363  				}
  9364  				b := dAtA[iNdEx]
  9365  				iNdEx++
  9366  				m.DbId |= uint64(b&0x7F) << shift
  9367  				if b < 0x80 {
  9368  					break
  9369  				}
  9370  			}
  9371  		case 2:
  9372  			if wireType != 0 {
  9373  				return fmt.Errorf("proto: wrong wireType = %d for field TblId", wireType)
  9374  			}
  9375  			m.TblId = 0
  9376  			for shift := uint(0); ; shift += 7 {
  9377  				if shift >= 64 {
  9378  					return ErrIntOverflowApi
  9379  				}
  9380  				if iNdEx >= l {
  9381  					return io.ErrUnexpectedEOF
  9382  				}
  9383  				b := dAtA[iNdEx]
  9384  				iNdEx++
  9385  				m.TblId |= uint64(b&0x7F) << shift
  9386  				if b < 0x80 {
  9387  					break
  9388  				}
  9389  			}
  9390  		case 3:
  9391  			if wireType != 2 {
  9392  				return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType)
  9393  			}
  9394  			var stringLen uint64
  9395  			for shift := uint(0); ; shift += 7 {
  9396  				if shift >= 64 {
  9397  					return ErrIntOverflowApi
  9398  				}
  9399  				if iNdEx >= l {
  9400  					return io.ErrUnexpectedEOF
  9401  				}
  9402  				b := dAtA[iNdEx]
  9403  				iNdEx++
  9404  				stringLen |= uint64(b&0x7F) << shift
  9405  				if b < 0x80 {
  9406  					break
  9407  				}
  9408  			}
  9409  			intStringLen := int(stringLen)
  9410  			if intStringLen < 0 {
  9411  				return ErrInvalidLengthApi
  9412  			}
  9413  			postIndex := iNdEx + intStringLen
  9414  			if postIndex < 0 {
  9415  				return ErrInvalidLengthApi
  9416  			}
  9417  			if postIndex > l {
  9418  				return io.ErrUnexpectedEOF
  9419  			}
  9420  			m.TableName = string(dAtA[iNdEx:postIndex])
  9421  			iNdEx = postIndex
  9422  		case 4:
  9423  			if wireType != 2 {
  9424  				return fmt.Errorf("proto: wrong wireType = %d for field DbName", wireType)
  9425  			}
  9426  			var stringLen uint64
  9427  			for shift := uint(0); ; shift += 7 {
  9428  				if shift >= 64 {
  9429  					return ErrIntOverflowApi
  9430  				}
  9431  				if iNdEx >= l {
  9432  					return io.ErrUnexpectedEOF
  9433  				}
  9434  				b := dAtA[iNdEx]
  9435  				iNdEx++
  9436  				stringLen |= uint64(b&0x7F) << shift
  9437  				if b < 0x80 {
  9438  					break
  9439  				}
  9440  			}
  9441  			intStringLen := int(stringLen)
  9442  			if intStringLen < 0 {
  9443  				return ErrInvalidLengthApi
  9444  			}
  9445  			postIndex := iNdEx + intStringLen
  9446  			if postIndex < 0 {
  9447  				return ErrInvalidLengthApi
  9448  			}
  9449  			if postIndex > l {
  9450  				return io.ErrUnexpectedEOF
  9451  			}
  9452  			m.DbName = string(dAtA[iNdEx:postIndex])
  9453  			iNdEx = postIndex
  9454  		case 5:
  9455  			if wireType != 2 {
  9456  				return fmt.Errorf("proto: wrong wireType = %d for field ToMergeObjs", wireType)
  9457  			}
  9458  			var byteLen int
  9459  			for shift := uint(0); ; shift += 7 {
  9460  				if shift >= 64 {
  9461  					return ErrIntOverflowApi
  9462  				}
  9463  				if iNdEx >= l {
  9464  					return io.ErrUnexpectedEOF
  9465  				}
  9466  				b := dAtA[iNdEx]
  9467  				iNdEx++
  9468  				byteLen |= int(b&0x7F) << shift
  9469  				if b < 0x80 {
  9470  					break
  9471  				}
  9472  			}
  9473  			if byteLen < 0 {
  9474  				return ErrInvalidLengthApi
  9475  			}
  9476  			postIndex := iNdEx + byteLen
  9477  			if postIndex < 0 {
  9478  				return ErrInvalidLengthApi
  9479  			}
  9480  			if postIndex > l {
  9481  				return io.ErrUnexpectedEOF
  9482  			}
  9483  			m.ToMergeObjs = append(m.ToMergeObjs, make([]byte, postIndex-iNdEx))
  9484  			copy(m.ToMergeObjs[len(m.ToMergeObjs)-1], dAtA[iNdEx:postIndex])
  9485  			iNdEx = postIndex
  9486  		case 6:
  9487  			if wireType != 0 {
  9488  				return fmt.Errorf("proto: wrong wireType = %d for field EstimatedMemUsage", wireType)
  9489  			}
  9490  			m.EstimatedMemUsage = 0
  9491  			for shift := uint(0); ; shift += 7 {
  9492  				if shift >= 64 {
  9493  					return ErrIntOverflowApi
  9494  				}
  9495  				if iNdEx >= l {
  9496  					return io.ErrUnexpectedEOF
  9497  				}
  9498  				b := dAtA[iNdEx]
  9499  				iNdEx++
  9500  				m.EstimatedMemUsage |= uint64(b&0x7F) << shift
  9501  				if b < 0x80 {
  9502  					break
  9503  				}
  9504  			}
  9505  		case 7:
  9506  			if wireType != 0 {
  9507  				return fmt.Errorf("proto: wrong wireType = %d for field AccountId", wireType)
  9508  			}
  9509  			m.AccountId = 0
  9510  			for shift := uint(0); ; shift += 7 {
  9511  				if shift >= 64 {
  9512  					return ErrIntOverflowApi
  9513  				}
  9514  				if iNdEx >= l {
  9515  					return io.ErrUnexpectedEOF
  9516  				}
  9517  				b := dAtA[iNdEx]
  9518  				iNdEx++
  9519  				m.AccountId |= uint32(b&0x7F) << shift
  9520  				if b < 0x80 {
  9521  					break
  9522  				}
  9523  			}
  9524  		case 8:
  9525  			if wireType != 0 {
  9526  				return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
  9527  			}
  9528  			m.UserId = 0
  9529  			for shift := uint(0); ; shift += 7 {
  9530  				if shift >= 64 {
  9531  					return ErrIntOverflowApi
  9532  				}
  9533  				if iNdEx >= l {
  9534  					return io.ErrUnexpectedEOF
  9535  				}
  9536  				b := dAtA[iNdEx]
  9537  				iNdEx++
  9538  				m.UserId |= uint32(b&0x7F) << shift
  9539  				if b < 0x80 {
  9540  					break
  9541  				}
  9542  			}
  9543  		case 9:
  9544  			if wireType != 0 {
  9545  				return fmt.Errorf("proto: wrong wireType = %d for field RoleId", wireType)
  9546  			}
  9547  			m.RoleId = 0
  9548  			for shift := uint(0); ; shift += 7 {
  9549  				if shift >= 64 {
  9550  					return ErrIntOverflowApi
  9551  				}
  9552  				if iNdEx >= l {
  9553  					return io.ErrUnexpectedEOF
  9554  				}
  9555  				b := dAtA[iNdEx]
  9556  				iNdEx++
  9557  				m.RoleId |= uint32(b&0x7F) << shift
  9558  				if b < 0x80 {
  9559  					break
  9560  				}
  9561  			}
  9562  		default:
  9563  			iNdEx = preIndex
  9564  			skippy, err := skipApi(dAtA[iNdEx:])
  9565  			if err != nil {
  9566  				return err
  9567  			}
  9568  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9569  				return ErrInvalidLengthApi
  9570  			}
  9571  			if (iNdEx + skippy) > l {
  9572  				return io.ErrUnexpectedEOF
  9573  			}
  9574  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9575  			iNdEx += skippy
  9576  		}
  9577  	}
  9578  
  9579  	if iNdEx > l {
  9580  		return io.ErrUnexpectedEOF
  9581  	}
  9582  	return nil
  9583  }
  9584  func skipApi(dAtA []byte) (n int, err error) {
  9585  	l := len(dAtA)
  9586  	iNdEx := 0
  9587  	depth := 0
  9588  	for iNdEx < l {
  9589  		var wire uint64
  9590  		for shift := uint(0); ; shift += 7 {
  9591  			if shift >= 64 {
  9592  				return 0, ErrIntOverflowApi
  9593  			}
  9594  			if iNdEx >= l {
  9595  				return 0, io.ErrUnexpectedEOF
  9596  			}
  9597  			b := dAtA[iNdEx]
  9598  			iNdEx++
  9599  			wire |= (uint64(b) & 0x7F) << shift
  9600  			if b < 0x80 {
  9601  				break
  9602  			}
  9603  		}
  9604  		wireType := int(wire & 0x7)
  9605  		switch wireType {
  9606  		case 0:
  9607  			for shift := uint(0); ; shift += 7 {
  9608  				if shift >= 64 {
  9609  					return 0, ErrIntOverflowApi
  9610  				}
  9611  				if iNdEx >= l {
  9612  					return 0, io.ErrUnexpectedEOF
  9613  				}
  9614  				iNdEx++
  9615  				if dAtA[iNdEx-1] < 0x80 {
  9616  					break
  9617  				}
  9618  			}
  9619  		case 1:
  9620  			iNdEx += 8
  9621  		case 2:
  9622  			var length int
  9623  			for shift := uint(0); ; shift += 7 {
  9624  				if shift >= 64 {
  9625  					return 0, ErrIntOverflowApi
  9626  				}
  9627  				if iNdEx >= l {
  9628  					return 0, io.ErrUnexpectedEOF
  9629  				}
  9630  				b := dAtA[iNdEx]
  9631  				iNdEx++
  9632  				length |= (int(b) & 0x7F) << shift
  9633  				if b < 0x80 {
  9634  					break
  9635  				}
  9636  			}
  9637  			if length < 0 {
  9638  				return 0, ErrInvalidLengthApi
  9639  			}
  9640  			iNdEx += length
  9641  		case 3:
  9642  			depth++
  9643  		case 4:
  9644  			if depth == 0 {
  9645  				return 0, ErrUnexpectedEndOfGroupApi
  9646  			}
  9647  			depth--
  9648  		case 5:
  9649  			iNdEx += 4
  9650  		default:
  9651  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  9652  		}
  9653  		if iNdEx < 0 {
  9654  			return 0, ErrInvalidLengthApi
  9655  		}
  9656  		if depth == 0 {
  9657  			return iNdEx, nil
  9658  		}
  9659  	}
  9660  	return 0, io.ErrUnexpectedEOF
  9661  }
  9662  
  9663  var (
  9664  	ErrInvalidLengthApi        = fmt.Errorf("proto: negative length found during unmarshaling")
  9665  	ErrIntOverflowApi          = fmt.Errorf("proto: integer overflow")
  9666  	ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group")
  9667  )