github.com/team-ide/go-dialect@v1.9.20/vitess/topodata/topodata_vtproto.pb.go (about)

     1  // Code generated by protoc-gen-go-vtproto. DO NOT EDIT.
     2  // protoc-gen-go-vtproto version: v0.2.0
     3  // source: topodata.proto
     4  
     5  package topodata
     6  
     7  import (
     8  	fmt "fmt"
     9  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    10  	io "io"
    11  	bits "math/bits"
    12  	vttime "github.com/team-ide/go-dialect/vitess/vttime"
    13  )
    14  
    15  const (
    16  	// Verify that this generated code is sufficiently up-to-date.
    17  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    18  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    20  )
    21  
    22  func (m *KeyRange) MarshalVT() (dAtA []byte, err error) {
    23  	if m == nil {
    24  		return nil, nil
    25  	}
    26  	size := m.SizeVT()
    27  	dAtA = make([]byte, size)
    28  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
    29  	if err != nil {
    30  		return nil, err
    31  	}
    32  	return dAtA[:n], nil
    33  }
    34  
    35  func (m *KeyRange) MarshalToVT(dAtA []byte) (int, error) {
    36  	size := m.SizeVT()
    37  	return m.MarshalToSizedBufferVT(dAtA[:size])
    38  }
    39  
    40  func (m *KeyRange) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
    41  	if m == nil {
    42  		return 0, nil
    43  	}
    44  	i := len(dAtA)
    45  	_ = i
    46  	var l int
    47  	_ = l
    48  	if m.unknownFields != nil {
    49  		i -= len(m.unknownFields)
    50  		copy(dAtA[i:], m.unknownFields)
    51  	}
    52  	if len(m.End) > 0 {
    53  		i -= len(m.End)
    54  		copy(dAtA[i:], m.End)
    55  		i = encodeVarint(dAtA, i, uint64(len(m.End)))
    56  		i--
    57  		dAtA[i] = 0x12
    58  	}
    59  	if len(m.Start) > 0 {
    60  		i -= len(m.Start)
    61  		copy(dAtA[i:], m.Start)
    62  		i = encodeVarint(dAtA, i, uint64(len(m.Start)))
    63  		i--
    64  		dAtA[i] = 0xa
    65  	}
    66  	return len(dAtA) - i, nil
    67  }
    68  
    69  func (m *TabletAlias) MarshalVT() (dAtA []byte, err error) {
    70  	if m == nil {
    71  		return nil, nil
    72  	}
    73  	size := m.SizeVT()
    74  	dAtA = make([]byte, size)
    75  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
    76  	if err != nil {
    77  		return nil, err
    78  	}
    79  	return dAtA[:n], nil
    80  }
    81  
    82  func (m *TabletAlias) MarshalToVT(dAtA []byte) (int, error) {
    83  	size := m.SizeVT()
    84  	return m.MarshalToSizedBufferVT(dAtA[:size])
    85  }
    86  
    87  func (m *TabletAlias) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
    88  	if m == nil {
    89  		return 0, nil
    90  	}
    91  	i := len(dAtA)
    92  	_ = i
    93  	var l int
    94  	_ = l
    95  	if m.unknownFields != nil {
    96  		i -= len(m.unknownFields)
    97  		copy(dAtA[i:], m.unknownFields)
    98  	}
    99  	if m.Uid != 0 {
   100  		i = encodeVarint(dAtA, i, uint64(m.Uid))
   101  		i--
   102  		dAtA[i] = 0x10
   103  	}
   104  	if len(m.Cell) > 0 {
   105  		i -= len(m.Cell)
   106  		copy(dAtA[i:], m.Cell)
   107  		i = encodeVarint(dAtA, i, uint64(len(m.Cell)))
   108  		i--
   109  		dAtA[i] = 0xa
   110  	}
   111  	return len(dAtA) - i, nil
   112  }
   113  
   114  func (m *Tablet) MarshalVT() (dAtA []byte, err error) {
   115  	if m == nil {
   116  		return nil, nil
   117  	}
   118  	size := m.SizeVT()
   119  	dAtA = make([]byte, size)
   120  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   121  	if err != nil {
   122  		return nil, err
   123  	}
   124  	return dAtA[:n], nil
   125  }
   126  
   127  func (m *Tablet) MarshalToVT(dAtA []byte) (int, error) {
   128  	size := m.SizeVT()
   129  	return m.MarshalToSizedBufferVT(dAtA[:size])
   130  }
   131  
   132  func (m *Tablet) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   133  	if m == nil {
   134  		return 0, nil
   135  	}
   136  	i := len(dAtA)
   137  	_ = i
   138  	var l int
   139  	_ = l
   140  	if m.unknownFields != nil {
   141  		i -= len(m.unknownFields)
   142  		copy(dAtA[i:], m.unknownFields)
   143  	}
   144  	if m.DefaultConnCollation != 0 {
   145  		i = encodeVarint(dAtA, i, uint64(m.DefaultConnCollation))
   146  		i--
   147  		dAtA[i] = 0x1
   148  		i--
   149  		dAtA[i] = 0x80
   150  	}
   151  	if len(m.DbServerVersion) > 0 {
   152  		i -= len(m.DbServerVersion)
   153  		copy(dAtA[i:], m.DbServerVersion)
   154  		i = encodeVarint(dAtA, i, uint64(len(m.DbServerVersion)))
   155  		i--
   156  		dAtA[i] = 0x7a
   157  	}
   158  	if m.PrimaryTermStartTime != nil {
   159  		size, err := m.PrimaryTermStartTime.MarshalToSizedBufferVT(dAtA[:i])
   160  		if err != nil {
   161  			return 0, err
   162  		}
   163  		i -= size
   164  		i = encodeVarint(dAtA, i, uint64(size))
   165  		i--
   166  		dAtA[i] = 0x72
   167  	}
   168  	if m.MysqlPort != 0 {
   169  		i = encodeVarint(dAtA, i, uint64(m.MysqlPort))
   170  		i--
   171  		dAtA[i] = 0x68
   172  	}
   173  	if len(m.MysqlHostname) > 0 {
   174  		i -= len(m.MysqlHostname)
   175  		copy(dAtA[i:], m.MysqlHostname)
   176  		i = encodeVarint(dAtA, i, uint64(len(m.MysqlHostname)))
   177  		i--
   178  		dAtA[i] = 0x62
   179  	}
   180  	if len(m.Tags) > 0 {
   181  		for k := range m.Tags {
   182  			v := m.Tags[k]
   183  			baseI := i
   184  			i -= len(v)
   185  			copy(dAtA[i:], v)
   186  			i = encodeVarint(dAtA, i, uint64(len(v)))
   187  			i--
   188  			dAtA[i] = 0x12
   189  			i -= len(k)
   190  			copy(dAtA[i:], k)
   191  			i = encodeVarint(dAtA, i, uint64(len(k)))
   192  			i--
   193  			dAtA[i] = 0xa
   194  			i = encodeVarint(dAtA, i, uint64(baseI-i))
   195  			i--
   196  			dAtA[i] = 0x52
   197  		}
   198  	}
   199  	if len(m.DbNameOverride) > 0 {
   200  		i -= len(m.DbNameOverride)
   201  		copy(dAtA[i:], m.DbNameOverride)
   202  		i = encodeVarint(dAtA, i, uint64(len(m.DbNameOverride)))
   203  		i--
   204  		dAtA[i] = 0x4a
   205  	}
   206  	if m.Type != 0 {
   207  		i = encodeVarint(dAtA, i, uint64(m.Type))
   208  		i--
   209  		dAtA[i] = 0x40
   210  	}
   211  	if m.KeyRange != nil {
   212  		size, err := m.KeyRange.MarshalToSizedBufferVT(dAtA[:i])
   213  		if err != nil {
   214  			return 0, err
   215  		}
   216  		i -= size
   217  		i = encodeVarint(dAtA, i, uint64(size))
   218  		i--
   219  		dAtA[i] = 0x3a
   220  	}
   221  	if len(m.Shard) > 0 {
   222  		i -= len(m.Shard)
   223  		copy(dAtA[i:], m.Shard)
   224  		i = encodeVarint(dAtA, i, uint64(len(m.Shard)))
   225  		i--
   226  		dAtA[i] = 0x32
   227  	}
   228  	if len(m.Keyspace) > 0 {
   229  		i -= len(m.Keyspace)
   230  		copy(dAtA[i:], m.Keyspace)
   231  		i = encodeVarint(dAtA, i, uint64(len(m.Keyspace)))
   232  		i--
   233  		dAtA[i] = 0x2a
   234  	}
   235  	if len(m.PortMap) > 0 {
   236  		for k := range m.PortMap {
   237  			v := m.PortMap[k]
   238  			baseI := i
   239  			i = encodeVarint(dAtA, i, uint64(v))
   240  			i--
   241  			dAtA[i] = 0x10
   242  			i -= len(k)
   243  			copy(dAtA[i:], k)
   244  			i = encodeVarint(dAtA, i, uint64(len(k)))
   245  			i--
   246  			dAtA[i] = 0xa
   247  			i = encodeVarint(dAtA, i, uint64(baseI-i))
   248  			i--
   249  			dAtA[i] = 0x22
   250  		}
   251  	}
   252  	if len(m.Hostname) > 0 {
   253  		i -= len(m.Hostname)
   254  		copy(dAtA[i:], m.Hostname)
   255  		i = encodeVarint(dAtA, i, uint64(len(m.Hostname)))
   256  		i--
   257  		dAtA[i] = 0x12
   258  	}
   259  	if m.Alias != nil {
   260  		size, err := m.Alias.MarshalToSizedBufferVT(dAtA[:i])
   261  		if err != nil {
   262  			return 0, err
   263  		}
   264  		i -= size
   265  		i = encodeVarint(dAtA, i, uint64(size))
   266  		i--
   267  		dAtA[i] = 0xa
   268  	}
   269  	return len(dAtA) - i, nil
   270  }
   271  
   272  func (m *Shard_SourceShard) MarshalVT() (dAtA []byte, err error) {
   273  	if m == nil {
   274  		return nil, nil
   275  	}
   276  	size := m.SizeVT()
   277  	dAtA = make([]byte, size)
   278  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   279  	if err != nil {
   280  		return nil, err
   281  	}
   282  	return dAtA[:n], nil
   283  }
   284  
   285  func (m *Shard_SourceShard) MarshalToVT(dAtA []byte) (int, error) {
   286  	size := m.SizeVT()
   287  	return m.MarshalToSizedBufferVT(dAtA[:size])
   288  }
   289  
   290  func (m *Shard_SourceShard) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   291  	if m == nil {
   292  		return 0, nil
   293  	}
   294  	i := len(dAtA)
   295  	_ = i
   296  	var l int
   297  	_ = l
   298  	if m.unknownFields != nil {
   299  		i -= len(m.unknownFields)
   300  		copy(dAtA[i:], m.unknownFields)
   301  	}
   302  	if len(m.Tables) > 0 {
   303  		for iNdEx := len(m.Tables) - 1; iNdEx >= 0; iNdEx-- {
   304  			i -= len(m.Tables[iNdEx])
   305  			copy(dAtA[i:], m.Tables[iNdEx])
   306  			i = encodeVarint(dAtA, i, uint64(len(m.Tables[iNdEx])))
   307  			i--
   308  			dAtA[i] = 0x2a
   309  		}
   310  	}
   311  	if m.KeyRange != nil {
   312  		size, err := m.KeyRange.MarshalToSizedBufferVT(dAtA[:i])
   313  		if err != nil {
   314  			return 0, err
   315  		}
   316  		i -= size
   317  		i = encodeVarint(dAtA, i, uint64(size))
   318  		i--
   319  		dAtA[i] = 0x22
   320  	}
   321  	if len(m.Shard) > 0 {
   322  		i -= len(m.Shard)
   323  		copy(dAtA[i:], m.Shard)
   324  		i = encodeVarint(dAtA, i, uint64(len(m.Shard)))
   325  		i--
   326  		dAtA[i] = 0x1a
   327  	}
   328  	if len(m.Keyspace) > 0 {
   329  		i -= len(m.Keyspace)
   330  		copy(dAtA[i:], m.Keyspace)
   331  		i = encodeVarint(dAtA, i, uint64(len(m.Keyspace)))
   332  		i--
   333  		dAtA[i] = 0x12
   334  	}
   335  	if m.Uid != 0 {
   336  		i = encodeVarint(dAtA, i, uint64(m.Uid))
   337  		i--
   338  		dAtA[i] = 0x8
   339  	}
   340  	return len(dAtA) - i, nil
   341  }
   342  
   343  func (m *Shard_TabletControl) MarshalVT() (dAtA []byte, err error) {
   344  	if m == nil {
   345  		return nil, nil
   346  	}
   347  	size := m.SizeVT()
   348  	dAtA = make([]byte, size)
   349  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   350  	if err != nil {
   351  		return nil, err
   352  	}
   353  	return dAtA[:n], nil
   354  }
   355  
   356  func (m *Shard_TabletControl) MarshalToVT(dAtA []byte) (int, error) {
   357  	size := m.SizeVT()
   358  	return m.MarshalToSizedBufferVT(dAtA[:size])
   359  }
   360  
   361  func (m *Shard_TabletControl) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   362  	if m == nil {
   363  		return 0, nil
   364  	}
   365  	i := len(dAtA)
   366  	_ = i
   367  	var l int
   368  	_ = l
   369  	if m.unknownFields != nil {
   370  		i -= len(m.unknownFields)
   371  		copy(dAtA[i:], m.unknownFields)
   372  	}
   373  	if m.Frozen {
   374  		i--
   375  		if m.Frozen {
   376  			dAtA[i] = 1
   377  		} else {
   378  			dAtA[i] = 0
   379  		}
   380  		i--
   381  		dAtA[i] = 0x28
   382  	}
   383  	if len(m.DeniedTables) > 0 {
   384  		for iNdEx := len(m.DeniedTables) - 1; iNdEx >= 0; iNdEx-- {
   385  			i -= len(m.DeniedTables[iNdEx])
   386  			copy(dAtA[i:], m.DeniedTables[iNdEx])
   387  			i = encodeVarint(dAtA, i, uint64(len(m.DeniedTables[iNdEx])))
   388  			i--
   389  			dAtA[i] = 0x22
   390  		}
   391  	}
   392  	if len(m.Cells) > 0 {
   393  		for iNdEx := len(m.Cells) - 1; iNdEx >= 0; iNdEx-- {
   394  			i -= len(m.Cells[iNdEx])
   395  			copy(dAtA[i:], m.Cells[iNdEx])
   396  			i = encodeVarint(dAtA, i, uint64(len(m.Cells[iNdEx])))
   397  			i--
   398  			dAtA[i] = 0x12
   399  		}
   400  	}
   401  	if m.TabletType != 0 {
   402  		i = encodeVarint(dAtA, i, uint64(m.TabletType))
   403  		i--
   404  		dAtA[i] = 0x8
   405  	}
   406  	return len(dAtA) - i, nil
   407  }
   408  
   409  func (m *Shard) MarshalVT() (dAtA []byte, err error) {
   410  	if m == nil {
   411  		return nil, nil
   412  	}
   413  	size := m.SizeVT()
   414  	dAtA = make([]byte, size)
   415  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   416  	if err != nil {
   417  		return nil, err
   418  	}
   419  	return dAtA[:n], nil
   420  }
   421  
   422  func (m *Shard) MarshalToVT(dAtA []byte) (int, error) {
   423  	size := m.SizeVT()
   424  	return m.MarshalToSizedBufferVT(dAtA[:size])
   425  }
   426  
   427  func (m *Shard) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   428  	if m == nil {
   429  		return 0, nil
   430  	}
   431  	i := len(dAtA)
   432  	_ = i
   433  	var l int
   434  	_ = l
   435  	if m.unknownFields != nil {
   436  		i -= len(m.unknownFields)
   437  		copy(dAtA[i:], m.unknownFields)
   438  	}
   439  	if m.PrimaryTermStartTime != nil {
   440  		size, err := m.PrimaryTermStartTime.MarshalToSizedBufferVT(dAtA[:i])
   441  		if err != nil {
   442  			return 0, err
   443  		}
   444  		i -= size
   445  		i = encodeVarint(dAtA, i, uint64(size))
   446  		i--
   447  		dAtA[i] = 0x42
   448  	}
   449  	if m.IsPrimaryServing {
   450  		i--
   451  		if m.IsPrimaryServing {
   452  			dAtA[i] = 1
   453  		} else {
   454  			dAtA[i] = 0
   455  		}
   456  		i--
   457  		dAtA[i] = 0x38
   458  	}
   459  	if len(m.TabletControls) > 0 {
   460  		for iNdEx := len(m.TabletControls) - 1; iNdEx >= 0; iNdEx-- {
   461  			size, err := m.TabletControls[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   462  			if err != nil {
   463  				return 0, err
   464  			}
   465  			i -= size
   466  			i = encodeVarint(dAtA, i, uint64(size))
   467  			i--
   468  			dAtA[i] = 0x32
   469  		}
   470  	}
   471  	if len(m.SourceShards) > 0 {
   472  		for iNdEx := len(m.SourceShards) - 1; iNdEx >= 0; iNdEx-- {
   473  			size, err := m.SourceShards[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   474  			if err != nil {
   475  				return 0, err
   476  			}
   477  			i -= size
   478  			i = encodeVarint(dAtA, i, uint64(size))
   479  			i--
   480  			dAtA[i] = 0x22
   481  		}
   482  	}
   483  	if m.KeyRange != nil {
   484  		size, err := m.KeyRange.MarshalToSizedBufferVT(dAtA[:i])
   485  		if err != nil {
   486  			return 0, err
   487  		}
   488  		i -= size
   489  		i = encodeVarint(dAtA, i, uint64(size))
   490  		i--
   491  		dAtA[i] = 0x12
   492  	}
   493  	if m.PrimaryAlias != nil {
   494  		size, err := m.PrimaryAlias.MarshalToSizedBufferVT(dAtA[:i])
   495  		if err != nil {
   496  			return 0, err
   497  		}
   498  		i -= size
   499  		i = encodeVarint(dAtA, i, uint64(size))
   500  		i--
   501  		dAtA[i] = 0xa
   502  	}
   503  	return len(dAtA) - i, nil
   504  }
   505  
   506  func (m *Keyspace_ServedFrom) MarshalVT() (dAtA []byte, err error) {
   507  	if m == nil {
   508  		return nil, nil
   509  	}
   510  	size := m.SizeVT()
   511  	dAtA = make([]byte, size)
   512  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   513  	if err != nil {
   514  		return nil, err
   515  	}
   516  	return dAtA[:n], nil
   517  }
   518  
   519  func (m *Keyspace_ServedFrom) MarshalToVT(dAtA []byte) (int, error) {
   520  	size := m.SizeVT()
   521  	return m.MarshalToSizedBufferVT(dAtA[:size])
   522  }
   523  
   524  func (m *Keyspace_ServedFrom) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   525  	if m == nil {
   526  		return 0, nil
   527  	}
   528  	i := len(dAtA)
   529  	_ = i
   530  	var l int
   531  	_ = l
   532  	if m.unknownFields != nil {
   533  		i -= len(m.unknownFields)
   534  		copy(dAtA[i:], m.unknownFields)
   535  	}
   536  	if len(m.Keyspace) > 0 {
   537  		i -= len(m.Keyspace)
   538  		copy(dAtA[i:], m.Keyspace)
   539  		i = encodeVarint(dAtA, i, uint64(len(m.Keyspace)))
   540  		i--
   541  		dAtA[i] = 0x1a
   542  	}
   543  	if len(m.Cells) > 0 {
   544  		for iNdEx := len(m.Cells) - 1; iNdEx >= 0; iNdEx-- {
   545  			i -= len(m.Cells[iNdEx])
   546  			copy(dAtA[i:], m.Cells[iNdEx])
   547  			i = encodeVarint(dAtA, i, uint64(len(m.Cells[iNdEx])))
   548  			i--
   549  			dAtA[i] = 0x12
   550  		}
   551  	}
   552  	if m.TabletType != 0 {
   553  		i = encodeVarint(dAtA, i, uint64(m.TabletType))
   554  		i--
   555  		dAtA[i] = 0x8
   556  	}
   557  	return len(dAtA) - i, nil
   558  }
   559  
   560  func (m *Keyspace) MarshalVT() (dAtA []byte, err error) {
   561  	if m == nil {
   562  		return nil, nil
   563  	}
   564  	size := m.SizeVT()
   565  	dAtA = make([]byte, size)
   566  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   567  	if err != nil {
   568  		return nil, err
   569  	}
   570  	return dAtA[:n], nil
   571  }
   572  
   573  func (m *Keyspace) MarshalToVT(dAtA []byte) (int, error) {
   574  	size := m.SizeVT()
   575  	return m.MarshalToSizedBufferVT(dAtA[:size])
   576  }
   577  
   578  func (m *Keyspace) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   579  	if m == nil {
   580  		return 0, nil
   581  	}
   582  	i := len(dAtA)
   583  	_ = i
   584  	var l int
   585  	_ = l
   586  	if m.unknownFields != nil {
   587  		i -= len(m.unknownFields)
   588  		copy(dAtA[i:], m.unknownFields)
   589  	}
   590  	if m.SnapshotTime != nil {
   591  		size, err := m.SnapshotTime.MarshalToSizedBufferVT(dAtA[:i])
   592  		if err != nil {
   593  			return 0, err
   594  		}
   595  		i -= size
   596  		i = encodeVarint(dAtA, i, uint64(size))
   597  		i--
   598  		dAtA[i] = 0x3a
   599  	}
   600  	if len(m.BaseKeyspace) > 0 {
   601  		i -= len(m.BaseKeyspace)
   602  		copy(dAtA[i:], m.BaseKeyspace)
   603  		i = encodeVarint(dAtA, i, uint64(len(m.BaseKeyspace)))
   604  		i--
   605  		dAtA[i] = 0x32
   606  	}
   607  	if m.KeyspaceType != 0 {
   608  		i = encodeVarint(dAtA, i, uint64(m.KeyspaceType))
   609  		i--
   610  		dAtA[i] = 0x28
   611  	}
   612  	if len(m.ServedFroms) > 0 {
   613  		for iNdEx := len(m.ServedFroms) - 1; iNdEx >= 0; iNdEx-- {
   614  			size, err := m.ServedFroms[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   615  			if err != nil {
   616  				return 0, err
   617  			}
   618  			i -= size
   619  			i = encodeVarint(dAtA, i, uint64(size))
   620  			i--
   621  			dAtA[i] = 0x22
   622  		}
   623  	}
   624  	if m.ShardingColumnType != 0 {
   625  		i = encodeVarint(dAtA, i, uint64(m.ShardingColumnType))
   626  		i--
   627  		dAtA[i] = 0x10
   628  	}
   629  	if len(m.ShardingColumnName) > 0 {
   630  		i -= len(m.ShardingColumnName)
   631  		copy(dAtA[i:], m.ShardingColumnName)
   632  		i = encodeVarint(dAtA, i, uint64(len(m.ShardingColumnName)))
   633  		i--
   634  		dAtA[i] = 0xa
   635  	}
   636  	return len(dAtA) - i, nil
   637  }
   638  
   639  func (m *ShardReplication_Node) MarshalVT() (dAtA []byte, err error) {
   640  	if m == nil {
   641  		return nil, nil
   642  	}
   643  	size := m.SizeVT()
   644  	dAtA = make([]byte, size)
   645  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   646  	if err != nil {
   647  		return nil, err
   648  	}
   649  	return dAtA[:n], nil
   650  }
   651  
   652  func (m *ShardReplication_Node) MarshalToVT(dAtA []byte) (int, error) {
   653  	size := m.SizeVT()
   654  	return m.MarshalToSizedBufferVT(dAtA[:size])
   655  }
   656  
   657  func (m *ShardReplication_Node) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   658  	if m == nil {
   659  		return 0, nil
   660  	}
   661  	i := len(dAtA)
   662  	_ = i
   663  	var l int
   664  	_ = l
   665  	if m.unknownFields != nil {
   666  		i -= len(m.unknownFields)
   667  		copy(dAtA[i:], m.unknownFields)
   668  	}
   669  	if m.TabletAlias != nil {
   670  		size, err := m.TabletAlias.MarshalToSizedBufferVT(dAtA[:i])
   671  		if err != nil {
   672  			return 0, err
   673  		}
   674  		i -= size
   675  		i = encodeVarint(dAtA, i, uint64(size))
   676  		i--
   677  		dAtA[i] = 0xa
   678  	}
   679  	return len(dAtA) - i, nil
   680  }
   681  
   682  func (m *ShardReplication) MarshalVT() (dAtA []byte, err error) {
   683  	if m == nil {
   684  		return nil, nil
   685  	}
   686  	size := m.SizeVT()
   687  	dAtA = make([]byte, size)
   688  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   689  	if err != nil {
   690  		return nil, err
   691  	}
   692  	return dAtA[:n], nil
   693  }
   694  
   695  func (m *ShardReplication) MarshalToVT(dAtA []byte) (int, error) {
   696  	size := m.SizeVT()
   697  	return m.MarshalToSizedBufferVT(dAtA[:size])
   698  }
   699  
   700  func (m *ShardReplication) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   701  	if m == nil {
   702  		return 0, nil
   703  	}
   704  	i := len(dAtA)
   705  	_ = i
   706  	var l int
   707  	_ = l
   708  	if m.unknownFields != nil {
   709  		i -= len(m.unknownFields)
   710  		copy(dAtA[i:], m.unknownFields)
   711  	}
   712  	if len(m.Nodes) > 0 {
   713  		for iNdEx := len(m.Nodes) - 1; iNdEx >= 0; iNdEx-- {
   714  			size, err := m.Nodes[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   715  			if err != nil {
   716  				return 0, err
   717  			}
   718  			i -= size
   719  			i = encodeVarint(dAtA, i, uint64(size))
   720  			i--
   721  			dAtA[i] = 0xa
   722  		}
   723  	}
   724  	return len(dAtA) - i, nil
   725  }
   726  
   727  func (m *ShardReference) MarshalVT() (dAtA []byte, err error) {
   728  	if m == nil {
   729  		return nil, nil
   730  	}
   731  	size := m.SizeVT()
   732  	dAtA = make([]byte, size)
   733  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   734  	if err != nil {
   735  		return nil, err
   736  	}
   737  	return dAtA[:n], nil
   738  }
   739  
   740  func (m *ShardReference) MarshalToVT(dAtA []byte) (int, error) {
   741  	size := m.SizeVT()
   742  	return m.MarshalToSizedBufferVT(dAtA[:size])
   743  }
   744  
   745  func (m *ShardReference) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   746  	if m == nil {
   747  		return 0, nil
   748  	}
   749  	i := len(dAtA)
   750  	_ = i
   751  	var l int
   752  	_ = l
   753  	if m.unknownFields != nil {
   754  		i -= len(m.unknownFields)
   755  		copy(dAtA[i:], m.unknownFields)
   756  	}
   757  	if m.KeyRange != nil {
   758  		size, err := m.KeyRange.MarshalToSizedBufferVT(dAtA[:i])
   759  		if err != nil {
   760  			return 0, err
   761  		}
   762  		i -= size
   763  		i = encodeVarint(dAtA, i, uint64(size))
   764  		i--
   765  		dAtA[i] = 0x12
   766  	}
   767  	if len(m.Name) > 0 {
   768  		i -= len(m.Name)
   769  		copy(dAtA[i:], m.Name)
   770  		i = encodeVarint(dAtA, i, uint64(len(m.Name)))
   771  		i--
   772  		dAtA[i] = 0xa
   773  	}
   774  	return len(dAtA) - i, nil
   775  }
   776  
   777  func (m *ShardTabletControl) MarshalVT() (dAtA []byte, err error) {
   778  	if m == nil {
   779  		return nil, nil
   780  	}
   781  	size := m.SizeVT()
   782  	dAtA = make([]byte, size)
   783  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   784  	if err != nil {
   785  		return nil, err
   786  	}
   787  	return dAtA[:n], nil
   788  }
   789  
   790  func (m *ShardTabletControl) MarshalToVT(dAtA []byte) (int, error) {
   791  	size := m.SizeVT()
   792  	return m.MarshalToSizedBufferVT(dAtA[:size])
   793  }
   794  
   795  func (m *ShardTabletControl) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   796  	if m == nil {
   797  		return 0, nil
   798  	}
   799  	i := len(dAtA)
   800  	_ = i
   801  	var l int
   802  	_ = l
   803  	if m.unknownFields != nil {
   804  		i -= len(m.unknownFields)
   805  		copy(dAtA[i:], m.unknownFields)
   806  	}
   807  	if m.QueryServiceDisabled {
   808  		i--
   809  		if m.QueryServiceDisabled {
   810  			dAtA[i] = 1
   811  		} else {
   812  			dAtA[i] = 0
   813  		}
   814  		i--
   815  		dAtA[i] = 0x18
   816  	}
   817  	if m.KeyRange != nil {
   818  		size, err := m.KeyRange.MarshalToSizedBufferVT(dAtA[:i])
   819  		if err != nil {
   820  			return 0, err
   821  		}
   822  		i -= size
   823  		i = encodeVarint(dAtA, i, uint64(size))
   824  		i--
   825  		dAtA[i] = 0x12
   826  	}
   827  	if len(m.Name) > 0 {
   828  		i -= len(m.Name)
   829  		copy(dAtA[i:], m.Name)
   830  		i = encodeVarint(dAtA, i, uint64(len(m.Name)))
   831  		i--
   832  		dAtA[i] = 0xa
   833  	}
   834  	return len(dAtA) - i, nil
   835  }
   836  
   837  func (m *SrvKeyspace_KeyspacePartition) MarshalVT() (dAtA []byte, err error) {
   838  	if m == nil {
   839  		return nil, nil
   840  	}
   841  	size := m.SizeVT()
   842  	dAtA = make([]byte, size)
   843  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   844  	if err != nil {
   845  		return nil, err
   846  	}
   847  	return dAtA[:n], nil
   848  }
   849  
   850  func (m *SrvKeyspace_KeyspacePartition) MarshalToVT(dAtA []byte) (int, error) {
   851  	size := m.SizeVT()
   852  	return m.MarshalToSizedBufferVT(dAtA[:size])
   853  }
   854  
   855  func (m *SrvKeyspace_KeyspacePartition) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   856  	if m == nil {
   857  		return 0, nil
   858  	}
   859  	i := len(dAtA)
   860  	_ = i
   861  	var l int
   862  	_ = l
   863  	if m.unknownFields != nil {
   864  		i -= len(m.unknownFields)
   865  		copy(dAtA[i:], m.unknownFields)
   866  	}
   867  	if len(m.ShardTabletControls) > 0 {
   868  		for iNdEx := len(m.ShardTabletControls) - 1; iNdEx >= 0; iNdEx-- {
   869  			size, err := m.ShardTabletControls[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   870  			if err != nil {
   871  				return 0, err
   872  			}
   873  			i -= size
   874  			i = encodeVarint(dAtA, i, uint64(size))
   875  			i--
   876  			dAtA[i] = 0x1a
   877  		}
   878  	}
   879  	if len(m.ShardReferences) > 0 {
   880  		for iNdEx := len(m.ShardReferences) - 1; iNdEx >= 0; iNdEx-- {
   881  			size, err := m.ShardReferences[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   882  			if err != nil {
   883  				return 0, err
   884  			}
   885  			i -= size
   886  			i = encodeVarint(dAtA, i, uint64(size))
   887  			i--
   888  			dAtA[i] = 0x12
   889  		}
   890  	}
   891  	if m.ServedType != 0 {
   892  		i = encodeVarint(dAtA, i, uint64(m.ServedType))
   893  		i--
   894  		dAtA[i] = 0x8
   895  	}
   896  	return len(dAtA) - i, nil
   897  }
   898  
   899  func (m *SrvKeyspace_ServedFrom) MarshalVT() (dAtA []byte, err error) {
   900  	if m == nil {
   901  		return nil, nil
   902  	}
   903  	size := m.SizeVT()
   904  	dAtA = make([]byte, size)
   905  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   906  	if err != nil {
   907  		return nil, err
   908  	}
   909  	return dAtA[:n], nil
   910  }
   911  
   912  func (m *SrvKeyspace_ServedFrom) MarshalToVT(dAtA []byte) (int, error) {
   913  	size := m.SizeVT()
   914  	return m.MarshalToSizedBufferVT(dAtA[:size])
   915  }
   916  
   917  func (m *SrvKeyspace_ServedFrom) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   918  	if m == nil {
   919  		return 0, nil
   920  	}
   921  	i := len(dAtA)
   922  	_ = i
   923  	var l int
   924  	_ = l
   925  	if m.unknownFields != nil {
   926  		i -= len(m.unknownFields)
   927  		copy(dAtA[i:], m.unknownFields)
   928  	}
   929  	if len(m.Keyspace) > 0 {
   930  		i -= len(m.Keyspace)
   931  		copy(dAtA[i:], m.Keyspace)
   932  		i = encodeVarint(dAtA, i, uint64(len(m.Keyspace)))
   933  		i--
   934  		dAtA[i] = 0x12
   935  	}
   936  	if m.TabletType != 0 {
   937  		i = encodeVarint(dAtA, i, uint64(m.TabletType))
   938  		i--
   939  		dAtA[i] = 0x8
   940  	}
   941  	return len(dAtA) - i, nil
   942  }
   943  
   944  func (m *SrvKeyspace) MarshalVT() (dAtA []byte, err error) {
   945  	if m == nil {
   946  		return nil, nil
   947  	}
   948  	size := m.SizeVT()
   949  	dAtA = make([]byte, size)
   950  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   951  	if err != nil {
   952  		return nil, err
   953  	}
   954  	return dAtA[:n], nil
   955  }
   956  
   957  func (m *SrvKeyspace) MarshalToVT(dAtA []byte) (int, error) {
   958  	size := m.SizeVT()
   959  	return m.MarshalToSizedBufferVT(dAtA[:size])
   960  }
   961  
   962  func (m *SrvKeyspace) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   963  	if m == nil {
   964  		return 0, nil
   965  	}
   966  	i := len(dAtA)
   967  	_ = i
   968  	var l int
   969  	_ = l
   970  	if m.unknownFields != nil {
   971  		i -= len(m.unknownFields)
   972  		copy(dAtA[i:], m.unknownFields)
   973  	}
   974  	if len(m.ServedFrom) > 0 {
   975  		for iNdEx := len(m.ServedFrom) - 1; iNdEx >= 0; iNdEx-- {
   976  			size, err := m.ServedFrom[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   977  			if err != nil {
   978  				return 0, err
   979  			}
   980  			i -= size
   981  			i = encodeVarint(dAtA, i, uint64(size))
   982  			i--
   983  			dAtA[i] = 0x22
   984  		}
   985  	}
   986  	if m.ShardingColumnType != 0 {
   987  		i = encodeVarint(dAtA, i, uint64(m.ShardingColumnType))
   988  		i--
   989  		dAtA[i] = 0x18
   990  	}
   991  	if len(m.ShardingColumnName) > 0 {
   992  		i -= len(m.ShardingColumnName)
   993  		copy(dAtA[i:], m.ShardingColumnName)
   994  		i = encodeVarint(dAtA, i, uint64(len(m.ShardingColumnName)))
   995  		i--
   996  		dAtA[i] = 0x12
   997  	}
   998  	if len(m.Partitions) > 0 {
   999  		for iNdEx := len(m.Partitions) - 1; iNdEx >= 0; iNdEx-- {
  1000  			size, err := m.Partitions[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
  1001  			if err != nil {
  1002  				return 0, err
  1003  			}
  1004  			i -= size
  1005  			i = encodeVarint(dAtA, i, uint64(size))
  1006  			i--
  1007  			dAtA[i] = 0xa
  1008  		}
  1009  	}
  1010  	return len(dAtA) - i, nil
  1011  }
  1012  
  1013  func (m *CellInfo) MarshalVT() (dAtA []byte, err error) {
  1014  	if m == nil {
  1015  		return nil, nil
  1016  	}
  1017  	size := m.SizeVT()
  1018  	dAtA = make([]byte, size)
  1019  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1020  	if err != nil {
  1021  		return nil, err
  1022  	}
  1023  	return dAtA[:n], nil
  1024  }
  1025  
  1026  func (m *CellInfo) MarshalToVT(dAtA []byte) (int, error) {
  1027  	size := m.SizeVT()
  1028  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1029  }
  1030  
  1031  func (m *CellInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1032  	if m == nil {
  1033  		return 0, nil
  1034  	}
  1035  	i := len(dAtA)
  1036  	_ = i
  1037  	var l int
  1038  	_ = l
  1039  	if m.unknownFields != nil {
  1040  		i -= len(m.unknownFields)
  1041  		copy(dAtA[i:], m.unknownFields)
  1042  	}
  1043  	if len(m.Root) > 0 {
  1044  		i -= len(m.Root)
  1045  		copy(dAtA[i:], m.Root)
  1046  		i = encodeVarint(dAtA, i, uint64(len(m.Root)))
  1047  		i--
  1048  		dAtA[i] = 0x12
  1049  	}
  1050  	if len(m.ServerAddress) > 0 {
  1051  		i -= len(m.ServerAddress)
  1052  		copy(dAtA[i:], m.ServerAddress)
  1053  		i = encodeVarint(dAtA, i, uint64(len(m.ServerAddress)))
  1054  		i--
  1055  		dAtA[i] = 0xa
  1056  	}
  1057  	return len(dAtA) - i, nil
  1058  }
  1059  
  1060  func (m *CellsAlias) MarshalVT() (dAtA []byte, err error) {
  1061  	if m == nil {
  1062  		return nil, nil
  1063  	}
  1064  	size := m.SizeVT()
  1065  	dAtA = make([]byte, size)
  1066  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1067  	if err != nil {
  1068  		return nil, err
  1069  	}
  1070  	return dAtA[:n], nil
  1071  }
  1072  
  1073  func (m *CellsAlias) MarshalToVT(dAtA []byte) (int, error) {
  1074  	size := m.SizeVT()
  1075  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1076  }
  1077  
  1078  func (m *CellsAlias) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1079  	if m == nil {
  1080  		return 0, nil
  1081  	}
  1082  	i := len(dAtA)
  1083  	_ = i
  1084  	var l int
  1085  	_ = l
  1086  	if m.unknownFields != nil {
  1087  		i -= len(m.unknownFields)
  1088  		copy(dAtA[i:], m.unknownFields)
  1089  	}
  1090  	if len(m.Cells) > 0 {
  1091  		for iNdEx := len(m.Cells) - 1; iNdEx >= 0; iNdEx-- {
  1092  			i -= len(m.Cells[iNdEx])
  1093  			copy(dAtA[i:], m.Cells[iNdEx])
  1094  			i = encodeVarint(dAtA, i, uint64(len(m.Cells[iNdEx])))
  1095  			i--
  1096  			dAtA[i] = 0x12
  1097  		}
  1098  	}
  1099  	return len(dAtA) - i, nil
  1100  }
  1101  
  1102  func (m *TopoConfig) MarshalVT() (dAtA []byte, err error) {
  1103  	if m == nil {
  1104  		return nil, nil
  1105  	}
  1106  	size := m.SizeVT()
  1107  	dAtA = make([]byte, size)
  1108  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1109  	if err != nil {
  1110  		return nil, err
  1111  	}
  1112  	return dAtA[:n], nil
  1113  }
  1114  
  1115  func (m *TopoConfig) MarshalToVT(dAtA []byte) (int, error) {
  1116  	size := m.SizeVT()
  1117  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1118  }
  1119  
  1120  func (m *TopoConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1121  	if m == nil {
  1122  		return 0, nil
  1123  	}
  1124  	i := len(dAtA)
  1125  	_ = i
  1126  	var l int
  1127  	_ = l
  1128  	if m.unknownFields != nil {
  1129  		i -= len(m.unknownFields)
  1130  		copy(dAtA[i:], m.unknownFields)
  1131  	}
  1132  	if len(m.Root) > 0 {
  1133  		i -= len(m.Root)
  1134  		copy(dAtA[i:], m.Root)
  1135  		i = encodeVarint(dAtA, i, uint64(len(m.Root)))
  1136  		i--
  1137  		dAtA[i] = 0x1a
  1138  	}
  1139  	if len(m.Server) > 0 {
  1140  		i -= len(m.Server)
  1141  		copy(dAtA[i:], m.Server)
  1142  		i = encodeVarint(dAtA, i, uint64(len(m.Server)))
  1143  		i--
  1144  		dAtA[i] = 0x12
  1145  	}
  1146  	if len(m.TopoType) > 0 {
  1147  		i -= len(m.TopoType)
  1148  		copy(dAtA[i:], m.TopoType)
  1149  		i = encodeVarint(dAtA, i, uint64(len(m.TopoType)))
  1150  		i--
  1151  		dAtA[i] = 0xa
  1152  	}
  1153  	return len(dAtA) - i, nil
  1154  }
  1155  
  1156  func (m *ExternalVitessCluster) MarshalVT() (dAtA []byte, err error) {
  1157  	if m == nil {
  1158  		return nil, nil
  1159  	}
  1160  	size := m.SizeVT()
  1161  	dAtA = make([]byte, size)
  1162  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1163  	if err != nil {
  1164  		return nil, err
  1165  	}
  1166  	return dAtA[:n], nil
  1167  }
  1168  
  1169  func (m *ExternalVitessCluster) MarshalToVT(dAtA []byte) (int, error) {
  1170  	size := m.SizeVT()
  1171  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1172  }
  1173  
  1174  func (m *ExternalVitessCluster) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1175  	if m == nil {
  1176  		return 0, nil
  1177  	}
  1178  	i := len(dAtA)
  1179  	_ = i
  1180  	var l int
  1181  	_ = l
  1182  	if m.unknownFields != nil {
  1183  		i -= len(m.unknownFields)
  1184  		copy(dAtA[i:], m.unknownFields)
  1185  	}
  1186  	if m.TopoConfig != nil {
  1187  		size, err := m.TopoConfig.MarshalToSizedBufferVT(dAtA[:i])
  1188  		if err != nil {
  1189  			return 0, err
  1190  		}
  1191  		i -= size
  1192  		i = encodeVarint(dAtA, i, uint64(size))
  1193  		i--
  1194  		dAtA[i] = 0xa
  1195  	}
  1196  	return len(dAtA) - i, nil
  1197  }
  1198  
  1199  func (m *ExternalClusters) MarshalVT() (dAtA []byte, err error) {
  1200  	if m == nil {
  1201  		return nil, nil
  1202  	}
  1203  	size := m.SizeVT()
  1204  	dAtA = make([]byte, size)
  1205  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1206  	if err != nil {
  1207  		return nil, err
  1208  	}
  1209  	return dAtA[:n], nil
  1210  }
  1211  
  1212  func (m *ExternalClusters) MarshalToVT(dAtA []byte) (int, error) {
  1213  	size := m.SizeVT()
  1214  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1215  }
  1216  
  1217  func (m *ExternalClusters) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1218  	if m == nil {
  1219  		return 0, nil
  1220  	}
  1221  	i := len(dAtA)
  1222  	_ = i
  1223  	var l int
  1224  	_ = l
  1225  	if m.unknownFields != nil {
  1226  		i -= len(m.unknownFields)
  1227  		copy(dAtA[i:], m.unknownFields)
  1228  	}
  1229  	if len(m.VitessCluster) > 0 {
  1230  		for iNdEx := len(m.VitessCluster) - 1; iNdEx >= 0; iNdEx-- {
  1231  			size, err := m.VitessCluster[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
  1232  			if err != nil {
  1233  				return 0, err
  1234  			}
  1235  			i -= size
  1236  			i = encodeVarint(dAtA, i, uint64(size))
  1237  			i--
  1238  			dAtA[i] = 0xa
  1239  		}
  1240  	}
  1241  	return len(dAtA) - i, nil
  1242  }
  1243  
  1244  func encodeVarint(dAtA []byte, offset int, v uint64) int {
  1245  	offset -= sov(v)
  1246  	base := offset
  1247  	for v >= 1<<7 {
  1248  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1249  		v >>= 7
  1250  		offset++
  1251  	}
  1252  	dAtA[offset] = uint8(v)
  1253  	return base
  1254  }
  1255  func (m *KeyRange) SizeVT() (n int) {
  1256  	if m == nil {
  1257  		return 0
  1258  	}
  1259  	var l int
  1260  	_ = l
  1261  	l = len(m.Start)
  1262  	if l > 0 {
  1263  		n += 1 + l + sov(uint64(l))
  1264  	}
  1265  	l = len(m.End)
  1266  	if l > 0 {
  1267  		n += 1 + l + sov(uint64(l))
  1268  	}
  1269  	if m.unknownFields != nil {
  1270  		n += len(m.unknownFields)
  1271  	}
  1272  	return n
  1273  }
  1274  
  1275  func (m *TabletAlias) SizeVT() (n int) {
  1276  	if m == nil {
  1277  		return 0
  1278  	}
  1279  	var l int
  1280  	_ = l
  1281  	l = len(m.Cell)
  1282  	if l > 0 {
  1283  		n += 1 + l + sov(uint64(l))
  1284  	}
  1285  	if m.Uid != 0 {
  1286  		n += 1 + sov(uint64(m.Uid))
  1287  	}
  1288  	if m.unknownFields != nil {
  1289  		n += len(m.unknownFields)
  1290  	}
  1291  	return n
  1292  }
  1293  
  1294  func (m *Tablet) SizeVT() (n int) {
  1295  	if m == nil {
  1296  		return 0
  1297  	}
  1298  	var l int
  1299  	_ = l
  1300  	if m.Alias != nil {
  1301  		l = m.Alias.SizeVT()
  1302  		n += 1 + l + sov(uint64(l))
  1303  	}
  1304  	l = len(m.Hostname)
  1305  	if l > 0 {
  1306  		n += 1 + l + sov(uint64(l))
  1307  	}
  1308  	if len(m.PortMap) > 0 {
  1309  		for k, v := range m.PortMap {
  1310  			_ = k
  1311  			_ = v
  1312  			mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v))
  1313  			n += mapEntrySize + 1 + sov(uint64(mapEntrySize))
  1314  		}
  1315  	}
  1316  	l = len(m.Keyspace)
  1317  	if l > 0 {
  1318  		n += 1 + l + sov(uint64(l))
  1319  	}
  1320  	l = len(m.Shard)
  1321  	if l > 0 {
  1322  		n += 1 + l + sov(uint64(l))
  1323  	}
  1324  	if m.KeyRange != nil {
  1325  		l = m.KeyRange.SizeVT()
  1326  		n += 1 + l + sov(uint64(l))
  1327  	}
  1328  	if m.Type != 0 {
  1329  		n += 1 + sov(uint64(m.Type))
  1330  	}
  1331  	l = len(m.DbNameOverride)
  1332  	if l > 0 {
  1333  		n += 1 + l + sov(uint64(l))
  1334  	}
  1335  	if len(m.Tags) > 0 {
  1336  		for k, v := range m.Tags {
  1337  			_ = k
  1338  			_ = v
  1339  			mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + len(v) + sov(uint64(len(v)))
  1340  			n += mapEntrySize + 1 + sov(uint64(mapEntrySize))
  1341  		}
  1342  	}
  1343  	l = len(m.MysqlHostname)
  1344  	if l > 0 {
  1345  		n += 1 + l + sov(uint64(l))
  1346  	}
  1347  	if m.MysqlPort != 0 {
  1348  		n += 1 + sov(uint64(m.MysqlPort))
  1349  	}
  1350  	if m.PrimaryTermStartTime != nil {
  1351  		l = m.PrimaryTermStartTime.SizeVT()
  1352  		n += 1 + l + sov(uint64(l))
  1353  	}
  1354  	l = len(m.DbServerVersion)
  1355  	if l > 0 {
  1356  		n += 1 + l + sov(uint64(l))
  1357  	}
  1358  	if m.DefaultConnCollation != 0 {
  1359  		n += 2 + sov(uint64(m.DefaultConnCollation))
  1360  	}
  1361  	if m.unknownFields != nil {
  1362  		n += len(m.unknownFields)
  1363  	}
  1364  	return n
  1365  }
  1366  
  1367  func (m *Shard_SourceShard) SizeVT() (n int) {
  1368  	if m == nil {
  1369  		return 0
  1370  	}
  1371  	var l int
  1372  	_ = l
  1373  	if m.Uid != 0 {
  1374  		n += 1 + sov(uint64(m.Uid))
  1375  	}
  1376  	l = len(m.Keyspace)
  1377  	if l > 0 {
  1378  		n += 1 + l + sov(uint64(l))
  1379  	}
  1380  	l = len(m.Shard)
  1381  	if l > 0 {
  1382  		n += 1 + l + sov(uint64(l))
  1383  	}
  1384  	if m.KeyRange != nil {
  1385  		l = m.KeyRange.SizeVT()
  1386  		n += 1 + l + sov(uint64(l))
  1387  	}
  1388  	if len(m.Tables) > 0 {
  1389  		for _, s := range m.Tables {
  1390  			l = len(s)
  1391  			n += 1 + l + sov(uint64(l))
  1392  		}
  1393  	}
  1394  	if m.unknownFields != nil {
  1395  		n += len(m.unknownFields)
  1396  	}
  1397  	return n
  1398  }
  1399  
  1400  func (m *Shard_TabletControl) SizeVT() (n int) {
  1401  	if m == nil {
  1402  		return 0
  1403  	}
  1404  	var l int
  1405  	_ = l
  1406  	if m.TabletType != 0 {
  1407  		n += 1 + sov(uint64(m.TabletType))
  1408  	}
  1409  	if len(m.Cells) > 0 {
  1410  		for _, s := range m.Cells {
  1411  			l = len(s)
  1412  			n += 1 + l + sov(uint64(l))
  1413  		}
  1414  	}
  1415  	if len(m.DeniedTables) > 0 {
  1416  		for _, s := range m.DeniedTables {
  1417  			l = len(s)
  1418  			n += 1 + l + sov(uint64(l))
  1419  		}
  1420  	}
  1421  	if m.Frozen {
  1422  		n += 2
  1423  	}
  1424  	if m.unknownFields != nil {
  1425  		n += len(m.unknownFields)
  1426  	}
  1427  	return n
  1428  }
  1429  
  1430  func (m *Shard) SizeVT() (n int) {
  1431  	if m == nil {
  1432  		return 0
  1433  	}
  1434  	var l int
  1435  	_ = l
  1436  	if m.PrimaryAlias != nil {
  1437  		l = m.PrimaryAlias.SizeVT()
  1438  		n += 1 + l + sov(uint64(l))
  1439  	}
  1440  	if m.KeyRange != nil {
  1441  		l = m.KeyRange.SizeVT()
  1442  		n += 1 + l + sov(uint64(l))
  1443  	}
  1444  	if len(m.SourceShards) > 0 {
  1445  		for _, e := range m.SourceShards {
  1446  			l = e.SizeVT()
  1447  			n += 1 + l + sov(uint64(l))
  1448  		}
  1449  	}
  1450  	if len(m.TabletControls) > 0 {
  1451  		for _, e := range m.TabletControls {
  1452  			l = e.SizeVT()
  1453  			n += 1 + l + sov(uint64(l))
  1454  		}
  1455  	}
  1456  	if m.IsPrimaryServing {
  1457  		n += 2
  1458  	}
  1459  	if m.PrimaryTermStartTime != nil {
  1460  		l = m.PrimaryTermStartTime.SizeVT()
  1461  		n += 1 + l + sov(uint64(l))
  1462  	}
  1463  	if m.unknownFields != nil {
  1464  		n += len(m.unknownFields)
  1465  	}
  1466  	return n
  1467  }
  1468  
  1469  func (m *Keyspace_ServedFrom) SizeVT() (n int) {
  1470  	if m == nil {
  1471  		return 0
  1472  	}
  1473  	var l int
  1474  	_ = l
  1475  	if m.TabletType != 0 {
  1476  		n += 1 + sov(uint64(m.TabletType))
  1477  	}
  1478  	if len(m.Cells) > 0 {
  1479  		for _, s := range m.Cells {
  1480  			l = len(s)
  1481  			n += 1 + l + sov(uint64(l))
  1482  		}
  1483  	}
  1484  	l = len(m.Keyspace)
  1485  	if l > 0 {
  1486  		n += 1 + l + sov(uint64(l))
  1487  	}
  1488  	if m.unknownFields != nil {
  1489  		n += len(m.unknownFields)
  1490  	}
  1491  	return n
  1492  }
  1493  
  1494  func (m *Keyspace) SizeVT() (n int) {
  1495  	if m == nil {
  1496  		return 0
  1497  	}
  1498  	var l int
  1499  	_ = l
  1500  	l = len(m.ShardingColumnName)
  1501  	if l > 0 {
  1502  		n += 1 + l + sov(uint64(l))
  1503  	}
  1504  	if m.ShardingColumnType != 0 {
  1505  		n += 1 + sov(uint64(m.ShardingColumnType))
  1506  	}
  1507  	if len(m.ServedFroms) > 0 {
  1508  		for _, e := range m.ServedFroms {
  1509  			l = e.SizeVT()
  1510  			n += 1 + l + sov(uint64(l))
  1511  		}
  1512  	}
  1513  	if m.KeyspaceType != 0 {
  1514  		n += 1 + sov(uint64(m.KeyspaceType))
  1515  	}
  1516  	l = len(m.BaseKeyspace)
  1517  	if l > 0 {
  1518  		n += 1 + l + sov(uint64(l))
  1519  	}
  1520  	if m.SnapshotTime != nil {
  1521  		l = m.SnapshotTime.SizeVT()
  1522  		n += 1 + l + sov(uint64(l))
  1523  	}
  1524  	if m.unknownFields != nil {
  1525  		n += len(m.unknownFields)
  1526  	}
  1527  	return n
  1528  }
  1529  
  1530  func (m *ShardReplication_Node) SizeVT() (n int) {
  1531  	if m == nil {
  1532  		return 0
  1533  	}
  1534  	var l int
  1535  	_ = l
  1536  	if m.TabletAlias != nil {
  1537  		l = m.TabletAlias.SizeVT()
  1538  		n += 1 + l + sov(uint64(l))
  1539  	}
  1540  	if m.unknownFields != nil {
  1541  		n += len(m.unknownFields)
  1542  	}
  1543  	return n
  1544  }
  1545  
  1546  func (m *ShardReplication) SizeVT() (n int) {
  1547  	if m == nil {
  1548  		return 0
  1549  	}
  1550  	var l int
  1551  	_ = l
  1552  	if len(m.Nodes) > 0 {
  1553  		for _, e := range m.Nodes {
  1554  			l = e.SizeVT()
  1555  			n += 1 + l + sov(uint64(l))
  1556  		}
  1557  	}
  1558  	if m.unknownFields != nil {
  1559  		n += len(m.unknownFields)
  1560  	}
  1561  	return n
  1562  }
  1563  
  1564  func (m *ShardReference) SizeVT() (n int) {
  1565  	if m == nil {
  1566  		return 0
  1567  	}
  1568  	var l int
  1569  	_ = l
  1570  	l = len(m.Name)
  1571  	if l > 0 {
  1572  		n += 1 + l + sov(uint64(l))
  1573  	}
  1574  	if m.KeyRange != nil {
  1575  		l = m.KeyRange.SizeVT()
  1576  		n += 1 + l + sov(uint64(l))
  1577  	}
  1578  	if m.unknownFields != nil {
  1579  		n += len(m.unknownFields)
  1580  	}
  1581  	return n
  1582  }
  1583  
  1584  func (m *ShardTabletControl) SizeVT() (n int) {
  1585  	if m == nil {
  1586  		return 0
  1587  	}
  1588  	var l int
  1589  	_ = l
  1590  	l = len(m.Name)
  1591  	if l > 0 {
  1592  		n += 1 + l + sov(uint64(l))
  1593  	}
  1594  	if m.KeyRange != nil {
  1595  		l = m.KeyRange.SizeVT()
  1596  		n += 1 + l + sov(uint64(l))
  1597  	}
  1598  	if m.QueryServiceDisabled {
  1599  		n += 2
  1600  	}
  1601  	if m.unknownFields != nil {
  1602  		n += len(m.unknownFields)
  1603  	}
  1604  	return n
  1605  }
  1606  
  1607  func (m *SrvKeyspace_KeyspacePartition) SizeVT() (n int) {
  1608  	if m == nil {
  1609  		return 0
  1610  	}
  1611  	var l int
  1612  	_ = l
  1613  	if m.ServedType != 0 {
  1614  		n += 1 + sov(uint64(m.ServedType))
  1615  	}
  1616  	if len(m.ShardReferences) > 0 {
  1617  		for _, e := range m.ShardReferences {
  1618  			l = e.SizeVT()
  1619  			n += 1 + l + sov(uint64(l))
  1620  		}
  1621  	}
  1622  	if len(m.ShardTabletControls) > 0 {
  1623  		for _, e := range m.ShardTabletControls {
  1624  			l = e.SizeVT()
  1625  			n += 1 + l + sov(uint64(l))
  1626  		}
  1627  	}
  1628  	if m.unknownFields != nil {
  1629  		n += len(m.unknownFields)
  1630  	}
  1631  	return n
  1632  }
  1633  
  1634  func (m *SrvKeyspace_ServedFrom) SizeVT() (n int) {
  1635  	if m == nil {
  1636  		return 0
  1637  	}
  1638  	var l int
  1639  	_ = l
  1640  	if m.TabletType != 0 {
  1641  		n += 1 + sov(uint64(m.TabletType))
  1642  	}
  1643  	l = len(m.Keyspace)
  1644  	if l > 0 {
  1645  		n += 1 + l + sov(uint64(l))
  1646  	}
  1647  	if m.unknownFields != nil {
  1648  		n += len(m.unknownFields)
  1649  	}
  1650  	return n
  1651  }
  1652  
  1653  func (m *SrvKeyspace) SizeVT() (n int) {
  1654  	if m == nil {
  1655  		return 0
  1656  	}
  1657  	var l int
  1658  	_ = l
  1659  	if len(m.Partitions) > 0 {
  1660  		for _, e := range m.Partitions {
  1661  			l = e.SizeVT()
  1662  			n += 1 + l + sov(uint64(l))
  1663  		}
  1664  	}
  1665  	l = len(m.ShardingColumnName)
  1666  	if l > 0 {
  1667  		n += 1 + l + sov(uint64(l))
  1668  	}
  1669  	if m.ShardingColumnType != 0 {
  1670  		n += 1 + sov(uint64(m.ShardingColumnType))
  1671  	}
  1672  	if len(m.ServedFrom) > 0 {
  1673  		for _, e := range m.ServedFrom {
  1674  			l = e.SizeVT()
  1675  			n += 1 + l + sov(uint64(l))
  1676  		}
  1677  	}
  1678  	if m.unknownFields != nil {
  1679  		n += len(m.unknownFields)
  1680  	}
  1681  	return n
  1682  }
  1683  
  1684  func (m *CellInfo) SizeVT() (n int) {
  1685  	if m == nil {
  1686  		return 0
  1687  	}
  1688  	var l int
  1689  	_ = l
  1690  	l = len(m.ServerAddress)
  1691  	if l > 0 {
  1692  		n += 1 + l + sov(uint64(l))
  1693  	}
  1694  	l = len(m.Root)
  1695  	if l > 0 {
  1696  		n += 1 + l + sov(uint64(l))
  1697  	}
  1698  	if m.unknownFields != nil {
  1699  		n += len(m.unknownFields)
  1700  	}
  1701  	return n
  1702  }
  1703  
  1704  func (m *CellsAlias) SizeVT() (n int) {
  1705  	if m == nil {
  1706  		return 0
  1707  	}
  1708  	var l int
  1709  	_ = l
  1710  	if len(m.Cells) > 0 {
  1711  		for _, s := range m.Cells {
  1712  			l = len(s)
  1713  			n += 1 + l + sov(uint64(l))
  1714  		}
  1715  	}
  1716  	if m.unknownFields != nil {
  1717  		n += len(m.unknownFields)
  1718  	}
  1719  	return n
  1720  }
  1721  
  1722  func (m *TopoConfig) SizeVT() (n int) {
  1723  	if m == nil {
  1724  		return 0
  1725  	}
  1726  	var l int
  1727  	_ = l
  1728  	l = len(m.TopoType)
  1729  	if l > 0 {
  1730  		n += 1 + l + sov(uint64(l))
  1731  	}
  1732  	l = len(m.Server)
  1733  	if l > 0 {
  1734  		n += 1 + l + sov(uint64(l))
  1735  	}
  1736  	l = len(m.Root)
  1737  	if l > 0 {
  1738  		n += 1 + l + sov(uint64(l))
  1739  	}
  1740  	if m.unknownFields != nil {
  1741  		n += len(m.unknownFields)
  1742  	}
  1743  	return n
  1744  }
  1745  
  1746  func (m *ExternalVitessCluster) SizeVT() (n int) {
  1747  	if m == nil {
  1748  		return 0
  1749  	}
  1750  	var l int
  1751  	_ = l
  1752  	if m.TopoConfig != nil {
  1753  		l = m.TopoConfig.SizeVT()
  1754  		n += 1 + l + sov(uint64(l))
  1755  	}
  1756  	if m.unknownFields != nil {
  1757  		n += len(m.unknownFields)
  1758  	}
  1759  	return n
  1760  }
  1761  
  1762  func (m *ExternalClusters) SizeVT() (n int) {
  1763  	if m == nil {
  1764  		return 0
  1765  	}
  1766  	var l int
  1767  	_ = l
  1768  	if len(m.VitessCluster) > 0 {
  1769  		for _, e := range m.VitessCluster {
  1770  			l = e.SizeVT()
  1771  			n += 1 + l + sov(uint64(l))
  1772  		}
  1773  	}
  1774  	if m.unknownFields != nil {
  1775  		n += len(m.unknownFields)
  1776  	}
  1777  	return n
  1778  }
  1779  
  1780  func sov(x uint64) (n int) {
  1781  	return (bits.Len64(x|1) + 6) / 7
  1782  }
  1783  func soz(x uint64) (n int) {
  1784  	return sov(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1785  }
  1786  func (m *KeyRange) UnmarshalVT(dAtA []byte) error {
  1787  	l := len(dAtA)
  1788  	iNdEx := 0
  1789  	for iNdEx < l {
  1790  		preIndex := iNdEx
  1791  		var wire uint64
  1792  		for shift := uint(0); ; shift += 7 {
  1793  			if shift >= 64 {
  1794  				return ErrIntOverflow
  1795  			}
  1796  			if iNdEx >= l {
  1797  				return io.ErrUnexpectedEOF
  1798  			}
  1799  			b := dAtA[iNdEx]
  1800  			iNdEx++
  1801  			wire |= uint64(b&0x7F) << shift
  1802  			if b < 0x80 {
  1803  				break
  1804  			}
  1805  		}
  1806  		fieldNum := int32(wire >> 3)
  1807  		wireType := int(wire & 0x7)
  1808  		if wireType == 4 {
  1809  			return fmt.Errorf("proto: KeyRange: wiretype end group for non-group")
  1810  		}
  1811  		if fieldNum <= 0 {
  1812  			return fmt.Errorf("proto: KeyRange: illegal tag %d (wire type %d)", fieldNum, wire)
  1813  		}
  1814  		switch fieldNum {
  1815  		case 1:
  1816  			if wireType != 2 {
  1817  				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
  1818  			}
  1819  			var byteLen int
  1820  			for shift := uint(0); ; shift += 7 {
  1821  				if shift >= 64 {
  1822  					return ErrIntOverflow
  1823  				}
  1824  				if iNdEx >= l {
  1825  					return io.ErrUnexpectedEOF
  1826  				}
  1827  				b := dAtA[iNdEx]
  1828  				iNdEx++
  1829  				byteLen |= int(b&0x7F) << shift
  1830  				if b < 0x80 {
  1831  					break
  1832  				}
  1833  			}
  1834  			if byteLen < 0 {
  1835  				return ErrInvalidLength
  1836  			}
  1837  			postIndex := iNdEx + byteLen
  1838  			if postIndex < 0 {
  1839  				return ErrInvalidLength
  1840  			}
  1841  			if postIndex > l {
  1842  				return io.ErrUnexpectedEOF
  1843  			}
  1844  			m.Start = append(m.Start[:0], dAtA[iNdEx:postIndex]...)
  1845  			if m.Start == nil {
  1846  				m.Start = []byte{}
  1847  			}
  1848  			iNdEx = postIndex
  1849  		case 2:
  1850  			if wireType != 2 {
  1851  				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
  1852  			}
  1853  			var byteLen int
  1854  			for shift := uint(0); ; shift += 7 {
  1855  				if shift >= 64 {
  1856  					return ErrIntOverflow
  1857  				}
  1858  				if iNdEx >= l {
  1859  					return io.ErrUnexpectedEOF
  1860  				}
  1861  				b := dAtA[iNdEx]
  1862  				iNdEx++
  1863  				byteLen |= int(b&0x7F) << shift
  1864  				if b < 0x80 {
  1865  					break
  1866  				}
  1867  			}
  1868  			if byteLen < 0 {
  1869  				return ErrInvalidLength
  1870  			}
  1871  			postIndex := iNdEx + byteLen
  1872  			if postIndex < 0 {
  1873  				return ErrInvalidLength
  1874  			}
  1875  			if postIndex > l {
  1876  				return io.ErrUnexpectedEOF
  1877  			}
  1878  			m.End = append(m.End[:0], dAtA[iNdEx:postIndex]...)
  1879  			if m.End == nil {
  1880  				m.End = []byte{}
  1881  			}
  1882  			iNdEx = postIndex
  1883  		default:
  1884  			iNdEx = preIndex
  1885  			skippy, err := skip(dAtA[iNdEx:])
  1886  			if err != nil {
  1887  				return err
  1888  			}
  1889  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1890  				return ErrInvalidLength
  1891  			}
  1892  			if (iNdEx + skippy) > l {
  1893  				return io.ErrUnexpectedEOF
  1894  			}
  1895  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  1896  			iNdEx += skippy
  1897  		}
  1898  	}
  1899  
  1900  	if iNdEx > l {
  1901  		return io.ErrUnexpectedEOF
  1902  	}
  1903  	return nil
  1904  }
  1905  func (m *TabletAlias) UnmarshalVT(dAtA []byte) error {
  1906  	l := len(dAtA)
  1907  	iNdEx := 0
  1908  	for iNdEx < l {
  1909  		preIndex := iNdEx
  1910  		var wire uint64
  1911  		for shift := uint(0); ; shift += 7 {
  1912  			if shift >= 64 {
  1913  				return ErrIntOverflow
  1914  			}
  1915  			if iNdEx >= l {
  1916  				return io.ErrUnexpectedEOF
  1917  			}
  1918  			b := dAtA[iNdEx]
  1919  			iNdEx++
  1920  			wire |= uint64(b&0x7F) << shift
  1921  			if b < 0x80 {
  1922  				break
  1923  			}
  1924  		}
  1925  		fieldNum := int32(wire >> 3)
  1926  		wireType := int(wire & 0x7)
  1927  		if wireType == 4 {
  1928  			return fmt.Errorf("proto: TabletAlias: wiretype end group for non-group")
  1929  		}
  1930  		if fieldNum <= 0 {
  1931  			return fmt.Errorf("proto: TabletAlias: illegal tag %d (wire type %d)", fieldNum, wire)
  1932  		}
  1933  		switch fieldNum {
  1934  		case 1:
  1935  			if wireType != 2 {
  1936  				return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType)
  1937  			}
  1938  			var stringLen uint64
  1939  			for shift := uint(0); ; shift += 7 {
  1940  				if shift >= 64 {
  1941  					return ErrIntOverflow
  1942  				}
  1943  				if iNdEx >= l {
  1944  					return io.ErrUnexpectedEOF
  1945  				}
  1946  				b := dAtA[iNdEx]
  1947  				iNdEx++
  1948  				stringLen |= uint64(b&0x7F) << shift
  1949  				if b < 0x80 {
  1950  					break
  1951  				}
  1952  			}
  1953  			intStringLen := int(stringLen)
  1954  			if intStringLen < 0 {
  1955  				return ErrInvalidLength
  1956  			}
  1957  			postIndex := iNdEx + intStringLen
  1958  			if postIndex < 0 {
  1959  				return ErrInvalidLength
  1960  			}
  1961  			if postIndex > l {
  1962  				return io.ErrUnexpectedEOF
  1963  			}
  1964  			m.Cell = string(dAtA[iNdEx:postIndex])
  1965  			iNdEx = postIndex
  1966  		case 2:
  1967  			if wireType != 0 {
  1968  				return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  1969  			}
  1970  			m.Uid = 0
  1971  			for shift := uint(0); ; shift += 7 {
  1972  				if shift >= 64 {
  1973  					return ErrIntOverflow
  1974  				}
  1975  				if iNdEx >= l {
  1976  					return io.ErrUnexpectedEOF
  1977  				}
  1978  				b := dAtA[iNdEx]
  1979  				iNdEx++
  1980  				m.Uid |= uint32(b&0x7F) << shift
  1981  				if b < 0x80 {
  1982  					break
  1983  				}
  1984  			}
  1985  		default:
  1986  			iNdEx = preIndex
  1987  			skippy, err := skip(dAtA[iNdEx:])
  1988  			if err != nil {
  1989  				return err
  1990  			}
  1991  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1992  				return ErrInvalidLength
  1993  			}
  1994  			if (iNdEx + skippy) > l {
  1995  				return io.ErrUnexpectedEOF
  1996  			}
  1997  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  1998  			iNdEx += skippy
  1999  		}
  2000  	}
  2001  
  2002  	if iNdEx > l {
  2003  		return io.ErrUnexpectedEOF
  2004  	}
  2005  	return nil
  2006  }
  2007  func (m *Tablet) UnmarshalVT(dAtA []byte) error {
  2008  	l := len(dAtA)
  2009  	iNdEx := 0
  2010  	for iNdEx < l {
  2011  		preIndex := iNdEx
  2012  		var wire uint64
  2013  		for shift := uint(0); ; shift += 7 {
  2014  			if shift >= 64 {
  2015  				return ErrIntOverflow
  2016  			}
  2017  			if iNdEx >= l {
  2018  				return io.ErrUnexpectedEOF
  2019  			}
  2020  			b := dAtA[iNdEx]
  2021  			iNdEx++
  2022  			wire |= uint64(b&0x7F) << shift
  2023  			if b < 0x80 {
  2024  				break
  2025  			}
  2026  		}
  2027  		fieldNum := int32(wire >> 3)
  2028  		wireType := int(wire & 0x7)
  2029  		if wireType == 4 {
  2030  			return fmt.Errorf("proto: Tablet: wiretype end group for non-group")
  2031  		}
  2032  		if fieldNum <= 0 {
  2033  			return fmt.Errorf("proto: Tablet: illegal tag %d (wire type %d)", fieldNum, wire)
  2034  		}
  2035  		switch fieldNum {
  2036  		case 1:
  2037  			if wireType != 2 {
  2038  				return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType)
  2039  			}
  2040  			var msglen int
  2041  			for shift := uint(0); ; shift += 7 {
  2042  				if shift >= 64 {
  2043  					return ErrIntOverflow
  2044  				}
  2045  				if iNdEx >= l {
  2046  					return io.ErrUnexpectedEOF
  2047  				}
  2048  				b := dAtA[iNdEx]
  2049  				iNdEx++
  2050  				msglen |= int(b&0x7F) << shift
  2051  				if b < 0x80 {
  2052  					break
  2053  				}
  2054  			}
  2055  			if msglen < 0 {
  2056  				return ErrInvalidLength
  2057  			}
  2058  			postIndex := iNdEx + msglen
  2059  			if postIndex < 0 {
  2060  				return ErrInvalidLength
  2061  			}
  2062  			if postIndex > l {
  2063  				return io.ErrUnexpectedEOF
  2064  			}
  2065  			if m.Alias == nil {
  2066  				m.Alias = &TabletAlias{}
  2067  			}
  2068  			if err := m.Alias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  2069  				return err
  2070  			}
  2071  			iNdEx = postIndex
  2072  		case 2:
  2073  			if wireType != 2 {
  2074  				return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType)
  2075  			}
  2076  			var stringLen uint64
  2077  			for shift := uint(0); ; shift += 7 {
  2078  				if shift >= 64 {
  2079  					return ErrIntOverflow
  2080  				}
  2081  				if iNdEx >= l {
  2082  					return io.ErrUnexpectedEOF
  2083  				}
  2084  				b := dAtA[iNdEx]
  2085  				iNdEx++
  2086  				stringLen |= uint64(b&0x7F) << shift
  2087  				if b < 0x80 {
  2088  					break
  2089  				}
  2090  			}
  2091  			intStringLen := int(stringLen)
  2092  			if intStringLen < 0 {
  2093  				return ErrInvalidLength
  2094  			}
  2095  			postIndex := iNdEx + intStringLen
  2096  			if postIndex < 0 {
  2097  				return ErrInvalidLength
  2098  			}
  2099  			if postIndex > l {
  2100  				return io.ErrUnexpectedEOF
  2101  			}
  2102  			m.Hostname = string(dAtA[iNdEx:postIndex])
  2103  			iNdEx = postIndex
  2104  		case 4:
  2105  			if wireType != 2 {
  2106  				return fmt.Errorf("proto: wrong wireType = %d for field PortMap", wireType)
  2107  			}
  2108  			var msglen int
  2109  			for shift := uint(0); ; shift += 7 {
  2110  				if shift >= 64 {
  2111  					return ErrIntOverflow
  2112  				}
  2113  				if iNdEx >= l {
  2114  					return io.ErrUnexpectedEOF
  2115  				}
  2116  				b := dAtA[iNdEx]
  2117  				iNdEx++
  2118  				msglen |= int(b&0x7F) << shift
  2119  				if b < 0x80 {
  2120  					break
  2121  				}
  2122  			}
  2123  			if msglen < 0 {
  2124  				return ErrInvalidLength
  2125  			}
  2126  			postIndex := iNdEx + msglen
  2127  			if postIndex < 0 {
  2128  				return ErrInvalidLength
  2129  			}
  2130  			if postIndex > l {
  2131  				return io.ErrUnexpectedEOF
  2132  			}
  2133  			if m.PortMap == nil {
  2134  				m.PortMap = make(map[string]int32)
  2135  			}
  2136  			var mapkey string
  2137  			var mapvalue int32
  2138  			for iNdEx < postIndex {
  2139  				entryPreIndex := iNdEx
  2140  				var wire uint64
  2141  				for shift := uint(0); ; shift += 7 {
  2142  					if shift >= 64 {
  2143  						return ErrIntOverflow
  2144  					}
  2145  					if iNdEx >= l {
  2146  						return io.ErrUnexpectedEOF
  2147  					}
  2148  					b := dAtA[iNdEx]
  2149  					iNdEx++
  2150  					wire |= uint64(b&0x7F) << shift
  2151  					if b < 0x80 {
  2152  						break
  2153  					}
  2154  				}
  2155  				fieldNum := int32(wire >> 3)
  2156  				if fieldNum == 1 {
  2157  					var stringLenmapkey uint64
  2158  					for shift := uint(0); ; shift += 7 {
  2159  						if shift >= 64 {
  2160  							return ErrIntOverflow
  2161  						}
  2162  						if iNdEx >= l {
  2163  							return io.ErrUnexpectedEOF
  2164  						}
  2165  						b := dAtA[iNdEx]
  2166  						iNdEx++
  2167  						stringLenmapkey |= uint64(b&0x7F) << shift
  2168  						if b < 0x80 {
  2169  							break
  2170  						}
  2171  					}
  2172  					intStringLenmapkey := int(stringLenmapkey)
  2173  					if intStringLenmapkey < 0 {
  2174  						return ErrInvalidLength
  2175  					}
  2176  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  2177  					if postStringIndexmapkey < 0 {
  2178  						return ErrInvalidLength
  2179  					}
  2180  					if postStringIndexmapkey > l {
  2181  						return io.ErrUnexpectedEOF
  2182  					}
  2183  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2184  					iNdEx = postStringIndexmapkey
  2185  				} else if fieldNum == 2 {
  2186  					for shift := uint(0); ; shift += 7 {
  2187  						if shift >= 64 {
  2188  							return ErrIntOverflow
  2189  						}
  2190  						if iNdEx >= l {
  2191  							return io.ErrUnexpectedEOF
  2192  						}
  2193  						b := dAtA[iNdEx]
  2194  						iNdEx++
  2195  						mapvalue |= int32(b&0x7F) << shift
  2196  						if b < 0x80 {
  2197  							break
  2198  						}
  2199  					}
  2200  				} else {
  2201  					iNdEx = entryPreIndex
  2202  					skippy, err := skip(dAtA[iNdEx:])
  2203  					if err != nil {
  2204  						return err
  2205  					}
  2206  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  2207  						return ErrInvalidLength
  2208  					}
  2209  					if (iNdEx + skippy) > postIndex {
  2210  						return io.ErrUnexpectedEOF
  2211  					}
  2212  					iNdEx += skippy
  2213  				}
  2214  			}
  2215  			m.PortMap[mapkey] = mapvalue
  2216  			iNdEx = postIndex
  2217  		case 5:
  2218  			if wireType != 2 {
  2219  				return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType)
  2220  			}
  2221  			var stringLen uint64
  2222  			for shift := uint(0); ; shift += 7 {
  2223  				if shift >= 64 {
  2224  					return ErrIntOverflow
  2225  				}
  2226  				if iNdEx >= l {
  2227  					return io.ErrUnexpectedEOF
  2228  				}
  2229  				b := dAtA[iNdEx]
  2230  				iNdEx++
  2231  				stringLen |= uint64(b&0x7F) << shift
  2232  				if b < 0x80 {
  2233  					break
  2234  				}
  2235  			}
  2236  			intStringLen := int(stringLen)
  2237  			if intStringLen < 0 {
  2238  				return ErrInvalidLength
  2239  			}
  2240  			postIndex := iNdEx + intStringLen
  2241  			if postIndex < 0 {
  2242  				return ErrInvalidLength
  2243  			}
  2244  			if postIndex > l {
  2245  				return io.ErrUnexpectedEOF
  2246  			}
  2247  			m.Keyspace = string(dAtA[iNdEx:postIndex])
  2248  			iNdEx = postIndex
  2249  		case 6:
  2250  			if wireType != 2 {
  2251  				return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType)
  2252  			}
  2253  			var stringLen uint64
  2254  			for shift := uint(0); ; shift += 7 {
  2255  				if shift >= 64 {
  2256  					return ErrIntOverflow
  2257  				}
  2258  				if iNdEx >= l {
  2259  					return io.ErrUnexpectedEOF
  2260  				}
  2261  				b := dAtA[iNdEx]
  2262  				iNdEx++
  2263  				stringLen |= uint64(b&0x7F) << shift
  2264  				if b < 0x80 {
  2265  					break
  2266  				}
  2267  			}
  2268  			intStringLen := int(stringLen)
  2269  			if intStringLen < 0 {
  2270  				return ErrInvalidLength
  2271  			}
  2272  			postIndex := iNdEx + intStringLen
  2273  			if postIndex < 0 {
  2274  				return ErrInvalidLength
  2275  			}
  2276  			if postIndex > l {
  2277  				return io.ErrUnexpectedEOF
  2278  			}
  2279  			m.Shard = string(dAtA[iNdEx:postIndex])
  2280  			iNdEx = postIndex
  2281  		case 7:
  2282  			if wireType != 2 {
  2283  				return fmt.Errorf("proto: wrong wireType = %d for field KeyRange", wireType)
  2284  			}
  2285  			var msglen int
  2286  			for shift := uint(0); ; shift += 7 {
  2287  				if shift >= 64 {
  2288  					return ErrIntOverflow
  2289  				}
  2290  				if iNdEx >= l {
  2291  					return io.ErrUnexpectedEOF
  2292  				}
  2293  				b := dAtA[iNdEx]
  2294  				iNdEx++
  2295  				msglen |= int(b&0x7F) << shift
  2296  				if b < 0x80 {
  2297  					break
  2298  				}
  2299  			}
  2300  			if msglen < 0 {
  2301  				return ErrInvalidLength
  2302  			}
  2303  			postIndex := iNdEx + msglen
  2304  			if postIndex < 0 {
  2305  				return ErrInvalidLength
  2306  			}
  2307  			if postIndex > l {
  2308  				return io.ErrUnexpectedEOF
  2309  			}
  2310  			if m.KeyRange == nil {
  2311  				m.KeyRange = &KeyRange{}
  2312  			}
  2313  			if err := m.KeyRange.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  2314  				return err
  2315  			}
  2316  			iNdEx = postIndex
  2317  		case 8:
  2318  			if wireType != 0 {
  2319  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2320  			}
  2321  			m.Type = 0
  2322  			for shift := uint(0); ; shift += 7 {
  2323  				if shift >= 64 {
  2324  					return ErrIntOverflow
  2325  				}
  2326  				if iNdEx >= l {
  2327  					return io.ErrUnexpectedEOF
  2328  				}
  2329  				b := dAtA[iNdEx]
  2330  				iNdEx++
  2331  				m.Type |= TabletType(b&0x7F) << shift
  2332  				if b < 0x80 {
  2333  					break
  2334  				}
  2335  			}
  2336  		case 9:
  2337  			if wireType != 2 {
  2338  				return fmt.Errorf("proto: wrong wireType = %d for field DbNameOverride", wireType)
  2339  			}
  2340  			var stringLen uint64
  2341  			for shift := uint(0); ; shift += 7 {
  2342  				if shift >= 64 {
  2343  					return ErrIntOverflow
  2344  				}
  2345  				if iNdEx >= l {
  2346  					return io.ErrUnexpectedEOF
  2347  				}
  2348  				b := dAtA[iNdEx]
  2349  				iNdEx++
  2350  				stringLen |= uint64(b&0x7F) << shift
  2351  				if b < 0x80 {
  2352  					break
  2353  				}
  2354  			}
  2355  			intStringLen := int(stringLen)
  2356  			if intStringLen < 0 {
  2357  				return ErrInvalidLength
  2358  			}
  2359  			postIndex := iNdEx + intStringLen
  2360  			if postIndex < 0 {
  2361  				return ErrInvalidLength
  2362  			}
  2363  			if postIndex > l {
  2364  				return io.ErrUnexpectedEOF
  2365  			}
  2366  			m.DbNameOverride = string(dAtA[iNdEx:postIndex])
  2367  			iNdEx = postIndex
  2368  		case 10:
  2369  			if wireType != 2 {
  2370  				return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  2371  			}
  2372  			var msglen int
  2373  			for shift := uint(0); ; shift += 7 {
  2374  				if shift >= 64 {
  2375  					return ErrIntOverflow
  2376  				}
  2377  				if iNdEx >= l {
  2378  					return io.ErrUnexpectedEOF
  2379  				}
  2380  				b := dAtA[iNdEx]
  2381  				iNdEx++
  2382  				msglen |= int(b&0x7F) << shift
  2383  				if b < 0x80 {
  2384  					break
  2385  				}
  2386  			}
  2387  			if msglen < 0 {
  2388  				return ErrInvalidLength
  2389  			}
  2390  			postIndex := iNdEx + msglen
  2391  			if postIndex < 0 {
  2392  				return ErrInvalidLength
  2393  			}
  2394  			if postIndex > l {
  2395  				return io.ErrUnexpectedEOF
  2396  			}
  2397  			if m.Tags == nil {
  2398  				m.Tags = make(map[string]string)
  2399  			}
  2400  			var mapkey string
  2401  			var mapvalue string
  2402  			for iNdEx < postIndex {
  2403  				entryPreIndex := iNdEx
  2404  				var wire uint64
  2405  				for shift := uint(0); ; shift += 7 {
  2406  					if shift >= 64 {
  2407  						return ErrIntOverflow
  2408  					}
  2409  					if iNdEx >= l {
  2410  						return io.ErrUnexpectedEOF
  2411  					}
  2412  					b := dAtA[iNdEx]
  2413  					iNdEx++
  2414  					wire |= uint64(b&0x7F) << shift
  2415  					if b < 0x80 {
  2416  						break
  2417  					}
  2418  				}
  2419  				fieldNum := int32(wire >> 3)
  2420  				if fieldNum == 1 {
  2421  					var stringLenmapkey uint64
  2422  					for shift := uint(0); ; shift += 7 {
  2423  						if shift >= 64 {
  2424  							return ErrIntOverflow
  2425  						}
  2426  						if iNdEx >= l {
  2427  							return io.ErrUnexpectedEOF
  2428  						}
  2429  						b := dAtA[iNdEx]
  2430  						iNdEx++
  2431  						stringLenmapkey |= uint64(b&0x7F) << shift
  2432  						if b < 0x80 {
  2433  							break
  2434  						}
  2435  					}
  2436  					intStringLenmapkey := int(stringLenmapkey)
  2437  					if intStringLenmapkey < 0 {
  2438  						return ErrInvalidLength
  2439  					}
  2440  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  2441  					if postStringIndexmapkey < 0 {
  2442  						return ErrInvalidLength
  2443  					}
  2444  					if postStringIndexmapkey > l {
  2445  						return io.ErrUnexpectedEOF
  2446  					}
  2447  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2448  					iNdEx = postStringIndexmapkey
  2449  				} else if fieldNum == 2 {
  2450  					var stringLenmapvalue uint64
  2451  					for shift := uint(0); ; shift += 7 {
  2452  						if shift >= 64 {
  2453  							return ErrIntOverflow
  2454  						}
  2455  						if iNdEx >= l {
  2456  							return io.ErrUnexpectedEOF
  2457  						}
  2458  						b := dAtA[iNdEx]
  2459  						iNdEx++
  2460  						stringLenmapvalue |= uint64(b&0x7F) << shift
  2461  						if b < 0x80 {
  2462  							break
  2463  						}
  2464  					}
  2465  					intStringLenmapvalue := int(stringLenmapvalue)
  2466  					if intStringLenmapvalue < 0 {
  2467  						return ErrInvalidLength
  2468  					}
  2469  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  2470  					if postStringIndexmapvalue < 0 {
  2471  						return ErrInvalidLength
  2472  					}
  2473  					if postStringIndexmapvalue > l {
  2474  						return io.ErrUnexpectedEOF
  2475  					}
  2476  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  2477  					iNdEx = postStringIndexmapvalue
  2478  				} else {
  2479  					iNdEx = entryPreIndex
  2480  					skippy, err := skip(dAtA[iNdEx:])
  2481  					if err != nil {
  2482  						return err
  2483  					}
  2484  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  2485  						return ErrInvalidLength
  2486  					}
  2487  					if (iNdEx + skippy) > postIndex {
  2488  						return io.ErrUnexpectedEOF
  2489  					}
  2490  					iNdEx += skippy
  2491  				}
  2492  			}
  2493  			m.Tags[mapkey] = mapvalue
  2494  			iNdEx = postIndex
  2495  		case 12:
  2496  			if wireType != 2 {
  2497  				return fmt.Errorf("proto: wrong wireType = %d for field MysqlHostname", wireType)
  2498  			}
  2499  			var stringLen uint64
  2500  			for shift := uint(0); ; shift += 7 {
  2501  				if shift >= 64 {
  2502  					return ErrIntOverflow
  2503  				}
  2504  				if iNdEx >= l {
  2505  					return io.ErrUnexpectedEOF
  2506  				}
  2507  				b := dAtA[iNdEx]
  2508  				iNdEx++
  2509  				stringLen |= uint64(b&0x7F) << shift
  2510  				if b < 0x80 {
  2511  					break
  2512  				}
  2513  			}
  2514  			intStringLen := int(stringLen)
  2515  			if intStringLen < 0 {
  2516  				return ErrInvalidLength
  2517  			}
  2518  			postIndex := iNdEx + intStringLen
  2519  			if postIndex < 0 {
  2520  				return ErrInvalidLength
  2521  			}
  2522  			if postIndex > l {
  2523  				return io.ErrUnexpectedEOF
  2524  			}
  2525  			m.MysqlHostname = string(dAtA[iNdEx:postIndex])
  2526  			iNdEx = postIndex
  2527  		case 13:
  2528  			if wireType != 0 {
  2529  				return fmt.Errorf("proto: wrong wireType = %d for field MysqlPort", wireType)
  2530  			}
  2531  			m.MysqlPort = 0
  2532  			for shift := uint(0); ; shift += 7 {
  2533  				if shift >= 64 {
  2534  					return ErrIntOverflow
  2535  				}
  2536  				if iNdEx >= l {
  2537  					return io.ErrUnexpectedEOF
  2538  				}
  2539  				b := dAtA[iNdEx]
  2540  				iNdEx++
  2541  				m.MysqlPort |= int32(b&0x7F) << shift
  2542  				if b < 0x80 {
  2543  					break
  2544  				}
  2545  			}
  2546  		case 14:
  2547  			if wireType != 2 {
  2548  				return fmt.Errorf("proto: wrong wireType = %d for field PrimaryTermStartTime", wireType)
  2549  			}
  2550  			var msglen int
  2551  			for shift := uint(0); ; shift += 7 {
  2552  				if shift >= 64 {
  2553  					return ErrIntOverflow
  2554  				}
  2555  				if iNdEx >= l {
  2556  					return io.ErrUnexpectedEOF
  2557  				}
  2558  				b := dAtA[iNdEx]
  2559  				iNdEx++
  2560  				msglen |= int(b&0x7F) << shift
  2561  				if b < 0x80 {
  2562  					break
  2563  				}
  2564  			}
  2565  			if msglen < 0 {
  2566  				return ErrInvalidLength
  2567  			}
  2568  			postIndex := iNdEx + msglen
  2569  			if postIndex < 0 {
  2570  				return ErrInvalidLength
  2571  			}
  2572  			if postIndex > l {
  2573  				return io.ErrUnexpectedEOF
  2574  			}
  2575  			if m.PrimaryTermStartTime == nil {
  2576  				m.PrimaryTermStartTime = &vttime.Time{}
  2577  			}
  2578  			if err := m.PrimaryTermStartTime.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  2579  				return err
  2580  			}
  2581  			iNdEx = postIndex
  2582  		case 15:
  2583  			if wireType != 2 {
  2584  				return fmt.Errorf("proto: wrong wireType = %d for field DbServerVersion", wireType)
  2585  			}
  2586  			var stringLen uint64
  2587  			for shift := uint(0); ; shift += 7 {
  2588  				if shift >= 64 {
  2589  					return ErrIntOverflow
  2590  				}
  2591  				if iNdEx >= l {
  2592  					return io.ErrUnexpectedEOF
  2593  				}
  2594  				b := dAtA[iNdEx]
  2595  				iNdEx++
  2596  				stringLen |= uint64(b&0x7F) << shift
  2597  				if b < 0x80 {
  2598  					break
  2599  				}
  2600  			}
  2601  			intStringLen := int(stringLen)
  2602  			if intStringLen < 0 {
  2603  				return ErrInvalidLength
  2604  			}
  2605  			postIndex := iNdEx + intStringLen
  2606  			if postIndex < 0 {
  2607  				return ErrInvalidLength
  2608  			}
  2609  			if postIndex > l {
  2610  				return io.ErrUnexpectedEOF
  2611  			}
  2612  			m.DbServerVersion = string(dAtA[iNdEx:postIndex])
  2613  			iNdEx = postIndex
  2614  		case 16:
  2615  			if wireType != 0 {
  2616  				return fmt.Errorf("proto: wrong wireType = %d for field DefaultConnCollation", wireType)
  2617  			}
  2618  			m.DefaultConnCollation = 0
  2619  			for shift := uint(0); ; shift += 7 {
  2620  				if shift >= 64 {
  2621  					return ErrIntOverflow
  2622  				}
  2623  				if iNdEx >= l {
  2624  					return io.ErrUnexpectedEOF
  2625  				}
  2626  				b := dAtA[iNdEx]
  2627  				iNdEx++
  2628  				m.DefaultConnCollation |= uint32(b&0x7F) << shift
  2629  				if b < 0x80 {
  2630  					break
  2631  				}
  2632  			}
  2633  		default:
  2634  			iNdEx = preIndex
  2635  			skippy, err := skip(dAtA[iNdEx:])
  2636  			if err != nil {
  2637  				return err
  2638  			}
  2639  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2640  				return ErrInvalidLength
  2641  			}
  2642  			if (iNdEx + skippy) > l {
  2643  				return io.ErrUnexpectedEOF
  2644  			}
  2645  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  2646  			iNdEx += skippy
  2647  		}
  2648  	}
  2649  
  2650  	if iNdEx > l {
  2651  		return io.ErrUnexpectedEOF
  2652  	}
  2653  	return nil
  2654  }
  2655  func (m *Shard_SourceShard) UnmarshalVT(dAtA []byte) error {
  2656  	l := len(dAtA)
  2657  	iNdEx := 0
  2658  	for iNdEx < l {
  2659  		preIndex := iNdEx
  2660  		var wire uint64
  2661  		for shift := uint(0); ; shift += 7 {
  2662  			if shift >= 64 {
  2663  				return ErrIntOverflow
  2664  			}
  2665  			if iNdEx >= l {
  2666  				return io.ErrUnexpectedEOF
  2667  			}
  2668  			b := dAtA[iNdEx]
  2669  			iNdEx++
  2670  			wire |= uint64(b&0x7F) << shift
  2671  			if b < 0x80 {
  2672  				break
  2673  			}
  2674  		}
  2675  		fieldNum := int32(wire >> 3)
  2676  		wireType := int(wire & 0x7)
  2677  		if wireType == 4 {
  2678  			return fmt.Errorf("proto: Shard_SourceShard: wiretype end group for non-group")
  2679  		}
  2680  		if fieldNum <= 0 {
  2681  			return fmt.Errorf("proto: Shard_SourceShard: illegal tag %d (wire type %d)", fieldNum, wire)
  2682  		}
  2683  		switch fieldNum {
  2684  		case 1:
  2685  			if wireType != 0 {
  2686  				return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  2687  			}
  2688  			m.Uid = 0
  2689  			for shift := uint(0); ; shift += 7 {
  2690  				if shift >= 64 {
  2691  					return ErrIntOverflow
  2692  				}
  2693  				if iNdEx >= l {
  2694  					return io.ErrUnexpectedEOF
  2695  				}
  2696  				b := dAtA[iNdEx]
  2697  				iNdEx++
  2698  				m.Uid |= uint32(b&0x7F) << shift
  2699  				if b < 0x80 {
  2700  					break
  2701  				}
  2702  			}
  2703  		case 2:
  2704  			if wireType != 2 {
  2705  				return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType)
  2706  			}
  2707  			var stringLen uint64
  2708  			for shift := uint(0); ; shift += 7 {
  2709  				if shift >= 64 {
  2710  					return ErrIntOverflow
  2711  				}
  2712  				if iNdEx >= l {
  2713  					return io.ErrUnexpectedEOF
  2714  				}
  2715  				b := dAtA[iNdEx]
  2716  				iNdEx++
  2717  				stringLen |= uint64(b&0x7F) << shift
  2718  				if b < 0x80 {
  2719  					break
  2720  				}
  2721  			}
  2722  			intStringLen := int(stringLen)
  2723  			if intStringLen < 0 {
  2724  				return ErrInvalidLength
  2725  			}
  2726  			postIndex := iNdEx + intStringLen
  2727  			if postIndex < 0 {
  2728  				return ErrInvalidLength
  2729  			}
  2730  			if postIndex > l {
  2731  				return io.ErrUnexpectedEOF
  2732  			}
  2733  			m.Keyspace = string(dAtA[iNdEx:postIndex])
  2734  			iNdEx = postIndex
  2735  		case 3:
  2736  			if wireType != 2 {
  2737  				return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType)
  2738  			}
  2739  			var stringLen uint64
  2740  			for shift := uint(0); ; shift += 7 {
  2741  				if shift >= 64 {
  2742  					return ErrIntOverflow
  2743  				}
  2744  				if iNdEx >= l {
  2745  					return io.ErrUnexpectedEOF
  2746  				}
  2747  				b := dAtA[iNdEx]
  2748  				iNdEx++
  2749  				stringLen |= uint64(b&0x7F) << shift
  2750  				if b < 0x80 {
  2751  					break
  2752  				}
  2753  			}
  2754  			intStringLen := int(stringLen)
  2755  			if intStringLen < 0 {
  2756  				return ErrInvalidLength
  2757  			}
  2758  			postIndex := iNdEx + intStringLen
  2759  			if postIndex < 0 {
  2760  				return ErrInvalidLength
  2761  			}
  2762  			if postIndex > l {
  2763  				return io.ErrUnexpectedEOF
  2764  			}
  2765  			m.Shard = string(dAtA[iNdEx:postIndex])
  2766  			iNdEx = postIndex
  2767  		case 4:
  2768  			if wireType != 2 {
  2769  				return fmt.Errorf("proto: wrong wireType = %d for field KeyRange", wireType)
  2770  			}
  2771  			var msglen int
  2772  			for shift := uint(0); ; shift += 7 {
  2773  				if shift >= 64 {
  2774  					return ErrIntOverflow
  2775  				}
  2776  				if iNdEx >= l {
  2777  					return io.ErrUnexpectedEOF
  2778  				}
  2779  				b := dAtA[iNdEx]
  2780  				iNdEx++
  2781  				msglen |= int(b&0x7F) << shift
  2782  				if b < 0x80 {
  2783  					break
  2784  				}
  2785  			}
  2786  			if msglen < 0 {
  2787  				return ErrInvalidLength
  2788  			}
  2789  			postIndex := iNdEx + msglen
  2790  			if postIndex < 0 {
  2791  				return ErrInvalidLength
  2792  			}
  2793  			if postIndex > l {
  2794  				return io.ErrUnexpectedEOF
  2795  			}
  2796  			if m.KeyRange == nil {
  2797  				m.KeyRange = &KeyRange{}
  2798  			}
  2799  			if err := m.KeyRange.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  2800  				return err
  2801  			}
  2802  			iNdEx = postIndex
  2803  		case 5:
  2804  			if wireType != 2 {
  2805  				return fmt.Errorf("proto: wrong wireType = %d for field Tables", wireType)
  2806  			}
  2807  			var stringLen uint64
  2808  			for shift := uint(0); ; shift += 7 {
  2809  				if shift >= 64 {
  2810  					return ErrIntOverflow
  2811  				}
  2812  				if iNdEx >= l {
  2813  					return io.ErrUnexpectedEOF
  2814  				}
  2815  				b := dAtA[iNdEx]
  2816  				iNdEx++
  2817  				stringLen |= uint64(b&0x7F) << shift
  2818  				if b < 0x80 {
  2819  					break
  2820  				}
  2821  			}
  2822  			intStringLen := int(stringLen)
  2823  			if intStringLen < 0 {
  2824  				return ErrInvalidLength
  2825  			}
  2826  			postIndex := iNdEx + intStringLen
  2827  			if postIndex < 0 {
  2828  				return ErrInvalidLength
  2829  			}
  2830  			if postIndex > l {
  2831  				return io.ErrUnexpectedEOF
  2832  			}
  2833  			m.Tables = append(m.Tables, string(dAtA[iNdEx:postIndex]))
  2834  			iNdEx = postIndex
  2835  		default:
  2836  			iNdEx = preIndex
  2837  			skippy, err := skip(dAtA[iNdEx:])
  2838  			if err != nil {
  2839  				return err
  2840  			}
  2841  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2842  				return ErrInvalidLength
  2843  			}
  2844  			if (iNdEx + skippy) > l {
  2845  				return io.ErrUnexpectedEOF
  2846  			}
  2847  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  2848  			iNdEx += skippy
  2849  		}
  2850  	}
  2851  
  2852  	if iNdEx > l {
  2853  		return io.ErrUnexpectedEOF
  2854  	}
  2855  	return nil
  2856  }
  2857  func (m *Shard_TabletControl) UnmarshalVT(dAtA []byte) error {
  2858  	l := len(dAtA)
  2859  	iNdEx := 0
  2860  	for iNdEx < l {
  2861  		preIndex := iNdEx
  2862  		var wire uint64
  2863  		for shift := uint(0); ; shift += 7 {
  2864  			if shift >= 64 {
  2865  				return ErrIntOverflow
  2866  			}
  2867  			if iNdEx >= l {
  2868  				return io.ErrUnexpectedEOF
  2869  			}
  2870  			b := dAtA[iNdEx]
  2871  			iNdEx++
  2872  			wire |= uint64(b&0x7F) << shift
  2873  			if b < 0x80 {
  2874  				break
  2875  			}
  2876  		}
  2877  		fieldNum := int32(wire >> 3)
  2878  		wireType := int(wire & 0x7)
  2879  		if wireType == 4 {
  2880  			return fmt.Errorf("proto: Shard_TabletControl: wiretype end group for non-group")
  2881  		}
  2882  		if fieldNum <= 0 {
  2883  			return fmt.Errorf("proto: Shard_TabletControl: illegal tag %d (wire type %d)", fieldNum, wire)
  2884  		}
  2885  		switch fieldNum {
  2886  		case 1:
  2887  			if wireType != 0 {
  2888  				return fmt.Errorf("proto: wrong wireType = %d for field TabletType", wireType)
  2889  			}
  2890  			m.TabletType = 0
  2891  			for shift := uint(0); ; shift += 7 {
  2892  				if shift >= 64 {
  2893  					return ErrIntOverflow
  2894  				}
  2895  				if iNdEx >= l {
  2896  					return io.ErrUnexpectedEOF
  2897  				}
  2898  				b := dAtA[iNdEx]
  2899  				iNdEx++
  2900  				m.TabletType |= TabletType(b&0x7F) << shift
  2901  				if b < 0x80 {
  2902  					break
  2903  				}
  2904  			}
  2905  		case 2:
  2906  			if wireType != 2 {
  2907  				return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType)
  2908  			}
  2909  			var stringLen uint64
  2910  			for shift := uint(0); ; shift += 7 {
  2911  				if shift >= 64 {
  2912  					return ErrIntOverflow
  2913  				}
  2914  				if iNdEx >= l {
  2915  					return io.ErrUnexpectedEOF
  2916  				}
  2917  				b := dAtA[iNdEx]
  2918  				iNdEx++
  2919  				stringLen |= uint64(b&0x7F) << shift
  2920  				if b < 0x80 {
  2921  					break
  2922  				}
  2923  			}
  2924  			intStringLen := int(stringLen)
  2925  			if intStringLen < 0 {
  2926  				return ErrInvalidLength
  2927  			}
  2928  			postIndex := iNdEx + intStringLen
  2929  			if postIndex < 0 {
  2930  				return ErrInvalidLength
  2931  			}
  2932  			if postIndex > l {
  2933  				return io.ErrUnexpectedEOF
  2934  			}
  2935  			m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex]))
  2936  			iNdEx = postIndex
  2937  		case 4:
  2938  			if wireType != 2 {
  2939  				return fmt.Errorf("proto: wrong wireType = %d for field DeniedTables", wireType)
  2940  			}
  2941  			var stringLen uint64
  2942  			for shift := uint(0); ; shift += 7 {
  2943  				if shift >= 64 {
  2944  					return ErrIntOverflow
  2945  				}
  2946  				if iNdEx >= l {
  2947  					return io.ErrUnexpectedEOF
  2948  				}
  2949  				b := dAtA[iNdEx]
  2950  				iNdEx++
  2951  				stringLen |= uint64(b&0x7F) << shift
  2952  				if b < 0x80 {
  2953  					break
  2954  				}
  2955  			}
  2956  			intStringLen := int(stringLen)
  2957  			if intStringLen < 0 {
  2958  				return ErrInvalidLength
  2959  			}
  2960  			postIndex := iNdEx + intStringLen
  2961  			if postIndex < 0 {
  2962  				return ErrInvalidLength
  2963  			}
  2964  			if postIndex > l {
  2965  				return io.ErrUnexpectedEOF
  2966  			}
  2967  			m.DeniedTables = append(m.DeniedTables, string(dAtA[iNdEx:postIndex]))
  2968  			iNdEx = postIndex
  2969  		case 5:
  2970  			if wireType != 0 {
  2971  				return fmt.Errorf("proto: wrong wireType = %d for field Frozen", wireType)
  2972  			}
  2973  			var v int
  2974  			for shift := uint(0); ; shift += 7 {
  2975  				if shift >= 64 {
  2976  					return ErrIntOverflow
  2977  				}
  2978  				if iNdEx >= l {
  2979  					return io.ErrUnexpectedEOF
  2980  				}
  2981  				b := dAtA[iNdEx]
  2982  				iNdEx++
  2983  				v |= int(b&0x7F) << shift
  2984  				if b < 0x80 {
  2985  					break
  2986  				}
  2987  			}
  2988  			m.Frozen = bool(v != 0)
  2989  		default:
  2990  			iNdEx = preIndex
  2991  			skippy, err := skip(dAtA[iNdEx:])
  2992  			if err != nil {
  2993  				return err
  2994  			}
  2995  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2996  				return ErrInvalidLength
  2997  			}
  2998  			if (iNdEx + skippy) > l {
  2999  				return io.ErrUnexpectedEOF
  3000  			}
  3001  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  3002  			iNdEx += skippy
  3003  		}
  3004  	}
  3005  
  3006  	if iNdEx > l {
  3007  		return io.ErrUnexpectedEOF
  3008  	}
  3009  	return nil
  3010  }
  3011  func (m *Shard) UnmarshalVT(dAtA []byte) error {
  3012  	l := len(dAtA)
  3013  	iNdEx := 0
  3014  	for iNdEx < l {
  3015  		preIndex := iNdEx
  3016  		var wire uint64
  3017  		for shift := uint(0); ; shift += 7 {
  3018  			if shift >= 64 {
  3019  				return ErrIntOverflow
  3020  			}
  3021  			if iNdEx >= l {
  3022  				return io.ErrUnexpectedEOF
  3023  			}
  3024  			b := dAtA[iNdEx]
  3025  			iNdEx++
  3026  			wire |= uint64(b&0x7F) << shift
  3027  			if b < 0x80 {
  3028  				break
  3029  			}
  3030  		}
  3031  		fieldNum := int32(wire >> 3)
  3032  		wireType := int(wire & 0x7)
  3033  		if wireType == 4 {
  3034  			return fmt.Errorf("proto: Shard: wiretype end group for non-group")
  3035  		}
  3036  		if fieldNum <= 0 {
  3037  			return fmt.Errorf("proto: Shard: illegal tag %d (wire type %d)", fieldNum, wire)
  3038  		}
  3039  		switch fieldNum {
  3040  		case 1:
  3041  			if wireType != 2 {
  3042  				return fmt.Errorf("proto: wrong wireType = %d for field PrimaryAlias", wireType)
  3043  			}
  3044  			var msglen int
  3045  			for shift := uint(0); ; shift += 7 {
  3046  				if shift >= 64 {
  3047  					return ErrIntOverflow
  3048  				}
  3049  				if iNdEx >= l {
  3050  					return io.ErrUnexpectedEOF
  3051  				}
  3052  				b := dAtA[iNdEx]
  3053  				iNdEx++
  3054  				msglen |= int(b&0x7F) << shift
  3055  				if b < 0x80 {
  3056  					break
  3057  				}
  3058  			}
  3059  			if msglen < 0 {
  3060  				return ErrInvalidLength
  3061  			}
  3062  			postIndex := iNdEx + msglen
  3063  			if postIndex < 0 {
  3064  				return ErrInvalidLength
  3065  			}
  3066  			if postIndex > l {
  3067  				return io.ErrUnexpectedEOF
  3068  			}
  3069  			if m.PrimaryAlias == nil {
  3070  				m.PrimaryAlias = &TabletAlias{}
  3071  			}
  3072  			if err := m.PrimaryAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  3073  				return err
  3074  			}
  3075  			iNdEx = postIndex
  3076  		case 2:
  3077  			if wireType != 2 {
  3078  				return fmt.Errorf("proto: wrong wireType = %d for field KeyRange", wireType)
  3079  			}
  3080  			var msglen int
  3081  			for shift := uint(0); ; shift += 7 {
  3082  				if shift >= 64 {
  3083  					return ErrIntOverflow
  3084  				}
  3085  				if iNdEx >= l {
  3086  					return io.ErrUnexpectedEOF
  3087  				}
  3088  				b := dAtA[iNdEx]
  3089  				iNdEx++
  3090  				msglen |= int(b&0x7F) << shift
  3091  				if b < 0x80 {
  3092  					break
  3093  				}
  3094  			}
  3095  			if msglen < 0 {
  3096  				return ErrInvalidLength
  3097  			}
  3098  			postIndex := iNdEx + msglen
  3099  			if postIndex < 0 {
  3100  				return ErrInvalidLength
  3101  			}
  3102  			if postIndex > l {
  3103  				return io.ErrUnexpectedEOF
  3104  			}
  3105  			if m.KeyRange == nil {
  3106  				m.KeyRange = &KeyRange{}
  3107  			}
  3108  			if err := m.KeyRange.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  3109  				return err
  3110  			}
  3111  			iNdEx = postIndex
  3112  		case 4:
  3113  			if wireType != 2 {
  3114  				return fmt.Errorf("proto: wrong wireType = %d for field SourceShards", wireType)
  3115  			}
  3116  			var msglen int
  3117  			for shift := uint(0); ; shift += 7 {
  3118  				if shift >= 64 {
  3119  					return ErrIntOverflow
  3120  				}
  3121  				if iNdEx >= l {
  3122  					return io.ErrUnexpectedEOF
  3123  				}
  3124  				b := dAtA[iNdEx]
  3125  				iNdEx++
  3126  				msglen |= int(b&0x7F) << shift
  3127  				if b < 0x80 {
  3128  					break
  3129  				}
  3130  			}
  3131  			if msglen < 0 {
  3132  				return ErrInvalidLength
  3133  			}
  3134  			postIndex := iNdEx + msglen
  3135  			if postIndex < 0 {
  3136  				return ErrInvalidLength
  3137  			}
  3138  			if postIndex > l {
  3139  				return io.ErrUnexpectedEOF
  3140  			}
  3141  			m.SourceShards = append(m.SourceShards, &Shard_SourceShard{})
  3142  			if err := m.SourceShards[len(m.SourceShards)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  3143  				return err
  3144  			}
  3145  			iNdEx = postIndex
  3146  		case 6:
  3147  			if wireType != 2 {
  3148  				return fmt.Errorf("proto: wrong wireType = %d for field TabletControls", wireType)
  3149  			}
  3150  			var msglen int
  3151  			for shift := uint(0); ; shift += 7 {
  3152  				if shift >= 64 {
  3153  					return ErrIntOverflow
  3154  				}
  3155  				if iNdEx >= l {
  3156  					return io.ErrUnexpectedEOF
  3157  				}
  3158  				b := dAtA[iNdEx]
  3159  				iNdEx++
  3160  				msglen |= int(b&0x7F) << shift
  3161  				if b < 0x80 {
  3162  					break
  3163  				}
  3164  			}
  3165  			if msglen < 0 {
  3166  				return ErrInvalidLength
  3167  			}
  3168  			postIndex := iNdEx + msglen
  3169  			if postIndex < 0 {
  3170  				return ErrInvalidLength
  3171  			}
  3172  			if postIndex > l {
  3173  				return io.ErrUnexpectedEOF
  3174  			}
  3175  			m.TabletControls = append(m.TabletControls, &Shard_TabletControl{})
  3176  			if err := m.TabletControls[len(m.TabletControls)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  3177  				return err
  3178  			}
  3179  			iNdEx = postIndex
  3180  		case 7:
  3181  			if wireType != 0 {
  3182  				return fmt.Errorf("proto: wrong wireType = %d for field IsPrimaryServing", wireType)
  3183  			}
  3184  			var v int
  3185  			for shift := uint(0); ; shift += 7 {
  3186  				if shift >= 64 {
  3187  					return ErrIntOverflow
  3188  				}
  3189  				if iNdEx >= l {
  3190  					return io.ErrUnexpectedEOF
  3191  				}
  3192  				b := dAtA[iNdEx]
  3193  				iNdEx++
  3194  				v |= int(b&0x7F) << shift
  3195  				if b < 0x80 {
  3196  					break
  3197  				}
  3198  			}
  3199  			m.IsPrimaryServing = bool(v != 0)
  3200  		case 8:
  3201  			if wireType != 2 {
  3202  				return fmt.Errorf("proto: wrong wireType = %d for field PrimaryTermStartTime", wireType)
  3203  			}
  3204  			var msglen int
  3205  			for shift := uint(0); ; shift += 7 {
  3206  				if shift >= 64 {
  3207  					return ErrIntOverflow
  3208  				}
  3209  				if iNdEx >= l {
  3210  					return io.ErrUnexpectedEOF
  3211  				}
  3212  				b := dAtA[iNdEx]
  3213  				iNdEx++
  3214  				msglen |= int(b&0x7F) << shift
  3215  				if b < 0x80 {
  3216  					break
  3217  				}
  3218  			}
  3219  			if msglen < 0 {
  3220  				return ErrInvalidLength
  3221  			}
  3222  			postIndex := iNdEx + msglen
  3223  			if postIndex < 0 {
  3224  				return ErrInvalidLength
  3225  			}
  3226  			if postIndex > l {
  3227  				return io.ErrUnexpectedEOF
  3228  			}
  3229  			if m.PrimaryTermStartTime == nil {
  3230  				m.PrimaryTermStartTime = &vttime.Time{}
  3231  			}
  3232  			if err := m.PrimaryTermStartTime.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  3233  				return err
  3234  			}
  3235  			iNdEx = postIndex
  3236  		default:
  3237  			iNdEx = preIndex
  3238  			skippy, err := skip(dAtA[iNdEx:])
  3239  			if err != nil {
  3240  				return err
  3241  			}
  3242  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3243  				return ErrInvalidLength
  3244  			}
  3245  			if (iNdEx + skippy) > l {
  3246  				return io.ErrUnexpectedEOF
  3247  			}
  3248  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  3249  			iNdEx += skippy
  3250  		}
  3251  	}
  3252  
  3253  	if iNdEx > l {
  3254  		return io.ErrUnexpectedEOF
  3255  	}
  3256  	return nil
  3257  }
  3258  func (m *Keyspace_ServedFrom) UnmarshalVT(dAtA []byte) error {
  3259  	l := len(dAtA)
  3260  	iNdEx := 0
  3261  	for iNdEx < l {
  3262  		preIndex := iNdEx
  3263  		var wire uint64
  3264  		for shift := uint(0); ; shift += 7 {
  3265  			if shift >= 64 {
  3266  				return ErrIntOverflow
  3267  			}
  3268  			if iNdEx >= l {
  3269  				return io.ErrUnexpectedEOF
  3270  			}
  3271  			b := dAtA[iNdEx]
  3272  			iNdEx++
  3273  			wire |= uint64(b&0x7F) << shift
  3274  			if b < 0x80 {
  3275  				break
  3276  			}
  3277  		}
  3278  		fieldNum := int32(wire >> 3)
  3279  		wireType := int(wire & 0x7)
  3280  		if wireType == 4 {
  3281  			return fmt.Errorf("proto: Keyspace_ServedFrom: wiretype end group for non-group")
  3282  		}
  3283  		if fieldNum <= 0 {
  3284  			return fmt.Errorf("proto: Keyspace_ServedFrom: illegal tag %d (wire type %d)", fieldNum, wire)
  3285  		}
  3286  		switch fieldNum {
  3287  		case 1:
  3288  			if wireType != 0 {
  3289  				return fmt.Errorf("proto: wrong wireType = %d for field TabletType", wireType)
  3290  			}
  3291  			m.TabletType = 0
  3292  			for shift := uint(0); ; shift += 7 {
  3293  				if shift >= 64 {
  3294  					return ErrIntOverflow
  3295  				}
  3296  				if iNdEx >= l {
  3297  					return io.ErrUnexpectedEOF
  3298  				}
  3299  				b := dAtA[iNdEx]
  3300  				iNdEx++
  3301  				m.TabletType |= TabletType(b&0x7F) << shift
  3302  				if b < 0x80 {
  3303  					break
  3304  				}
  3305  			}
  3306  		case 2:
  3307  			if wireType != 2 {
  3308  				return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType)
  3309  			}
  3310  			var stringLen uint64
  3311  			for shift := uint(0); ; shift += 7 {
  3312  				if shift >= 64 {
  3313  					return ErrIntOverflow
  3314  				}
  3315  				if iNdEx >= l {
  3316  					return io.ErrUnexpectedEOF
  3317  				}
  3318  				b := dAtA[iNdEx]
  3319  				iNdEx++
  3320  				stringLen |= uint64(b&0x7F) << shift
  3321  				if b < 0x80 {
  3322  					break
  3323  				}
  3324  			}
  3325  			intStringLen := int(stringLen)
  3326  			if intStringLen < 0 {
  3327  				return ErrInvalidLength
  3328  			}
  3329  			postIndex := iNdEx + intStringLen
  3330  			if postIndex < 0 {
  3331  				return ErrInvalidLength
  3332  			}
  3333  			if postIndex > l {
  3334  				return io.ErrUnexpectedEOF
  3335  			}
  3336  			m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex]))
  3337  			iNdEx = postIndex
  3338  		case 3:
  3339  			if wireType != 2 {
  3340  				return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType)
  3341  			}
  3342  			var stringLen uint64
  3343  			for shift := uint(0); ; shift += 7 {
  3344  				if shift >= 64 {
  3345  					return ErrIntOverflow
  3346  				}
  3347  				if iNdEx >= l {
  3348  					return io.ErrUnexpectedEOF
  3349  				}
  3350  				b := dAtA[iNdEx]
  3351  				iNdEx++
  3352  				stringLen |= uint64(b&0x7F) << shift
  3353  				if b < 0x80 {
  3354  					break
  3355  				}
  3356  			}
  3357  			intStringLen := int(stringLen)
  3358  			if intStringLen < 0 {
  3359  				return ErrInvalidLength
  3360  			}
  3361  			postIndex := iNdEx + intStringLen
  3362  			if postIndex < 0 {
  3363  				return ErrInvalidLength
  3364  			}
  3365  			if postIndex > l {
  3366  				return io.ErrUnexpectedEOF
  3367  			}
  3368  			m.Keyspace = string(dAtA[iNdEx:postIndex])
  3369  			iNdEx = postIndex
  3370  		default:
  3371  			iNdEx = preIndex
  3372  			skippy, err := skip(dAtA[iNdEx:])
  3373  			if err != nil {
  3374  				return err
  3375  			}
  3376  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3377  				return ErrInvalidLength
  3378  			}
  3379  			if (iNdEx + skippy) > l {
  3380  				return io.ErrUnexpectedEOF
  3381  			}
  3382  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  3383  			iNdEx += skippy
  3384  		}
  3385  	}
  3386  
  3387  	if iNdEx > l {
  3388  		return io.ErrUnexpectedEOF
  3389  	}
  3390  	return nil
  3391  }
  3392  func (m *Keyspace) UnmarshalVT(dAtA []byte) error {
  3393  	l := len(dAtA)
  3394  	iNdEx := 0
  3395  	for iNdEx < l {
  3396  		preIndex := iNdEx
  3397  		var wire uint64
  3398  		for shift := uint(0); ; shift += 7 {
  3399  			if shift >= 64 {
  3400  				return ErrIntOverflow
  3401  			}
  3402  			if iNdEx >= l {
  3403  				return io.ErrUnexpectedEOF
  3404  			}
  3405  			b := dAtA[iNdEx]
  3406  			iNdEx++
  3407  			wire |= uint64(b&0x7F) << shift
  3408  			if b < 0x80 {
  3409  				break
  3410  			}
  3411  		}
  3412  		fieldNum := int32(wire >> 3)
  3413  		wireType := int(wire & 0x7)
  3414  		if wireType == 4 {
  3415  			return fmt.Errorf("proto: Keyspace: wiretype end group for non-group")
  3416  		}
  3417  		if fieldNum <= 0 {
  3418  			return fmt.Errorf("proto: Keyspace: illegal tag %d (wire type %d)", fieldNum, wire)
  3419  		}
  3420  		switch fieldNum {
  3421  		case 1:
  3422  			if wireType != 2 {
  3423  				return fmt.Errorf("proto: wrong wireType = %d for field ShardingColumnName", wireType)
  3424  			}
  3425  			var stringLen uint64
  3426  			for shift := uint(0); ; shift += 7 {
  3427  				if shift >= 64 {
  3428  					return ErrIntOverflow
  3429  				}
  3430  				if iNdEx >= l {
  3431  					return io.ErrUnexpectedEOF
  3432  				}
  3433  				b := dAtA[iNdEx]
  3434  				iNdEx++
  3435  				stringLen |= uint64(b&0x7F) << shift
  3436  				if b < 0x80 {
  3437  					break
  3438  				}
  3439  			}
  3440  			intStringLen := int(stringLen)
  3441  			if intStringLen < 0 {
  3442  				return ErrInvalidLength
  3443  			}
  3444  			postIndex := iNdEx + intStringLen
  3445  			if postIndex < 0 {
  3446  				return ErrInvalidLength
  3447  			}
  3448  			if postIndex > l {
  3449  				return io.ErrUnexpectedEOF
  3450  			}
  3451  			m.ShardingColumnName = string(dAtA[iNdEx:postIndex])
  3452  			iNdEx = postIndex
  3453  		case 2:
  3454  			if wireType != 0 {
  3455  				return fmt.Errorf("proto: wrong wireType = %d for field ShardingColumnType", wireType)
  3456  			}
  3457  			m.ShardingColumnType = 0
  3458  			for shift := uint(0); ; shift += 7 {
  3459  				if shift >= 64 {
  3460  					return ErrIntOverflow
  3461  				}
  3462  				if iNdEx >= l {
  3463  					return io.ErrUnexpectedEOF
  3464  				}
  3465  				b := dAtA[iNdEx]
  3466  				iNdEx++
  3467  				m.ShardingColumnType |= KeyspaceIdType(b&0x7F) << shift
  3468  				if b < 0x80 {
  3469  					break
  3470  				}
  3471  			}
  3472  		case 4:
  3473  			if wireType != 2 {
  3474  				return fmt.Errorf("proto: wrong wireType = %d for field ServedFroms", wireType)
  3475  			}
  3476  			var msglen int
  3477  			for shift := uint(0); ; shift += 7 {
  3478  				if shift >= 64 {
  3479  					return ErrIntOverflow
  3480  				}
  3481  				if iNdEx >= l {
  3482  					return io.ErrUnexpectedEOF
  3483  				}
  3484  				b := dAtA[iNdEx]
  3485  				iNdEx++
  3486  				msglen |= int(b&0x7F) << shift
  3487  				if b < 0x80 {
  3488  					break
  3489  				}
  3490  			}
  3491  			if msglen < 0 {
  3492  				return ErrInvalidLength
  3493  			}
  3494  			postIndex := iNdEx + msglen
  3495  			if postIndex < 0 {
  3496  				return ErrInvalidLength
  3497  			}
  3498  			if postIndex > l {
  3499  				return io.ErrUnexpectedEOF
  3500  			}
  3501  			m.ServedFroms = append(m.ServedFroms, &Keyspace_ServedFrom{})
  3502  			if err := m.ServedFroms[len(m.ServedFroms)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  3503  				return err
  3504  			}
  3505  			iNdEx = postIndex
  3506  		case 5:
  3507  			if wireType != 0 {
  3508  				return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceType", wireType)
  3509  			}
  3510  			m.KeyspaceType = 0
  3511  			for shift := uint(0); ; shift += 7 {
  3512  				if shift >= 64 {
  3513  					return ErrIntOverflow
  3514  				}
  3515  				if iNdEx >= l {
  3516  					return io.ErrUnexpectedEOF
  3517  				}
  3518  				b := dAtA[iNdEx]
  3519  				iNdEx++
  3520  				m.KeyspaceType |= KeyspaceType(b&0x7F) << shift
  3521  				if b < 0x80 {
  3522  					break
  3523  				}
  3524  			}
  3525  		case 6:
  3526  			if wireType != 2 {
  3527  				return fmt.Errorf("proto: wrong wireType = %d for field BaseKeyspace", wireType)
  3528  			}
  3529  			var stringLen uint64
  3530  			for shift := uint(0); ; shift += 7 {
  3531  				if shift >= 64 {
  3532  					return ErrIntOverflow
  3533  				}
  3534  				if iNdEx >= l {
  3535  					return io.ErrUnexpectedEOF
  3536  				}
  3537  				b := dAtA[iNdEx]
  3538  				iNdEx++
  3539  				stringLen |= uint64(b&0x7F) << shift
  3540  				if b < 0x80 {
  3541  					break
  3542  				}
  3543  			}
  3544  			intStringLen := int(stringLen)
  3545  			if intStringLen < 0 {
  3546  				return ErrInvalidLength
  3547  			}
  3548  			postIndex := iNdEx + intStringLen
  3549  			if postIndex < 0 {
  3550  				return ErrInvalidLength
  3551  			}
  3552  			if postIndex > l {
  3553  				return io.ErrUnexpectedEOF
  3554  			}
  3555  			m.BaseKeyspace = string(dAtA[iNdEx:postIndex])
  3556  			iNdEx = postIndex
  3557  		case 7:
  3558  			if wireType != 2 {
  3559  				return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTime", wireType)
  3560  			}
  3561  			var msglen int
  3562  			for shift := uint(0); ; shift += 7 {
  3563  				if shift >= 64 {
  3564  					return ErrIntOverflow
  3565  				}
  3566  				if iNdEx >= l {
  3567  					return io.ErrUnexpectedEOF
  3568  				}
  3569  				b := dAtA[iNdEx]
  3570  				iNdEx++
  3571  				msglen |= int(b&0x7F) << shift
  3572  				if b < 0x80 {
  3573  					break
  3574  				}
  3575  			}
  3576  			if msglen < 0 {
  3577  				return ErrInvalidLength
  3578  			}
  3579  			postIndex := iNdEx + msglen
  3580  			if postIndex < 0 {
  3581  				return ErrInvalidLength
  3582  			}
  3583  			if postIndex > l {
  3584  				return io.ErrUnexpectedEOF
  3585  			}
  3586  			if m.SnapshotTime == nil {
  3587  				m.SnapshotTime = &vttime.Time{}
  3588  			}
  3589  			if err := m.SnapshotTime.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  3590  				return err
  3591  			}
  3592  			iNdEx = postIndex
  3593  		default:
  3594  			iNdEx = preIndex
  3595  			skippy, err := skip(dAtA[iNdEx:])
  3596  			if err != nil {
  3597  				return err
  3598  			}
  3599  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3600  				return ErrInvalidLength
  3601  			}
  3602  			if (iNdEx + skippy) > l {
  3603  				return io.ErrUnexpectedEOF
  3604  			}
  3605  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  3606  			iNdEx += skippy
  3607  		}
  3608  	}
  3609  
  3610  	if iNdEx > l {
  3611  		return io.ErrUnexpectedEOF
  3612  	}
  3613  	return nil
  3614  }
  3615  func (m *ShardReplication_Node) UnmarshalVT(dAtA []byte) error {
  3616  	l := len(dAtA)
  3617  	iNdEx := 0
  3618  	for iNdEx < l {
  3619  		preIndex := iNdEx
  3620  		var wire uint64
  3621  		for shift := uint(0); ; shift += 7 {
  3622  			if shift >= 64 {
  3623  				return ErrIntOverflow
  3624  			}
  3625  			if iNdEx >= l {
  3626  				return io.ErrUnexpectedEOF
  3627  			}
  3628  			b := dAtA[iNdEx]
  3629  			iNdEx++
  3630  			wire |= uint64(b&0x7F) << shift
  3631  			if b < 0x80 {
  3632  				break
  3633  			}
  3634  		}
  3635  		fieldNum := int32(wire >> 3)
  3636  		wireType := int(wire & 0x7)
  3637  		if wireType == 4 {
  3638  			return fmt.Errorf("proto: ShardReplication_Node: wiretype end group for non-group")
  3639  		}
  3640  		if fieldNum <= 0 {
  3641  			return fmt.Errorf("proto: ShardReplication_Node: illegal tag %d (wire type %d)", fieldNum, wire)
  3642  		}
  3643  		switch fieldNum {
  3644  		case 1:
  3645  			if wireType != 2 {
  3646  				return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType)
  3647  			}
  3648  			var msglen int
  3649  			for shift := uint(0); ; shift += 7 {
  3650  				if shift >= 64 {
  3651  					return ErrIntOverflow
  3652  				}
  3653  				if iNdEx >= l {
  3654  					return io.ErrUnexpectedEOF
  3655  				}
  3656  				b := dAtA[iNdEx]
  3657  				iNdEx++
  3658  				msglen |= int(b&0x7F) << shift
  3659  				if b < 0x80 {
  3660  					break
  3661  				}
  3662  			}
  3663  			if msglen < 0 {
  3664  				return ErrInvalidLength
  3665  			}
  3666  			postIndex := iNdEx + msglen
  3667  			if postIndex < 0 {
  3668  				return ErrInvalidLength
  3669  			}
  3670  			if postIndex > l {
  3671  				return io.ErrUnexpectedEOF
  3672  			}
  3673  			if m.TabletAlias == nil {
  3674  				m.TabletAlias = &TabletAlias{}
  3675  			}
  3676  			if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  3677  				return err
  3678  			}
  3679  			iNdEx = postIndex
  3680  		default:
  3681  			iNdEx = preIndex
  3682  			skippy, err := skip(dAtA[iNdEx:])
  3683  			if err != nil {
  3684  				return err
  3685  			}
  3686  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3687  				return ErrInvalidLength
  3688  			}
  3689  			if (iNdEx + skippy) > l {
  3690  				return io.ErrUnexpectedEOF
  3691  			}
  3692  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  3693  			iNdEx += skippy
  3694  		}
  3695  	}
  3696  
  3697  	if iNdEx > l {
  3698  		return io.ErrUnexpectedEOF
  3699  	}
  3700  	return nil
  3701  }
  3702  func (m *ShardReplication) UnmarshalVT(dAtA []byte) error {
  3703  	l := len(dAtA)
  3704  	iNdEx := 0
  3705  	for iNdEx < l {
  3706  		preIndex := iNdEx
  3707  		var wire uint64
  3708  		for shift := uint(0); ; shift += 7 {
  3709  			if shift >= 64 {
  3710  				return ErrIntOverflow
  3711  			}
  3712  			if iNdEx >= l {
  3713  				return io.ErrUnexpectedEOF
  3714  			}
  3715  			b := dAtA[iNdEx]
  3716  			iNdEx++
  3717  			wire |= uint64(b&0x7F) << shift
  3718  			if b < 0x80 {
  3719  				break
  3720  			}
  3721  		}
  3722  		fieldNum := int32(wire >> 3)
  3723  		wireType := int(wire & 0x7)
  3724  		if wireType == 4 {
  3725  			return fmt.Errorf("proto: ShardReplication: wiretype end group for non-group")
  3726  		}
  3727  		if fieldNum <= 0 {
  3728  			return fmt.Errorf("proto: ShardReplication: illegal tag %d (wire type %d)", fieldNum, wire)
  3729  		}
  3730  		switch fieldNum {
  3731  		case 1:
  3732  			if wireType != 2 {
  3733  				return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType)
  3734  			}
  3735  			var msglen int
  3736  			for shift := uint(0); ; shift += 7 {
  3737  				if shift >= 64 {
  3738  					return ErrIntOverflow
  3739  				}
  3740  				if iNdEx >= l {
  3741  					return io.ErrUnexpectedEOF
  3742  				}
  3743  				b := dAtA[iNdEx]
  3744  				iNdEx++
  3745  				msglen |= int(b&0x7F) << shift
  3746  				if b < 0x80 {
  3747  					break
  3748  				}
  3749  			}
  3750  			if msglen < 0 {
  3751  				return ErrInvalidLength
  3752  			}
  3753  			postIndex := iNdEx + msglen
  3754  			if postIndex < 0 {
  3755  				return ErrInvalidLength
  3756  			}
  3757  			if postIndex > l {
  3758  				return io.ErrUnexpectedEOF
  3759  			}
  3760  			m.Nodes = append(m.Nodes, &ShardReplication_Node{})
  3761  			if err := m.Nodes[len(m.Nodes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  3762  				return err
  3763  			}
  3764  			iNdEx = postIndex
  3765  		default:
  3766  			iNdEx = preIndex
  3767  			skippy, err := skip(dAtA[iNdEx:])
  3768  			if err != nil {
  3769  				return err
  3770  			}
  3771  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3772  				return ErrInvalidLength
  3773  			}
  3774  			if (iNdEx + skippy) > l {
  3775  				return io.ErrUnexpectedEOF
  3776  			}
  3777  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  3778  			iNdEx += skippy
  3779  		}
  3780  	}
  3781  
  3782  	if iNdEx > l {
  3783  		return io.ErrUnexpectedEOF
  3784  	}
  3785  	return nil
  3786  }
  3787  func (m *ShardReference) UnmarshalVT(dAtA []byte) error {
  3788  	l := len(dAtA)
  3789  	iNdEx := 0
  3790  	for iNdEx < l {
  3791  		preIndex := iNdEx
  3792  		var wire uint64
  3793  		for shift := uint(0); ; shift += 7 {
  3794  			if shift >= 64 {
  3795  				return ErrIntOverflow
  3796  			}
  3797  			if iNdEx >= l {
  3798  				return io.ErrUnexpectedEOF
  3799  			}
  3800  			b := dAtA[iNdEx]
  3801  			iNdEx++
  3802  			wire |= uint64(b&0x7F) << shift
  3803  			if b < 0x80 {
  3804  				break
  3805  			}
  3806  		}
  3807  		fieldNum := int32(wire >> 3)
  3808  		wireType := int(wire & 0x7)
  3809  		if wireType == 4 {
  3810  			return fmt.Errorf("proto: ShardReference: wiretype end group for non-group")
  3811  		}
  3812  		if fieldNum <= 0 {
  3813  			return fmt.Errorf("proto: ShardReference: illegal tag %d (wire type %d)", fieldNum, wire)
  3814  		}
  3815  		switch fieldNum {
  3816  		case 1:
  3817  			if wireType != 2 {
  3818  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3819  			}
  3820  			var stringLen uint64
  3821  			for shift := uint(0); ; shift += 7 {
  3822  				if shift >= 64 {
  3823  					return ErrIntOverflow
  3824  				}
  3825  				if iNdEx >= l {
  3826  					return io.ErrUnexpectedEOF
  3827  				}
  3828  				b := dAtA[iNdEx]
  3829  				iNdEx++
  3830  				stringLen |= uint64(b&0x7F) << shift
  3831  				if b < 0x80 {
  3832  					break
  3833  				}
  3834  			}
  3835  			intStringLen := int(stringLen)
  3836  			if intStringLen < 0 {
  3837  				return ErrInvalidLength
  3838  			}
  3839  			postIndex := iNdEx + intStringLen
  3840  			if postIndex < 0 {
  3841  				return ErrInvalidLength
  3842  			}
  3843  			if postIndex > l {
  3844  				return io.ErrUnexpectedEOF
  3845  			}
  3846  			m.Name = string(dAtA[iNdEx:postIndex])
  3847  			iNdEx = postIndex
  3848  		case 2:
  3849  			if wireType != 2 {
  3850  				return fmt.Errorf("proto: wrong wireType = %d for field KeyRange", wireType)
  3851  			}
  3852  			var msglen int
  3853  			for shift := uint(0); ; shift += 7 {
  3854  				if shift >= 64 {
  3855  					return ErrIntOverflow
  3856  				}
  3857  				if iNdEx >= l {
  3858  					return io.ErrUnexpectedEOF
  3859  				}
  3860  				b := dAtA[iNdEx]
  3861  				iNdEx++
  3862  				msglen |= int(b&0x7F) << shift
  3863  				if b < 0x80 {
  3864  					break
  3865  				}
  3866  			}
  3867  			if msglen < 0 {
  3868  				return ErrInvalidLength
  3869  			}
  3870  			postIndex := iNdEx + msglen
  3871  			if postIndex < 0 {
  3872  				return ErrInvalidLength
  3873  			}
  3874  			if postIndex > l {
  3875  				return io.ErrUnexpectedEOF
  3876  			}
  3877  			if m.KeyRange == nil {
  3878  				m.KeyRange = &KeyRange{}
  3879  			}
  3880  			if err := m.KeyRange.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  3881  				return err
  3882  			}
  3883  			iNdEx = postIndex
  3884  		default:
  3885  			iNdEx = preIndex
  3886  			skippy, err := skip(dAtA[iNdEx:])
  3887  			if err != nil {
  3888  				return err
  3889  			}
  3890  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3891  				return ErrInvalidLength
  3892  			}
  3893  			if (iNdEx + skippy) > l {
  3894  				return io.ErrUnexpectedEOF
  3895  			}
  3896  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  3897  			iNdEx += skippy
  3898  		}
  3899  	}
  3900  
  3901  	if iNdEx > l {
  3902  		return io.ErrUnexpectedEOF
  3903  	}
  3904  	return nil
  3905  }
  3906  func (m *ShardTabletControl) UnmarshalVT(dAtA []byte) error {
  3907  	l := len(dAtA)
  3908  	iNdEx := 0
  3909  	for iNdEx < l {
  3910  		preIndex := iNdEx
  3911  		var wire uint64
  3912  		for shift := uint(0); ; shift += 7 {
  3913  			if shift >= 64 {
  3914  				return ErrIntOverflow
  3915  			}
  3916  			if iNdEx >= l {
  3917  				return io.ErrUnexpectedEOF
  3918  			}
  3919  			b := dAtA[iNdEx]
  3920  			iNdEx++
  3921  			wire |= uint64(b&0x7F) << shift
  3922  			if b < 0x80 {
  3923  				break
  3924  			}
  3925  		}
  3926  		fieldNum := int32(wire >> 3)
  3927  		wireType := int(wire & 0x7)
  3928  		if wireType == 4 {
  3929  			return fmt.Errorf("proto: ShardTabletControl: wiretype end group for non-group")
  3930  		}
  3931  		if fieldNum <= 0 {
  3932  			return fmt.Errorf("proto: ShardTabletControl: illegal tag %d (wire type %d)", fieldNum, wire)
  3933  		}
  3934  		switch fieldNum {
  3935  		case 1:
  3936  			if wireType != 2 {
  3937  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3938  			}
  3939  			var stringLen uint64
  3940  			for shift := uint(0); ; shift += 7 {
  3941  				if shift >= 64 {
  3942  					return ErrIntOverflow
  3943  				}
  3944  				if iNdEx >= l {
  3945  					return io.ErrUnexpectedEOF
  3946  				}
  3947  				b := dAtA[iNdEx]
  3948  				iNdEx++
  3949  				stringLen |= uint64(b&0x7F) << shift
  3950  				if b < 0x80 {
  3951  					break
  3952  				}
  3953  			}
  3954  			intStringLen := int(stringLen)
  3955  			if intStringLen < 0 {
  3956  				return ErrInvalidLength
  3957  			}
  3958  			postIndex := iNdEx + intStringLen
  3959  			if postIndex < 0 {
  3960  				return ErrInvalidLength
  3961  			}
  3962  			if postIndex > l {
  3963  				return io.ErrUnexpectedEOF
  3964  			}
  3965  			m.Name = string(dAtA[iNdEx:postIndex])
  3966  			iNdEx = postIndex
  3967  		case 2:
  3968  			if wireType != 2 {
  3969  				return fmt.Errorf("proto: wrong wireType = %d for field KeyRange", wireType)
  3970  			}
  3971  			var msglen int
  3972  			for shift := uint(0); ; shift += 7 {
  3973  				if shift >= 64 {
  3974  					return ErrIntOverflow
  3975  				}
  3976  				if iNdEx >= l {
  3977  					return io.ErrUnexpectedEOF
  3978  				}
  3979  				b := dAtA[iNdEx]
  3980  				iNdEx++
  3981  				msglen |= int(b&0x7F) << shift
  3982  				if b < 0x80 {
  3983  					break
  3984  				}
  3985  			}
  3986  			if msglen < 0 {
  3987  				return ErrInvalidLength
  3988  			}
  3989  			postIndex := iNdEx + msglen
  3990  			if postIndex < 0 {
  3991  				return ErrInvalidLength
  3992  			}
  3993  			if postIndex > l {
  3994  				return io.ErrUnexpectedEOF
  3995  			}
  3996  			if m.KeyRange == nil {
  3997  				m.KeyRange = &KeyRange{}
  3998  			}
  3999  			if err := m.KeyRange.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  4000  				return err
  4001  			}
  4002  			iNdEx = postIndex
  4003  		case 3:
  4004  			if wireType != 0 {
  4005  				return fmt.Errorf("proto: wrong wireType = %d for field QueryServiceDisabled", wireType)
  4006  			}
  4007  			var v int
  4008  			for shift := uint(0); ; shift += 7 {
  4009  				if shift >= 64 {
  4010  					return ErrIntOverflow
  4011  				}
  4012  				if iNdEx >= l {
  4013  					return io.ErrUnexpectedEOF
  4014  				}
  4015  				b := dAtA[iNdEx]
  4016  				iNdEx++
  4017  				v |= int(b&0x7F) << shift
  4018  				if b < 0x80 {
  4019  					break
  4020  				}
  4021  			}
  4022  			m.QueryServiceDisabled = bool(v != 0)
  4023  		default:
  4024  			iNdEx = preIndex
  4025  			skippy, err := skip(dAtA[iNdEx:])
  4026  			if err != nil {
  4027  				return err
  4028  			}
  4029  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4030  				return ErrInvalidLength
  4031  			}
  4032  			if (iNdEx + skippy) > l {
  4033  				return io.ErrUnexpectedEOF
  4034  			}
  4035  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  4036  			iNdEx += skippy
  4037  		}
  4038  	}
  4039  
  4040  	if iNdEx > l {
  4041  		return io.ErrUnexpectedEOF
  4042  	}
  4043  	return nil
  4044  }
  4045  func (m *SrvKeyspace_KeyspacePartition) UnmarshalVT(dAtA []byte) error {
  4046  	l := len(dAtA)
  4047  	iNdEx := 0
  4048  	for iNdEx < l {
  4049  		preIndex := iNdEx
  4050  		var wire uint64
  4051  		for shift := uint(0); ; shift += 7 {
  4052  			if shift >= 64 {
  4053  				return ErrIntOverflow
  4054  			}
  4055  			if iNdEx >= l {
  4056  				return io.ErrUnexpectedEOF
  4057  			}
  4058  			b := dAtA[iNdEx]
  4059  			iNdEx++
  4060  			wire |= uint64(b&0x7F) << shift
  4061  			if b < 0x80 {
  4062  				break
  4063  			}
  4064  		}
  4065  		fieldNum := int32(wire >> 3)
  4066  		wireType := int(wire & 0x7)
  4067  		if wireType == 4 {
  4068  			return fmt.Errorf("proto: SrvKeyspace_KeyspacePartition: wiretype end group for non-group")
  4069  		}
  4070  		if fieldNum <= 0 {
  4071  			return fmt.Errorf("proto: SrvKeyspace_KeyspacePartition: illegal tag %d (wire type %d)", fieldNum, wire)
  4072  		}
  4073  		switch fieldNum {
  4074  		case 1:
  4075  			if wireType != 0 {
  4076  				return fmt.Errorf("proto: wrong wireType = %d for field ServedType", wireType)
  4077  			}
  4078  			m.ServedType = 0
  4079  			for shift := uint(0); ; shift += 7 {
  4080  				if shift >= 64 {
  4081  					return ErrIntOverflow
  4082  				}
  4083  				if iNdEx >= l {
  4084  					return io.ErrUnexpectedEOF
  4085  				}
  4086  				b := dAtA[iNdEx]
  4087  				iNdEx++
  4088  				m.ServedType |= TabletType(b&0x7F) << shift
  4089  				if b < 0x80 {
  4090  					break
  4091  				}
  4092  			}
  4093  		case 2:
  4094  			if wireType != 2 {
  4095  				return fmt.Errorf("proto: wrong wireType = %d for field ShardReferences", wireType)
  4096  			}
  4097  			var msglen int
  4098  			for shift := uint(0); ; shift += 7 {
  4099  				if shift >= 64 {
  4100  					return ErrIntOverflow
  4101  				}
  4102  				if iNdEx >= l {
  4103  					return io.ErrUnexpectedEOF
  4104  				}
  4105  				b := dAtA[iNdEx]
  4106  				iNdEx++
  4107  				msglen |= int(b&0x7F) << shift
  4108  				if b < 0x80 {
  4109  					break
  4110  				}
  4111  			}
  4112  			if msglen < 0 {
  4113  				return ErrInvalidLength
  4114  			}
  4115  			postIndex := iNdEx + msglen
  4116  			if postIndex < 0 {
  4117  				return ErrInvalidLength
  4118  			}
  4119  			if postIndex > l {
  4120  				return io.ErrUnexpectedEOF
  4121  			}
  4122  			m.ShardReferences = append(m.ShardReferences, &ShardReference{})
  4123  			if err := m.ShardReferences[len(m.ShardReferences)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  4124  				return err
  4125  			}
  4126  			iNdEx = postIndex
  4127  		case 3:
  4128  			if wireType != 2 {
  4129  				return fmt.Errorf("proto: wrong wireType = %d for field ShardTabletControls", wireType)
  4130  			}
  4131  			var msglen int
  4132  			for shift := uint(0); ; shift += 7 {
  4133  				if shift >= 64 {
  4134  					return ErrIntOverflow
  4135  				}
  4136  				if iNdEx >= l {
  4137  					return io.ErrUnexpectedEOF
  4138  				}
  4139  				b := dAtA[iNdEx]
  4140  				iNdEx++
  4141  				msglen |= int(b&0x7F) << shift
  4142  				if b < 0x80 {
  4143  					break
  4144  				}
  4145  			}
  4146  			if msglen < 0 {
  4147  				return ErrInvalidLength
  4148  			}
  4149  			postIndex := iNdEx + msglen
  4150  			if postIndex < 0 {
  4151  				return ErrInvalidLength
  4152  			}
  4153  			if postIndex > l {
  4154  				return io.ErrUnexpectedEOF
  4155  			}
  4156  			m.ShardTabletControls = append(m.ShardTabletControls, &ShardTabletControl{})
  4157  			if err := m.ShardTabletControls[len(m.ShardTabletControls)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  4158  				return err
  4159  			}
  4160  			iNdEx = postIndex
  4161  		default:
  4162  			iNdEx = preIndex
  4163  			skippy, err := skip(dAtA[iNdEx:])
  4164  			if err != nil {
  4165  				return err
  4166  			}
  4167  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4168  				return ErrInvalidLength
  4169  			}
  4170  			if (iNdEx + skippy) > l {
  4171  				return io.ErrUnexpectedEOF
  4172  			}
  4173  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  4174  			iNdEx += skippy
  4175  		}
  4176  	}
  4177  
  4178  	if iNdEx > l {
  4179  		return io.ErrUnexpectedEOF
  4180  	}
  4181  	return nil
  4182  }
  4183  func (m *SrvKeyspace_ServedFrom) UnmarshalVT(dAtA []byte) error {
  4184  	l := len(dAtA)
  4185  	iNdEx := 0
  4186  	for iNdEx < l {
  4187  		preIndex := iNdEx
  4188  		var wire uint64
  4189  		for shift := uint(0); ; shift += 7 {
  4190  			if shift >= 64 {
  4191  				return ErrIntOverflow
  4192  			}
  4193  			if iNdEx >= l {
  4194  				return io.ErrUnexpectedEOF
  4195  			}
  4196  			b := dAtA[iNdEx]
  4197  			iNdEx++
  4198  			wire |= uint64(b&0x7F) << shift
  4199  			if b < 0x80 {
  4200  				break
  4201  			}
  4202  		}
  4203  		fieldNum := int32(wire >> 3)
  4204  		wireType := int(wire & 0x7)
  4205  		if wireType == 4 {
  4206  			return fmt.Errorf("proto: SrvKeyspace_ServedFrom: wiretype end group for non-group")
  4207  		}
  4208  		if fieldNum <= 0 {
  4209  			return fmt.Errorf("proto: SrvKeyspace_ServedFrom: illegal tag %d (wire type %d)", fieldNum, wire)
  4210  		}
  4211  		switch fieldNum {
  4212  		case 1:
  4213  			if wireType != 0 {
  4214  				return fmt.Errorf("proto: wrong wireType = %d for field TabletType", wireType)
  4215  			}
  4216  			m.TabletType = 0
  4217  			for shift := uint(0); ; shift += 7 {
  4218  				if shift >= 64 {
  4219  					return ErrIntOverflow
  4220  				}
  4221  				if iNdEx >= l {
  4222  					return io.ErrUnexpectedEOF
  4223  				}
  4224  				b := dAtA[iNdEx]
  4225  				iNdEx++
  4226  				m.TabletType |= TabletType(b&0x7F) << shift
  4227  				if b < 0x80 {
  4228  					break
  4229  				}
  4230  			}
  4231  		case 2:
  4232  			if wireType != 2 {
  4233  				return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType)
  4234  			}
  4235  			var stringLen uint64
  4236  			for shift := uint(0); ; shift += 7 {
  4237  				if shift >= 64 {
  4238  					return ErrIntOverflow
  4239  				}
  4240  				if iNdEx >= l {
  4241  					return io.ErrUnexpectedEOF
  4242  				}
  4243  				b := dAtA[iNdEx]
  4244  				iNdEx++
  4245  				stringLen |= uint64(b&0x7F) << shift
  4246  				if b < 0x80 {
  4247  					break
  4248  				}
  4249  			}
  4250  			intStringLen := int(stringLen)
  4251  			if intStringLen < 0 {
  4252  				return ErrInvalidLength
  4253  			}
  4254  			postIndex := iNdEx + intStringLen
  4255  			if postIndex < 0 {
  4256  				return ErrInvalidLength
  4257  			}
  4258  			if postIndex > l {
  4259  				return io.ErrUnexpectedEOF
  4260  			}
  4261  			m.Keyspace = string(dAtA[iNdEx:postIndex])
  4262  			iNdEx = postIndex
  4263  		default:
  4264  			iNdEx = preIndex
  4265  			skippy, err := skip(dAtA[iNdEx:])
  4266  			if err != nil {
  4267  				return err
  4268  			}
  4269  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4270  				return ErrInvalidLength
  4271  			}
  4272  			if (iNdEx + skippy) > l {
  4273  				return io.ErrUnexpectedEOF
  4274  			}
  4275  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  4276  			iNdEx += skippy
  4277  		}
  4278  	}
  4279  
  4280  	if iNdEx > l {
  4281  		return io.ErrUnexpectedEOF
  4282  	}
  4283  	return nil
  4284  }
  4285  func (m *SrvKeyspace) UnmarshalVT(dAtA []byte) error {
  4286  	l := len(dAtA)
  4287  	iNdEx := 0
  4288  	for iNdEx < l {
  4289  		preIndex := iNdEx
  4290  		var wire uint64
  4291  		for shift := uint(0); ; shift += 7 {
  4292  			if shift >= 64 {
  4293  				return ErrIntOverflow
  4294  			}
  4295  			if iNdEx >= l {
  4296  				return io.ErrUnexpectedEOF
  4297  			}
  4298  			b := dAtA[iNdEx]
  4299  			iNdEx++
  4300  			wire |= uint64(b&0x7F) << shift
  4301  			if b < 0x80 {
  4302  				break
  4303  			}
  4304  		}
  4305  		fieldNum := int32(wire >> 3)
  4306  		wireType := int(wire & 0x7)
  4307  		if wireType == 4 {
  4308  			return fmt.Errorf("proto: SrvKeyspace: wiretype end group for non-group")
  4309  		}
  4310  		if fieldNum <= 0 {
  4311  			return fmt.Errorf("proto: SrvKeyspace: illegal tag %d (wire type %d)", fieldNum, wire)
  4312  		}
  4313  		switch fieldNum {
  4314  		case 1:
  4315  			if wireType != 2 {
  4316  				return fmt.Errorf("proto: wrong wireType = %d for field Partitions", wireType)
  4317  			}
  4318  			var msglen int
  4319  			for shift := uint(0); ; shift += 7 {
  4320  				if shift >= 64 {
  4321  					return ErrIntOverflow
  4322  				}
  4323  				if iNdEx >= l {
  4324  					return io.ErrUnexpectedEOF
  4325  				}
  4326  				b := dAtA[iNdEx]
  4327  				iNdEx++
  4328  				msglen |= int(b&0x7F) << shift
  4329  				if b < 0x80 {
  4330  					break
  4331  				}
  4332  			}
  4333  			if msglen < 0 {
  4334  				return ErrInvalidLength
  4335  			}
  4336  			postIndex := iNdEx + msglen
  4337  			if postIndex < 0 {
  4338  				return ErrInvalidLength
  4339  			}
  4340  			if postIndex > l {
  4341  				return io.ErrUnexpectedEOF
  4342  			}
  4343  			m.Partitions = append(m.Partitions, &SrvKeyspace_KeyspacePartition{})
  4344  			if err := m.Partitions[len(m.Partitions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  4345  				return err
  4346  			}
  4347  			iNdEx = postIndex
  4348  		case 2:
  4349  			if wireType != 2 {
  4350  				return fmt.Errorf("proto: wrong wireType = %d for field ShardingColumnName", wireType)
  4351  			}
  4352  			var stringLen uint64
  4353  			for shift := uint(0); ; shift += 7 {
  4354  				if shift >= 64 {
  4355  					return ErrIntOverflow
  4356  				}
  4357  				if iNdEx >= l {
  4358  					return io.ErrUnexpectedEOF
  4359  				}
  4360  				b := dAtA[iNdEx]
  4361  				iNdEx++
  4362  				stringLen |= uint64(b&0x7F) << shift
  4363  				if b < 0x80 {
  4364  					break
  4365  				}
  4366  			}
  4367  			intStringLen := int(stringLen)
  4368  			if intStringLen < 0 {
  4369  				return ErrInvalidLength
  4370  			}
  4371  			postIndex := iNdEx + intStringLen
  4372  			if postIndex < 0 {
  4373  				return ErrInvalidLength
  4374  			}
  4375  			if postIndex > l {
  4376  				return io.ErrUnexpectedEOF
  4377  			}
  4378  			m.ShardingColumnName = string(dAtA[iNdEx:postIndex])
  4379  			iNdEx = postIndex
  4380  		case 3:
  4381  			if wireType != 0 {
  4382  				return fmt.Errorf("proto: wrong wireType = %d for field ShardingColumnType", wireType)
  4383  			}
  4384  			m.ShardingColumnType = 0
  4385  			for shift := uint(0); ; shift += 7 {
  4386  				if shift >= 64 {
  4387  					return ErrIntOverflow
  4388  				}
  4389  				if iNdEx >= l {
  4390  					return io.ErrUnexpectedEOF
  4391  				}
  4392  				b := dAtA[iNdEx]
  4393  				iNdEx++
  4394  				m.ShardingColumnType |= KeyspaceIdType(b&0x7F) << shift
  4395  				if b < 0x80 {
  4396  					break
  4397  				}
  4398  			}
  4399  		case 4:
  4400  			if wireType != 2 {
  4401  				return fmt.Errorf("proto: wrong wireType = %d for field ServedFrom", wireType)
  4402  			}
  4403  			var msglen int
  4404  			for shift := uint(0); ; shift += 7 {
  4405  				if shift >= 64 {
  4406  					return ErrIntOverflow
  4407  				}
  4408  				if iNdEx >= l {
  4409  					return io.ErrUnexpectedEOF
  4410  				}
  4411  				b := dAtA[iNdEx]
  4412  				iNdEx++
  4413  				msglen |= int(b&0x7F) << shift
  4414  				if b < 0x80 {
  4415  					break
  4416  				}
  4417  			}
  4418  			if msglen < 0 {
  4419  				return ErrInvalidLength
  4420  			}
  4421  			postIndex := iNdEx + msglen
  4422  			if postIndex < 0 {
  4423  				return ErrInvalidLength
  4424  			}
  4425  			if postIndex > l {
  4426  				return io.ErrUnexpectedEOF
  4427  			}
  4428  			m.ServedFrom = append(m.ServedFrom, &SrvKeyspace_ServedFrom{})
  4429  			if err := m.ServedFrom[len(m.ServedFrom)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  4430  				return err
  4431  			}
  4432  			iNdEx = postIndex
  4433  		default:
  4434  			iNdEx = preIndex
  4435  			skippy, err := skip(dAtA[iNdEx:])
  4436  			if err != nil {
  4437  				return err
  4438  			}
  4439  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4440  				return ErrInvalidLength
  4441  			}
  4442  			if (iNdEx + skippy) > l {
  4443  				return io.ErrUnexpectedEOF
  4444  			}
  4445  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  4446  			iNdEx += skippy
  4447  		}
  4448  	}
  4449  
  4450  	if iNdEx > l {
  4451  		return io.ErrUnexpectedEOF
  4452  	}
  4453  	return nil
  4454  }
  4455  func (m *CellInfo) UnmarshalVT(dAtA []byte) error {
  4456  	l := len(dAtA)
  4457  	iNdEx := 0
  4458  	for iNdEx < l {
  4459  		preIndex := iNdEx
  4460  		var wire uint64
  4461  		for shift := uint(0); ; shift += 7 {
  4462  			if shift >= 64 {
  4463  				return ErrIntOverflow
  4464  			}
  4465  			if iNdEx >= l {
  4466  				return io.ErrUnexpectedEOF
  4467  			}
  4468  			b := dAtA[iNdEx]
  4469  			iNdEx++
  4470  			wire |= uint64(b&0x7F) << shift
  4471  			if b < 0x80 {
  4472  				break
  4473  			}
  4474  		}
  4475  		fieldNum := int32(wire >> 3)
  4476  		wireType := int(wire & 0x7)
  4477  		if wireType == 4 {
  4478  			return fmt.Errorf("proto: CellInfo: wiretype end group for non-group")
  4479  		}
  4480  		if fieldNum <= 0 {
  4481  			return fmt.Errorf("proto: CellInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  4482  		}
  4483  		switch fieldNum {
  4484  		case 1:
  4485  			if wireType != 2 {
  4486  				return fmt.Errorf("proto: wrong wireType = %d for field ServerAddress", wireType)
  4487  			}
  4488  			var stringLen uint64
  4489  			for shift := uint(0); ; shift += 7 {
  4490  				if shift >= 64 {
  4491  					return ErrIntOverflow
  4492  				}
  4493  				if iNdEx >= l {
  4494  					return io.ErrUnexpectedEOF
  4495  				}
  4496  				b := dAtA[iNdEx]
  4497  				iNdEx++
  4498  				stringLen |= uint64(b&0x7F) << shift
  4499  				if b < 0x80 {
  4500  					break
  4501  				}
  4502  			}
  4503  			intStringLen := int(stringLen)
  4504  			if intStringLen < 0 {
  4505  				return ErrInvalidLength
  4506  			}
  4507  			postIndex := iNdEx + intStringLen
  4508  			if postIndex < 0 {
  4509  				return ErrInvalidLength
  4510  			}
  4511  			if postIndex > l {
  4512  				return io.ErrUnexpectedEOF
  4513  			}
  4514  			m.ServerAddress = string(dAtA[iNdEx:postIndex])
  4515  			iNdEx = postIndex
  4516  		case 2:
  4517  			if wireType != 2 {
  4518  				return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType)
  4519  			}
  4520  			var stringLen uint64
  4521  			for shift := uint(0); ; shift += 7 {
  4522  				if shift >= 64 {
  4523  					return ErrIntOverflow
  4524  				}
  4525  				if iNdEx >= l {
  4526  					return io.ErrUnexpectedEOF
  4527  				}
  4528  				b := dAtA[iNdEx]
  4529  				iNdEx++
  4530  				stringLen |= uint64(b&0x7F) << shift
  4531  				if b < 0x80 {
  4532  					break
  4533  				}
  4534  			}
  4535  			intStringLen := int(stringLen)
  4536  			if intStringLen < 0 {
  4537  				return ErrInvalidLength
  4538  			}
  4539  			postIndex := iNdEx + intStringLen
  4540  			if postIndex < 0 {
  4541  				return ErrInvalidLength
  4542  			}
  4543  			if postIndex > l {
  4544  				return io.ErrUnexpectedEOF
  4545  			}
  4546  			m.Root = string(dAtA[iNdEx:postIndex])
  4547  			iNdEx = postIndex
  4548  		default:
  4549  			iNdEx = preIndex
  4550  			skippy, err := skip(dAtA[iNdEx:])
  4551  			if err != nil {
  4552  				return err
  4553  			}
  4554  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4555  				return ErrInvalidLength
  4556  			}
  4557  			if (iNdEx + skippy) > l {
  4558  				return io.ErrUnexpectedEOF
  4559  			}
  4560  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  4561  			iNdEx += skippy
  4562  		}
  4563  	}
  4564  
  4565  	if iNdEx > l {
  4566  		return io.ErrUnexpectedEOF
  4567  	}
  4568  	return nil
  4569  }
  4570  func (m *CellsAlias) UnmarshalVT(dAtA []byte) error {
  4571  	l := len(dAtA)
  4572  	iNdEx := 0
  4573  	for iNdEx < l {
  4574  		preIndex := iNdEx
  4575  		var wire uint64
  4576  		for shift := uint(0); ; shift += 7 {
  4577  			if shift >= 64 {
  4578  				return ErrIntOverflow
  4579  			}
  4580  			if iNdEx >= l {
  4581  				return io.ErrUnexpectedEOF
  4582  			}
  4583  			b := dAtA[iNdEx]
  4584  			iNdEx++
  4585  			wire |= uint64(b&0x7F) << shift
  4586  			if b < 0x80 {
  4587  				break
  4588  			}
  4589  		}
  4590  		fieldNum := int32(wire >> 3)
  4591  		wireType := int(wire & 0x7)
  4592  		if wireType == 4 {
  4593  			return fmt.Errorf("proto: CellsAlias: wiretype end group for non-group")
  4594  		}
  4595  		if fieldNum <= 0 {
  4596  			return fmt.Errorf("proto: CellsAlias: illegal tag %d (wire type %d)", fieldNum, wire)
  4597  		}
  4598  		switch fieldNum {
  4599  		case 2:
  4600  			if wireType != 2 {
  4601  				return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType)
  4602  			}
  4603  			var stringLen uint64
  4604  			for shift := uint(0); ; shift += 7 {
  4605  				if shift >= 64 {
  4606  					return ErrIntOverflow
  4607  				}
  4608  				if iNdEx >= l {
  4609  					return io.ErrUnexpectedEOF
  4610  				}
  4611  				b := dAtA[iNdEx]
  4612  				iNdEx++
  4613  				stringLen |= uint64(b&0x7F) << shift
  4614  				if b < 0x80 {
  4615  					break
  4616  				}
  4617  			}
  4618  			intStringLen := int(stringLen)
  4619  			if intStringLen < 0 {
  4620  				return ErrInvalidLength
  4621  			}
  4622  			postIndex := iNdEx + intStringLen
  4623  			if postIndex < 0 {
  4624  				return ErrInvalidLength
  4625  			}
  4626  			if postIndex > l {
  4627  				return io.ErrUnexpectedEOF
  4628  			}
  4629  			m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex]))
  4630  			iNdEx = postIndex
  4631  		default:
  4632  			iNdEx = preIndex
  4633  			skippy, err := skip(dAtA[iNdEx:])
  4634  			if err != nil {
  4635  				return err
  4636  			}
  4637  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4638  				return ErrInvalidLength
  4639  			}
  4640  			if (iNdEx + skippy) > l {
  4641  				return io.ErrUnexpectedEOF
  4642  			}
  4643  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  4644  			iNdEx += skippy
  4645  		}
  4646  	}
  4647  
  4648  	if iNdEx > l {
  4649  		return io.ErrUnexpectedEOF
  4650  	}
  4651  	return nil
  4652  }
  4653  func (m *TopoConfig) UnmarshalVT(dAtA []byte) error {
  4654  	l := len(dAtA)
  4655  	iNdEx := 0
  4656  	for iNdEx < l {
  4657  		preIndex := iNdEx
  4658  		var wire uint64
  4659  		for shift := uint(0); ; shift += 7 {
  4660  			if shift >= 64 {
  4661  				return ErrIntOverflow
  4662  			}
  4663  			if iNdEx >= l {
  4664  				return io.ErrUnexpectedEOF
  4665  			}
  4666  			b := dAtA[iNdEx]
  4667  			iNdEx++
  4668  			wire |= uint64(b&0x7F) << shift
  4669  			if b < 0x80 {
  4670  				break
  4671  			}
  4672  		}
  4673  		fieldNum := int32(wire >> 3)
  4674  		wireType := int(wire & 0x7)
  4675  		if wireType == 4 {
  4676  			return fmt.Errorf("proto: TopoConfig: wiretype end group for non-group")
  4677  		}
  4678  		if fieldNum <= 0 {
  4679  			return fmt.Errorf("proto: TopoConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  4680  		}
  4681  		switch fieldNum {
  4682  		case 1:
  4683  			if wireType != 2 {
  4684  				return fmt.Errorf("proto: wrong wireType = %d for field TopoType", wireType)
  4685  			}
  4686  			var stringLen uint64
  4687  			for shift := uint(0); ; shift += 7 {
  4688  				if shift >= 64 {
  4689  					return ErrIntOverflow
  4690  				}
  4691  				if iNdEx >= l {
  4692  					return io.ErrUnexpectedEOF
  4693  				}
  4694  				b := dAtA[iNdEx]
  4695  				iNdEx++
  4696  				stringLen |= uint64(b&0x7F) << shift
  4697  				if b < 0x80 {
  4698  					break
  4699  				}
  4700  			}
  4701  			intStringLen := int(stringLen)
  4702  			if intStringLen < 0 {
  4703  				return ErrInvalidLength
  4704  			}
  4705  			postIndex := iNdEx + intStringLen
  4706  			if postIndex < 0 {
  4707  				return ErrInvalidLength
  4708  			}
  4709  			if postIndex > l {
  4710  				return io.ErrUnexpectedEOF
  4711  			}
  4712  			m.TopoType = string(dAtA[iNdEx:postIndex])
  4713  			iNdEx = postIndex
  4714  		case 2:
  4715  			if wireType != 2 {
  4716  				return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType)
  4717  			}
  4718  			var stringLen uint64
  4719  			for shift := uint(0); ; shift += 7 {
  4720  				if shift >= 64 {
  4721  					return ErrIntOverflow
  4722  				}
  4723  				if iNdEx >= l {
  4724  					return io.ErrUnexpectedEOF
  4725  				}
  4726  				b := dAtA[iNdEx]
  4727  				iNdEx++
  4728  				stringLen |= uint64(b&0x7F) << shift
  4729  				if b < 0x80 {
  4730  					break
  4731  				}
  4732  			}
  4733  			intStringLen := int(stringLen)
  4734  			if intStringLen < 0 {
  4735  				return ErrInvalidLength
  4736  			}
  4737  			postIndex := iNdEx + intStringLen
  4738  			if postIndex < 0 {
  4739  				return ErrInvalidLength
  4740  			}
  4741  			if postIndex > l {
  4742  				return io.ErrUnexpectedEOF
  4743  			}
  4744  			m.Server = string(dAtA[iNdEx:postIndex])
  4745  			iNdEx = postIndex
  4746  		case 3:
  4747  			if wireType != 2 {
  4748  				return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType)
  4749  			}
  4750  			var stringLen uint64
  4751  			for shift := uint(0); ; shift += 7 {
  4752  				if shift >= 64 {
  4753  					return ErrIntOverflow
  4754  				}
  4755  				if iNdEx >= l {
  4756  					return io.ErrUnexpectedEOF
  4757  				}
  4758  				b := dAtA[iNdEx]
  4759  				iNdEx++
  4760  				stringLen |= uint64(b&0x7F) << shift
  4761  				if b < 0x80 {
  4762  					break
  4763  				}
  4764  			}
  4765  			intStringLen := int(stringLen)
  4766  			if intStringLen < 0 {
  4767  				return ErrInvalidLength
  4768  			}
  4769  			postIndex := iNdEx + intStringLen
  4770  			if postIndex < 0 {
  4771  				return ErrInvalidLength
  4772  			}
  4773  			if postIndex > l {
  4774  				return io.ErrUnexpectedEOF
  4775  			}
  4776  			m.Root = string(dAtA[iNdEx:postIndex])
  4777  			iNdEx = postIndex
  4778  		default:
  4779  			iNdEx = preIndex
  4780  			skippy, err := skip(dAtA[iNdEx:])
  4781  			if err != nil {
  4782  				return err
  4783  			}
  4784  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4785  				return ErrInvalidLength
  4786  			}
  4787  			if (iNdEx + skippy) > l {
  4788  				return io.ErrUnexpectedEOF
  4789  			}
  4790  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  4791  			iNdEx += skippy
  4792  		}
  4793  	}
  4794  
  4795  	if iNdEx > l {
  4796  		return io.ErrUnexpectedEOF
  4797  	}
  4798  	return nil
  4799  }
  4800  func (m *ExternalVitessCluster) UnmarshalVT(dAtA []byte) error {
  4801  	l := len(dAtA)
  4802  	iNdEx := 0
  4803  	for iNdEx < l {
  4804  		preIndex := iNdEx
  4805  		var wire uint64
  4806  		for shift := uint(0); ; shift += 7 {
  4807  			if shift >= 64 {
  4808  				return ErrIntOverflow
  4809  			}
  4810  			if iNdEx >= l {
  4811  				return io.ErrUnexpectedEOF
  4812  			}
  4813  			b := dAtA[iNdEx]
  4814  			iNdEx++
  4815  			wire |= uint64(b&0x7F) << shift
  4816  			if b < 0x80 {
  4817  				break
  4818  			}
  4819  		}
  4820  		fieldNum := int32(wire >> 3)
  4821  		wireType := int(wire & 0x7)
  4822  		if wireType == 4 {
  4823  			return fmt.Errorf("proto: ExternalVitessCluster: wiretype end group for non-group")
  4824  		}
  4825  		if fieldNum <= 0 {
  4826  			return fmt.Errorf("proto: ExternalVitessCluster: illegal tag %d (wire type %d)", fieldNum, wire)
  4827  		}
  4828  		switch fieldNum {
  4829  		case 1:
  4830  			if wireType != 2 {
  4831  				return fmt.Errorf("proto: wrong wireType = %d for field TopoConfig", wireType)
  4832  			}
  4833  			var msglen int
  4834  			for shift := uint(0); ; shift += 7 {
  4835  				if shift >= 64 {
  4836  					return ErrIntOverflow
  4837  				}
  4838  				if iNdEx >= l {
  4839  					return io.ErrUnexpectedEOF
  4840  				}
  4841  				b := dAtA[iNdEx]
  4842  				iNdEx++
  4843  				msglen |= int(b&0x7F) << shift
  4844  				if b < 0x80 {
  4845  					break
  4846  				}
  4847  			}
  4848  			if msglen < 0 {
  4849  				return ErrInvalidLength
  4850  			}
  4851  			postIndex := iNdEx + msglen
  4852  			if postIndex < 0 {
  4853  				return ErrInvalidLength
  4854  			}
  4855  			if postIndex > l {
  4856  				return io.ErrUnexpectedEOF
  4857  			}
  4858  			if m.TopoConfig == nil {
  4859  				m.TopoConfig = &TopoConfig{}
  4860  			}
  4861  			if err := m.TopoConfig.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  4862  				return err
  4863  			}
  4864  			iNdEx = postIndex
  4865  		default:
  4866  			iNdEx = preIndex
  4867  			skippy, err := skip(dAtA[iNdEx:])
  4868  			if err != nil {
  4869  				return err
  4870  			}
  4871  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4872  				return ErrInvalidLength
  4873  			}
  4874  			if (iNdEx + skippy) > l {
  4875  				return io.ErrUnexpectedEOF
  4876  			}
  4877  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  4878  			iNdEx += skippy
  4879  		}
  4880  	}
  4881  
  4882  	if iNdEx > l {
  4883  		return io.ErrUnexpectedEOF
  4884  	}
  4885  	return nil
  4886  }
  4887  func (m *ExternalClusters) UnmarshalVT(dAtA []byte) error {
  4888  	l := len(dAtA)
  4889  	iNdEx := 0
  4890  	for iNdEx < l {
  4891  		preIndex := iNdEx
  4892  		var wire uint64
  4893  		for shift := uint(0); ; shift += 7 {
  4894  			if shift >= 64 {
  4895  				return ErrIntOverflow
  4896  			}
  4897  			if iNdEx >= l {
  4898  				return io.ErrUnexpectedEOF
  4899  			}
  4900  			b := dAtA[iNdEx]
  4901  			iNdEx++
  4902  			wire |= uint64(b&0x7F) << shift
  4903  			if b < 0x80 {
  4904  				break
  4905  			}
  4906  		}
  4907  		fieldNum := int32(wire >> 3)
  4908  		wireType := int(wire & 0x7)
  4909  		if wireType == 4 {
  4910  			return fmt.Errorf("proto: ExternalClusters: wiretype end group for non-group")
  4911  		}
  4912  		if fieldNum <= 0 {
  4913  			return fmt.Errorf("proto: ExternalClusters: illegal tag %d (wire type %d)", fieldNum, wire)
  4914  		}
  4915  		switch fieldNum {
  4916  		case 1:
  4917  			if wireType != 2 {
  4918  				return fmt.Errorf("proto: wrong wireType = %d for field VitessCluster", wireType)
  4919  			}
  4920  			var msglen int
  4921  			for shift := uint(0); ; shift += 7 {
  4922  				if shift >= 64 {
  4923  					return ErrIntOverflow
  4924  				}
  4925  				if iNdEx >= l {
  4926  					return io.ErrUnexpectedEOF
  4927  				}
  4928  				b := dAtA[iNdEx]
  4929  				iNdEx++
  4930  				msglen |= int(b&0x7F) << shift
  4931  				if b < 0x80 {
  4932  					break
  4933  				}
  4934  			}
  4935  			if msglen < 0 {
  4936  				return ErrInvalidLength
  4937  			}
  4938  			postIndex := iNdEx + msglen
  4939  			if postIndex < 0 {
  4940  				return ErrInvalidLength
  4941  			}
  4942  			if postIndex > l {
  4943  				return io.ErrUnexpectedEOF
  4944  			}
  4945  			m.VitessCluster = append(m.VitessCluster, &ExternalVitessCluster{})
  4946  			if err := m.VitessCluster[len(m.VitessCluster)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  4947  				return err
  4948  			}
  4949  			iNdEx = postIndex
  4950  		default:
  4951  			iNdEx = preIndex
  4952  			skippy, err := skip(dAtA[iNdEx:])
  4953  			if err != nil {
  4954  				return err
  4955  			}
  4956  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4957  				return ErrInvalidLength
  4958  			}
  4959  			if (iNdEx + skippy) > l {
  4960  				return io.ErrUnexpectedEOF
  4961  			}
  4962  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  4963  			iNdEx += skippy
  4964  		}
  4965  	}
  4966  
  4967  	if iNdEx > l {
  4968  		return io.ErrUnexpectedEOF
  4969  	}
  4970  	return nil
  4971  }
  4972  func skip(dAtA []byte) (n int, err error) {
  4973  	l := len(dAtA)
  4974  	iNdEx := 0
  4975  	depth := 0
  4976  	for iNdEx < l {
  4977  		var wire uint64
  4978  		for shift := uint(0); ; shift += 7 {
  4979  			if shift >= 64 {
  4980  				return 0, ErrIntOverflow
  4981  			}
  4982  			if iNdEx >= l {
  4983  				return 0, io.ErrUnexpectedEOF
  4984  			}
  4985  			b := dAtA[iNdEx]
  4986  			iNdEx++
  4987  			wire |= (uint64(b) & 0x7F) << shift
  4988  			if b < 0x80 {
  4989  				break
  4990  			}
  4991  		}
  4992  		wireType := int(wire & 0x7)
  4993  		switch wireType {
  4994  		case 0:
  4995  			for shift := uint(0); ; shift += 7 {
  4996  				if shift >= 64 {
  4997  					return 0, ErrIntOverflow
  4998  				}
  4999  				if iNdEx >= l {
  5000  					return 0, io.ErrUnexpectedEOF
  5001  				}
  5002  				iNdEx++
  5003  				if dAtA[iNdEx-1] < 0x80 {
  5004  					break
  5005  				}
  5006  			}
  5007  		case 1:
  5008  			iNdEx += 8
  5009  		case 2:
  5010  			var length int
  5011  			for shift := uint(0); ; shift += 7 {
  5012  				if shift >= 64 {
  5013  					return 0, ErrIntOverflow
  5014  				}
  5015  				if iNdEx >= l {
  5016  					return 0, io.ErrUnexpectedEOF
  5017  				}
  5018  				b := dAtA[iNdEx]
  5019  				iNdEx++
  5020  				length |= (int(b) & 0x7F) << shift
  5021  				if b < 0x80 {
  5022  					break
  5023  				}
  5024  			}
  5025  			if length < 0 {
  5026  				return 0, ErrInvalidLength
  5027  			}
  5028  			iNdEx += length
  5029  		case 3:
  5030  			depth++
  5031  		case 4:
  5032  			if depth == 0 {
  5033  				return 0, ErrUnexpectedEndOfGroup
  5034  			}
  5035  			depth--
  5036  		case 5:
  5037  			iNdEx += 4
  5038  		default:
  5039  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  5040  		}
  5041  		if iNdEx < 0 {
  5042  			return 0, ErrInvalidLength
  5043  		}
  5044  		if depth == 0 {
  5045  			return iNdEx, nil
  5046  		}
  5047  	}
  5048  	return 0, io.ErrUnexpectedEOF
  5049  }
  5050  
  5051  var (
  5052  	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
  5053  	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
  5054  	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
  5055  )