github.com/vedadiyan/sqlparser@v1.0.0/pkg/topodata/topodata_vtproto.pb.go (about)

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