github.com/vedadiyan/sqlparser@v1.0.0/pkg/query/query_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: query.proto
     4  
     5  package query
     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  	sync "sync"
    15  	topodata "github.com/vedadiyan/sqlparser/pkg/topodata"
    16  	vtrpc "github.com/vedadiyan/sqlparser/pkg/vtrpc"
    17  )
    18  
    19  const (
    20  	// Verify that this generated code is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    22  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    24  )
    25  
    26  func (m *Target) MarshalVT() (dAtA []byte, err error) {
    27  	if m == nil {
    28  		return nil, nil
    29  	}
    30  	size := m.SizeVT()
    31  	dAtA = make([]byte, size)
    32  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
    33  	if err != nil {
    34  		return nil, err
    35  	}
    36  	return dAtA[:n], nil
    37  }
    38  
    39  func (m *Target) MarshalToVT(dAtA []byte) (int, error) {
    40  	size := m.SizeVT()
    41  	return m.MarshalToSizedBufferVT(dAtA[:size])
    42  }
    43  
    44  func (m *Target) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
    45  	if m == nil {
    46  		return 0, nil
    47  	}
    48  	i := len(dAtA)
    49  	_ = i
    50  	var l int
    51  	_ = l
    52  	if m.unknownFields != nil {
    53  		i -= len(m.unknownFields)
    54  		copy(dAtA[i:], m.unknownFields)
    55  	}
    56  	if len(m.Cell) > 0 {
    57  		i -= len(m.Cell)
    58  		copy(dAtA[i:], m.Cell)
    59  		i = encodeVarint(dAtA, i, uint64(len(m.Cell)))
    60  		i--
    61  		dAtA[i] = 0x22
    62  	}
    63  	if m.TabletType != 0 {
    64  		i = encodeVarint(dAtA, i, uint64(m.TabletType))
    65  		i--
    66  		dAtA[i] = 0x18
    67  	}
    68  	if len(m.Shard) > 0 {
    69  		i -= len(m.Shard)
    70  		copy(dAtA[i:], m.Shard)
    71  		i = encodeVarint(dAtA, i, uint64(len(m.Shard)))
    72  		i--
    73  		dAtA[i] = 0x12
    74  	}
    75  	if len(m.Keyspace) > 0 {
    76  		i -= len(m.Keyspace)
    77  		copy(dAtA[i:], m.Keyspace)
    78  		i = encodeVarint(dAtA, i, uint64(len(m.Keyspace)))
    79  		i--
    80  		dAtA[i] = 0xa
    81  	}
    82  	return len(dAtA) - i, nil
    83  }
    84  
    85  func (m *VTGateCallerID) MarshalVT() (dAtA []byte, err error) {
    86  	if m == nil {
    87  		return nil, nil
    88  	}
    89  	size := m.SizeVT()
    90  	dAtA = make([]byte, size)
    91  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
    92  	if err != nil {
    93  		return nil, err
    94  	}
    95  	return dAtA[:n], nil
    96  }
    97  
    98  func (m *VTGateCallerID) MarshalToVT(dAtA []byte) (int, error) {
    99  	size := m.SizeVT()
   100  	return m.MarshalToSizedBufferVT(dAtA[:size])
   101  }
   102  
   103  func (m *VTGateCallerID) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   104  	if m == nil {
   105  		return 0, nil
   106  	}
   107  	i := len(dAtA)
   108  	_ = i
   109  	var l int
   110  	_ = l
   111  	if m.unknownFields != nil {
   112  		i -= len(m.unknownFields)
   113  		copy(dAtA[i:], m.unknownFields)
   114  	}
   115  	if len(m.Groups) > 0 {
   116  		for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- {
   117  			i -= len(m.Groups[iNdEx])
   118  			copy(dAtA[i:], m.Groups[iNdEx])
   119  			i = encodeVarint(dAtA, i, uint64(len(m.Groups[iNdEx])))
   120  			i--
   121  			dAtA[i] = 0x12
   122  		}
   123  	}
   124  	if len(m.Username) > 0 {
   125  		i -= len(m.Username)
   126  		copy(dAtA[i:], m.Username)
   127  		i = encodeVarint(dAtA, i, uint64(len(m.Username)))
   128  		i--
   129  		dAtA[i] = 0xa
   130  	}
   131  	return len(dAtA) - i, nil
   132  }
   133  
   134  func (m *EventToken) MarshalVT() (dAtA []byte, err error) {
   135  	if m == nil {
   136  		return nil, nil
   137  	}
   138  	size := m.SizeVT()
   139  	dAtA = make([]byte, size)
   140  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   141  	if err != nil {
   142  		return nil, err
   143  	}
   144  	return dAtA[:n], nil
   145  }
   146  
   147  func (m *EventToken) MarshalToVT(dAtA []byte) (int, error) {
   148  	size := m.SizeVT()
   149  	return m.MarshalToSizedBufferVT(dAtA[:size])
   150  }
   151  
   152  func (m *EventToken) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   153  	if m == nil {
   154  		return 0, nil
   155  	}
   156  	i := len(dAtA)
   157  	_ = i
   158  	var l int
   159  	_ = l
   160  	if m.unknownFields != nil {
   161  		i -= len(m.unknownFields)
   162  		copy(dAtA[i:], m.unknownFields)
   163  	}
   164  	if len(m.Position) > 0 {
   165  		i -= len(m.Position)
   166  		copy(dAtA[i:], m.Position)
   167  		i = encodeVarint(dAtA, i, uint64(len(m.Position)))
   168  		i--
   169  		dAtA[i] = 0x1a
   170  	}
   171  	if len(m.Shard) > 0 {
   172  		i -= len(m.Shard)
   173  		copy(dAtA[i:], m.Shard)
   174  		i = encodeVarint(dAtA, i, uint64(len(m.Shard)))
   175  		i--
   176  		dAtA[i] = 0x12
   177  	}
   178  	if m.Timestamp != 0 {
   179  		i = encodeVarint(dAtA, i, uint64(m.Timestamp))
   180  		i--
   181  		dAtA[i] = 0x8
   182  	}
   183  	return len(dAtA) - i, nil
   184  }
   185  
   186  func (m *Value) MarshalVT() (dAtA []byte, err error) {
   187  	if m == nil {
   188  		return nil, nil
   189  	}
   190  	size := m.SizeVT()
   191  	dAtA = make([]byte, size)
   192  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   193  	if err != nil {
   194  		return nil, err
   195  	}
   196  	return dAtA[:n], nil
   197  }
   198  
   199  func (m *Value) MarshalToVT(dAtA []byte) (int, error) {
   200  	size := m.SizeVT()
   201  	return m.MarshalToSizedBufferVT(dAtA[:size])
   202  }
   203  
   204  func (m *Value) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   205  	if m == nil {
   206  		return 0, nil
   207  	}
   208  	i := len(dAtA)
   209  	_ = i
   210  	var l int
   211  	_ = l
   212  	if m.unknownFields != nil {
   213  		i -= len(m.unknownFields)
   214  		copy(dAtA[i:], m.unknownFields)
   215  	}
   216  	if len(m.Value) > 0 {
   217  		i -= len(m.Value)
   218  		copy(dAtA[i:], m.Value)
   219  		i = encodeVarint(dAtA, i, uint64(len(m.Value)))
   220  		i--
   221  		dAtA[i] = 0x12
   222  	}
   223  	if m.Type != 0 {
   224  		i = encodeVarint(dAtA, i, uint64(m.Type))
   225  		i--
   226  		dAtA[i] = 0x8
   227  	}
   228  	return len(dAtA) - i, nil
   229  }
   230  
   231  func (m *BindVariable) MarshalVT() (dAtA []byte, err error) {
   232  	if m == nil {
   233  		return nil, nil
   234  	}
   235  	size := m.SizeVT()
   236  	dAtA = make([]byte, size)
   237  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   238  	if err != nil {
   239  		return nil, err
   240  	}
   241  	return dAtA[:n], nil
   242  }
   243  
   244  func (m *BindVariable) MarshalToVT(dAtA []byte) (int, error) {
   245  	size := m.SizeVT()
   246  	return m.MarshalToSizedBufferVT(dAtA[:size])
   247  }
   248  
   249  func (m *BindVariable) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   250  	if m == nil {
   251  		return 0, nil
   252  	}
   253  	i := len(dAtA)
   254  	_ = i
   255  	var l int
   256  	_ = l
   257  	if m.unknownFields != nil {
   258  		i -= len(m.unknownFields)
   259  		copy(dAtA[i:], m.unknownFields)
   260  	}
   261  	if len(m.Values) > 0 {
   262  		for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- {
   263  			size, err := m.Values[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   264  			if err != nil {
   265  				return 0, err
   266  			}
   267  			i -= size
   268  			i = encodeVarint(dAtA, i, uint64(size))
   269  			i--
   270  			dAtA[i] = 0x1a
   271  		}
   272  	}
   273  	if len(m.Value) > 0 {
   274  		i -= len(m.Value)
   275  		copy(dAtA[i:], m.Value)
   276  		i = encodeVarint(dAtA, i, uint64(len(m.Value)))
   277  		i--
   278  		dAtA[i] = 0x12
   279  	}
   280  	if m.Type != 0 {
   281  		i = encodeVarint(dAtA, i, uint64(m.Type))
   282  		i--
   283  		dAtA[i] = 0x8
   284  	}
   285  	return len(dAtA) - i, nil
   286  }
   287  
   288  func (m *BoundQuery) MarshalVT() (dAtA []byte, err error) {
   289  	if m == nil {
   290  		return nil, nil
   291  	}
   292  	size := m.SizeVT()
   293  	dAtA = make([]byte, size)
   294  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   295  	if err != nil {
   296  		return nil, err
   297  	}
   298  	return dAtA[:n], nil
   299  }
   300  
   301  func (m *BoundQuery) MarshalToVT(dAtA []byte) (int, error) {
   302  	size := m.SizeVT()
   303  	return m.MarshalToSizedBufferVT(dAtA[:size])
   304  }
   305  
   306  func (m *BoundQuery) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   307  	if m == nil {
   308  		return 0, nil
   309  	}
   310  	i := len(dAtA)
   311  	_ = i
   312  	var l int
   313  	_ = l
   314  	if m.unknownFields != nil {
   315  		i -= len(m.unknownFields)
   316  		copy(dAtA[i:], m.unknownFields)
   317  	}
   318  	if len(m.BindVariables) > 0 {
   319  		for k := range m.BindVariables {
   320  			v := m.BindVariables[k]
   321  			baseI := i
   322  			size, err := v.MarshalToSizedBufferVT(dAtA[:i])
   323  			if err != nil {
   324  				return 0, err
   325  			}
   326  			i -= size
   327  			i = encodeVarint(dAtA, i, uint64(size))
   328  			i--
   329  			dAtA[i] = 0x12
   330  			i -= len(k)
   331  			copy(dAtA[i:], k)
   332  			i = encodeVarint(dAtA, i, uint64(len(k)))
   333  			i--
   334  			dAtA[i] = 0xa
   335  			i = encodeVarint(dAtA, i, uint64(baseI-i))
   336  			i--
   337  			dAtA[i] = 0x12
   338  		}
   339  	}
   340  	if len(m.Sql) > 0 {
   341  		i -= len(m.Sql)
   342  		copy(dAtA[i:], m.Sql)
   343  		i = encodeVarint(dAtA, i, uint64(len(m.Sql)))
   344  		i--
   345  		dAtA[i] = 0xa
   346  	}
   347  	return len(dAtA) - i, nil
   348  }
   349  
   350  func (m *ExecuteOptions) MarshalVT() (dAtA []byte, err error) {
   351  	if m == nil {
   352  		return nil, nil
   353  	}
   354  	size := m.SizeVT()
   355  	dAtA = make([]byte, size)
   356  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   357  	if err != nil {
   358  		return nil, err
   359  	}
   360  	return dAtA[:n], nil
   361  }
   362  
   363  func (m *ExecuteOptions) MarshalToVT(dAtA []byte) (int, error) {
   364  	size := m.SizeVT()
   365  	return m.MarshalToSizedBufferVT(dAtA[:size])
   366  }
   367  
   368  func (m *ExecuteOptions) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   369  	if m == nil {
   370  		return 0, nil
   371  	}
   372  	i := len(dAtA)
   373  	_ = i
   374  	var l int
   375  	_ = l
   376  	if m.unknownFields != nil {
   377  		i -= len(m.unknownFields)
   378  		copy(dAtA[i:], m.unknownFields)
   379  	}
   380  	if len(m.TransactionAccessMode) > 0 {
   381  		var pksize2 int
   382  		for _, num := range m.TransactionAccessMode {
   383  			pksize2 += sov(uint64(num))
   384  		}
   385  		i -= pksize2
   386  		j1 := i
   387  		for _, num1 := range m.TransactionAccessMode {
   388  			num := uint64(num1)
   389  			for num >= 1<<7 {
   390  				dAtA[j1] = uint8(uint64(num)&0x7f | 0x80)
   391  				num >>= 7
   392  				j1++
   393  			}
   394  			dAtA[j1] = uint8(num)
   395  			j1++
   396  		}
   397  		i = encodeVarint(dAtA, i, uint64(pksize2))
   398  		i--
   399  		dAtA[i] = 0x72
   400  	}
   401  	if m.Consolidator != 0 {
   402  		i = encodeVarint(dAtA, i, uint64(m.Consolidator))
   403  		i--
   404  		dAtA[i] = 0x68
   405  	}
   406  	if m.HasCreatedTempTables {
   407  		i--
   408  		if m.HasCreatedTempTables {
   409  			dAtA[i] = 1
   410  		} else {
   411  			dAtA[i] = 0
   412  		}
   413  		i--
   414  		dAtA[i] = 0x60
   415  	}
   416  	if m.PlannerVersion != 0 {
   417  		i = encodeVarint(dAtA, i, uint64(m.PlannerVersion))
   418  		i--
   419  		dAtA[i] = 0x58
   420  	}
   421  	if m.SkipQueryPlanCache {
   422  		i--
   423  		if m.SkipQueryPlanCache {
   424  			dAtA[i] = 1
   425  		} else {
   426  			dAtA[i] = 0
   427  		}
   428  		i--
   429  		dAtA[i] = 0x50
   430  	}
   431  	if m.TransactionIsolation != 0 {
   432  		i = encodeVarint(dAtA, i, uint64(m.TransactionIsolation))
   433  		i--
   434  		dAtA[i] = 0x48
   435  	}
   436  	if m.SqlSelectLimit != 0 {
   437  		i = encodeVarint(dAtA, i, uint64(m.SqlSelectLimit))
   438  		i--
   439  		dAtA[i] = 0x40
   440  	}
   441  	if m.Workload != 0 {
   442  		i = encodeVarint(dAtA, i, uint64(m.Workload))
   443  		i--
   444  		dAtA[i] = 0x30
   445  	}
   446  	if m.ClientFoundRows {
   447  		i--
   448  		if m.ClientFoundRows {
   449  			dAtA[i] = 1
   450  		} else {
   451  			dAtA[i] = 0
   452  		}
   453  		i--
   454  		dAtA[i] = 0x28
   455  	}
   456  	if m.IncludedFields != 0 {
   457  		i = encodeVarint(dAtA, i, uint64(m.IncludedFields))
   458  		i--
   459  		dAtA[i] = 0x20
   460  	}
   461  	return len(dAtA) - i, nil
   462  }
   463  
   464  func (m *Field) MarshalVT() (dAtA []byte, err error) {
   465  	if m == nil {
   466  		return nil, nil
   467  	}
   468  	size := m.SizeVT()
   469  	dAtA = make([]byte, size)
   470  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   471  	if err != nil {
   472  		return nil, err
   473  	}
   474  	return dAtA[:n], nil
   475  }
   476  
   477  func (m *Field) MarshalToVT(dAtA []byte) (int, error) {
   478  	size := m.SizeVT()
   479  	return m.MarshalToSizedBufferVT(dAtA[:size])
   480  }
   481  
   482  func (m *Field) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   483  	if m == nil {
   484  		return 0, nil
   485  	}
   486  	i := len(dAtA)
   487  	_ = i
   488  	var l int
   489  	_ = l
   490  	if m.unknownFields != nil {
   491  		i -= len(m.unknownFields)
   492  		copy(dAtA[i:], m.unknownFields)
   493  	}
   494  	if len(m.ColumnType) > 0 {
   495  		i -= len(m.ColumnType)
   496  		copy(dAtA[i:], m.ColumnType)
   497  		i = encodeVarint(dAtA, i, uint64(len(m.ColumnType)))
   498  		i--
   499  		dAtA[i] = 0x5a
   500  	}
   501  	if m.Flags != 0 {
   502  		i = encodeVarint(dAtA, i, uint64(m.Flags))
   503  		i--
   504  		dAtA[i] = 0x50
   505  	}
   506  	if m.Decimals != 0 {
   507  		i = encodeVarint(dAtA, i, uint64(m.Decimals))
   508  		i--
   509  		dAtA[i] = 0x48
   510  	}
   511  	if m.Charset != 0 {
   512  		i = encodeVarint(dAtA, i, uint64(m.Charset))
   513  		i--
   514  		dAtA[i] = 0x40
   515  	}
   516  	if m.ColumnLength != 0 {
   517  		i = encodeVarint(dAtA, i, uint64(m.ColumnLength))
   518  		i--
   519  		dAtA[i] = 0x38
   520  	}
   521  	if len(m.OrgName) > 0 {
   522  		i -= len(m.OrgName)
   523  		copy(dAtA[i:], m.OrgName)
   524  		i = encodeVarint(dAtA, i, uint64(len(m.OrgName)))
   525  		i--
   526  		dAtA[i] = 0x32
   527  	}
   528  	if len(m.Database) > 0 {
   529  		i -= len(m.Database)
   530  		copy(dAtA[i:], m.Database)
   531  		i = encodeVarint(dAtA, i, uint64(len(m.Database)))
   532  		i--
   533  		dAtA[i] = 0x2a
   534  	}
   535  	if len(m.OrgTable) > 0 {
   536  		i -= len(m.OrgTable)
   537  		copy(dAtA[i:], m.OrgTable)
   538  		i = encodeVarint(dAtA, i, uint64(len(m.OrgTable)))
   539  		i--
   540  		dAtA[i] = 0x22
   541  	}
   542  	if len(m.Table) > 0 {
   543  		i -= len(m.Table)
   544  		copy(dAtA[i:], m.Table)
   545  		i = encodeVarint(dAtA, i, uint64(len(m.Table)))
   546  		i--
   547  		dAtA[i] = 0x1a
   548  	}
   549  	if m.Type != 0 {
   550  		i = encodeVarint(dAtA, i, uint64(m.Type))
   551  		i--
   552  		dAtA[i] = 0x10
   553  	}
   554  	if len(m.Name) > 0 {
   555  		i -= len(m.Name)
   556  		copy(dAtA[i:], m.Name)
   557  		i = encodeVarint(dAtA, i, uint64(len(m.Name)))
   558  		i--
   559  		dAtA[i] = 0xa
   560  	}
   561  	return len(dAtA) - i, nil
   562  }
   563  
   564  func (m *Row) MarshalVT() (dAtA []byte, err error) {
   565  	if m == nil {
   566  		return nil, nil
   567  	}
   568  	size := m.SizeVT()
   569  	dAtA = make([]byte, size)
   570  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   571  	if err != nil {
   572  		return nil, err
   573  	}
   574  	return dAtA[:n], nil
   575  }
   576  
   577  func (m *Row) MarshalToVT(dAtA []byte) (int, error) {
   578  	size := m.SizeVT()
   579  	return m.MarshalToSizedBufferVT(dAtA[:size])
   580  }
   581  
   582  func (m *Row) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   583  	if m == nil {
   584  		return 0, nil
   585  	}
   586  	i := len(dAtA)
   587  	_ = i
   588  	var l int
   589  	_ = l
   590  	if m.unknownFields != nil {
   591  		i -= len(m.unknownFields)
   592  		copy(dAtA[i:], m.unknownFields)
   593  	}
   594  	if len(m.Values) > 0 {
   595  		i -= len(m.Values)
   596  		copy(dAtA[i:], m.Values)
   597  		i = encodeVarint(dAtA, i, uint64(len(m.Values)))
   598  		i--
   599  		dAtA[i] = 0x12
   600  	}
   601  	if len(m.Lengths) > 0 {
   602  		var pksize2 int
   603  		for _, num := range m.Lengths {
   604  			pksize2 += soz(uint64(num))
   605  		}
   606  		i -= pksize2
   607  		j1 := i
   608  		for _, num := range m.Lengths {
   609  			x3 := (uint64(num) << 1) ^ uint64((num >> 63))
   610  			for x3 >= 1<<7 {
   611  				dAtA[j1] = uint8(uint64(x3)&0x7f | 0x80)
   612  				j1++
   613  				x3 >>= 7
   614  			}
   615  			dAtA[j1] = uint8(x3)
   616  			j1++
   617  		}
   618  		i = encodeVarint(dAtA, i, uint64(pksize2))
   619  		i--
   620  		dAtA[i] = 0xa
   621  	}
   622  	return len(dAtA) - i, nil
   623  }
   624  
   625  func (m *QueryResult) MarshalVT() (dAtA []byte, err error) {
   626  	if m == nil {
   627  		return nil, nil
   628  	}
   629  	size := m.SizeVT()
   630  	dAtA = make([]byte, size)
   631  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   632  	if err != nil {
   633  		return nil, err
   634  	}
   635  	return dAtA[:n], nil
   636  }
   637  
   638  func (m *QueryResult) MarshalToVT(dAtA []byte) (int, error) {
   639  	size := m.SizeVT()
   640  	return m.MarshalToSizedBufferVT(dAtA[:size])
   641  }
   642  
   643  func (m *QueryResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   644  	if m == nil {
   645  		return 0, nil
   646  	}
   647  	i := len(dAtA)
   648  	_ = i
   649  	var l int
   650  	_ = l
   651  	if m.unknownFields != nil {
   652  		i -= len(m.unknownFields)
   653  		copy(dAtA[i:], m.unknownFields)
   654  	}
   655  	if len(m.SessionStateChanges) > 0 {
   656  		i -= len(m.SessionStateChanges)
   657  		copy(dAtA[i:], m.SessionStateChanges)
   658  		i = encodeVarint(dAtA, i, uint64(len(m.SessionStateChanges)))
   659  		i--
   660  		dAtA[i] = 0x3a
   661  	}
   662  	if len(m.Info) > 0 {
   663  		i -= len(m.Info)
   664  		copy(dAtA[i:], m.Info)
   665  		i = encodeVarint(dAtA, i, uint64(len(m.Info)))
   666  		i--
   667  		dAtA[i] = 0x32
   668  	}
   669  	if len(m.Rows) > 0 {
   670  		for iNdEx := len(m.Rows) - 1; iNdEx >= 0; iNdEx-- {
   671  			size, err := m.Rows[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   672  			if err != nil {
   673  				return 0, err
   674  			}
   675  			i -= size
   676  			i = encodeVarint(dAtA, i, uint64(size))
   677  			i--
   678  			dAtA[i] = 0x22
   679  		}
   680  	}
   681  	if m.InsertId != 0 {
   682  		i = encodeVarint(dAtA, i, uint64(m.InsertId))
   683  		i--
   684  		dAtA[i] = 0x18
   685  	}
   686  	if m.RowsAffected != 0 {
   687  		i = encodeVarint(dAtA, i, uint64(m.RowsAffected))
   688  		i--
   689  		dAtA[i] = 0x10
   690  	}
   691  	if len(m.Fields) > 0 {
   692  		for iNdEx := len(m.Fields) - 1; iNdEx >= 0; iNdEx-- {
   693  			size, err := m.Fields[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   694  			if err != nil {
   695  				return 0, err
   696  			}
   697  			i -= size
   698  			i = encodeVarint(dAtA, i, uint64(size))
   699  			i--
   700  			dAtA[i] = 0xa
   701  		}
   702  	}
   703  	return len(dAtA) - i, nil
   704  }
   705  
   706  func (m *QueryWarning) MarshalVT() (dAtA []byte, err error) {
   707  	if m == nil {
   708  		return nil, nil
   709  	}
   710  	size := m.SizeVT()
   711  	dAtA = make([]byte, size)
   712  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   713  	if err != nil {
   714  		return nil, err
   715  	}
   716  	return dAtA[:n], nil
   717  }
   718  
   719  func (m *QueryWarning) MarshalToVT(dAtA []byte) (int, error) {
   720  	size := m.SizeVT()
   721  	return m.MarshalToSizedBufferVT(dAtA[:size])
   722  }
   723  
   724  func (m *QueryWarning) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   725  	if m == nil {
   726  		return 0, nil
   727  	}
   728  	i := len(dAtA)
   729  	_ = i
   730  	var l int
   731  	_ = l
   732  	if m.unknownFields != nil {
   733  		i -= len(m.unknownFields)
   734  		copy(dAtA[i:], m.unknownFields)
   735  	}
   736  	if len(m.Message) > 0 {
   737  		i -= len(m.Message)
   738  		copy(dAtA[i:], m.Message)
   739  		i = encodeVarint(dAtA, i, uint64(len(m.Message)))
   740  		i--
   741  		dAtA[i] = 0x12
   742  	}
   743  	if m.Code != 0 {
   744  		i = encodeVarint(dAtA, i, uint64(m.Code))
   745  		i--
   746  		dAtA[i] = 0x8
   747  	}
   748  	return len(dAtA) - i, nil
   749  }
   750  
   751  func (m *StreamEvent_Statement) MarshalVT() (dAtA []byte, err error) {
   752  	if m == nil {
   753  		return nil, nil
   754  	}
   755  	size := m.SizeVT()
   756  	dAtA = make([]byte, size)
   757  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   758  	if err != nil {
   759  		return nil, err
   760  	}
   761  	return dAtA[:n], nil
   762  }
   763  
   764  func (m *StreamEvent_Statement) MarshalToVT(dAtA []byte) (int, error) {
   765  	size := m.SizeVT()
   766  	return m.MarshalToSizedBufferVT(dAtA[:size])
   767  }
   768  
   769  func (m *StreamEvent_Statement) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   770  	if m == nil {
   771  		return 0, nil
   772  	}
   773  	i := len(dAtA)
   774  	_ = i
   775  	var l int
   776  	_ = l
   777  	if m.unknownFields != nil {
   778  		i -= len(m.unknownFields)
   779  		copy(dAtA[i:], m.unknownFields)
   780  	}
   781  	if len(m.Sql) > 0 {
   782  		i -= len(m.Sql)
   783  		copy(dAtA[i:], m.Sql)
   784  		i = encodeVarint(dAtA, i, uint64(len(m.Sql)))
   785  		i--
   786  		dAtA[i] = 0x2a
   787  	}
   788  	if len(m.PrimaryKeyValues) > 0 {
   789  		for iNdEx := len(m.PrimaryKeyValues) - 1; iNdEx >= 0; iNdEx-- {
   790  			size, err := m.PrimaryKeyValues[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   791  			if err != nil {
   792  				return 0, err
   793  			}
   794  			i -= size
   795  			i = encodeVarint(dAtA, i, uint64(size))
   796  			i--
   797  			dAtA[i] = 0x22
   798  		}
   799  	}
   800  	if len(m.PrimaryKeyFields) > 0 {
   801  		for iNdEx := len(m.PrimaryKeyFields) - 1; iNdEx >= 0; iNdEx-- {
   802  			size, err := m.PrimaryKeyFields[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   803  			if err != nil {
   804  				return 0, err
   805  			}
   806  			i -= size
   807  			i = encodeVarint(dAtA, i, uint64(size))
   808  			i--
   809  			dAtA[i] = 0x1a
   810  		}
   811  	}
   812  	if len(m.TableName) > 0 {
   813  		i -= len(m.TableName)
   814  		copy(dAtA[i:], m.TableName)
   815  		i = encodeVarint(dAtA, i, uint64(len(m.TableName)))
   816  		i--
   817  		dAtA[i] = 0x12
   818  	}
   819  	if m.Category != 0 {
   820  		i = encodeVarint(dAtA, i, uint64(m.Category))
   821  		i--
   822  		dAtA[i] = 0x8
   823  	}
   824  	return len(dAtA) - i, nil
   825  }
   826  
   827  func (m *StreamEvent) MarshalVT() (dAtA []byte, err error) {
   828  	if m == nil {
   829  		return nil, nil
   830  	}
   831  	size := m.SizeVT()
   832  	dAtA = make([]byte, size)
   833  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   834  	if err != nil {
   835  		return nil, err
   836  	}
   837  	return dAtA[:n], nil
   838  }
   839  
   840  func (m *StreamEvent) MarshalToVT(dAtA []byte) (int, error) {
   841  	size := m.SizeVT()
   842  	return m.MarshalToSizedBufferVT(dAtA[:size])
   843  }
   844  
   845  func (m *StreamEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   846  	if m == nil {
   847  		return 0, nil
   848  	}
   849  	i := len(dAtA)
   850  	_ = i
   851  	var l int
   852  	_ = l
   853  	if m.unknownFields != nil {
   854  		i -= len(m.unknownFields)
   855  		copy(dAtA[i:], m.unknownFields)
   856  	}
   857  	if m.EventToken != nil {
   858  		size, err := m.EventToken.MarshalToSizedBufferVT(dAtA[:i])
   859  		if err != nil {
   860  			return 0, err
   861  		}
   862  		i -= size
   863  		i = encodeVarint(dAtA, i, uint64(size))
   864  		i--
   865  		dAtA[i] = 0x12
   866  	}
   867  	if len(m.Statements) > 0 {
   868  		for iNdEx := len(m.Statements) - 1; iNdEx >= 0; iNdEx-- {
   869  			size, err := m.Statements[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
   870  			if err != nil {
   871  				return 0, err
   872  			}
   873  			i -= size
   874  			i = encodeVarint(dAtA, i, uint64(size))
   875  			i--
   876  			dAtA[i] = 0xa
   877  		}
   878  	}
   879  	return len(dAtA) - i, nil
   880  }
   881  
   882  func (m *ExecuteRequest) 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 *ExecuteRequest) MarshalToVT(dAtA []byte) (int, error) {
   896  	size := m.SizeVT()
   897  	return m.MarshalToSizedBufferVT(dAtA[:size])
   898  }
   899  
   900  func (m *ExecuteRequest) 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 m.ReservedId != 0 {
   913  		i = encodeVarint(dAtA, i, uint64(m.ReservedId))
   914  		i--
   915  		dAtA[i] = 0x38
   916  	}
   917  	if m.Options != nil {
   918  		size, err := m.Options.MarshalToSizedBufferVT(dAtA[:i])
   919  		if err != nil {
   920  			return 0, err
   921  		}
   922  		i -= size
   923  		i = encodeVarint(dAtA, i, uint64(size))
   924  		i--
   925  		dAtA[i] = 0x32
   926  	}
   927  	if m.TransactionId != 0 {
   928  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
   929  		i--
   930  		dAtA[i] = 0x28
   931  	}
   932  	if m.Query != nil {
   933  		size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i])
   934  		if err != nil {
   935  			return 0, err
   936  		}
   937  		i -= size
   938  		i = encodeVarint(dAtA, i, uint64(size))
   939  		i--
   940  		dAtA[i] = 0x22
   941  	}
   942  	if m.Target != nil {
   943  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
   944  		if err != nil {
   945  			return 0, err
   946  		}
   947  		i -= size
   948  		i = encodeVarint(dAtA, i, uint64(size))
   949  		i--
   950  		dAtA[i] = 0x1a
   951  	}
   952  	if m.ImmediateCallerId != nil {
   953  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
   954  		if err != nil {
   955  			return 0, err
   956  		}
   957  		i -= size
   958  		i = encodeVarint(dAtA, i, uint64(size))
   959  		i--
   960  		dAtA[i] = 0x12
   961  	}
   962  	if m.EffectiveCallerId != nil {
   963  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
   964  		if err != nil {
   965  			return 0, err
   966  		}
   967  		i -= size
   968  		i = encodeVarint(dAtA, i, uint64(size))
   969  		i--
   970  		dAtA[i] = 0xa
   971  	}
   972  	return len(dAtA) - i, nil
   973  }
   974  
   975  func (m *ExecuteResponse) MarshalVT() (dAtA []byte, err error) {
   976  	if m == nil {
   977  		return nil, nil
   978  	}
   979  	size := m.SizeVT()
   980  	dAtA = make([]byte, size)
   981  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
   982  	if err != nil {
   983  		return nil, err
   984  	}
   985  	return dAtA[:n], nil
   986  }
   987  
   988  func (m *ExecuteResponse) MarshalToVT(dAtA []byte) (int, error) {
   989  	size := m.SizeVT()
   990  	return m.MarshalToSizedBufferVT(dAtA[:size])
   991  }
   992  
   993  func (m *ExecuteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
   994  	if m == nil {
   995  		return 0, nil
   996  	}
   997  	i := len(dAtA)
   998  	_ = i
   999  	var l int
  1000  	_ = l
  1001  	if m.unknownFields != nil {
  1002  		i -= len(m.unknownFields)
  1003  		copy(dAtA[i:], m.unknownFields)
  1004  	}
  1005  	if m.Result != nil {
  1006  		size, err := m.Result.MarshalToSizedBufferVT(dAtA[:i])
  1007  		if err != nil {
  1008  			return 0, err
  1009  		}
  1010  		i -= size
  1011  		i = encodeVarint(dAtA, i, uint64(size))
  1012  		i--
  1013  		dAtA[i] = 0xa
  1014  	}
  1015  	return len(dAtA) - i, nil
  1016  }
  1017  
  1018  func (m *ResultWithError) MarshalVT() (dAtA []byte, err error) {
  1019  	if m == nil {
  1020  		return nil, nil
  1021  	}
  1022  	size := m.SizeVT()
  1023  	dAtA = make([]byte, size)
  1024  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1025  	if err != nil {
  1026  		return nil, err
  1027  	}
  1028  	return dAtA[:n], nil
  1029  }
  1030  
  1031  func (m *ResultWithError) MarshalToVT(dAtA []byte) (int, error) {
  1032  	size := m.SizeVT()
  1033  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1034  }
  1035  
  1036  func (m *ResultWithError) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1037  	if m == nil {
  1038  		return 0, nil
  1039  	}
  1040  	i := len(dAtA)
  1041  	_ = i
  1042  	var l int
  1043  	_ = l
  1044  	if m.unknownFields != nil {
  1045  		i -= len(m.unknownFields)
  1046  		copy(dAtA[i:], m.unknownFields)
  1047  	}
  1048  	if m.Result != nil {
  1049  		size, err := m.Result.MarshalToSizedBufferVT(dAtA[:i])
  1050  		if err != nil {
  1051  			return 0, err
  1052  		}
  1053  		i -= size
  1054  		i = encodeVarint(dAtA, i, uint64(size))
  1055  		i--
  1056  		dAtA[i] = 0x12
  1057  	}
  1058  	if m.Error != nil {
  1059  		size, err := m.Error.MarshalToSizedBufferVT(dAtA[:i])
  1060  		if err != nil {
  1061  			return 0, err
  1062  		}
  1063  		i -= size
  1064  		i = encodeVarint(dAtA, i, uint64(size))
  1065  		i--
  1066  		dAtA[i] = 0xa
  1067  	}
  1068  	return len(dAtA) - i, nil
  1069  }
  1070  
  1071  func (m *StreamExecuteRequest) MarshalVT() (dAtA []byte, err error) {
  1072  	if m == nil {
  1073  		return nil, nil
  1074  	}
  1075  	size := m.SizeVT()
  1076  	dAtA = make([]byte, size)
  1077  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1078  	if err != nil {
  1079  		return nil, err
  1080  	}
  1081  	return dAtA[:n], nil
  1082  }
  1083  
  1084  func (m *StreamExecuteRequest) MarshalToVT(dAtA []byte) (int, error) {
  1085  	size := m.SizeVT()
  1086  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1087  }
  1088  
  1089  func (m *StreamExecuteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1090  	if m == nil {
  1091  		return 0, nil
  1092  	}
  1093  	i := len(dAtA)
  1094  	_ = i
  1095  	var l int
  1096  	_ = l
  1097  	if m.unknownFields != nil {
  1098  		i -= len(m.unknownFields)
  1099  		copy(dAtA[i:], m.unknownFields)
  1100  	}
  1101  	if m.ReservedId != 0 {
  1102  		i = encodeVarint(dAtA, i, uint64(m.ReservedId))
  1103  		i--
  1104  		dAtA[i] = 0x38
  1105  	}
  1106  	if m.TransactionId != 0 {
  1107  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  1108  		i--
  1109  		dAtA[i] = 0x30
  1110  	}
  1111  	if m.Options != nil {
  1112  		size, err := m.Options.MarshalToSizedBufferVT(dAtA[:i])
  1113  		if err != nil {
  1114  			return 0, err
  1115  		}
  1116  		i -= size
  1117  		i = encodeVarint(dAtA, i, uint64(size))
  1118  		i--
  1119  		dAtA[i] = 0x2a
  1120  	}
  1121  	if m.Query != nil {
  1122  		size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i])
  1123  		if err != nil {
  1124  			return 0, err
  1125  		}
  1126  		i -= size
  1127  		i = encodeVarint(dAtA, i, uint64(size))
  1128  		i--
  1129  		dAtA[i] = 0x22
  1130  	}
  1131  	if m.Target != nil {
  1132  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  1133  		if err != nil {
  1134  			return 0, err
  1135  		}
  1136  		i -= size
  1137  		i = encodeVarint(dAtA, i, uint64(size))
  1138  		i--
  1139  		dAtA[i] = 0x1a
  1140  	}
  1141  	if m.ImmediateCallerId != nil {
  1142  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1143  		if err != nil {
  1144  			return 0, err
  1145  		}
  1146  		i -= size
  1147  		i = encodeVarint(dAtA, i, uint64(size))
  1148  		i--
  1149  		dAtA[i] = 0x12
  1150  	}
  1151  	if m.EffectiveCallerId != nil {
  1152  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1153  		if err != nil {
  1154  			return 0, err
  1155  		}
  1156  		i -= size
  1157  		i = encodeVarint(dAtA, i, uint64(size))
  1158  		i--
  1159  		dAtA[i] = 0xa
  1160  	}
  1161  	return len(dAtA) - i, nil
  1162  }
  1163  
  1164  func (m *StreamExecuteResponse) MarshalVT() (dAtA []byte, err error) {
  1165  	if m == nil {
  1166  		return nil, nil
  1167  	}
  1168  	size := m.SizeVT()
  1169  	dAtA = make([]byte, size)
  1170  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1171  	if err != nil {
  1172  		return nil, err
  1173  	}
  1174  	return dAtA[:n], nil
  1175  }
  1176  
  1177  func (m *StreamExecuteResponse) MarshalToVT(dAtA []byte) (int, error) {
  1178  	size := m.SizeVT()
  1179  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1180  }
  1181  
  1182  func (m *StreamExecuteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1183  	if m == nil {
  1184  		return 0, nil
  1185  	}
  1186  	i := len(dAtA)
  1187  	_ = i
  1188  	var l int
  1189  	_ = l
  1190  	if m.unknownFields != nil {
  1191  		i -= len(m.unknownFields)
  1192  		copy(dAtA[i:], m.unknownFields)
  1193  	}
  1194  	if m.Result != nil {
  1195  		size, err := m.Result.MarshalToSizedBufferVT(dAtA[:i])
  1196  		if err != nil {
  1197  			return 0, err
  1198  		}
  1199  		i -= size
  1200  		i = encodeVarint(dAtA, i, uint64(size))
  1201  		i--
  1202  		dAtA[i] = 0xa
  1203  	}
  1204  	return len(dAtA) - i, nil
  1205  }
  1206  
  1207  func (m *BeginRequest) MarshalVT() (dAtA []byte, err error) {
  1208  	if m == nil {
  1209  		return nil, nil
  1210  	}
  1211  	size := m.SizeVT()
  1212  	dAtA = make([]byte, size)
  1213  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1214  	if err != nil {
  1215  		return nil, err
  1216  	}
  1217  	return dAtA[:n], nil
  1218  }
  1219  
  1220  func (m *BeginRequest) MarshalToVT(dAtA []byte) (int, error) {
  1221  	size := m.SizeVT()
  1222  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1223  }
  1224  
  1225  func (m *BeginRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1226  	if m == nil {
  1227  		return 0, nil
  1228  	}
  1229  	i := len(dAtA)
  1230  	_ = i
  1231  	var l int
  1232  	_ = l
  1233  	if m.unknownFields != nil {
  1234  		i -= len(m.unknownFields)
  1235  		copy(dAtA[i:], m.unknownFields)
  1236  	}
  1237  	if m.Options != nil {
  1238  		size, err := m.Options.MarshalToSizedBufferVT(dAtA[:i])
  1239  		if err != nil {
  1240  			return 0, err
  1241  		}
  1242  		i -= size
  1243  		i = encodeVarint(dAtA, i, uint64(size))
  1244  		i--
  1245  		dAtA[i] = 0x22
  1246  	}
  1247  	if m.Target != nil {
  1248  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  1249  		if err != nil {
  1250  			return 0, err
  1251  		}
  1252  		i -= size
  1253  		i = encodeVarint(dAtA, i, uint64(size))
  1254  		i--
  1255  		dAtA[i] = 0x1a
  1256  	}
  1257  	if m.ImmediateCallerId != nil {
  1258  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1259  		if err != nil {
  1260  			return 0, err
  1261  		}
  1262  		i -= size
  1263  		i = encodeVarint(dAtA, i, uint64(size))
  1264  		i--
  1265  		dAtA[i] = 0x12
  1266  	}
  1267  	if m.EffectiveCallerId != nil {
  1268  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1269  		if err != nil {
  1270  			return 0, err
  1271  		}
  1272  		i -= size
  1273  		i = encodeVarint(dAtA, i, uint64(size))
  1274  		i--
  1275  		dAtA[i] = 0xa
  1276  	}
  1277  	return len(dAtA) - i, nil
  1278  }
  1279  
  1280  func (m *BeginResponse) MarshalVT() (dAtA []byte, err error) {
  1281  	if m == nil {
  1282  		return nil, nil
  1283  	}
  1284  	size := m.SizeVT()
  1285  	dAtA = make([]byte, size)
  1286  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1287  	if err != nil {
  1288  		return nil, err
  1289  	}
  1290  	return dAtA[:n], nil
  1291  }
  1292  
  1293  func (m *BeginResponse) MarshalToVT(dAtA []byte) (int, error) {
  1294  	size := m.SizeVT()
  1295  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1296  }
  1297  
  1298  func (m *BeginResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1299  	if m == nil {
  1300  		return 0, nil
  1301  	}
  1302  	i := len(dAtA)
  1303  	_ = i
  1304  	var l int
  1305  	_ = l
  1306  	if m.unknownFields != nil {
  1307  		i -= len(m.unknownFields)
  1308  		copy(dAtA[i:], m.unknownFields)
  1309  	}
  1310  	if len(m.SessionStateChanges) > 0 {
  1311  		i -= len(m.SessionStateChanges)
  1312  		copy(dAtA[i:], m.SessionStateChanges)
  1313  		i = encodeVarint(dAtA, i, uint64(len(m.SessionStateChanges)))
  1314  		i--
  1315  		dAtA[i] = 0x1a
  1316  	}
  1317  	if m.TabletAlias != nil {
  1318  		size, err := m.TabletAlias.MarshalToSizedBufferVT(dAtA[:i])
  1319  		if err != nil {
  1320  			return 0, err
  1321  		}
  1322  		i -= size
  1323  		i = encodeVarint(dAtA, i, uint64(size))
  1324  		i--
  1325  		dAtA[i] = 0x12
  1326  	}
  1327  	if m.TransactionId != 0 {
  1328  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  1329  		i--
  1330  		dAtA[i] = 0x8
  1331  	}
  1332  	return len(dAtA) - i, nil
  1333  }
  1334  
  1335  func (m *CommitRequest) MarshalVT() (dAtA []byte, err error) {
  1336  	if m == nil {
  1337  		return nil, nil
  1338  	}
  1339  	size := m.SizeVT()
  1340  	dAtA = make([]byte, size)
  1341  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1342  	if err != nil {
  1343  		return nil, err
  1344  	}
  1345  	return dAtA[:n], nil
  1346  }
  1347  
  1348  func (m *CommitRequest) MarshalToVT(dAtA []byte) (int, error) {
  1349  	size := m.SizeVT()
  1350  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1351  }
  1352  
  1353  func (m *CommitRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1354  	if m == nil {
  1355  		return 0, nil
  1356  	}
  1357  	i := len(dAtA)
  1358  	_ = i
  1359  	var l int
  1360  	_ = l
  1361  	if m.unknownFields != nil {
  1362  		i -= len(m.unknownFields)
  1363  		copy(dAtA[i:], m.unknownFields)
  1364  	}
  1365  	if m.TransactionId != 0 {
  1366  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  1367  		i--
  1368  		dAtA[i] = 0x20
  1369  	}
  1370  	if m.Target != nil {
  1371  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  1372  		if err != nil {
  1373  			return 0, err
  1374  		}
  1375  		i -= size
  1376  		i = encodeVarint(dAtA, i, uint64(size))
  1377  		i--
  1378  		dAtA[i] = 0x1a
  1379  	}
  1380  	if m.ImmediateCallerId != nil {
  1381  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1382  		if err != nil {
  1383  			return 0, err
  1384  		}
  1385  		i -= size
  1386  		i = encodeVarint(dAtA, i, uint64(size))
  1387  		i--
  1388  		dAtA[i] = 0x12
  1389  	}
  1390  	if m.EffectiveCallerId != nil {
  1391  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1392  		if err != nil {
  1393  			return 0, err
  1394  		}
  1395  		i -= size
  1396  		i = encodeVarint(dAtA, i, uint64(size))
  1397  		i--
  1398  		dAtA[i] = 0xa
  1399  	}
  1400  	return len(dAtA) - i, nil
  1401  }
  1402  
  1403  func (m *CommitResponse) MarshalVT() (dAtA []byte, err error) {
  1404  	if m == nil {
  1405  		return nil, nil
  1406  	}
  1407  	size := m.SizeVT()
  1408  	dAtA = make([]byte, size)
  1409  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1410  	if err != nil {
  1411  		return nil, err
  1412  	}
  1413  	return dAtA[:n], nil
  1414  }
  1415  
  1416  func (m *CommitResponse) MarshalToVT(dAtA []byte) (int, error) {
  1417  	size := m.SizeVT()
  1418  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1419  }
  1420  
  1421  func (m *CommitResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1422  	if m == nil {
  1423  		return 0, nil
  1424  	}
  1425  	i := len(dAtA)
  1426  	_ = i
  1427  	var l int
  1428  	_ = l
  1429  	if m.unknownFields != nil {
  1430  		i -= len(m.unknownFields)
  1431  		copy(dAtA[i:], m.unknownFields)
  1432  	}
  1433  	if m.ReservedId != 0 {
  1434  		i = encodeVarint(dAtA, i, uint64(m.ReservedId))
  1435  		i--
  1436  		dAtA[i] = 0x8
  1437  	}
  1438  	return len(dAtA) - i, nil
  1439  }
  1440  
  1441  func (m *RollbackRequest) MarshalVT() (dAtA []byte, err error) {
  1442  	if m == nil {
  1443  		return nil, nil
  1444  	}
  1445  	size := m.SizeVT()
  1446  	dAtA = make([]byte, size)
  1447  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1448  	if err != nil {
  1449  		return nil, err
  1450  	}
  1451  	return dAtA[:n], nil
  1452  }
  1453  
  1454  func (m *RollbackRequest) MarshalToVT(dAtA []byte) (int, error) {
  1455  	size := m.SizeVT()
  1456  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1457  }
  1458  
  1459  func (m *RollbackRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1460  	if m == nil {
  1461  		return 0, nil
  1462  	}
  1463  	i := len(dAtA)
  1464  	_ = i
  1465  	var l int
  1466  	_ = l
  1467  	if m.unknownFields != nil {
  1468  		i -= len(m.unknownFields)
  1469  		copy(dAtA[i:], m.unknownFields)
  1470  	}
  1471  	if m.TransactionId != 0 {
  1472  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  1473  		i--
  1474  		dAtA[i] = 0x20
  1475  	}
  1476  	if m.Target != nil {
  1477  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  1478  		if err != nil {
  1479  			return 0, err
  1480  		}
  1481  		i -= size
  1482  		i = encodeVarint(dAtA, i, uint64(size))
  1483  		i--
  1484  		dAtA[i] = 0x1a
  1485  	}
  1486  	if m.ImmediateCallerId != nil {
  1487  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1488  		if err != nil {
  1489  			return 0, err
  1490  		}
  1491  		i -= size
  1492  		i = encodeVarint(dAtA, i, uint64(size))
  1493  		i--
  1494  		dAtA[i] = 0x12
  1495  	}
  1496  	if m.EffectiveCallerId != nil {
  1497  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1498  		if err != nil {
  1499  			return 0, err
  1500  		}
  1501  		i -= size
  1502  		i = encodeVarint(dAtA, i, uint64(size))
  1503  		i--
  1504  		dAtA[i] = 0xa
  1505  	}
  1506  	return len(dAtA) - i, nil
  1507  }
  1508  
  1509  func (m *RollbackResponse) MarshalVT() (dAtA []byte, err error) {
  1510  	if m == nil {
  1511  		return nil, nil
  1512  	}
  1513  	size := m.SizeVT()
  1514  	dAtA = make([]byte, size)
  1515  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1516  	if err != nil {
  1517  		return nil, err
  1518  	}
  1519  	return dAtA[:n], nil
  1520  }
  1521  
  1522  func (m *RollbackResponse) MarshalToVT(dAtA []byte) (int, error) {
  1523  	size := m.SizeVT()
  1524  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1525  }
  1526  
  1527  func (m *RollbackResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1528  	if m == nil {
  1529  		return 0, nil
  1530  	}
  1531  	i := len(dAtA)
  1532  	_ = i
  1533  	var l int
  1534  	_ = l
  1535  	if m.unknownFields != nil {
  1536  		i -= len(m.unknownFields)
  1537  		copy(dAtA[i:], m.unknownFields)
  1538  	}
  1539  	if m.ReservedId != 0 {
  1540  		i = encodeVarint(dAtA, i, uint64(m.ReservedId))
  1541  		i--
  1542  		dAtA[i] = 0x8
  1543  	}
  1544  	return len(dAtA) - i, nil
  1545  }
  1546  
  1547  func (m *PrepareRequest) MarshalVT() (dAtA []byte, err error) {
  1548  	if m == nil {
  1549  		return nil, nil
  1550  	}
  1551  	size := m.SizeVT()
  1552  	dAtA = make([]byte, size)
  1553  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1554  	if err != nil {
  1555  		return nil, err
  1556  	}
  1557  	return dAtA[:n], nil
  1558  }
  1559  
  1560  func (m *PrepareRequest) MarshalToVT(dAtA []byte) (int, error) {
  1561  	size := m.SizeVT()
  1562  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1563  }
  1564  
  1565  func (m *PrepareRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1566  	if m == nil {
  1567  		return 0, nil
  1568  	}
  1569  	i := len(dAtA)
  1570  	_ = i
  1571  	var l int
  1572  	_ = l
  1573  	if m.unknownFields != nil {
  1574  		i -= len(m.unknownFields)
  1575  		copy(dAtA[i:], m.unknownFields)
  1576  	}
  1577  	if len(m.Dtid) > 0 {
  1578  		i -= len(m.Dtid)
  1579  		copy(dAtA[i:], m.Dtid)
  1580  		i = encodeVarint(dAtA, i, uint64(len(m.Dtid)))
  1581  		i--
  1582  		dAtA[i] = 0x2a
  1583  	}
  1584  	if m.TransactionId != 0 {
  1585  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  1586  		i--
  1587  		dAtA[i] = 0x20
  1588  	}
  1589  	if m.Target != nil {
  1590  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  1591  		if err != nil {
  1592  			return 0, err
  1593  		}
  1594  		i -= size
  1595  		i = encodeVarint(dAtA, i, uint64(size))
  1596  		i--
  1597  		dAtA[i] = 0x1a
  1598  	}
  1599  	if m.ImmediateCallerId != nil {
  1600  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1601  		if err != nil {
  1602  			return 0, err
  1603  		}
  1604  		i -= size
  1605  		i = encodeVarint(dAtA, i, uint64(size))
  1606  		i--
  1607  		dAtA[i] = 0x12
  1608  	}
  1609  	if m.EffectiveCallerId != nil {
  1610  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1611  		if err != nil {
  1612  			return 0, err
  1613  		}
  1614  		i -= size
  1615  		i = encodeVarint(dAtA, i, uint64(size))
  1616  		i--
  1617  		dAtA[i] = 0xa
  1618  	}
  1619  	return len(dAtA) - i, nil
  1620  }
  1621  
  1622  func (m *PrepareResponse) MarshalVT() (dAtA []byte, err error) {
  1623  	if m == nil {
  1624  		return nil, nil
  1625  	}
  1626  	size := m.SizeVT()
  1627  	dAtA = make([]byte, size)
  1628  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1629  	if err != nil {
  1630  		return nil, err
  1631  	}
  1632  	return dAtA[:n], nil
  1633  }
  1634  
  1635  func (m *PrepareResponse) MarshalToVT(dAtA []byte) (int, error) {
  1636  	size := m.SizeVT()
  1637  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1638  }
  1639  
  1640  func (m *PrepareResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1641  	if m == nil {
  1642  		return 0, nil
  1643  	}
  1644  	i := len(dAtA)
  1645  	_ = i
  1646  	var l int
  1647  	_ = l
  1648  	if m.unknownFields != nil {
  1649  		i -= len(m.unknownFields)
  1650  		copy(dAtA[i:], m.unknownFields)
  1651  	}
  1652  	return len(dAtA) - i, nil
  1653  }
  1654  
  1655  func (m *CommitPreparedRequest) MarshalVT() (dAtA []byte, err error) {
  1656  	if m == nil {
  1657  		return nil, nil
  1658  	}
  1659  	size := m.SizeVT()
  1660  	dAtA = make([]byte, size)
  1661  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1662  	if err != nil {
  1663  		return nil, err
  1664  	}
  1665  	return dAtA[:n], nil
  1666  }
  1667  
  1668  func (m *CommitPreparedRequest) MarshalToVT(dAtA []byte) (int, error) {
  1669  	size := m.SizeVT()
  1670  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1671  }
  1672  
  1673  func (m *CommitPreparedRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1674  	if m == nil {
  1675  		return 0, nil
  1676  	}
  1677  	i := len(dAtA)
  1678  	_ = i
  1679  	var l int
  1680  	_ = l
  1681  	if m.unknownFields != nil {
  1682  		i -= len(m.unknownFields)
  1683  		copy(dAtA[i:], m.unknownFields)
  1684  	}
  1685  	if len(m.Dtid) > 0 {
  1686  		i -= len(m.Dtid)
  1687  		copy(dAtA[i:], m.Dtid)
  1688  		i = encodeVarint(dAtA, i, uint64(len(m.Dtid)))
  1689  		i--
  1690  		dAtA[i] = 0x22
  1691  	}
  1692  	if m.Target != nil {
  1693  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  1694  		if err != nil {
  1695  			return 0, err
  1696  		}
  1697  		i -= size
  1698  		i = encodeVarint(dAtA, i, uint64(size))
  1699  		i--
  1700  		dAtA[i] = 0x1a
  1701  	}
  1702  	if m.ImmediateCallerId != nil {
  1703  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1704  		if err != nil {
  1705  			return 0, err
  1706  		}
  1707  		i -= size
  1708  		i = encodeVarint(dAtA, i, uint64(size))
  1709  		i--
  1710  		dAtA[i] = 0x12
  1711  	}
  1712  	if m.EffectiveCallerId != nil {
  1713  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1714  		if err != nil {
  1715  			return 0, err
  1716  		}
  1717  		i -= size
  1718  		i = encodeVarint(dAtA, i, uint64(size))
  1719  		i--
  1720  		dAtA[i] = 0xa
  1721  	}
  1722  	return len(dAtA) - i, nil
  1723  }
  1724  
  1725  func (m *CommitPreparedResponse) MarshalVT() (dAtA []byte, err error) {
  1726  	if m == nil {
  1727  		return nil, nil
  1728  	}
  1729  	size := m.SizeVT()
  1730  	dAtA = make([]byte, size)
  1731  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1732  	if err != nil {
  1733  		return nil, err
  1734  	}
  1735  	return dAtA[:n], nil
  1736  }
  1737  
  1738  func (m *CommitPreparedResponse) MarshalToVT(dAtA []byte) (int, error) {
  1739  	size := m.SizeVT()
  1740  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1741  }
  1742  
  1743  func (m *CommitPreparedResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1744  	if m == nil {
  1745  		return 0, nil
  1746  	}
  1747  	i := len(dAtA)
  1748  	_ = i
  1749  	var l int
  1750  	_ = l
  1751  	if m.unknownFields != nil {
  1752  		i -= len(m.unknownFields)
  1753  		copy(dAtA[i:], m.unknownFields)
  1754  	}
  1755  	return len(dAtA) - i, nil
  1756  }
  1757  
  1758  func (m *RollbackPreparedRequest) MarshalVT() (dAtA []byte, err error) {
  1759  	if m == nil {
  1760  		return nil, nil
  1761  	}
  1762  	size := m.SizeVT()
  1763  	dAtA = make([]byte, size)
  1764  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1765  	if err != nil {
  1766  		return nil, err
  1767  	}
  1768  	return dAtA[:n], nil
  1769  }
  1770  
  1771  func (m *RollbackPreparedRequest) MarshalToVT(dAtA []byte) (int, error) {
  1772  	size := m.SizeVT()
  1773  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1774  }
  1775  
  1776  func (m *RollbackPreparedRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1777  	if m == nil {
  1778  		return 0, nil
  1779  	}
  1780  	i := len(dAtA)
  1781  	_ = i
  1782  	var l int
  1783  	_ = l
  1784  	if m.unknownFields != nil {
  1785  		i -= len(m.unknownFields)
  1786  		copy(dAtA[i:], m.unknownFields)
  1787  	}
  1788  	if len(m.Dtid) > 0 {
  1789  		i -= len(m.Dtid)
  1790  		copy(dAtA[i:], m.Dtid)
  1791  		i = encodeVarint(dAtA, i, uint64(len(m.Dtid)))
  1792  		i--
  1793  		dAtA[i] = 0x2a
  1794  	}
  1795  	if m.TransactionId != 0 {
  1796  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  1797  		i--
  1798  		dAtA[i] = 0x20
  1799  	}
  1800  	if m.Target != nil {
  1801  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  1802  		if err != nil {
  1803  			return 0, err
  1804  		}
  1805  		i -= size
  1806  		i = encodeVarint(dAtA, i, uint64(size))
  1807  		i--
  1808  		dAtA[i] = 0x1a
  1809  	}
  1810  	if m.ImmediateCallerId != nil {
  1811  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1812  		if err != nil {
  1813  			return 0, err
  1814  		}
  1815  		i -= size
  1816  		i = encodeVarint(dAtA, i, uint64(size))
  1817  		i--
  1818  		dAtA[i] = 0x12
  1819  	}
  1820  	if m.EffectiveCallerId != nil {
  1821  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1822  		if err != nil {
  1823  			return 0, err
  1824  		}
  1825  		i -= size
  1826  		i = encodeVarint(dAtA, i, uint64(size))
  1827  		i--
  1828  		dAtA[i] = 0xa
  1829  	}
  1830  	return len(dAtA) - i, nil
  1831  }
  1832  
  1833  func (m *RollbackPreparedResponse) MarshalVT() (dAtA []byte, err error) {
  1834  	if m == nil {
  1835  		return nil, nil
  1836  	}
  1837  	size := m.SizeVT()
  1838  	dAtA = make([]byte, size)
  1839  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1840  	if err != nil {
  1841  		return nil, err
  1842  	}
  1843  	return dAtA[:n], nil
  1844  }
  1845  
  1846  func (m *RollbackPreparedResponse) MarshalToVT(dAtA []byte) (int, error) {
  1847  	size := m.SizeVT()
  1848  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1849  }
  1850  
  1851  func (m *RollbackPreparedResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1852  	if m == nil {
  1853  		return 0, nil
  1854  	}
  1855  	i := len(dAtA)
  1856  	_ = i
  1857  	var l int
  1858  	_ = l
  1859  	if m.unknownFields != nil {
  1860  		i -= len(m.unknownFields)
  1861  		copy(dAtA[i:], m.unknownFields)
  1862  	}
  1863  	return len(dAtA) - i, nil
  1864  }
  1865  
  1866  func (m *CreateTransactionRequest) MarshalVT() (dAtA []byte, err error) {
  1867  	if m == nil {
  1868  		return nil, nil
  1869  	}
  1870  	size := m.SizeVT()
  1871  	dAtA = make([]byte, size)
  1872  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1873  	if err != nil {
  1874  		return nil, err
  1875  	}
  1876  	return dAtA[:n], nil
  1877  }
  1878  
  1879  func (m *CreateTransactionRequest) MarshalToVT(dAtA []byte) (int, error) {
  1880  	size := m.SizeVT()
  1881  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1882  }
  1883  
  1884  func (m *CreateTransactionRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1885  	if m == nil {
  1886  		return 0, nil
  1887  	}
  1888  	i := len(dAtA)
  1889  	_ = i
  1890  	var l int
  1891  	_ = l
  1892  	if m.unknownFields != nil {
  1893  		i -= len(m.unknownFields)
  1894  		copy(dAtA[i:], m.unknownFields)
  1895  	}
  1896  	if len(m.Participants) > 0 {
  1897  		for iNdEx := len(m.Participants) - 1; iNdEx >= 0; iNdEx-- {
  1898  			size, err := m.Participants[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
  1899  			if err != nil {
  1900  				return 0, err
  1901  			}
  1902  			i -= size
  1903  			i = encodeVarint(dAtA, i, uint64(size))
  1904  			i--
  1905  			dAtA[i] = 0x2a
  1906  		}
  1907  	}
  1908  	if len(m.Dtid) > 0 {
  1909  		i -= len(m.Dtid)
  1910  		copy(dAtA[i:], m.Dtid)
  1911  		i = encodeVarint(dAtA, i, uint64(len(m.Dtid)))
  1912  		i--
  1913  		dAtA[i] = 0x22
  1914  	}
  1915  	if m.Target != nil {
  1916  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  1917  		if err != nil {
  1918  			return 0, err
  1919  		}
  1920  		i -= size
  1921  		i = encodeVarint(dAtA, i, uint64(size))
  1922  		i--
  1923  		dAtA[i] = 0x1a
  1924  	}
  1925  	if m.ImmediateCallerId != nil {
  1926  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1927  		if err != nil {
  1928  			return 0, err
  1929  		}
  1930  		i -= size
  1931  		i = encodeVarint(dAtA, i, uint64(size))
  1932  		i--
  1933  		dAtA[i] = 0x12
  1934  	}
  1935  	if m.EffectiveCallerId != nil {
  1936  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  1937  		if err != nil {
  1938  			return 0, err
  1939  		}
  1940  		i -= size
  1941  		i = encodeVarint(dAtA, i, uint64(size))
  1942  		i--
  1943  		dAtA[i] = 0xa
  1944  	}
  1945  	return len(dAtA) - i, nil
  1946  }
  1947  
  1948  func (m *CreateTransactionResponse) MarshalVT() (dAtA []byte, err error) {
  1949  	if m == nil {
  1950  		return nil, nil
  1951  	}
  1952  	size := m.SizeVT()
  1953  	dAtA = make([]byte, size)
  1954  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1955  	if err != nil {
  1956  		return nil, err
  1957  	}
  1958  	return dAtA[:n], nil
  1959  }
  1960  
  1961  func (m *CreateTransactionResponse) MarshalToVT(dAtA []byte) (int, error) {
  1962  	size := m.SizeVT()
  1963  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1964  }
  1965  
  1966  func (m *CreateTransactionResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  1967  	if m == nil {
  1968  		return 0, nil
  1969  	}
  1970  	i := len(dAtA)
  1971  	_ = i
  1972  	var l int
  1973  	_ = l
  1974  	if m.unknownFields != nil {
  1975  		i -= len(m.unknownFields)
  1976  		copy(dAtA[i:], m.unknownFields)
  1977  	}
  1978  	return len(dAtA) - i, nil
  1979  }
  1980  
  1981  func (m *StartCommitRequest) MarshalVT() (dAtA []byte, err error) {
  1982  	if m == nil {
  1983  		return nil, nil
  1984  	}
  1985  	size := m.SizeVT()
  1986  	dAtA = make([]byte, size)
  1987  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  1988  	if err != nil {
  1989  		return nil, err
  1990  	}
  1991  	return dAtA[:n], nil
  1992  }
  1993  
  1994  func (m *StartCommitRequest) MarshalToVT(dAtA []byte) (int, error) {
  1995  	size := m.SizeVT()
  1996  	return m.MarshalToSizedBufferVT(dAtA[:size])
  1997  }
  1998  
  1999  func (m *StartCommitRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2000  	if m == nil {
  2001  		return 0, nil
  2002  	}
  2003  	i := len(dAtA)
  2004  	_ = i
  2005  	var l int
  2006  	_ = l
  2007  	if m.unknownFields != nil {
  2008  		i -= len(m.unknownFields)
  2009  		copy(dAtA[i:], m.unknownFields)
  2010  	}
  2011  	if len(m.Dtid) > 0 {
  2012  		i -= len(m.Dtid)
  2013  		copy(dAtA[i:], m.Dtid)
  2014  		i = encodeVarint(dAtA, i, uint64(len(m.Dtid)))
  2015  		i--
  2016  		dAtA[i] = 0x2a
  2017  	}
  2018  	if m.TransactionId != 0 {
  2019  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  2020  		i--
  2021  		dAtA[i] = 0x20
  2022  	}
  2023  	if m.Target != nil {
  2024  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  2025  		if err != nil {
  2026  			return 0, err
  2027  		}
  2028  		i -= size
  2029  		i = encodeVarint(dAtA, i, uint64(size))
  2030  		i--
  2031  		dAtA[i] = 0x1a
  2032  	}
  2033  	if m.ImmediateCallerId != nil {
  2034  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2035  		if err != nil {
  2036  			return 0, err
  2037  		}
  2038  		i -= size
  2039  		i = encodeVarint(dAtA, i, uint64(size))
  2040  		i--
  2041  		dAtA[i] = 0x12
  2042  	}
  2043  	if m.EffectiveCallerId != nil {
  2044  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2045  		if err != nil {
  2046  			return 0, err
  2047  		}
  2048  		i -= size
  2049  		i = encodeVarint(dAtA, i, uint64(size))
  2050  		i--
  2051  		dAtA[i] = 0xa
  2052  	}
  2053  	return len(dAtA) - i, nil
  2054  }
  2055  
  2056  func (m *StartCommitResponse) MarshalVT() (dAtA []byte, err error) {
  2057  	if m == nil {
  2058  		return nil, nil
  2059  	}
  2060  	size := m.SizeVT()
  2061  	dAtA = make([]byte, size)
  2062  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2063  	if err != nil {
  2064  		return nil, err
  2065  	}
  2066  	return dAtA[:n], nil
  2067  }
  2068  
  2069  func (m *StartCommitResponse) MarshalToVT(dAtA []byte) (int, error) {
  2070  	size := m.SizeVT()
  2071  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2072  }
  2073  
  2074  func (m *StartCommitResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2075  	if m == nil {
  2076  		return 0, nil
  2077  	}
  2078  	i := len(dAtA)
  2079  	_ = i
  2080  	var l int
  2081  	_ = l
  2082  	if m.unknownFields != nil {
  2083  		i -= len(m.unknownFields)
  2084  		copy(dAtA[i:], m.unknownFields)
  2085  	}
  2086  	return len(dAtA) - i, nil
  2087  }
  2088  
  2089  func (m *SetRollbackRequest) MarshalVT() (dAtA []byte, err error) {
  2090  	if m == nil {
  2091  		return nil, nil
  2092  	}
  2093  	size := m.SizeVT()
  2094  	dAtA = make([]byte, size)
  2095  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2096  	if err != nil {
  2097  		return nil, err
  2098  	}
  2099  	return dAtA[:n], nil
  2100  }
  2101  
  2102  func (m *SetRollbackRequest) MarshalToVT(dAtA []byte) (int, error) {
  2103  	size := m.SizeVT()
  2104  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2105  }
  2106  
  2107  func (m *SetRollbackRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2108  	if m == nil {
  2109  		return 0, nil
  2110  	}
  2111  	i := len(dAtA)
  2112  	_ = i
  2113  	var l int
  2114  	_ = l
  2115  	if m.unknownFields != nil {
  2116  		i -= len(m.unknownFields)
  2117  		copy(dAtA[i:], m.unknownFields)
  2118  	}
  2119  	if len(m.Dtid) > 0 {
  2120  		i -= len(m.Dtid)
  2121  		copy(dAtA[i:], m.Dtid)
  2122  		i = encodeVarint(dAtA, i, uint64(len(m.Dtid)))
  2123  		i--
  2124  		dAtA[i] = 0x2a
  2125  	}
  2126  	if m.TransactionId != 0 {
  2127  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  2128  		i--
  2129  		dAtA[i] = 0x20
  2130  	}
  2131  	if m.Target != nil {
  2132  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  2133  		if err != nil {
  2134  			return 0, err
  2135  		}
  2136  		i -= size
  2137  		i = encodeVarint(dAtA, i, uint64(size))
  2138  		i--
  2139  		dAtA[i] = 0x1a
  2140  	}
  2141  	if m.ImmediateCallerId != nil {
  2142  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2143  		if err != nil {
  2144  			return 0, err
  2145  		}
  2146  		i -= size
  2147  		i = encodeVarint(dAtA, i, uint64(size))
  2148  		i--
  2149  		dAtA[i] = 0x12
  2150  	}
  2151  	if m.EffectiveCallerId != nil {
  2152  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2153  		if err != nil {
  2154  			return 0, err
  2155  		}
  2156  		i -= size
  2157  		i = encodeVarint(dAtA, i, uint64(size))
  2158  		i--
  2159  		dAtA[i] = 0xa
  2160  	}
  2161  	return len(dAtA) - i, nil
  2162  }
  2163  
  2164  func (m *SetRollbackResponse) MarshalVT() (dAtA []byte, err error) {
  2165  	if m == nil {
  2166  		return nil, nil
  2167  	}
  2168  	size := m.SizeVT()
  2169  	dAtA = make([]byte, size)
  2170  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2171  	if err != nil {
  2172  		return nil, err
  2173  	}
  2174  	return dAtA[:n], nil
  2175  }
  2176  
  2177  func (m *SetRollbackResponse) MarshalToVT(dAtA []byte) (int, error) {
  2178  	size := m.SizeVT()
  2179  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2180  }
  2181  
  2182  func (m *SetRollbackResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2183  	if m == nil {
  2184  		return 0, nil
  2185  	}
  2186  	i := len(dAtA)
  2187  	_ = i
  2188  	var l int
  2189  	_ = l
  2190  	if m.unknownFields != nil {
  2191  		i -= len(m.unknownFields)
  2192  		copy(dAtA[i:], m.unknownFields)
  2193  	}
  2194  	return len(dAtA) - i, nil
  2195  }
  2196  
  2197  func (m *ConcludeTransactionRequest) MarshalVT() (dAtA []byte, err error) {
  2198  	if m == nil {
  2199  		return nil, nil
  2200  	}
  2201  	size := m.SizeVT()
  2202  	dAtA = make([]byte, size)
  2203  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2204  	if err != nil {
  2205  		return nil, err
  2206  	}
  2207  	return dAtA[:n], nil
  2208  }
  2209  
  2210  func (m *ConcludeTransactionRequest) MarshalToVT(dAtA []byte) (int, error) {
  2211  	size := m.SizeVT()
  2212  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2213  }
  2214  
  2215  func (m *ConcludeTransactionRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2216  	if m == nil {
  2217  		return 0, nil
  2218  	}
  2219  	i := len(dAtA)
  2220  	_ = i
  2221  	var l int
  2222  	_ = l
  2223  	if m.unknownFields != nil {
  2224  		i -= len(m.unknownFields)
  2225  		copy(dAtA[i:], m.unknownFields)
  2226  	}
  2227  	if len(m.Dtid) > 0 {
  2228  		i -= len(m.Dtid)
  2229  		copy(dAtA[i:], m.Dtid)
  2230  		i = encodeVarint(dAtA, i, uint64(len(m.Dtid)))
  2231  		i--
  2232  		dAtA[i] = 0x22
  2233  	}
  2234  	if m.Target != nil {
  2235  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  2236  		if err != nil {
  2237  			return 0, err
  2238  		}
  2239  		i -= size
  2240  		i = encodeVarint(dAtA, i, uint64(size))
  2241  		i--
  2242  		dAtA[i] = 0x1a
  2243  	}
  2244  	if m.ImmediateCallerId != nil {
  2245  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2246  		if err != nil {
  2247  			return 0, err
  2248  		}
  2249  		i -= size
  2250  		i = encodeVarint(dAtA, i, uint64(size))
  2251  		i--
  2252  		dAtA[i] = 0x12
  2253  	}
  2254  	if m.EffectiveCallerId != nil {
  2255  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2256  		if err != nil {
  2257  			return 0, err
  2258  		}
  2259  		i -= size
  2260  		i = encodeVarint(dAtA, i, uint64(size))
  2261  		i--
  2262  		dAtA[i] = 0xa
  2263  	}
  2264  	return len(dAtA) - i, nil
  2265  }
  2266  
  2267  func (m *ConcludeTransactionResponse) MarshalVT() (dAtA []byte, err error) {
  2268  	if m == nil {
  2269  		return nil, nil
  2270  	}
  2271  	size := m.SizeVT()
  2272  	dAtA = make([]byte, size)
  2273  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2274  	if err != nil {
  2275  		return nil, err
  2276  	}
  2277  	return dAtA[:n], nil
  2278  }
  2279  
  2280  func (m *ConcludeTransactionResponse) MarshalToVT(dAtA []byte) (int, error) {
  2281  	size := m.SizeVT()
  2282  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2283  }
  2284  
  2285  func (m *ConcludeTransactionResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2286  	if m == nil {
  2287  		return 0, nil
  2288  	}
  2289  	i := len(dAtA)
  2290  	_ = i
  2291  	var l int
  2292  	_ = l
  2293  	if m.unknownFields != nil {
  2294  		i -= len(m.unknownFields)
  2295  		copy(dAtA[i:], m.unknownFields)
  2296  	}
  2297  	return len(dAtA) - i, nil
  2298  }
  2299  
  2300  func (m *ReadTransactionRequest) MarshalVT() (dAtA []byte, err error) {
  2301  	if m == nil {
  2302  		return nil, nil
  2303  	}
  2304  	size := m.SizeVT()
  2305  	dAtA = make([]byte, size)
  2306  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2307  	if err != nil {
  2308  		return nil, err
  2309  	}
  2310  	return dAtA[:n], nil
  2311  }
  2312  
  2313  func (m *ReadTransactionRequest) MarshalToVT(dAtA []byte) (int, error) {
  2314  	size := m.SizeVT()
  2315  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2316  }
  2317  
  2318  func (m *ReadTransactionRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2319  	if m == nil {
  2320  		return 0, nil
  2321  	}
  2322  	i := len(dAtA)
  2323  	_ = i
  2324  	var l int
  2325  	_ = l
  2326  	if m.unknownFields != nil {
  2327  		i -= len(m.unknownFields)
  2328  		copy(dAtA[i:], m.unknownFields)
  2329  	}
  2330  	if len(m.Dtid) > 0 {
  2331  		i -= len(m.Dtid)
  2332  		copy(dAtA[i:], m.Dtid)
  2333  		i = encodeVarint(dAtA, i, uint64(len(m.Dtid)))
  2334  		i--
  2335  		dAtA[i] = 0x22
  2336  	}
  2337  	if m.Target != nil {
  2338  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  2339  		if err != nil {
  2340  			return 0, err
  2341  		}
  2342  		i -= size
  2343  		i = encodeVarint(dAtA, i, uint64(size))
  2344  		i--
  2345  		dAtA[i] = 0x1a
  2346  	}
  2347  	if m.ImmediateCallerId != nil {
  2348  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2349  		if err != nil {
  2350  			return 0, err
  2351  		}
  2352  		i -= size
  2353  		i = encodeVarint(dAtA, i, uint64(size))
  2354  		i--
  2355  		dAtA[i] = 0x12
  2356  	}
  2357  	if m.EffectiveCallerId != nil {
  2358  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2359  		if err != nil {
  2360  			return 0, err
  2361  		}
  2362  		i -= size
  2363  		i = encodeVarint(dAtA, i, uint64(size))
  2364  		i--
  2365  		dAtA[i] = 0xa
  2366  	}
  2367  	return len(dAtA) - i, nil
  2368  }
  2369  
  2370  func (m *ReadTransactionResponse) MarshalVT() (dAtA []byte, err error) {
  2371  	if m == nil {
  2372  		return nil, nil
  2373  	}
  2374  	size := m.SizeVT()
  2375  	dAtA = make([]byte, size)
  2376  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2377  	if err != nil {
  2378  		return nil, err
  2379  	}
  2380  	return dAtA[:n], nil
  2381  }
  2382  
  2383  func (m *ReadTransactionResponse) MarshalToVT(dAtA []byte) (int, error) {
  2384  	size := m.SizeVT()
  2385  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2386  }
  2387  
  2388  func (m *ReadTransactionResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2389  	if m == nil {
  2390  		return 0, nil
  2391  	}
  2392  	i := len(dAtA)
  2393  	_ = i
  2394  	var l int
  2395  	_ = l
  2396  	if m.unknownFields != nil {
  2397  		i -= len(m.unknownFields)
  2398  		copy(dAtA[i:], m.unknownFields)
  2399  	}
  2400  	if m.Metadata != nil {
  2401  		size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i])
  2402  		if err != nil {
  2403  			return 0, err
  2404  		}
  2405  		i -= size
  2406  		i = encodeVarint(dAtA, i, uint64(size))
  2407  		i--
  2408  		dAtA[i] = 0xa
  2409  	}
  2410  	return len(dAtA) - i, nil
  2411  }
  2412  
  2413  func (m *BeginExecuteRequest) MarshalVT() (dAtA []byte, err error) {
  2414  	if m == nil {
  2415  		return nil, nil
  2416  	}
  2417  	size := m.SizeVT()
  2418  	dAtA = make([]byte, size)
  2419  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2420  	if err != nil {
  2421  		return nil, err
  2422  	}
  2423  	return dAtA[:n], nil
  2424  }
  2425  
  2426  func (m *BeginExecuteRequest) MarshalToVT(dAtA []byte) (int, error) {
  2427  	size := m.SizeVT()
  2428  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2429  }
  2430  
  2431  func (m *BeginExecuteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2432  	if m == nil {
  2433  		return 0, nil
  2434  	}
  2435  	i := len(dAtA)
  2436  	_ = i
  2437  	var l int
  2438  	_ = l
  2439  	if m.unknownFields != nil {
  2440  		i -= len(m.unknownFields)
  2441  		copy(dAtA[i:], m.unknownFields)
  2442  	}
  2443  	if len(m.PreQueries) > 0 {
  2444  		for iNdEx := len(m.PreQueries) - 1; iNdEx >= 0; iNdEx-- {
  2445  			i -= len(m.PreQueries[iNdEx])
  2446  			copy(dAtA[i:], m.PreQueries[iNdEx])
  2447  			i = encodeVarint(dAtA, i, uint64(len(m.PreQueries[iNdEx])))
  2448  			i--
  2449  			dAtA[i] = 0x3a
  2450  		}
  2451  	}
  2452  	if m.ReservedId != 0 {
  2453  		i = encodeVarint(dAtA, i, uint64(m.ReservedId))
  2454  		i--
  2455  		dAtA[i] = 0x30
  2456  	}
  2457  	if m.Options != nil {
  2458  		size, err := m.Options.MarshalToSizedBufferVT(dAtA[:i])
  2459  		if err != nil {
  2460  			return 0, err
  2461  		}
  2462  		i -= size
  2463  		i = encodeVarint(dAtA, i, uint64(size))
  2464  		i--
  2465  		dAtA[i] = 0x2a
  2466  	}
  2467  	if m.Query != nil {
  2468  		size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i])
  2469  		if err != nil {
  2470  			return 0, err
  2471  		}
  2472  		i -= size
  2473  		i = encodeVarint(dAtA, i, uint64(size))
  2474  		i--
  2475  		dAtA[i] = 0x22
  2476  	}
  2477  	if m.Target != nil {
  2478  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  2479  		if err != nil {
  2480  			return 0, err
  2481  		}
  2482  		i -= size
  2483  		i = encodeVarint(dAtA, i, uint64(size))
  2484  		i--
  2485  		dAtA[i] = 0x1a
  2486  	}
  2487  	if m.ImmediateCallerId != nil {
  2488  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2489  		if err != nil {
  2490  			return 0, err
  2491  		}
  2492  		i -= size
  2493  		i = encodeVarint(dAtA, i, uint64(size))
  2494  		i--
  2495  		dAtA[i] = 0x12
  2496  	}
  2497  	if m.EffectiveCallerId != nil {
  2498  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2499  		if err != nil {
  2500  			return 0, err
  2501  		}
  2502  		i -= size
  2503  		i = encodeVarint(dAtA, i, uint64(size))
  2504  		i--
  2505  		dAtA[i] = 0xa
  2506  	}
  2507  	return len(dAtA) - i, nil
  2508  }
  2509  
  2510  func (m *BeginExecuteResponse) MarshalVT() (dAtA []byte, err error) {
  2511  	if m == nil {
  2512  		return nil, nil
  2513  	}
  2514  	size := m.SizeVT()
  2515  	dAtA = make([]byte, size)
  2516  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2517  	if err != nil {
  2518  		return nil, err
  2519  	}
  2520  	return dAtA[:n], nil
  2521  }
  2522  
  2523  func (m *BeginExecuteResponse) MarshalToVT(dAtA []byte) (int, error) {
  2524  	size := m.SizeVT()
  2525  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2526  }
  2527  
  2528  func (m *BeginExecuteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2529  	if m == nil {
  2530  		return 0, nil
  2531  	}
  2532  	i := len(dAtA)
  2533  	_ = i
  2534  	var l int
  2535  	_ = l
  2536  	if m.unknownFields != nil {
  2537  		i -= len(m.unknownFields)
  2538  		copy(dAtA[i:], m.unknownFields)
  2539  	}
  2540  	if len(m.SessionStateChanges) > 0 {
  2541  		i -= len(m.SessionStateChanges)
  2542  		copy(dAtA[i:], m.SessionStateChanges)
  2543  		i = encodeVarint(dAtA, i, uint64(len(m.SessionStateChanges)))
  2544  		i--
  2545  		dAtA[i] = 0x2a
  2546  	}
  2547  	if m.TabletAlias != nil {
  2548  		size, err := m.TabletAlias.MarshalToSizedBufferVT(dAtA[:i])
  2549  		if err != nil {
  2550  			return 0, err
  2551  		}
  2552  		i -= size
  2553  		i = encodeVarint(dAtA, i, uint64(size))
  2554  		i--
  2555  		dAtA[i] = 0x22
  2556  	}
  2557  	if m.TransactionId != 0 {
  2558  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  2559  		i--
  2560  		dAtA[i] = 0x18
  2561  	}
  2562  	if m.Result != nil {
  2563  		size, err := m.Result.MarshalToSizedBufferVT(dAtA[:i])
  2564  		if err != nil {
  2565  			return 0, err
  2566  		}
  2567  		i -= size
  2568  		i = encodeVarint(dAtA, i, uint64(size))
  2569  		i--
  2570  		dAtA[i] = 0x12
  2571  	}
  2572  	if m.Error != nil {
  2573  		size, err := m.Error.MarshalToSizedBufferVT(dAtA[:i])
  2574  		if err != nil {
  2575  			return 0, err
  2576  		}
  2577  		i -= size
  2578  		i = encodeVarint(dAtA, i, uint64(size))
  2579  		i--
  2580  		dAtA[i] = 0xa
  2581  	}
  2582  	return len(dAtA) - i, nil
  2583  }
  2584  
  2585  func (m *BeginStreamExecuteRequest) MarshalVT() (dAtA []byte, err error) {
  2586  	if m == nil {
  2587  		return nil, nil
  2588  	}
  2589  	size := m.SizeVT()
  2590  	dAtA = make([]byte, size)
  2591  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2592  	if err != nil {
  2593  		return nil, err
  2594  	}
  2595  	return dAtA[:n], nil
  2596  }
  2597  
  2598  func (m *BeginStreamExecuteRequest) MarshalToVT(dAtA []byte) (int, error) {
  2599  	size := m.SizeVT()
  2600  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2601  }
  2602  
  2603  func (m *BeginStreamExecuteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2604  	if m == nil {
  2605  		return 0, nil
  2606  	}
  2607  	i := len(dAtA)
  2608  	_ = i
  2609  	var l int
  2610  	_ = l
  2611  	if m.unknownFields != nil {
  2612  		i -= len(m.unknownFields)
  2613  		copy(dAtA[i:], m.unknownFields)
  2614  	}
  2615  	if m.ReservedId != 0 {
  2616  		i = encodeVarint(dAtA, i, uint64(m.ReservedId))
  2617  		i--
  2618  		dAtA[i] = 0x38
  2619  	}
  2620  	if len(m.PreQueries) > 0 {
  2621  		for iNdEx := len(m.PreQueries) - 1; iNdEx >= 0; iNdEx-- {
  2622  			i -= len(m.PreQueries[iNdEx])
  2623  			copy(dAtA[i:], m.PreQueries[iNdEx])
  2624  			i = encodeVarint(dAtA, i, uint64(len(m.PreQueries[iNdEx])))
  2625  			i--
  2626  			dAtA[i] = 0x32
  2627  		}
  2628  	}
  2629  	if m.Options != nil {
  2630  		size, err := m.Options.MarshalToSizedBufferVT(dAtA[:i])
  2631  		if err != nil {
  2632  			return 0, err
  2633  		}
  2634  		i -= size
  2635  		i = encodeVarint(dAtA, i, uint64(size))
  2636  		i--
  2637  		dAtA[i] = 0x2a
  2638  	}
  2639  	if m.Query != nil {
  2640  		size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i])
  2641  		if err != nil {
  2642  			return 0, err
  2643  		}
  2644  		i -= size
  2645  		i = encodeVarint(dAtA, i, uint64(size))
  2646  		i--
  2647  		dAtA[i] = 0x22
  2648  	}
  2649  	if m.Target != nil {
  2650  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  2651  		if err != nil {
  2652  			return 0, err
  2653  		}
  2654  		i -= size
  2655  		i = encodeVarint(dAtA, i, uint64(size))
  2656  		i--
  2657  		dAtA[i] = 0x1a
  2658  	}
  2659  	if m.ImmediateCallerId != nil {
  2660  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2661  		if err != nil {
  2662  			return 0, err
  2663  		}
  2664  		i -= size
  2665  		i = encodeVarint(dAtA, i, uint64(size))
  2666  		i--
  2667  		dAtA[i] = 0x12
  2668  	}
  2669  	if m.EffectiveCallerId != nil {
  2670  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2671  		if err != nil {
  2672  			return 0, err
  2673  		}
  2674  		i -= size
  2675  		i = encodeVarint(dAtA, i, uint64(size))
  2676  		i--
  2677  		dAtA[i] = 0xa
  2678  	}
  2679  	return len(dAtA) - i, nil
  2680  }
  2681  
  2682  func (m *BeginStreamExecuteResponse) MarshalVT() (dAtA []byte, err error) {
  2683  	if m == nil {
  2684  		return nil, nil
  2685  	}
  2686  	size := m.SizeVT()
  2687  	dAtA = make([]byte, size)
  2688  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2689  	if err != nil {
  2690  		return nil, err
  2691  	}
  2692  	return dAtA[:n], nil
  2693  }
  2694  
  2695  func (m *BeginStreamExecuteResponse) MarshalToVT(dAtA []byte) (int, error) {
  2696  	size := m.SizeVT()
  2697  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2698  }
  2699  
  2700  func (m *BeginStreamExecuteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2701  	if m == nil {
  2702  		return 0, nil
  2703  	}
  2704  	i := len(dAtA)
  2705  	_ = i
  2706  	var l int
  2707  	_ = l
  2708  	if m.unknownFields != nil {
  2709  		i -= len(m.unknownFields)
  2710  		copy(dAtA[i:], m.unknownFields)
  2711  	}
  2712  	if len(m.SessionStateChanges) > 0 {
  2713  		i -= len(m.SessionStateChanges)
  2714  		copy(dAtA[i:], m.SessionStateChanges)
  2715  		i = encodeVarint(dAtA, i, uint64(len(m.SessionStateChanges)))
  2716  		i--
  2717  		dAtA[i] = 0x2a
  2718  	}
  2719  	if m.TabletAlias != nil {
  2720  		size, err := m.TabletAlias.MarshalToSizedBufferVT(dAtA[:i])
  2721  		if err != nil {
  2722  			return 0, err
  2723  		}
  2724  		i -= size
  2725  		i = encodeVarint(dAtA, i, uint64(size))
  2726  		i--
  2727  		dAtA[i] = 0x22
  2728  	}
  2729  	if m.TransactionId != 0 {
  2730  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  2731  		i--
  2732  		dAtA[i] = 0x18
  2733  	}
  2734  	if m.Result != nil {
  2735  		size, err := m.Result.MarshalToSizedBufferVT(dAtA[:i])
  2736  		if err != nil {
  2737  			return 0, err
  2738  		}
  2739  		i -= size
  2740  		i = encodeVarint(dAtA, i, uint64(size))
  2741  		i--
  2742  		dAtA[i] = 0x12
  2743  	}
  2744  	if m.Error != nil {
  2745  		size, err := m.Error.MarshalToSizedBufferVT(dAtA[:i])
  2746  		if err != nil {
  2747  			return 0, err
  2748  		}
  2749  		i -= size
  2750  		i = encodeVarint(dAtA, i, uint64(size))
  2751  		i--
  2752  		dAtA[i] = 0xa
  2753  	}
  2754  	return len(dAtA) - i, nil
  2755  }
  2756  
  2757  func (m *MessageStreamRequest) MarshalVT() (dAtA []byte, err error) {
  2758  	if m == nil {
  2759  		return nil, nil
  2760  	}
  2761  	size := m.SizeVT()
  2762  	dAtA = make([]byte, size)
  2763  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2764  	if err != nil {
  2765  		return nil, err
  2766  	}
  2767  	return dAtA[:n], nil
  2768  }
  2769  
  2770  func (m *MessageStreamRequest) MarshalToVT(dAtA []byte) (int, error) {
  2771  	size := m.SizeVT()
  2772  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2773  }
  2774  
  2775  func (m *MessageStreamRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2776  	if m == nil {
  2777  		return 0, nil
  2778  	}
  2779  	i := len(dAtA)
  2780  	_ = i
  2781  	var l int
  2782  	_ = l
  2783  	if m.unknownFields != nil {
  2784  		i -= len(m.unknownFields)
  2785  		copy(dAtA[i:], m.unknownFields)
  2786  	}
  2787  	if len(m.Name) > 0 {
  2788  		i -= len(m.Name)
  2789  		copy(dAtA[i:], m.Name)
  2790  		i = encodeVarint(dAtA, i, uint64(len(m.Name)))
  2791  		i--
  2792  		dAtA[i] = 0x22
  2793  	}
  2794  	if m.Target != nil {
  2795  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  2796  		if err != nil {
  2797  			return 0, err
  2798  		}
  2799  		i -= size
  2800  		i = encodeVarint(dAtA, i, uint64(size))
  2801  		i--
  2802  		dAtA[i] = 0x1a
  2803  	}
  2804  	if m.ImmediateCallerId != nil {
  2805  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2806  		if err != nil {
  2807  			return 0, err
  2808  		}
  2809  		i -= size
  2810  		i = encodeVarint(dAtA, i, uint64(size))
  2811  		i--
  2812  		dAtA[i] = 0x12
  2813  	}
  2814  	if m.EffectiveCallerId != nil {
  2815  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2816  		if err != nil {
  2817  			return 0, err
  2818  		}
  2819  		i -= size
  2820  		i = encodeVarint(dAtA, i, uint64(size))
  2821  		i--
  2822  		dAtA[i] = 0xa
  2823  	}
  2824  	return len(dAtA) - i, nil
  2825  }
  2826  
  2827  func (m *MessageStreamResponse) MarshalVT() (dAtA []byte, err error) {
  2828  	if m == nil {
  2829  		return nil, nil
  2830  	}
  2831  	size := m.SizeVT()
  2832  	dAtA = make([]byte, size)
  2833  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2834  	if err != nil {
  2835  		return nil, err
  2836  	}
  2837  	return dAtA[:n], nil
  2838  }
  2839  
  2840  func (m *MessageStreamResponse) MarshalToVT(dAtA []byte) (int, error) {
  2841  	size := m.SizeVT()
  2842  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2843  }
  2844  
  2845  func (m *MessageStreamResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2846  	if m == nil {
  2847  		return 0, nil
  2848  	}
  2849  	i := len(dAtA)
  2850  	_ = i
  2851  	var l int
  2852  	_ = l
  2853  	if m.unknownFields != nil {
  2854  		i -= len(m.unknownFields)
  2855  		copy(dAtA[i:], m.unknownFields)
  2856  	}
  2857  	if m.Result != nil {
  2858  		size, err := m.Result.MarshalToSizedBufferVT(dAtA[:i])
  2859  		if err != nil {
  2860  			return 0, err
  2861  		}
  2862  		i -= size
  2863  		i = encodeVarint(dAtA, i, uint64(size))
  2864  		i--
  2865  		dAtA[i] = 0xa
  2866  	}
  2867  	return len(dAtA) - i, nil
  2868  }
  2869  
  2870  func (m *MessageAckRequest) MarshalVT() (dAtA []byte, err error) {
  2871  	if m == nil {
  2872  		return nil, nil
  2873  	}
  2874  	size := m.SizeVT()
  2875  	dAtA = make([]byte, size)
  2876  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2877  	if err != nil {
  2878  		return nil, err
  2879  	}
  2880  	return dAtA[:n], nil
  2881  }
  2882  
  2883  func (m *MessageAckRequest) MarshalToVT(dAtA []byte) (int, error) {
  2884  	size := m.SizeVT()
  2885  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2886  }
  2887  
  2888  func (m *MessageAckRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2889  	if m == nil {
  2890  		return 0, nil
  2891  	}
  2892  	i := len(dAtA)
  2893  	_ = i
  2894  	var l int
  2895  	_ = l
  2896  	if m.unknownFields != nil {
  2897  		i -= len(m.unknownFields)
  2898  		copy(dAtA[i:], m.unknownFields)
  2899  	}
  2900  	if len(m.Ids) > 0 {
  2901  		for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- {
  2902  			size, err := m.Ids[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
  2903  			if err != nil {
  2904  				return 0, err
  2905  			}
  2906  			i -= size
  2907  			i = encodeVarint(dAtA, i, uint64(size))
  2908  			i--
  2909  			dAtA[i] = 0x2a
  2910  		}
  2911  	}
  2912  	if len(m.Name) > 0 {
  2913  		i -= len(m.Name)
  2914  		copy(dAtA[i:], m.Name)
  2915  		i = encodeVarint(dAtA, i, uint64(len(m.Name)))
  2916  		i--
  2917  		dAtA[i] = 0x22
  2918  	}
  2919  	if m.Target != nil {
  2920  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  2921  		if err != nil {
  2922  			return 0, err
  2923  		}
  2924  		i -= size
  2925  		i = encodeVarint(dAtA, i, uint64(size))
  2926  		i--
  2927  		dAtA[i] = 0x1a
  2928  	}
  2929  	if m.ImmediateCallerId != nil {
  2930  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2931  		if err != nil {
  2932  			return 0, err
  2933  		}
  2934  		i -= size
  2935  		i = encodeVarint(dAtA, i, uint64(size))
  2936  		i--
  2937  		dAtA[i] = 0x12
  2938  	}
  2939  	if m.EffectiveCallerId != nil {
  2940  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  2941  		if err != nil {
  2942  			return 0, err
  2943  		}
  2944  		i -= size
  2945  		i = encodeVarint(dAtA, i, uint64(size))
  2946  		i--
  2947  		dAtA[i] = 0xa
  2948  	}
  2949  	return len(dAtA) - i, nil
  2950  }
  2951  
  2952  func (m *MessageAckResponse) MarshalVT() (dAtA []byte, err error) {
  2953  	if m == nil {
  2954  		return nil, nil
  2955  	}
  2956  	size := m.SizeVT()
  2957  	dAtA = make([]byte, size)
  2958  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  2959  	if err != nil {
  2960  		return nil, err
  2961  	}
  2962  	return dAtA[:n], nil
  2963  }
  2964  
  2965  func (m *MessageAckResponse) MarshalToVT(dAtA []byte) (int, error) {
  2966  	size := m.SizeVT()
  2967  	return m.MarshalToSizedBufferVT(dAtA[:size])
  2968  }
  2969  
  2970  func (m *MessageAckResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  2971  	if m == nil {
  2972  		return 0, nil
  2973  	}
  2974  	i := len(dAtA)
  2975  	_ = i
  2976  	var l int
  2977  	_ = l
  2978  	if m.unknownFields != nil {
  2979  		i -= len(m.unknownFields)
  2980  		copy(dAtA[i:], m.unknownFields)
  2981  	}
  2982  	if m.Result != nil {
  2983  		size, err := m.Result.MarshalToSizedBufferVT(dAtA[:i])
  2984  		if err != nil {
  2985  			return 0, err
  2986  		}
  2987  		i -= size
  2988  		i = encodeVarint(dAtA, i, uint64(size))
  2989  		i--
  2990  		dAtA[i] = 0xa
  2991  	}
  2992  	return len(dAtA) - i, nil
  2993  }
  2994  
  2995  func (m *ReserveExecuteRequest) MarshalVT() (dAtA []byte, err error) {
  2996  	if m == nil {
  2997  		return nil, nil
  2998  	}
  2999  	size := m.SizeVT()
  3000  	dAtA = make([]byte, size)
  3001  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3002  	if err != nil {
  3003  		return nil, err
  3004  	}
  3005  	return dAtA[:n], nil
  3006  }
  3007  
  3008  func (m *ReserveExecuteRequest) MarshalToVT(dAtA []byte) (int, error) {
  3009  	size := m.SizeVT()
  3010  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3011  }
  3012  
  3013  func (m *ReserveExecuteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3014  	if m == nil {
  3015  		return 0, nil
  3016  	}
  3017  	i := len(dAtA)
  3018  	_ = i
  3019  	var l int
  3020  	_ = l
  3021  	if m.unknownFields != nil {
  3022  		i -= len(m.unknownFields)
  3023  		copy(dAtA[i:], m.unknownFields)
  3024  	}
  3025  	if len(m.PreQueries) > 0 {
  3026  		for iNdEx := len(m.PreQueries) - 1; iNdEx >= 0; iNdEx-- {
  3027  			i -= len(m.PreQueries[iNdEx])
  3028  			copy(dAtA[i:], m.PreQueries[iNdEx])
  3029  			i = encodeVarint(dAtA, i, uint64(len(m.PreQueries[iNdEx])))
  3030  			i--
  3031  			dAtA[i] = 0x3a
  3032  		}
  3033  	}
  3034  	if m.Options != nil {
  3035  		size, err := m.Options.MarshalToSizedBufferVT(dAtA[:i])
  3036  		if err != nil {
  3037  			return 0, err
  3038  		}
  3039  		i -= size
  3040  		i = encodeVarint(dAtA, i, uint64(size))
  3041  		i--
  3042  		dAtA[i] = 0x32
  3043  	}
  3044  	if m.TransactionId != 0 {
  3045  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  3046  		i--
  3047  		dAtA[i] = 0x28
  3048  	}
  3049  	if m.Query != nil {
  3050  		size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i])
  3051  		if err != nil {
  3052  			return 0, err
  3053  		}
  3054  		i -= size
  3055  		i = encodeVarint(dAtA, i, uint64(size))
  3056  		i--
  3057  		dAtA[i] = 0x22
  3058  	}
  3059  	if m.Target != nil {
  3060  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  3061  		if err != nil {
  3062  			return 0, err
  3063  		}
  3064  		i -= size
  3065  		i = encodeVarint(dAtA, i, uint64(size))
  3066  		i--
  3067  		dAtA[i] = 0x1a
  3068  	}
  3069  	if m.ImmediateCallerId != nil {
  3070  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  3071  		if err != nil {
  3072  			return 0, err
  3073  		}
  3074  		i -= size
  3075  		i = encodeVarint(dAtA, i, uint64(size))
  3076  		i--
  3077  		dAtA[i] = 0x12
  3078  	}
  3079  	if m.EffectiveCallerId != nil {
  3080  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  3081  		if err != nil {
  3082  			return 0, err
  3083  		}
  3084  		i -= size
  3085  		i = encodeVarint(dAtA, i, uint64(size))
  3086  		i--
  3087  		dAtA[i] = 0xa
  3088  	}
  3089  	return len(dAtA) - i, nil
  3090  }
  3091  
  3092  func (m *ReserveExecuteResponse) MarshalVT() (dAtA []byte, err error) {
  3093  	if m == nil {
  3094  		return nil, nil
  3095  	}
  3096  	size := m.SizeVT()
  3097  	dAtA = make([]byte, size)
  3098  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3099  	if err != nil {
  3100  		return nil, err
  3101  	}
  3102  	return dAtA[:n], nil
  3103  }
  3104  
  3105  func (m *ReserveExecuteResponse) MarshalToVT(dAtA []byte) (int, error) {
  3106  	size := m.SizeVT()
  3107  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3108  }
  3109  
  3110  func (m *ReserveExecuteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3111  	if m == nil {
  3112  		return 0, nil
  3113  	}
  3114  	i := len(dAtA)
  3115  	_ = i
  3116  	var l int
  3117  	_ = l
  3118  	if m.unknownFields != nil {
  3119  		i -= len(m.unknownFields)
  3120  		copy(dAtA[i:], m.unknownFields)
  3121  	}
  3122  	if m.TabletAlias != nil {
  3123  		size, err := m.TabletAlias.MarshalToSizedBufferVT(dAtA[:i])
  3124  		if err != nil {
  3125  			return 0, err
  3126  		}
  3127  		i -= size
  3128  		i = encodeVarint(dAtA, i, uint64(size))
  3129  		i--
  3130  		dAtA[i] = 0x22
  3131  	}
  3132  	if m.ReservedId != 0 {
  3133  		i = encodeVarint(dAtA, i, uint64(m.ReservedId))
  3134  		i--
  3135  		dAtA[i] = 0x18
  3136  	}
  3137  	if m.Result != nil {
  3138  		size, err := m.Result.MarshalToSizedBufferVT(dAtA[:i])
  3139  		if err != nil {
  3140  			return 0, err
  3141  		}
  3142  		i -= size
  3143  		i = encodeVarint(dAtA, i, uint64(size))
  3144  		i--
  3145  		dAtA[i] = 0x12
  3146  	}
  3147  	if m.Error != nil {
  3148  		size, err := m.Error.MarshalToSizedBufferVT(dAtA[:i])
  3149  		if err != nil {
  3150  			return 0, err
  3151  		}
  3152  		i -= size
  3153  		i = encodeVarint(dAtA, i, uint64(size))
  3154  		i--
  3155  		dAtA[i] = 0xa
  3156  	}
  3157  	return len(dAtA) - i, nil
  3158  }
  3159  
  3160  func (m *ReserveStreamExecuteRequest) MarshalVT() (dAtA []byte, err error) {
  3161  	if m == nil {
  3162  		return nil, nil
  3163  	}
  3164  	size := m.SizeVT()
  3165  	dAtA = make([]byte, size)
  3166  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3167  	if err != nil {
  3168  		return nil, err
  3169  	}
  3170  	return dAtA[:n], nil
  3171  }
  3172  
  3173  func (m *ReserveStreamExecuteRequest) MarshalToVT(dAtA []byte) (int, error) {
  3174  	size := m.SizeVT()
  3175  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3176  }
  3177  
  3178  func (m *ReserveStreamExecuteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3179  	if m == nil {
  3180  		return 0, nil
  3181  	}
  3182  	i := len(dAtA)
  3183  	_ = i
  3184  	var l int
  3185  	_ = l
  3186  	if m.unknownFields != nil {
  3187  		i -= len(m.unknownFields)
  3188  		copy(dAtA[i:], m.unknownFields)
  3189  	}
  3190  	if len(m.PreQueries) > 0 {
  3191  		for iNdEx := len(m.PreQueries) - 1; iNdEx >= 0; iNdEx-- {
  3192  			i -= len(m.PreQueries[iNdEx])
  3193  			copy(dAtA[i:], m.PreQueries[iNdEx])
  3194  			i = encodeVarint(dAtA, i, uint64(len(m.PreQueries[iNdEx])))
  3195  			i--
  3196  			dAtA[i] = 0x3a
  3197  		}
  3198  	}
  3199  	if m.TransactionId != 0 {
  3200  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  3201  		i--
  3202  		dAtA[i] = 0x30
  3203  	}
  3204  	if m.Options != nil {
  3205  		size, err := m.Options.MarshalToSizedBufferVT(dAtA[:i])
  3206  		if err != nil {
  3207  			return 0, err
  3208  		}
  3209  		i -= size
  3210  		i = encodeVarint(dAtA, i, uint64(size))
  3211  		i--
  3212  		dAtA[i] = 0x2a
  3213  	}
  3214  	if m.Query != nil {
  3215  		size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i])
  3216  		if err != nil {
  3217  			return 0, err
  3218  		}
  3219  		i -= size
  3220  		i = encodeVarint(dAtA, i, uint64(size))
  3221  		i--
  3222  		dAtA[i] = 0x22
  3223  	}
  3224  	if m.Target != nil {
  3225  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  3226  		if err != nil {
  3227  			return 0, err
  3228  		}
  3229  		i -= size
  3230  		i = encodeVarint(dAtA, i, uint64(size))
  3231  		i--
  3232  		dAtA[i] = 0x1a
  3233  	}
  3234  	if m.ImmediateCallerId != nil {
  3235  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  3236  		if err != nil {
  3237  			return 0, err
  3238  		}
  3239  		i -= size
  3240  		i = encodeVarint(dAtA, i, uint64(size))
  3241  		i--
  3242  		dAtA[i] = 0x12
  3243  	}
  3244  	if m.EffectiveCallerId != nil {
  3245  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  3246  		if err != nil {
  3247  			return 0, err
  3248  		}
  3249  		i -= size
  3250  		i = encodeVarint(dAtA, i, uint64(size))
  3251  		i--
  3252  		dAtA[i] = 0xa
  3253  	}
  3254  	return len(dAtA) - i, nil
  3255  }
  3256  
  3257  func (m *ReserveStreamExecuteResponse) MarshalVT() (dAtA []byte, err error) {
  3258  	if m == nil {
  3259  		return nil, nil
  3260  	}
  3261  	size := m.SizeVT()
  3262  	dAtA = make([]byte, size)
  3263  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3264  	if err != nil {
  3265  		return nil, err
  3266  	}
  3267  	return dAtA[:n], nil
  3268  }
  3269  
  3270  func (m *ReserveStreamExecuteResponse) MarshalToVT(dAtA []byte) (int, error) {
  3271  	size := m.SizeVT()
  3272  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3273  }
  3274  
  3275  func (m *ReserveStreamExecuteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3276  	if m == nil {
  3277  		return 0, nil
  3278  	}
  3279  	i := len(dAtA)
  3280  	_ = i
  3281  	var l int
  3282  	_ = l
  3283  	if m.unknownFields != nil {
  3284  		i -= len(m.unknownFields)
  3285  		copy(dAtA[i:], m.unknownFields)
  3286  	}
  3287  	if m.TabletAlias != nil {
  3288  		size, err := m.TabletAlias.MarshalToSizedBufferVT(dAtA[:i])
  3289  		if err != nil {
  3290  			return 0, err
  3291  		}
  3292  		i -= size
  3293  		i = encodeVarint(dAtA, i, uint64(size))
  3294  		i--
  3295  		dAtA[i] = 0x22
  3296  	}
  3297  	if m.ReservedId != 0 {
  3298  		i = encodeVarint(dAtA, i, uint64(m.ReservedId))
  3299  		i--
  3300  		dAtA[i] = 0x18
  3301  	}
  3302  	if m.Result != nil {
  3303  		size, err := m.Result.MarshalToSizedBufferVT(dAtA[:i])
  3304  		if err != nil {
  3305  			return 0, err
  3306  		}
  3307  		i -= size
  3308  		i = encodeVarint(dAtA, i, uint64(size))
  3309  		i--
  3310  		dAtA[i] = 0x12
  3311  	}
  3312  	if m.Error != nil {
  3313  		size, err := m.Error.MarshalToSizedBufferVT(dAtA[:i])
  3314  		if err != nil {
  3315  			return 0, err
  3316  		}
  3317  		i -= size
  3318  		i = encodeVarint(dAtA, i, uint64(size))
  3319  		i--
  3320  		dAtA[i] = 0xa
  3321  	}
  3322  	return len(dAtA) - i, nil
  3323  }
  3324  
  3325  func (m *ReserveBeginExecuteRequest) MarshalVT() (dAtA []byte, err error) {
  3326  	if m == nil {
  3327  		return nil, nil
  3328  	}
  3329  	size := m.SizeVT()
  3330  	dAtA = make([]byte, size)
  3331  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3332  	if err != nil {
  3333  		return nil, err
  3334  	}
  3335  	return dAtA[:n], nil
  3336  }
  3337  
  3338  func (m *ReserveBeginExecuteRequest) MarshalToVT(dAtA []byte) (int, error) {
  3339  	size := m.SizeVT()
  3340  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3341  }
  3342  
  3343  func (m *ReserveBeginExecuteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3344  	if m == nil {
  3345  		return 0, nil
  3346  	}
  3347  	i := len(dAtA)
  3348  	_ = i
  3349  	var l int
  3350  	_ = l
  3351  	if m.unknownFields != nil {
  3352  		i -= len(m.unknownFields)
  3353  		copy(dAtA[i:], m.unknownFields)
  3354  	}
  3355  	if len(m.PostBeginQueries) > 0 {
  3356  		for iNdEx := len(m.PostBeginQueries) - 1; iNdEx >= 0; iNdEx-- {
  3357  			i -= len(m.PostBeginQueries[iNdEx])
  3358  			copy(dAtA[i:], m.PostBeginQueries[iNdEx])
  3359  			i = encodeVarint(dAtA, i, uint64(len(m.PostBeginQueries[iNdEx])))
  3360  			i--
  3361  			dAtA[i] = 0x3a
  3362  		}
  3363  	}
  3364  	if len(m.PreQueries) > 0 {
  3365  		for iNdEx := len(m.PreQueries) - 1; iNdEx >= 0; iNdEx-- {
  3366  			i -= len(m.PreQueries[iNdEx])
  3367  			copy(dAtA[i:], m.PreQueries[iNdEx])
  3368  			i = encodeVarint(dAtA, i, uint64(len(m.PreQueries[iNdEx])))
  3369  			i--
  3370  			dAtA[i] = 0x32
  3371  		}
  3372  	}
  3373  	if m.Options != nil {
  3374  		size, err := m.Options.MarshalToSizedBufferVT(dAtA[:i])
  3375  		if err != nil {
  3376  			return 0, err
  3377  		}
  3378  		i -= size
  3379  		i = encodeVarint(dAtA, i, uint64(size))
  3380  		i--
  3381  		dAtA[i] = 0x2a
  3382  	}
  3383  	if m.Query != nil {
  3384  		size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i])
  3385  		if err != nil {
  3386  			return 0, err
  3387  		}
  3388  		i -= size
  3389  		i = encodeVarint(dAtA, i, uint64(size))
  3390  		i--
  3391  		dAtA[i] = 0x22
  3392  	}
  3393  	if m.Target != nil {
  3394  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  3395  		if err != nil {
  3396  			return 0, err
  3397  		}
  3398  		i -= size
  3399  		i = encodeVarint(dAtA, i, uint64(size))
  3400  		i--
  3401  		dAtA[i] = 0x1a
  3402  	}
  3403  	if m.ImmediateCallerId != nil {
  3404  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  3405  		if err != nil {
  3406  			return 0, err
  3407  		}
  3408  		i -= size
  3409  		i = encodeVarint(dAtA, i, uint64(size))
  3410  		i--
  3411  		dAtA[i] = 0x12
  3412  	}
  3413  	if m.EffectiveCallerId != nil {
  3414  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  3415  		if err != nil {
  3416  			return 0, err
  3417  		}
  3418  		i -= size
  3419  		i = encodeVarint(dAtA, i, uint64(size))
  3420  		i--
  3421  		dAtA[i] = 0xa
  3422  	}
  3423  	return len(dAtA) - i, nil
  3424  }
  3425  
  3426  func (m *ReserveBeginExecuteResponse) MarshalVT() (dAtA []byte, err error) {
  3427  	if m == nil {
  3428  		return nil, nil
  3429  	}
  3430  	size := m.SizeVT()
  3431  	dAtA = make([]byte, size)
  3432  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3433  	if err != nil {
  3434  		return nil, err
  3435  	}
  3436  	return dAtA[:n], nil
  3437  }
  3438  
  3439  func (m *ReserveBeginExecuteResponse) MarshalToVT(dAtA []byte) (int, error) {
  3440  	size := m.SizeVT()
  3441  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3442  }
  3443  
  3444  func (m *ReserveBeginExecuteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3445  	if m == nil {
  3446  		return 0, nil
  3447  	}
  3448  	i := len(dAtA)
  3449  	_ = i
  3450  	var l int
  3451  	_ = l
  3452  	if m.unknownFields != nil {
  3453  		i -= len(m.unknownFields)
  3454  		copy(dAtA[i:], m.unknownFields)
  3455  	}
  3456  	if len(m.SessionStateChanges) > 0 {
  3457  		i -= len(m.SessionStateChanges)
  3458  		copy(dAtA[i:], m.SessionStateChanges)
  3459  		i = encodeVarint(dAtA, i, uint64(len(m.SessionStateChanges)))
  3460  		i--
  3461  		dAtA[i] = 0x32
  3462  	}
  3463  	if m.TabletAlias != nil {
  3464  		size, err := m.TabletAlias.MarshalToSizedBufferVT(dAtA[:i])
  3465  		if err != nil {
  3466  			return 0, err
  3467  		}
  3468  		i -= size
  3469  		i = encodeVarint(dAtA, i, uint64(size))
  3470  		i--
  3471  		dAtA[i] = 0x2a
  3472  	}
  3473  	if m.ReservedId != 0 {
  3474  		i = encodeVarint(dAtA, i, uint64(m.ReservedId))
  3475  		i--
  3476  		dAtA[i] = 0x20
  3477  	}
  3478  	if m.TransactionId != 0 {
  3479  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  3480  		i--
  3481  		dAtA[i] = 0x18
  3482  	}
  3483  	if m.Result != nil {
  3484  		size, err := m.Result.MarshalToSizedBufferVT(dAtA[:i])
  3485  		if err != nil {
  3486  			return 0, err
  3487  		}
  3488  		i -= size
  3489  		i = encodeVarint(dAtA, i, uint64(size))
  3490  		i--
  3491  		dAtA[i] = 0x12
  3492  	}
  3493  	if m.Error != nil {
  3494  		size, err := m.Error.MarshalToSizedBufferVT(dAtA[:i])
  3495  		if err != nil {
  3496  			return 0, err
  3497  		}
  3498  		i -= size
  3499  		i = encodeVarint(dAtA, i, uint64(size))
  3500  		i--
  3501  		dAtA[i] = 0xa
  3502  	}
  3503  	return len(dAtA) - i, nil
  3504  }
  3505  
  3506  func (m *ReserveBeginStreamExecuteRequest) MarshalVT() (dAtA []byte, err error) {
  3507  	if m == nil {
  3508  		return nil, nil
  3509  	}
  3510  	size := m.SizeVT()
  3511  	dAtA = make([]byte, size)
  3512  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3513  	if err != nil {
  3514  		return nil, err
  3515  	}
  3516  	return dAtA[:n], nil
  3517  }
  3518  
  3519  func (m *ReserveBeginStreamExecuteRequest) MarshalToVT(dAtA []byte) (int, error) {
  3520  	size := m.SizeVT()
  3521  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3522  }
  3523  
  3524  func (m *ReserveBeginStreamExecuteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3525  	if m == nil {
  3526  		return 0, nil
  3527  	}
  3528  	i := len(dAtA)
  3529  	_ = i
  3530  	var l int
  3531  	_ = l
  3532  	if m.unknownFields != nil {
  3533  		i -= len(m.unknownFields)
  3534  		copy(dAtA[i:], m.unknownFields)
  3535  	}
  3536  	if len(m.PostBeginQueries) > 0 {
  3537  		for iNdEx := len(m.PostBeginQueries) - 1; iNdEx >= 0; iNdEx-- {
  3538  			i -= len(m.PostBeginQueries[iNdEx])
  3539  			copy(dAtA[i:], m.PostBeginQueries[iNdEx])
  3540  			i = encodeVarint(dAtA, i, uint64(len(m.PostBeginQueries[iNdEx])))
  3541  			i--
  3542  			dAtA[i] = 0x3a
  3543  		}
  3544  	}
  3545  	if len(m.PreQueries) > 0 {
  3546  		for iNdEx := len(m.PreQueries) - 1; iNdEx >= 0; iNdEx-- {
  3547  			i -= len(m.PreQueries[iNdEx])
  3548  			copy(dAtA[i:], m.PreQueries[iNdEx])
  3549  			i = encodeVarint(dAtA, i, uint64(len(m.PreQueries[iNdEx])))
  3550  			i--
  3551  			dAtA[i] = 0x32
  3552  		}
  3553  	}
  3554  	if m.Options != nil {
  3555  		size, err := m.Options.MarshalToSizedBufferVT(dAtA[:i])
  3556  		if err != nil {
  3557  			return 0, err
  3558  		}
  3559  		i -= size
  3560  		i = encodeVarint(dAtA, i, uint64(size))
  3561  		i--
  3562  		dAtA[i] = 0x2a
  3563  	}
  3564  	if m.Query != nil {
  3565  		size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i])
  3566  		if err != nil {
  3567  			return 0, err
  3568  		}
  3569  		i -= size
  3570  		i = encodeVarint(dAtA, i, uint64(size))
  3571  		i--
  3572  		dAtA[i] = 0x22
  3573  	}
  3574  	if m.Target != nil {
  3575  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  3576  		if err != nil {
  3577  			return 0, err
  3578  		}
  3579  		i -= size
  3580  		i = encodeVarint(dAtA, i, uint64(size))
  3581  		i--
  3582  		dAtA[i] = 0x1a
  3583  	}
  3584  	if m.ImmediateCallerId != nil {
  3585  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  3586  		if err != nil {
  3587  			return 0, err
  3588  		}
  3589  		i -= size
  3590  		i = encodeVarint(dAtA, i, uint64(size))
  3591  		i--
  3592  		dAtA[i] = 0x12
  3593  	}
  3594  	if m.EffectiveCallerId != nil {
  3595  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  3596  		if err != nil {
  3597  			return 0, err
  3598  		}
  3599  		i -= size
  3600  		i = encodeVarint(dAtA, i, uint64(size))
  3601  		i--
  3602  		dAtA[i] = 0xa
  3603  	}
  3604  	return len(dAtA) - i, nil
  3605  }
  3606  
  3607  func (m *ReserveBeginStreamExecuteResponse) MarshalVT() (dAtA []byte, err error) {
  3608  	if m == nil {
  3609  		return nil, nil
  3610  	}
  3611  	size := m.SizeVT()
  3612  	dAtA = make([]byte, size)
  3613  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3614  	if err != nil {
  3615  		return nil, err
  3616  	}
  3617  	return dAtA[:n], nil
  3618  }
  3619  
  3620  func (m *ReserveBeginStreamExecuteResponse) MarshalToVT(dAtA []byte) (int, error) {
  3621  	size := m.SizeVT()
  3622  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3623  }
  3624  
  3625  func (m *ReserveBeginStreamExecuteResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3626  	if m == nil {
  3627  		return 0, nil
  3628  	}
  3629  	i := len(dAtA)
  3630  	_ = i
  3631  	var l int
  3632  	_ = l
  3633  	if m.unknownFields != nil {
  3634  		i -= len(m.unknownFields)
  3635  		copy(dAtA[i:], m.unknownFields)
  3636  	}
  3637  	if len(m.SessionStateChanges) > 0 {
  3638  		i -= len(m.SessionStateChanges)
  3639  		copy(dAtA[i:], m.SessionStateChanges)
  3640  		i = encodeVarint(dAtA, i, uint64(len(m.SessionStateChanges)))
  3641  		i--
  3642  		dAtA[i] = 0x32
  3643  	}
  3644  	if m.TabletAlias != nil {
  3645  		size, err := m.TabletAlias.MarshalToSizedBufferVT(dAtA[:i])
  3646  		if err != nil {
  3647  			return 0, err
  3648  		}
  3649  		i -= size
  3650  		i = encodeVarint(dAtA, i, uint64(size))
  3651  		i--
  3652  		dAtA[i] = 0x2a
  3653  	}
  3654  	if m.ReservedId != 0 {
  3655  		i = encodeVarint(dAtA, i, uint64(m.ReservedId))
  3656  		i--
  3657  		dAtA[i] = 0x20
  3658  	}
  3659  	if m.TransactionId != 0 {
  3660  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  3661  		i--
  3662  		dAtA[i] = 0x18
  3663  	}
  3664  	if m.Result != nil {
  3665  		size, err := m.Result.MarshalToSizedBufferVT(dAtA[:i])
  3666  		if err != nil {
  3667  			return 0, err
  3668  		}
  3669  		i -= size
  3670  		i = encodeVarint(dAtA, i, uint64(size))
  3671  		i--
  3672  		dAtA[i] = 0x12
  3673  	}
  3674  	if m.Error != nil {
  3675  		size, err := m.Error.MarshalToSizedBufferVT(dAtA[:i])
  3676  		if err != nil {
  3677  			return 0, err
  3678  		}
  3679  		i -= size
  3680  		i = encodeVarint(dAtA, i, uint64(size))
  3681  		i--
  3682  		dAtA[i] = 0xa
  3683  	}
  3684  	return len(dAtA) - i, nil
  3685  }
  3686  
  3687  func (m *ReleaseRequest) MarshalVT() (dAtA []byte, err error) {
  3688  	if m == nil {
  3689  		return nil, nil
  3690  	}
  3691  	size := m.SizeVT()
  3692  	dAtA = make([]byte, size)
  3693  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3694  	if err != nil {
  3695  		return nil, err
  3696  	}
  3697  	return dAtA[:n], nil
  3698  }
  3699  
  3700  func (m *ReleaseRequest) MarshalToVT(dAtA []byte) (int, error) {
  3701  	size := m.SizeVT()
  3702  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3703  }
  3704  
  3705  func (m *ReleaseRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3706  	if m == nil {
  3707  		return 0, nil
  3708  	}
  3709  	i := len(dAtA)
  3710  	_ = i
  3711  	var l int
  3712  	_ = l
  3713  	if m.unknownFields != nil {
  3714  		i -= len(m.unknownFields)
  3715  		copy(dAtA[i:], m.unknownFields)
  3716  	}
  3717  	if m.ReservedId != 0 {
  3718  		i = encodeVarint(dAtA, i, uint64(m.ReservedId))
  3719  		i--
  3720  		dAtA[i] = 0x28
  3721  	}
  3722  	if m.TransactionId != 0 {
  3723  		i = encodeVarint(dAtA, i, uint64(m.TransactionId))
  3724  		i--
  3725  		dAtA[i] = 0x20
  3726  	}
  3727  	if m.Target != nil {
  3728  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  3729  		if err != nil {
  3730  			return 0, err
  3731  		}
  3732  		i -= size
  3733  		i = encodeVarint(dAtA, i, uint64(size))
  3734  		i--
  3735  		dAtA[i] = 0x1a
  3736  	}
  3737  	if m.ImmediateCallerId != nil {
  3738  		size, err := m.ImmediateCallerId.MarshalToSizedBufferVT(dAtA[:i])
  3739  		if err != nil {
  3740  			return 0, err
  3741  		}
  3742  		i -= size
  3743  		i = encodeVarint(dAtA, i, uint64(size))
  3744  		i--
  3745  		dAtA[i] = 0x12
  3746  	}
  3747  	if m.EffectiveCallerId != nil {
  3748  		size, err := m.EffectiveCallerId.MarshalToSizedBufferVT(dAtA[:i])
  3749  		if err != nil {
  3750  			return 0, err
  3751  		}
  3752  		i -= size
  3753  		i = encodeVarint(dAtA, i, uint64(size))
  3754  		i--
  3755  		dAtA[i] = 0xa
  3756  	}
  3757  	return len(dAtA) - i, nil
  3758  }
  3759  
  3760  func (m *ReleaseResponse) MarshalVT() (dAtA []byte, err error) {
  3761  	if m == nil {
  3762  		return nil, nil
  3763  	}
  3764  	size := m.SizeVT()
  3765  	dAtA = make([]byte, size)
  3766  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3767  	if err != nil {
  3768  		return nil, err
  3769  	}
  3770  	return dAtA[:n], nil
  3771  }
  3772  
  3773  func (m *ReleaseResponse) MarshalToVT(dAtA []byte) (int, error) {
  3774  	size := m.SizeVT()
  3775  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3776  }
  3777  
  3778  func (m *ReleaseResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3779  	if m == nil {
  3780  		return 0, nil
  3781  	}
  3782  	i := len(dAtA)
  3783  	_ = i
  3784  	var l int
  3785  	_ = l
  3786  	if m.unknownFields != nil {
  3787  		i -= len(m.unknownFields)
  3788  		copy(dAtA[i:], m.unknownFields)
  3789  	}
  3790  	return len(dAtA) - i, nil
  3791  }
  3792  
  3793  func (m *StreamHealthRequest) MarshalVT() (dAtA []byte, err error) {
  3794  	if m == nil {
  3795  		return nil, nil
  3796  	}
  3797  	size := m.SizeVT()
  3798  	dAtA = make([]byte, size)
  3799  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3800  	if err != nil {
  3801  		return nil, err
  3802  	}
  3803  	return dAtA[:n], nil
  3804  }
  3805  
  3806  func (m *StreamHealthRequest) MarshalToVT(dAtA []byte) (int, error) {
  3807  	size := m.SizeVT()
  3808  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3809  }
  3810  
  3811  func (m *StreamHealthRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3812  	if m == nil {
  3813  		return 0, nil
  3814  	}
  3815  	i := len(dAtA)
  3816  	_ = i
  3817  	var l int
  3818  	_ = l
  3819  	if m.unknownFields != nil {
  3820  		i -= len(m.unknownFields)
  3821  		copy(dAtA[i:], m.unknownFields)
  3822  	}
  3823  	return len(dAtA) - i, nil
  3824  }
  3825  
  3826  func (m *RealtimeStats) MarshalVT() (dAtA []byte, err error) {
  3827  	if m == nil {
  3828  		return nil, nil
  3829  	}
  3830  	size := m.SizeVT()
  3831  	dAtA = make([]byte, size)
  3832  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3833  	if err != nil {
  3834  		return nil, err
  3835  	}
  3836  	return dAtA[:n], nil
  3837  }
  3838  
  3839  func (m *RealtimeStats) MarshalToVT(dAtA []byte) (int, error) {
  3840  	size := m.SizeVT()
  3841  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3842  }
  3843  
  3844  func (m *RealtimeStats) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3845  	if m == nil {
  3846  		return 0, nil
  3847  	}
  3848  	i := len(dAtA)
  3849  	_ = i
  3850  	var l int
  3851  	_ = l
  3852  	if m.unknownFields != nil {
  3853  		i -= len(m.unknownFields)
  3854  		copy(dAtA[i:], m.unknownFields)
  3855  	}
  3856  	if len(m.ViewSchemaChanged) > 0 {
  3857  		for iNdEx := len(m.ViewSchemaChanged) - 1; iNdEx >= 0; iNdEx-- {
  3858  			i -= len(m.ViewSchemaChanged[iNdEx])
  3859  			copy(dAtA[i:], m.ViewSchemaChanged[iNdEx])
  3860  			i = encodeVarint(dAtA, i, uint64(len(m.ViewSchemaChanged[iNdEx])))
  3861  			i--
  3862  			dAtA[i] = 0x42
  3863  		}
  3864  	}
  3865  	if len(m.TableSchemaChanged) > 0 {
  3866  		for iNdEx := len(m.TableSchemaChanged) - 1; iNdEx >= 0; iNdEx-- {
  3867  			i -= len(m.TableSchemaChanged[iNdEx])
  3868  			copy(dAtA[i:], m.TableSchemaChanged[iNdEx])
  3869  			i = encodeVarint(dAtA, i, uint64(len(m.TableSchemaChanged[iNdEx])))
  3870  			i--
  3871  			dAtA[i] = 0x3a
  3872  		}
  3873  	}
  3874  	if m.Qps != 0 {
  3875  		i -= 8
  3876  		binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Qps))))
  3877  		i--
  3878  		dAtA[i] = 0x31
  3879  	}
  3880  	if m.CpuUsage != 0 {
  3881  		i -= 8
  3882  		binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CpuUsage))))
  3883  		i--
  3884  		dAtA[i] = 0x29
  3885  	}
  3886  	if m.FilteredReplicationLagSeconds != 0 {
  3887  		i = encodeVarint(dAtA, i, uint64(m.FilteredReplicationLagSeconds))
  3888  		i--
  3889  		dAtA[i] = 0x20
  3890  	}
  3891  	if m.BinlogPlayersCount != 0 {
  3892  		i = encodeVarint(dAtA, i, uint64(m.BinlogPlayersCount))
  3893  		i--
  3894  		dAtA[i] = 0x18
  3895  	}
  3896  	if m.ReplicationLagSeconds != 0 {
  3897  		i = encodeVarint(dAtA, i, uint64(m.ReplicationLagSeconds))
  3898  		i--
  3899  		dAtA[i] = 0x10
  3900  	}
  3901  	if len(m.HealthError) > 0 {
  3902  		i -= len(m.HealthError)
  3903  		copy(dAtA[i:], m.HealthError)
  3904  		i = encodeVarint(dAtA, i, uint64(len(m.HealthError)))
  3905  		i--
  3906  		dAtA[i] = 0xa
  3907  	}
  3908  	return len(dAtA) - i, nil
  3909  }
  3910  
  3911  func (m *AggregateStats) MarshalVT() (dAtA []byte, err error) {
  3912  	if m == nil {
  3913  		return nil, nil
  3914  	}
  3915  	size := m.SizeVT()
  3916  	dAtA = make([]byte, size)
  3917  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3918  	if err != nil {
  3919  		return nil, err
  3920  	}
  3921  	return dAtA[:n], nil
  3922  }
  3923  
  3924  func (m *AggregateStats) MarshalToVT(dAtA []byte) (int, error) {
  3925  	size := m.SizeVT()
  3926  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3927  }
  3928  
  3929  func (m *AggregateStats) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3930  	if m == nil {
  3931  		return 0, nil
  3932  	}
  3933  	i := len(dAtA)
  3934  	_ = i
  3935  	var l int
  3936  	_ = l
  3937  	if m.unknownFields != nil {
  3938  		i -= len(m.unknownFields)
  3939  		copy(dAtA[i:], m.unknownFields)
  3940  	}
  3941  	if m.ReplicationLagSecondsMax != 0 {
  3942  		i = encodeVarint(dAtA, i, uint64(m.ReplicationLagSecondsMax))
  3943  		i--
  3944  		dAtA[i] = 0x20
  3945  	}
  3946  	if m.ReplicationLagSecondsMin != 0 {
  3947  		i = encodeVarint(dAtA, i, uint64(m.ReplicationLagSecondsMin))
  3948  		i--
  3949  		dAtA[i] = 0x18
  3950  	}
  3951  	if m.UnhealthyTabletCount != 0 {
  3952  		i = encodeVarint(dAtA, i, uint64(m.UnhealthyTabletCount))
  3953  		i--
  3954  		dAtA[i] = 0x10
  3955  	}
  3956  	if m.HealthyTabletCount != 0 {
  3957  		i = encodeVarint(dAtA, i, uint64(m.HealthyTabletCount))
  3958  		i--
  3959  		dAtA[i] = 0x8
  3960  	}
  3961  	return len(dAtA) - i, nil
  3962  }
  3963  
  3964  func (m *StreamHealthResponse) MarshalVT() (dAtA []byte, err error) {
  3965  	if m == nil {
  3966  		return nil, nil
  3967  	}
  3968  	size := m.SizeVT()
  3969  	dAtA = make([]byte, size)
  3970  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  3971  	if err != nil {
  3972  		return nil, err
  3973  	}
  3974  	return dAtA[:n], nil
  3975  }
  3976  
  3977  func (m *StreamHealthResponse) MarshalToVT(dAtA []byte) (int, error) {
  3978  	size := m.SizeVT()
  3979  	return m.MarshalToSizedBufferVT(dAtA[:size])
  3980  }
  3981  
  3982  func (m *StreamHealthResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  3983  	if m == nil {
  3984  		return 0, nil
  3985  	}
  3986  	i := len(dAtA)
  3987  	_ = i
  3988  	var l int
  3989  	_ = l
  3990  	if m.unknownFields != nil {
  3991  		i -= len(m.unknownFields)
  3992  		copy(dAtA[i:], m.unknownFields)
  3993  	}
  3994  	if m.TabletAlias != nil {
  3995  		size, err := m.TabletAlias.MarshalToSizedBufferVT(dAtA[:i])
  3996  		if err != nil {
  3997  			return 0, err
  3998  		}
  3999  		i -= size
  4000  		i = encodeVarint(dAtA, i, uint64(size))
  4001  		i--
  4002  		dAtA[i] = 0x2a
  4003  	}
  4004  	if m.RealtimeStats != nil {
  4005  		size, err := m.RealtimeStats.MarshalToSizedBufferVT(dAtA[:i])
  4006  		if err != nil {
  4007  			return 0, err
  4008  		}
  4009  		i -= size
  4010  		i = encodeVarint(dAtA, i, uint64(size))
  4011  		i--
  4012  		dAtA[i] = 0x22
  4013  	}
  4014  	if m.TabletExternallyReparentedTimestamp != 0 {
  4015  		i = encodeVarint(dAtA, i, uint64(m.TabletExternallyReparentedTimestamp))
  4016  		i--
  4017  		dAtA[i] = 0x18
  4018  	}
  4019  	if m.Serving {
  4020  		i--
  4021  		if m.Serving {
  4022  			dAtA[i] = 1
  4023  		} else {
  4024  			dAtA[i] = 0
  4025  		}
  4026  		i--
  4027  		dAtA[i] = 0x10
  4028  	}
  4029  	if m.Target != nil {
  4030  		size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i])
  4031  		if err != nil {
  4032  			return 0, err
  4033  		}
  4034  		i -= size
  4035  		i = encodeVarint(dAtA, i, uint64(size))
  4036  		i--
  4037  		dAtA[i] = 0xa
  4038  	}
  4039  	return len(dAtA) - i, nil
  4040  }
  4041  
  4042  func (m *TransactionMetadata) MarshalVT() (dAtA []byte, err error) {
  4043  	if m == nil {
  4044  		return nil, nil
  4045  	}
  4046  	size := m.SizeVT()
  4047  	dAtA = make([]byte, size)
  4048  	n, err := m.MarshalToSizedBufferVT(dAtA[:size])
  4049  	if err != nil {
  4050  		return nil, err
  4051  	}
  4052  	return dAtA[:n], nil
  4053  }
  4054  
  4055  func (m *TransactionMetadata) MarshalToVT(dAtA []byte) (int, error) {
  4056  	size := m.SizeVT()
  4057  	return m.MarshalToSizedBufferVT(dAtA[:size])
  4058  }
  4059  
  4060  func (m *TransactionMetadata) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
  4061  	if m == nil {
  4062  		return 0, nil
  4063  	}
  4064  	i := len(dAtA)
  4065  	_ = i
  4066  	var l int
  4067  	_ = l
  4068  	if m.unknownFields != nil {
  4069  		i -= len(m.unknownFields)
  4070  		copy(dAtA[i:], m.unknownFields)
  4071  	}
  4072  	if len(m.Participants) > 0 {
  4073  		for iNdEx := len(m.Participants) - 1; iNdEx >= 0; iNdEx-- {
  4074  			size, err := m.Participants[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
  4075  			if err != nil {
  4076  				return 0, err
  4077  			}
  4078  			i -= size
  4079  			i = encodeVarint(dAtA, i, uint64(size))
  4080  			i--
  4081  			dAtA[i] = 0x22
  4082  		}
  4083  	}
  4084  	if m.TimeCreated != 0 {
  4085  		i = encodeVarint(dAtA, i, uint64(m.TimeCreated))
  4086  		i--
  4087  		dAtA[i] = 0x18
  4088  	}
  4089  	if m.State != 0 {
  4090  		i = encodeVarint(dAtA, i, uint64(m.State))
  4091  		i--
  4092  		dAtA[i] = 0x10
  4093  	}
  4094  	if len(m.Dtid) > 0 {
  4095  		i -= len(m.Dtid)
  4096  		copy(dAtA[i:], m.Dtid)
  4097  		i = encodeVarint(dAtA, i, uint64(len(m.Dtid)))
  4098  		i--
  4099  		dAtA[i] = 0xa
  4100  	}
  4101  	return len(dAtA) - i, nil
  4102  }
  4103  
  4104  func encodeVarint(dAtA []byte, offset int, v uint64) int {
  4105  	offset -= sov(v)
  4106  	base := offset
  4107  	for v >= 1<<7 {
  4108  		dAtA[offset] = uint8(v&0x7f | 0x80)
  4109  		v >>= 7
  4110  		offset++
  4111  	}
  4112  	dAtA[offset] = uint8(v)
  4113  	return base
  4114  }
  4115  
  4116  var vtprotoPool_Row = sync.Pool{
  4117  	New: func() interface{} {
  4118  		return &Row{}
  4119  	},
  4120  }
  4121  
  4122  func (m *Row) ResetVT() {
  4123  	f0 := m.Lengths[:0]
  4124  	f1 := m.Values[:0]
  4125  	m.Reset()
  4126  	m.Lengths = f0
  4127  	m.Values = f1
  4128  }
  4129  func (m *Row) ReturnToVTPool() {
  4130  	if m != nil {
  4131  		m.ResetVT()
  4132  		vtprotoPool_Row.Put(m)
  4133  	}
  4134  }
  4135  func RowFromVTPool() *Row {
  4136  	return vtprotoPool_Row.Get().(*Row)
  4137  }
  4138  func (m *Target) SizeVT() (n int) {
  4139  	if m == nil {
  4140  		return 0
  4141  	}
  4142  	var l int
  4143  	_ = l
  4144  	l = len(m.Keyspace)
  4145  	if l > 0 {
  4146  		n += 1 + l + sov(uint64(l))
  4147  	}
  4148  	l = len(m.Shard)
  4149  	if l > 0 {
  4150  		n += 1 + l + sov(uint64(l))
  4151  	}
  4152  	if m.TabletType != 0 {
  4153  		n += 1 + sov(uint64(m.TabletType))
  4154  	}
  4155  	l = len(m.Cell)
  4156  	if l > 0 {
  4157  		n += 1 + l + sov(uint64(l))
  4158  	}
  4159  	n += len(m.unknownFields)
  4160  	return n
  4161  }
  4162  
  4163  func (m *VTGateCallerID) SizeVT() (n int) {
  4164  	if m == nil {
  4165  		return 0
  4166  	}
  4167  	var l int
  4168  	_ = l
  4169  	l = len(m.Username)
  4170  	if l > 0 {
  4171  		n += 1 + l + sov(uint64(l))
  4172  	}
  4173  	if len(m.Groups) > 0 {
  4174  		for _, s := range m.Groups {
  4175  			l = len(s)
  4176  			n += 1 + l + sov(uint64(l))
  4177  		}
  4178  	}
  4179  	n += len(m.unknownFields)
  4180  	return n
  4181  }
  4182  
  4183  func (m *EventToken) SizeVT() (n int) {
  4184  	if m == nil {
  4185  		return 0
  4186  	}
  4187  	var l int
  4188  	_ = l
  4189  	if m.Timestamp != 0 {
  4190  		n += 1 + sov(uint64(m.Timestamp))
  4191  	}
  4192  	l = len(m.Shard)
  4193  	if l > 0 {
  4194  		n += 1 + l + sov(uint64(l))
  4195  	}
  4196  	l = len(m.Position)
  4197  	if l > 0 {
  4198  		n += 1 + l + sov(uint64(l))
  4199  	}
  4200  	n += len(m.unknownFields)
  4201  	return n
  4202  }
  4203  
  4204  func (m *Value) SizeVT() (n int) {
  4205  	if m == nil {
  4206  		return 0
  4207  	}
  4208  	var l int
  4209  	_ = l
  4210  	if m.Type != 0 {
  4211  		n += 1 + sov(uint64(m.Type))
  4212  	}
  4213  	l = len(m.Value)
  4214  	if l > 0 {
  4215  		n += 1 + l + sov(uint64(l))
  4216  	}
  4217  	n += len(m.unknownFields)
  4218  	return n
  4219  }
  4220  
  4221  func (m *BindVariable) SizeVT() (n int) {
  4222  	if m == nil {
  4223  		return 0
  4224  	}
  4225  	var l int
  4226  	_ = l
  4227  	if m.Type != 0 {
  4228  		n += 1 + sov(uint64(m.Type))
  4229  	}
  4230  	l = len(m.Value)
  4231  	if l > 0 {
  4232  		n += 1 + l + sov(uint64(l))
  4233  	}
  4234  	if len(m.Values) > 0 {
  4235  		for _, e := range m.Values {
  4236  			l = e.SizeVT()
  4237  			n += 1 + l + sov(uint64(l))
  4238  		}
  4239  	}
  4240  	n += len(m.unknownFields)
  4241  	return n
  4242  }
  4243  
  4244  func (m *BoundQuery) SizeVT() (n int) {
  4245  	if m == nil {
  4246  		return 0
  4247  	}
  4248  	var l int
  4249  	_ = l
  4250  	l = len(m.Sql)
  4251  	if l > 0 {
  4252  		n += 1 + l + sov(uint64(l))
  4253  	}
  4254  	if len(m.BindVariables) > 0 {
  4255  		for k, v := range m.BindVariables {
  4256  			_ = k
  4257  			_ = v
  4258  			l = 0
  4259  			if v != nil {
  4260  				l = v.SizeVT()
  4261  			}
  4262  			l += 1 + sov(uint64(l))
  4263  			mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + l
  4264  			n += mapEntrySize + 1 + sov(uint64(mapEntrySize))
  4265  		}
  4266  	}
  4267  	n += len(m.unknownFields)
  4268  	return n
  4269  }
  4270  
  4271  func (m *ExecuteOptions) SizeVT() (n int) {
  4272  	if m == nil {
  4273  		return 0
  4274  	}
  4275  	var l int
  4276  	_ = l
  4277  	if m.IncludedFields != 0 {
  4278  		n += 1 + sov(uint64(m.IncludedFields))
  4279  	}
  4280  	if m.ClientFoundRows {
  4281  		n += 2
  4282  	}
  4283  	if m.Workload != 0 {
  4284  		n += 1 + sov(uint64(m.Workload))
  4285  	}
  4286  	if m.SqlSelectLimit != 0 {
  4287  		n += 1 + sov(uint64(m.SqlSelectLimit))
  4288  	}
  4289  	if m.TransactionIsolation != 0 {
  4290  		n += 1 + sov(uint64(m.TransactionIsolation))
  4291  	}
  4292  	if m.SkipQueryPlanCache {
  4293  		n += 2
  4294  	}
  4295  	if m.PlannerVersion != 0 {
  4296  		n += 1 + sov(uint64(m.PlannerVersion))
  4297  	}
  4298  	if m.HasCreatedTempTables {
  4299  		n += 2
  4300  	}
  4301  	if m.Consolidator != 0 {
  4302  		n += 1 + sov(uint64(m.Consolidator))
  4303  	}
  4304  	if len(m.TransactionAccessMode) > 0 {
  4305  		l = 0
  4306  		for _, e := range m.TransactionAccessMode {
  4307  			l += sov(uint64(e))
  4308  		}
  4309  		n += 1 + sov(uint64(l)) + l
  4310  	}
  4311  	n += len(m.unknownFields)
  4312  	return n
  4313  }
  4314  
  4315  func (m *Field) SizeVT() (n int) {
  4316  	if m == nil {
  4317  		return 0
  4318  	}
  4319  	var l int
  4320  	_ = l
  4321  	l = len(m.Name)
  4322  	if l > 0 {
  4323  		n += 1 + l + sov(uint64(l))
  4324  	}
  4325  	if m.Type != 0 {
  4326  		n += 1 + sov(uint64(m.Type))
  4327  	}
  4328  	l = len(m.Table)
  4329  	if l > 0 {
  4330  		n += 1 + l + sov(uint64(l))
  4331  	}
  4332  	l = len(m.OrgTable)
  4333  	if l > 0 {
  4334  		n += 1 + l + sov(uint64(l))
  4335  	}
  4336  	l = len(m.Database)
  4337  	if l > 0 {
  4338  		n += 1 + l + sov(uint64(l))
  4339  	}
  4340  	l = len(m.OrgName)
  4341  	if l > 0 {
  4342  		n += 1 + l + sov(uint64(l))
  4343  	}
  4344  	if m.ColumnLength != 0 {
  4345  		n += 1 + sov(uint64(m.ColumnLength))
  4346  	}
  4347  	if m.Charset != 0 {
  4348  		n += 1 + sov(uint64(m.Charset))
  4349  	}
  4350  	if m.Decimals != 0 {
  4351  		n += 1 + sov(uint64(m.Decimals))
  4352  	}
  4353  	if m.Flags != 0 {
  4354  		n += 1 + sov(uint64(m.Flags))
  4355  	}
  4356  	l = len(m.ColumnType)
  4357  	if l > 0 {
  4358  		n += 1 + l + sov(uint64(l))
  4359  	}
  4360  	n += len(m.unknownFields)
  4361  	return n
  4362  }
  4363  
  4364  func (m *Row) SizeVT() (n int) {
  4365  	if m == nil {
  4366  		return 0
  4367  	}
  4368  	var l int
  4369  	_ = l
  4370  	if len(m.Lengths) > 0 {
  4371  		l = 0
  4372  		for _, e := range m.Lengths {
  4373  			l += soz(uint64(e))
  4374  		}
  4375  		n += 1 + sov(uint64(l)) + l
  4376  	}
  4377  	l = len(m.Values)
  4378  	if l > 0 {
  4379  		n += 1 + l + sov(uint64(l))
  4380  	}
  4381  	n += len(m.unknownFields)
  4382  	return n
  4383  }
  4384  
  4385  func (m *QueryResult) SizeVT() (n int) {
  4386  	if m == nil {
  4387  		return 0
  4388  	}
  4389  	var l int
  4390  	_ = l
  4391  	if len(m.Fields) > 0 {
  4392  		for _, e := range m.Fields {
  4393  			l = e.SizeVT()
  4394  			n += 1 + l + sov(uint64(l))
  4395  		}
  4396  	}
  4397  	if m.RowsAffected != 0 {
  4398  		n += 1 + sov(uint64(m.RowsAffected))
  4399  	}
  4400  	if m.InsertId != 0 {
  4401  		n += 1 + sov(uint64(m.InsertId))
  4402  	}
  4403  	if len(m.Rows) > 0 {
  4404  		for _, e := range m.Rows {
  4405  			l = e.SizeVT()
  4406  			n += 1 + l + sov(uint64(l))
  4407  		}
  4408  	}
  4409  	l = len(m.Info)
  4410  	if l > 0 {
  4411  		n += 1 + l + sov(uint64(l))
  4412  	}
  4413  	l = len(m.SessionStateChanges)
  4414  	if l > 0 {
  4415  		n += 1 + l + sov(uint64(l))
  4416  	}
  4417  	n += len(m.unknownFields)
  4418  	return n
  4419  }
  4420  
  4421  func (m *QueryWarning) SizeVT() (n int) {
  4422  	if m == nil {
  4423  		return 0
  4424  	}
  4425  	var l int
  4426  	_ = l
  4427  	if m.Code != 0 {
  4428  		n += 1 + sov(uint64(m.Code))
  4429  	}
  4430  	l = len(m.Message)
  4431  	if l > 0 {
  4432  		n += 1 + l + sov(uint64(l))
  4433  	}
  4434  	n += len(m.unknownFields)
  4435  	return n
  4436  }
  4437  
  4438  func (m *StreamEvent_Statement) SizeVT() (n int) {
  4439  	if m == nil {
  4440  		return 0
  4441  	}
  4442  	var l int
  4443  	_ = l
  4444  	if m.Category != 0 {
  4445  		n += 1 + sov(uint64(m.Category))
  4446  	}
  4447  	l = len(m.TableName)
  4448  	if l > 0 {
  4449  		n += 1 + l + sov(uint64(l))
  4450  	}
  4451  	if len(m.PrimaryKeyFields) > 0 {
  4452  		for _, e := range m.PrimaryKeyFields {
  4453  			l = e.SizeVT()
  4454  			n += 1 + l + sov(uint64(l))
  4455  		}
  4456  	}
  4457  	if len(m.PrimaryKeyValues) > 0 {
  4458  		for _, e := range m.PrimaryKeyValues {
  4459  			l = e.SizeVT()
  4460  			n += 1 + l + sov(uint64(l))
  4461  		}
  4462  	}
  4463  	l = len(m.Sql)
  4464  	if l > 0 {
  4465  		n += 1 + l + sov(uint64(l))
  4466  	}
  4467  	n += len(m.unknownFields)
  4468  	return n
  4469  }
  4470  
  4471  func (m *StreamEvent) SizeVT() (n int) {
  4472  	if m == nil {
  4473  		return 0
  4474  	}
  4475  	var l int
  4476  	_ = l
  4477  	if len(m.Statements) > 0 {
  4478  		for _, e := range m.Statements {
  4479  			l = e.SizeVT()
  4480  			n += 1 + l + sov(uint64(l))
  4481  		}
  4482  	}
  4483  	if m.EventToken != nil {
  4484  		l = m.EventToken.SizeVT()
  4485  		n += 1 + l + sov(uint64(l))
  4486  	}
  4487  	n += len(m.unknownFields)
  4488  	return n
  4489  }
  4490  
  4491  func (m *ExecuteRequest) SizeVT() (n int) {
  4492  	if m == nil {
  4493  		return 0
  4494  	}
  4495  	var l int
  4496  	_ = l
  4497  	if m.EffectiveCallerId != nil {
  4498  		l = m.EffectiveCallerId.SizeVT()
  4499  		n += 1 + l + sov(uint64(l))
  4500  	}
  4501  	if m.ImmediateCallerId != nil {
  4502  		l = m.ImmediateCallerId.SizeVT()
  4503  		n += 1 + l + sov(uint64(l))
  4504  	}
  4505  	if m.Target != nil {
  4506  		l = m.Target.SizeVT()
  4507  		n += 1 + l + sov(uint64(l))
  4508  	}
  4509  	if m.Query != nil {
  4510  		l = m.Query.SizeVT()
  4511  		n += 1 + l + sov(uint64(l))
  4512  	}
  4513  	if m.TransactionId != 0 {
  4514  		n += 1 + sov(uint64(m.TransactionId))
  4515  	}
  4516  	if m.Options != nil {
  4517  		l = m.Options.SizeVT()
  4518  		n += 1 + l + sov(uint64(l))
  4519  	}
  4520  	if m.ReservedId != 0 {
  4521  		n += 1 + sov(uint64(m.ReservedId))
  4522  	}
  4523  	n += len(m.unknownFields)
  4524  	return n
  4525  }
  4526  
  4527  func (m *ExecuteResponse) SizeVT() (n int) {
  4528  	if m == nil {
  4529  		return 0
  4530  	}
  4531  	var l int
  4532  	_ = l
  4533  	if m.Result != nil {
  4534  		l = m.Result.SizeVT()
  4535  		n += 1 + l + sov(uint64(l))
  4536  	}
  4537  	n += len(m.unknownFields)
  4538  	return n
  4539  }
  4540  
  4541  func (m *ResultWithError) SizeVT() (n int) {
  4542  	if m == nil {
  4543  		return 0
  4544  	}
  4545  	var l int
  4546  	_ = l
  4547  	if m.Error != nil {
  4548  		l = m.Error.SizeVT()
  4549  		n += 1 + l + sov(uint64(l))
  4550  	}
  4551  	if m.Result != nil {
  4552  		l = m.Result.SizeVT()
  4553  		n += 1 + l + sov(uint64(l))
  4554  	}
  4555  	n += len(m.unknownFields)
  4556  	return n
  4557  }
  4558  
  4559  func (m *StreamExecuteRequest) SizeVT() (n int) {
  4560  	if m == nil {
  4561  		return 0
  4562  	}
  4563  	var l int
  4564  	_ = l
  4565  	if m.EffectiveCallerId != nil {
  4566  		l = m.EffectiveCallerId.SizeVT()
  4567  		n += 1 + l + sov(uint64(l))
  4568  	}
  4569  	if m.ImmediateCallerId != nil {
  4570  		l = m.ImmediateCallerId.SizeVT()
  4571  		n += 1 + l + sov(uint64(l))
  4572  	}
  4573  	if m.Target != nil {
  4574  		l = m.Target.SizeVT()
  4575  		n += 1 + l + sov(uint64(l))
  4576  	}
  4577  	if m.Query != nil {
  4578  		l = m.Query.SizeVT()
  4579  		n += 1 + l + sov(uint64(l))
  4580  	}
  4581  	if m.Options != nil {
  4582  		l = m.Options.SizeVT()
  4583  		n += 1 + l + sov(uint64(l))
  4584  	}
  4585  	if m.TransactionId != 0 {
  4586  		n += 1 + sov(uint64(m.TransactionId))
  4587  	}
  4588  	if m.ReservedId != 0 {
  4589  		n += 1 + sov(uint64(m.ReservedId))
  4590  	}
  4591  	n += len(m.unknownFields)
  4592  	return n
  4593  }
  4594  
  4595  func (m *StreamExecuteResponse) SizeVT() (n int) {
  4596  	if m == nil {
  4597  		return 0
  4598  	}
  4599  	var l int
  4600  	_ = l
  4601  	if m.Result != nil {
  4602  		l = m.Result.SizeVT()
  4603  		n += 1 + l + sov(uint64(l))
  4604  	}
  4605  	n += len(m.unknownFields)
  4606  	return n
  4607  }
  4608  
  4609  func (m *BeginRequest) SizeVT() (n int) {
  4610  	if m == nil {
  4611  		return 0
  4612  	}
  4613  	var l int
  4614  	_ = l
  4615  	if m.EffectiveCallerId != nil {
  4616  		l = m.EffectiveCallerId.SizeVT()
  4617  		n += 1 + l + sov(uint64(l))
  4618  	}
  4619  	if m.ImmediateCallerId != nil {
  4620  		l = m.ImmediateCallerId.SizeVT()
  4621  		n += 1 + l + sov(uint64(l))
  4622  	}
  4623  	if m.Target != nil {
  4624  		l = m.Target.SizeVT()
  4625  		n += 1 + l + sov(uint64(l))
  4626  	}
  4627  	if m.Options != nil {
  4628  		l = m.Options.SizeVT()
  4629  		n += 1 + l + sov(uint64(l))
  4630  	}
  4631  	n += len(m.unknownFields)
  4632  	return n
  4633  }
  4634  
  4635  func (m *BeginResponse) SizeVT() (n int) {
  4636  	if m == nil {
  4637  		return 0
  4638  	}
  4639  	var l int
  4640  	_ = l
  4641  	if m.TransactionId != 0 {
  4642  		n += 1 + sov(uint64(m.TransactionId))
  4643  	}
  4644  	if m.TabletAlias != nil {
  4645  		l = m.TabletAlias.SizeVT()
  4646  		n += 1 + l + sov(uint64(l))
  4647  	}
  4648  	l = len(m.SessionStateChanges)
  4649  	if l > 0 {
  4650  		n += 1 + l + sov(uint64(l))
  4651  	}
  4652  	n += len(m.unknownFields)
  4653  	return n
  4654  }
  4655  
  4656  func (m *CommitRequest) SizeVT() (n int) {
  4657  	if m == nil {
  4658  		return 0
  4659  	}
  4660  	var l int
  4661  	_ = l
  4662  	if m.EffectiveCallerId != nil {
  4663  		l = m.EffectiveCallerId.SizeVT()
  4664  		n += 1 + l + sov(uint64(l))
  4665  	}
  4666  	if m.ImmediateCallerId != nil {
  4667  		l = m.ImmediateCallerId.SizeVT()
  4668  		n += 1 + l + sov(uint64(l))
  4669  	}
  4670  	if m.Target != nil {
  4671  		l = m.Target.SizeVT()
  4672  		n += 1 + l + sov(uint64(l))
  4673  	}
  4674  	if m.TransactionId != 0 {
  4675  		n += 1 + sov(uint64(m.TransactionId))
  4676  	}
  4677  	n += len(m.unknownFields)
  4678  	return n
  4679  }
  4680  
  4681  func (m *CommitResponse) SizeVT() (n int) {
  4682  	if m == nil {
  4683  		return 0
  4684  	}
  4685  	var l int
  4686  	_ = l
  4687  	if m.ReservedId != 0 {
  4688  		n += 1 + sov(uint64(m.ReservedId))
  4689  	}
  4690  	n += len(m.unknownFields)
  4691  	return n
  4692  }
  4693  
  4694  func (m *RollbackRequest) SizeVT() (n int) {
  4695  	if m == nil {
  4696  		return 0
  4697  	}
  4698  	var l int
  4699  	_ = l
  4700  	if m.EffectiveCallerId != nil {
  4701  		l = m.EffectiveCallerId.SizeVT()
  4702  		n += 1 + l + sov(uint64(l))
  4703  	}
  4704  	if m.ImmediateCallerId != nil {
  4705  		l = m.ImmediateCallerId.SizeVT()
  4706  		n += 1 + l + sov(uint64(l))
  4707  	}
  4708  	if m.Target != nil {
  4709  		l = m.Target.SizeVT()
  4710  		n += 1 + l + sov(uint64(l))
  4711  	}
  4712  	if m.TransactionId != 0 {
  4713  		n += 1 + sov(uint64(m.TransactionId))
  4714  	}
  4715  	n += len(m.unknownFields)
  4716  	return n
  4717  }
  4718  
  4719  func (m *RollbackResponse) SizeVT() (n int) {
  4720  	if m == nil {
  4721  		return 0
  4722  	}
  4723  	var l int
  4724  	_ = l
  4725  	if m.ReservedId != 0 {
  4726  		n += 1 + sov(uint64(m.ReservedId))
  4727  	}
  4728  	n += len(m.unknownFields)
  4729  	return n
  4730  }
  4731  
  4732  func (m *PrepareRequest) SizeVT() (n int) {
  4733  	if m == nil {
  4734  		return 0
  4735  	}
  4736  	var l int
  4737  	_ = l
  4738  	if m.EffectiveCallerId != nil {
  4739  		l = m.EffectiveCallerId.SizeVT()
  4740  		n += 1 + l + sov(uint64(l))
  4741  	}
  4742  	if m.ImmediateCallerId != nil {
  4743  		l = m.ImmediateCallerId.SizeVT()
  4744  		n += 1 + l + sov(uint64(l))
  4745  	}
  4746  	if m.Target != nil {
  4747  		l = m.Target.SizeVT()
  4748  		n += 1 + l + sov(uint64(l))
  4749  	}
  4750  	if m.TransactionId != 0 {
  4751  		n += 1 + sov(uint64(m.TransactionId))
  4752  	}
  4753  	l = len(m.Dtid)
  4754  	if l > 0 {
  4755  		n += 1 + l + sov(uint64(l))
  4756  	}
  4757  	n += len(m.unknownFields)
  4758  	return n
  4759  }
  4760  
  4761  func (m *PrepareResponse) SizeVT() (n int) {
  4762  	if m == nil {
  4763  		return 0
  4764  	}
  4765  	var l int
  4766  	_ = l
  4767  	n += len(m.unknownFields)
  4768  	return n
  4769  }
  4770  
  4771  func (m *CommitPreparedRequest) SizeVT() (n int) {
  4772  	if m == nil {
  4773  		return 0
  4774  	}
  4775  	var l int
  4776  	_ = l
  4777  	if m.EffectiveCallerId != nil {
  4778  		l = m.EffectiveCallerId.SizeVT()
  4779  		n += 1 + l + sov(uint64(l))
  4780  	}
  4781  	if m.ImmediateCallerId != nil {
  4782  		l = m.ImmediateCallerId.SizeVT()
  4783  		n += 1 + l + sov(uint64(l))
  4784  	}
  4785  	if m.Target != nil {
  4786  		l = m.Target.SizeVT()
  4787  		n += 1 + l + sov(uint64(l))
  4788  	}
  4789  	l = len(m.Dtid)
  4790  	if l > 0 {
  4791  		n += 1 + l + sov(uint64(l))
  4792  	}
  4793  	n += len(m.unknownFields)
  4794  	return n
  4795  }
  4796  
  4797  func (m *CommitPreparedResponse) SizeVT() (n int) {
  4798  	if m == nil {
  4799  		return 0
  4800  	}
  4801  	var l int
  4802  	_ = l
  4803  	n += len(m.unknownFields)
  4804  	return n
  4805  }
  4806  
  4807  func (m *RollbackPreparedRequest) SizeVT() (n int) {
  4808  	if m == nil {
  4809  		return 0
  4810  	}
  4811  	var l int
  4812  	_ = l
  4813  	if m.EffectiveCallerId != nil {
  4814  		l = m.EffectiveCallerId.SizeVT()
  4815  		n += 1 + l + sov(uint64(l))
  4816  	}
  4817  	if m.ImmediateCallerId != nil {
  4818  		l = m.ImmediateCallerId.SizeVT()
  4819  		n += 1 + l + sov(uint64(l))
  4820  	}
  4821  	if m.Target != nil {
  4822  		l = m.Target.SizeVT()
  4823  		n += 1 + l + sov(uint64(l))
  4824  	}
  4825  	if m.TransactionId != 0 {
  4826  		n += 1 + sov(uint64(m.TransactionId))
  4827  	}
  4828  	l = len(m.Dtid)
  4829  	if l > 0 {
  4830  		n += 1 + l + sov(uint64(l))
  4831  	}
  4832  	n += len(m.unknownFields)
  4833  	return n
  4834  }
  4835  
  4836  func (m *RollbackPreparedResponse) SizeVT() (n int) {
  4837  	if m == nil {
  4838  		return 0
  4839  	}
  4840  	var l int
  4841  	_ = l
  4842  	n += len(m.unknownFields)
  4843  	return n
  4844  }
  4845  
  4846  func (m *CreateTransactionRequest) SizeVT() (n int) {
  4847  	if m == nil {
  4848  		return 0
  4849  	}
  4850  	var l int
  4851  	_ = l
  4852  	if m.EffectiveCallerId != nil {
  4853  		l = m.EffectiveCallerId.SizeVT()
  4854  		n += 1 + l + sov(uint64(l))
  4855  	}
  4856  	if m.ImmediateCallerId != nil {
  4857  		l = m.ImmediateCallerId.SizeVT()
  4858  		n += 1 + l + sov(uint64(l))
  4859  	}
  4860  	if m.Target != nil {
  4861  		l = m.Target.SizeVT()
  4862  		n += 1 + l + sov(uint64(l))
  4863  	}
  4864  	l = len(m.Dtid)
  4865  	if l > 0 {
  4866  		n += 1 + l + sov(uint64(l))
  4867  	}
  4868  	if len(m.Participants) > 0 {
  4869  		for _, e := range m.Participants {
  4870  			l = e.SizeVT()
  4871  			n += 1 + l + sov(uint64(l))
  4872  		}
  4873  	}
  4874  	n += len(m.unknownFields)
  4875  	return n
  4876  }
  4877  
  4878  func (m *CreateTransactionResponse) SizeVT() (n int) {
  4879  	if m == nil {
  4880  		return 0
  4881  	}
  4882  	var l int
  4883  	_ = l
  4884  	n += len(m.unknownFields)
  4885  	return n
  4886  }
  4887  
  4888  func (m *StartCommitRequest) SizeVT() (n int) {
  4889  	if m == nil {
  4890  		return 0
  4891  	}
  4892  	var l int
  4893  	_ = l
  4894  	if m.EffectiveCallerId != nil {
  4895  		l = m.EffectiveCallerId.SizeVT()
  4896  		n += 1 + l + sov(uint64(l))
  4897  	}
  4898  	if m.ImmediateCallerId != nil {
  4899  		l = m.ImmediateCallerId.SizeVT()
  4900  		n += 1 + l + sov(uint64(l))
  4901  	}
  4902  	if m.Target != nil {
  4903  		l = m.Target.SizeVT()
  4904  		n += 1 + l + sov(uint64(l))
  4905  	}
  4906  	if m.TransactionId != 0 {
  4907  		n += 1 + sov(uint64(m.TransactionId))
  4908  	}
  4909  	l = len(m.Dtid)
  4910  	if l > 0 {
  4911  		n += 1 + l + sov(uint64(l))
  4912  	}
  4913  	n += len(m.unknownFields)
  4914  	return n
  4915  }
  4916  
  4917  func (m *StartCommitResponse) SizeVT() (n int) {
  4918  	if m == nil {
  4919  		return 0
  4920  	}
  4921  	var l int
  4922  	_ = l
  4923  	n += len(m.unknownFields)
  4924  	return n
  4925  }
  4926  
  4927  func (m *SetRollbackRequest) SizeVT() (n int) {
  4928  	if m == nil {
  4929  		return 0
  4930  	}
  4931  	var l int
  4932  	_ = l
  4933  	if m.EffectiveCallerId != nil {
  4934  		l = m.EffectiveCallerId.SizeVT()
  4935  		n += 1 + l + sov(uint64(l))
  4936  	}
  4937  	if m.ImmediateCallerId != nil {
  4938  		l = m.ImmediateCallerId.SizeVT()
  4939  		n += 1 + l + sov(uint64(l))
  4940  	}
  4941  	if m.Target != nil {
  4942  		l = m.Target.SizeVT()
  4943  		n += 1 + l + sov(uint64(l))
  4944  	}
  4945  	if m.TransactionId != 0 {
  4946  		n += 1 + sov(uint64(m.TransactionId))
  4947  	}
  4948  	l = len(m.Dtid)
  4949  	if l > 0 {
  4950  		n += 1 + l + sov(uint64(l))
  4951  	}
  4952  	n += len(m.unknownFields)
  4953  	return n
  4954  }
  4955  
  4956  func (m *SetRollbackResponse) SizeVT() (n int) {
  4957  	if m == nil {
  4958  		return 0
  4959  	}
  4960  	var l int
  4961  	_ = l
  4962  	n += len(m.unknownFields)
  4963  	return n
  4964  }
  4965  
  4966  func (m *ConcludeTransactionRequest) SizeVT() (n int) {
  4967  	if m == nil {
  4968  		return 0
  4969  	}
  4970  	var l int
  4971  	_ = l
  4972  	if m.EffectiveCallerId != nil {
  4973  		l = m.EffectiveCallerId.SizeVT()
  4974  		n += 1 + l + sov(uint64(l))
  4975  	}
  4976  	if m.ImmediateCallerId != nil {
  4977  		l = m.ImmediateCallerId.SizeVT()
  4978  		n += 1 + l + sov(uint64(l))
  4979  	}
  4980  	if m.Target != nil {
  4981  		l = m.Target.SizeVT()
  4982  		n += 1 + l + sov(uint64(l))
  4983  	}
  4984  	l = len(m.Dtid)
  4985  	if l > 0 {
  4986  		n += 1 + l + sov(uint64(l))
  4987  	}
  4988  	n += len(m.unknownFields)
  4989  	return n
  4990  }
  4991  
  4992  func (m *ConcludeTransactionResponse) SizeVT() (n int) {
  4993  	if m == nil {
  4994  		return 0
  4995  	}
  4996  	var l int
  4997  	_ = l
  4998  	n += len(m.unknownFields)
  4999  	return n
  5000  }
  5001  
  5002  func (m *ReadTransactionRequest) SizeVT() (n int) {
  5003  	if m == nil {
  5004  		return 0
  5005  	}
  5006  	var l int
  5007  	_ = l
  5008  	if m.EffectiveCallerId != nil {
  5009  		l = m.EffectiveCallerId.SizeVT()
  5010  		n += 1 + l + sov(uint64(l))
  5011  	}
  5012  	if m.ImmediateCallerId != nil {
  5013  		l = m.ImmediateCallerId.SizeVT()
  5014  		n += 1 + l + sov(uint64(l))
  5015  	}
  5016  	if m.Target != nil {
  5017  		l = m.Target.SizeVT()
  5018  		n += 1 + l + sov(uint64(l))
  5019  	}
  5020  	l = len(m.Dtid)
  5021  	if l > 0 {
  5022  		n += 1 + l + sov(uint64(l))
  5023  	}
  5024  	n += len(m.unknownFields)
  5025  	return n
  5026  }
  5027  
  5028  func (m *ReadTransactionResponse) SizeVT() (n int) {
  5029  	if m == nil {
  5030  		return 0
  5031  	}
  5032  	var l int
  5033  	_ = l
  5034  	if m.Metadata != nil {
  5035  		l = m.Metadata.SizeVT()
  5036  		n += 1 + l + sov(uint64(l))
  5037  	}
  5038  	n += len(m.unknownFields)
  5039  	return n
  5040  }
  5041  
  5042  func (m *BeginExecuteRequest) SizeVT() (n int) {
  5043  	if m == nil {
  5044  		return 0
  5045  	}
  5046  	var l int
  5047  	_ = l
  5048  	if m.EffectiveCallerId != nil {
  5049  		l = m.EffectiveCallerId.SizeVT()
  5050  		n += 1 + l + sov(uint64(l))
  5051  	}
  5052  	if m.ImmediateCallerId != nil {
  5053  		l = m.ImmediateCallerId.SizeVT()
  5054  		n += 1 + l + sov(uint64(l))
  5055  	}
  5056  	if m.Target != nil {
  5057  		l = m.Target.SizeVT()
  5058  		n += 1 + l + sov(uint64(l))
  5059  	}
  5060  	if m.Query != nil {
  5061  		l = m.Query.SizeVT()
  5062  		n += 1 + l + sov(uint64(l))
  5063  	}
  5064  	if m.Options != nil {
  5065  		l = m.Options.SizeVT()
  5066  		n += 1 + l + sov(uint64(l))
  5067  	}
  5068  	if m.ReservedId != 0 {
  5069  		n += 1 + sov(uint64(m.ReservedId))
  5070  	}
  5071  	if len(m.PreQueries) > 0 {
  5072  		for _, s := range m.PreQueries {
  5073  			l = len(s)
  5074  			n += 1 + l + sov(uint64(l))
  5075  		}
  5076  	}
  5077  	n += len(m.unknownFields)
  5078  	return n
  5079  }
  5080  
  5081  func (m *BeginExecuteResponse) SizeVT() (n int) {
  5082  	if m == nil {
  5083  		return 0
  5084  	}
  5085  	var l int
  5086  	_ = l
  5087  	if m.Error != nil {
  5088  		l = m.Error.SizeVT()
  5089  		n += 1 + l + sov(uint64(l))
  5090  	}
  5091  	if m.Result != nil {
  5092  		l = m.Result.SizeVT()
  5093  		n += 1 + l + sov(uint64(l))
  5094  	}
  5095  	if m.TransactionId != 0 {
  5096  		n += 1 + sov(uint64(m.TransactionId))
  5097  	}
  5098  	if m.TabletAlias != nil {
  5099  		l = m.TabletAlias.SizeVT()
  5100  		n += 1 + l + sov(uint64(l))
  5101  	}
  5102  	l = len(m.SessionStateChanges)
  5103  	if l > 0 {
  5104  		n += 1 + l + sov(uint64(l))
  5105  	}
  5106  	n += len(m.unknownFields)
  5107  	return n
  5108  }
  5109  
  5110  func (m *BeginStreamExecuteRequest) SizeVT() (n int) {
  5111  	if m == nil {
  5112  		return 0
  5113  	}
  5114  	var l int
  5115  	_ = l
  5116  	if m.EffectiveCallerId != nil {
  5117  		l = m.EffectiveCallerId.SizeVT()
  5118  		n += 1 + l + sov(uint64(l))
  5119  	}
  5120  	if m.ImmediateCallerId != nil {
  5121  		l = m.ImmediateCallerId.SizeVT()
  5122  		n += 1 + l + sov(uint64(l))
  5123  	}
  5124  	if m.Target != nil {
  5125  		l = m.Target.SizeVT()
  5126  		n += 1 + l + sov(uint64(l))
  5127  	}
  5128  	if m.Query != nil {
  5129  		l = m.Query.SizeVT()
  5130  		n += 1 + l + sov(uint64(l))
  5131  	}
  5132  	if m.Options != nil {
  5133  		l = m.Options.SizeVT()
  5134  		n += 1 + l + sov(uint64(l))
  5135  	}
  5136  	if len(m.PreQueries) > 0 {
  5137  		for _, s := range m.PreQueries {
  5138  			l = len(s)
  5139  			n += 1 + l + sov(uint64(l))
  5140  		}
  5141  	}
  5142  	if m.ReservedId != 0 {
  5143  		n += 1 + sov(uint64(m.ReservedId))
  5144  	}
  5145  	n += len(m.unknownFields)
  5146  	return n
  5147  }
  5148  
  5149  func (m *BeginStreamExecuteResponse) SizeVT() (n int) {
  5150  	if m == nil {
  5151  		return 0
  5152  	}
  5153  	var l int
  5154  	_ = l
  5155  	if m.Error != nil {
  5156  		l = m.Error.SizeVT()
  5157  		n += 1 + l + sov(uint64(l))
  5158  	}
  5159  	if m.Result != nil {
  5160  		l = m.Result.SizeVT()
  5161  		n += 1 + l + sov(uint64(l))
  5162  	}
  5163  	if m.TransactionId != 0 {
  5164  		n += 1 + sov(uint64(m.TransactionId))
  5165  	}
  5166  	if m.TabletAlias != nil {
  5167  		l = m.TabletAlias.SizeVT()
  5168  		n += 1 + l + sov(uint64(l))
  5169  	}
  5170  	l = len(m.SessionStateChanges)
  5171  	if l > 0 {
  5172  		n += 1 + l + sov(uint64(l))
  5173  	}
  5174  	n += len(m.unknownFields)
  5175  	return n
  5176  }
  5177  
  5178  func (m *MessageStreamRequest) SizeVT() (n int) {
  5179  	if m == nil {
  5180  		return 0
  5181  	}
  5182  	var l int
  5183  	_ = l
  5184  	if m.EffectiveCallerId != nil {
  5185  		l = m.EffectiveCallerId.SizeVT()
  5186  		n += 1 + l + sov(uint64(l))
  5187  	}
  5188  	if m.ImmediateCallerId != nil {
  5189  		l = m.ImmediateCallerId.SizeVT()
  5190  		n += 1 + l + sov(uint64(l))
  5191  	}
  5192  	if m.Target != nil {
  5193  		l = m.Target.SizeVT()
  5194  		n += 1 + l + sov(uint64(l))
  5195  	}
  5196  	l = len(m.Name)
  5197  	if l > 0 {
  5198  		n += 1 + l + sov(uint64(l))
  5199  	}
  5200  	n += len(m.unknownFields)
  5201  	return n
  5202  }
  5203  
  5204  func (m *MessageStreamResponse) SizeVT() (n int) {
  5205  	if m == nil {
  5206  		return 0
  5207  	}
  5208  	var l int
  5209  	_ = l
  5210  	if m.Result != nil {
  5211  		l = m.Result.SizeVT()
  5212  		n += 1 + l + sov(uint64(l))
  5213  	}
  5214  	n += len(m.unknownFields)
  5215  	return n
  5216  }
  5217  
  5218  func (m *MessageAckRequest) SizeVT() (n int) {
  5219  	if m == nil {
  5220  		return 0
  5221  	}
  5222  	var l int
  5223  	_ = l
  5224  	if m.EffectiveCallerId != nil {
  5225  		l = m.EffectiveCallerId.SizeVT()
  5226  		n += 1 + l + sov(uint64(l))
  5227  	}
  5228  	if m.ImmediateCallerId != nil {
  5229  		l = m.ImmediateCallerId.SizeVT()
  5230  		n += 1 + l + sov(uint64(l))
  5231  	}
  5232  	if m.Target != nil {
  5233  		l = m.Target.SizeVT()
  5234  		n += 1 + l + sov(uint64(l))
  5235  	}
  5236  	l = len(m.Name)
  5237  	if l > 0 {
  5238  		n += 1 + l + sov(uint64(l))
  5239  	}
  5240  	if len(m.Ids) > 0 {
  5241  		for _, e := range m.Ids {
  5242  			l = e.SizeVT()
  5243  			n += 1 + l + sov(uint64(l))
  5244  		}
  5245  	}
  5246  	n += len(m.unknownFields)
  5247  	return n
  5248  }
  5249  
  5250  func (m *MessageAckResponse) SizeVT() (n int) {
  5251  	if m == nil {
  5252  		return 0
  5253  	}
  5254  	var l int
  5255  	_ = l
  5256  	if m.Result != nil {
  5257  		l = m.Result.SizeVT()
  5258  		n += 1 + l + sov(uint64(l))
  5259  	}
  5260  	n += len(m.unknownFields)
  5261  	return n
  5262  }
  5263  
  5264  func (m *ReserveExecuteRequest) SizeVT() (n int) {
  5265  	if m == nil {
  5266  		return 0
  5267  	}
  5268  	var l int
  5269  	_ = l
  5270  	if m.EffectiveCallerId != nil {
  5271  		l = m.EffectiveCallerId.SizeVT()
  5272  		n += 1 + l + sov(uint64(l))
  5273  	}
  5274  	if m.ImmediateCallerId != nil {
  5275  		l = m.ImmediateCallerId.SizeVT()
  5276  		n += 1 + l + sov(uint64(l))
  5277  	}
  5278  	if m.Target != nil {
  5279  		l = m.Target.SizeVT()
  5280  		n += 1 + l + sov(uint64(l))
  5281  	}
  5282  	if m.Query != nil {
  5283  		l = m.Query.SizeVT()
  5284  		n += 1 + l + sov(uint64(l))
  5285  	}
  5286  	if m.TransactionId != 0 {
  5287  		n += 1 + sov(uint64(m.TransactionId))
  5288  	}
  5289  	if m.Options != nil {
  5290  		l = m.Options.SizeVT()
  5291  		n += 1 + l + sov(uint64(l))
  5292  	}
  5293  	if len(m.PreQueries) > 0 {
  5294  		for _, s := range m.PreQueries {
  5295  			l = len(s)
  5296  			n += 1 + l + sov(uint64(l))
  5297  		}
  5298  	}
  5299  	n += len(m.unknownFields)
  5300  	return n
  5301  }
  5302  
  5303  func (m *ReserveExecuteResponse) SizeVT() (n int) {
  5304  	if m == nil {
  5305  		return 0
  5306  	}
  5307  	var l int
  5308  	_ = l
  5309  	if m.Error != nil {
  5310  		l = m.Error.SizeVT()
  5311  		n += 1 + l + sov(uint64(l))
  5312  	}
  5313  	if m.Result != nil {
  5314  		l = m.Result.SizeVT()
  5315  		n += 1 + l + sov(uint64(l))
  5316  	}
  5317  	if m.ReservedId != 0 {
  5318  		n += 1 + sov(uint64(m.ReservedId))
  5319  	}
  5320  	if m.TabletAlias != nil {
  5321  		l = m.TabletAlias.SizeVT()
  5322  		n += 1 + l + sov(uint64(l))
  5323  	}
  5324  	n += len(m.unknownFields)
  5325  	return n
  5326  }
  5327  
  5328  func (m *ReserveStreamExecuteRequest) SizeVT() (n int) {
  5329  	if m == nil {
  5330  		return 0
  5331  	}
  5332  	var l int
  5333  	_ = l
  5334  	if m.EffectiveCallerId != nil {
  5335  		l = m.EffectiveCallerId.SizeVT()
  5336  		n += 1 + l + sov(uint64(l))
  5337  	}
  5338  	if m.ImmediateCallerId != nil {
  5339  		l = m.ImmediateCallerId.SizeVT()
  5340  		n += 1 + l + sov(uint64(l))
  5341  	}
  5342  	if m.Target != nil {
  5343  		l = m.Target.SizeVT()
  5344  		n += 1 + l + sov(uint64(l))
  5345  	}
  5346  	if m.Query != nil {
  5347  		l = m.Query.SizeVT()
  5348  		n += 1 + l + sov(uint64(l))
  5349  	}
  5350  	if m.Options != nil {
  5351  		l = m.Options.SizeVT()
  5352  		n += 1 + l + sov(uint64(l))
  5353  	}
  5354  	if m.TransactionId != 0 {
  5355  		n += 1 + sov(uint64(m.TransactionId))
  5356  	}
  5357  	if len(m.PreQueries) > 0 {
  5358  		for _, s := range m.PreQueries {
  5359  			l = len(s)
  5360  			n += 1 + l + sov(uint64(l))
  5361  		}
  5362  	}
  5363  	n += len(m.unknownFields)
  5364  	return n
  5365  }
  5366  
  5367  func (m *ReserveStreamExecuteResponse) SizeVT() (n int) {
  5368  	if m == nil {
  5369  		return 0
  5370  	}
  5371  	var l int
  5372  	_ = l
  5373  	if m.Error != nil {
  5374  		l = m.Error.SizeVT()
  5375  		n += 1 + l + sov(uint64(l))
  5376  	}
  5377  	if m.Result != nil {
  5378  		l = m.Result.SizeVT()
  5379  		n += 1 + l + sov(uint64(l))
  5380  	}
  5381  	if m.ReservedId != 0 {
  5382  		n += 1 + sov(uint64(m.ReservedId))
  5383  	}
  5384  	if m.TabletAlias != nil {
  5385  		l = m.TabletAlias.SizeVT()
  5386  		n += 1 + l + sov(uint64(l))
  5387  	}
  5388  	n += len(m.unknownFields)
  5389  	return n
  5390  }
  5391  
  5392  func (m *ReserveBeginExecuteRequest) SizeVT() (n int) {
  5393  	if m == nil {
  5394  		return 0
  5395  	}
  5396  	var l int
  5397  	_ = l
  5398  	if m.EffectiveCallerId != nil {
  5399  		l = m.EffectiveCallerId.SizeVT()
  5400  		n += 1 + l + sov(uint64(l))
  5401  	}
  5402  	if m.ImmediateCallerId != nil {
  5403  		l = m.ImmediateCallerId.SizeVT()
  5404  		n += 1 + l + sov(uint64(l))
  5405  	}
  5406  	if m.Target != nil {
  5407  		l = m.Target.SizeVT()
  5408  		n += 1 + l + sov(uint64(l))
  5409  	}
  5410  	if m.Query != nil {
  5411  		l = m.Query.SizeVT()
  5412  		n += 1 + l + sov(uint64(l))
  5413  	}
  5414  	if m.Options != nil {
  5415  		l = m.Options.SizeVT()
  5416  		n += 1 + l + sov(uint64(l))
  5417  	}
  5418  	if len(m.PreQueries) > 0 {
  5419  		for _, s := range m.PreQueries {
  5420  			l = len(s)
  5421  			n += 1 + l + sov(uint64(l))
  5422  		}
  5423  	}
  5424  	if len(m.PostBeginQueries) > 0 {
  5425  		for _, s := range m.PostBeginQueries {
  5426  			l = len(s)
  5427  			n += 1 + l + sov(uint64(l))
  5428  		}
  5429  	}
  5430  	n += len(m.unknownFields)
  5431  	return n
  5432  }
  5433  
  5434  func (m *ReserveBeginExecuteResponse) SizeVT() (n int) {
  5435  	if m == nil {
  5436  		return 0
  5437  	}
  5438  	var l int
  5439  	_ = l
  5440  	if m.Error != nil {
  5441  		l = m.Error.SizeVT()
  5442  		n += 1 + l + sov(uint64(l))
  5443  	}
  5444  	if m.Result != nil {
  5445  		l = m.Result.SizeVT()
  5446  		n += 1 + l + sov(uint64(l))
  5447  	}
  5448  	if m.TransactionId != 0 {
  5449  		n += 1 + sov(uint64(m.TransactionId))
  5450  	}
  5451  	if m.ReservedId != 0 {
  5452  		n += 1 + sov(uint64(m.ReservedId))
  5453  	}
  5454  	if m.TabletAlias != nil {
  5455  		l = m.TabletAlias.SizeVT()
  5456  		n += 1 + l + sov(uint64(l))
  5457  	}
  5458  	l = len(m.SessionStateChanges)
  5459  	if l > 0 {
  5460  		n += 1 + l + sov(uint64(l))
  5461  	}
  5462  	n += len(m.unknownFields)
  5463  	return n
  5464  }
  5465  
  5466  func (m *ReserveBeginStreamExecuteRequest) SizeVT() (n int) {
  5467  	if m == nil {
  5468  		return 0
  5469  	}
  5470  	var l int
  5471  	_ = l
  5472  	if m.EffectiveCallerId != nil {
  5473  		l = m.EffectiveCallerId.SizeVT()
  5474  		n += 1 + l + sov(uint64(l))
  5475  	}
  5476  	if m.ImmediateCallerId != nil {
  5477  		l = m.ImmediateCallerId.SizeVT()
  5478  		n += 1 + l + sov(uint64(l))
  5479  	}
  5480  	if m.Target != nil {
  5481  		l = m.Target.SizeVT()
  5482  		n += 1 + l + sov(uint64(l))
  5483  	}
  5484  	if m.Query != nil {
  5485  		l = m.Query.SizeVT()
  5486  		n += 1 + l + sov(uint64(l))
  5487  	}
  5488  	if m.Options != nil {
  5489  		l = m.Options.SizeVT()
  5490  		n += 1 + l + sov(uint64(l))
  5491  	}
  5492  	if len(m.PreQueries) > 0 {
  5493  		for _, s := range m.PreQueries {
  5494  			l = len(s)
  5495  			n += 1 + l + sov(uint64(l))
  5496  		}
  5497  	}
  5498  	if len(m.PostBeginQueries) > 0 {
  5499  		for _, s := range m.PostBeginQueries {
  5500  			l = len(s)
  5501  			n += 1 + l + sov(uint64(l))
  5502  		}
  5503  	}
  5504  	n += len(m.unknownFields)
  5505  	return n
  5506  }
  5507  
  5508  func (m *ReserveBeginStreamExecuteResponse) SizeVT() (n int) {
  5509  	if m == nil {
  5510  		return 0
  5511  	}
  5512  	var l int
  5513  	_ = l
  5514  	if m.Error != nil {
  5515  		l = m.Error.SizeVT()
  5516  		n += 1 + l + sov(uint64(l))
  5517  	}
  5518  	if m.Result != nil {
  5519  		l = m.Result.SizeVT()
  5520  		n += 1 + l + sov(uint64(l))
  5521  	}
  5522  	if m.TransactionId != 0 {
  5523  		n += 1 + sov(uint64(m.TransactionId))
  5524  	}
  5525  	if m.ReservedId != 0 {
  5526  		n += 1 + sov(uint64(m.ReservedId))
  5527  	}
  5528  	if m.TabletAlias != nil {
  5529  		l = m.TabletAlias.SizeVT()
  5530  		n += 1 + l + sov(uint64(l))
  5531  	}
  5532  	l = len(m.SessionStateChanges)
  5533  	if l > 0 {
  5534  		n += 1 + l + sov(uint64(l))
  5535  	}
  5536  	n += len(m.unknownFields)
  5537  	return n
  5538  }
  5539  
  5540  func (m *ReleaseRequest) SizeVT() (n int) {
  5541  	if m == nil {
  5542  		return 0
  5543  	}
  5544  	var l int
  5545  	_ = l
  5546  	if m.EffectiveCallerId != nil {
  5547  		l = m.EffectiveCallerId.SizeVT()
  5548  		n += 1 + l + sov(uint64(l))
  5549  	}
  5550  	if m.ImmediateCallerId != nil {
  5551  		l = m.ImmediateCallerId.SizeVT()
  5552  		n += 1 + l + sov(uint64(l))
  5553  	}
  5554  	if m.Target != nil {
  5555  		l = m.Target.SizeVT()
  5556  		n += 1 + l + sov(uint64(l))
  5557  	}
  5558  	if m.TransactionId != 0 {
  5559  		n += 1 + sov(uint64(m.TransactionId))
  5560  	}
  5561  	if m.ReservedId != 0 {
  5562  		n += 1 + sov(uint64(m.ReservedId))
  5563  	}
  5564  	n += len(m.unknownFields)
  5565  	return n
  5566  }
  5567  
  5568  func (m *ReleaseResponse) SizeVT() (n int) {
  5569  	if m == nil {
  5570  		return 0
  5571  	}
  5572  	var l int
  5573  	_ = l
  5574  	n += len(m.unknownFields)
  5575  	return n
  5576  }
  5577  
  5578  func (m *StreamHealthRequest) SizeVT() (n int) {
  5579  	if m == nil {
  5580  		return 0
  5581  	}
  5582  	var l int
  5583  	_ = l
  5584  	n += len(m.unknownFields)
  5585  	return n
  5586  }
  5587  
  5588  func (m *RealtimeStats) SizeVT() (n int) {
  5589  	if m == nil {
  5590  		return 0
  5591  	}
  5592  	var l int
  5593  	_ = l
  5594  	l = len(m.HealthError)
  5595  	if l > 0 {
  5596  		n += 1 + l + sov(uint64(l))
  5597  	}
  5598  	if m.ReplicationLagSeconds != 0 {
  5599  		n += 1 + sov(uint64(m.ReplicationLagSeconds))
  5600  	}
  5601  	if m.BinlogPlayersCount != 0 {
  5602  		n += 1 + sov(uint64(m.BinlogPlayersCount))
  5603  	}
  5604  	if m.FilteredReplicationLagSeconds != 0 {
  5605  		n += 1 + sov(uint64(m.FilteredReplicationLagSeconds))
  5606  	}
  5607  	if m.CpuUsage != 0 {
  5608  		n += 9
  5609  	}
  5610  	if m.Qps != 0 {
  5611  		n += 9
  5612  	}
  5613  	if len(m.TableSchemaChanged) > 0 {
  5614  		for _, s := range m.TableSchemaChanged {
  5615  			l = len(s)
  5616  			n += 1 + l + sov(uint64(l))
  5617  		}
  5618  	}
  5619  	if len(m.ViewSchemaChanged) > 0 {
  5620  		for _, s := range m.ViewSchemaChanged {
  5621  			l = len(s)
  5622  			n += 1 + l + sov(uint64(l))
  5623  		}
  5624  	}
  5625  	n += len(m.unknownFields)
  5626  	return n
  5627  }
  5628  
  5629  func (m *AggregateStats) SizeVT() (n int) {
  5630  	if m == nil {
  5631  		return 0
  5632  	}
  5633  	var l int
  5634  	_ = l
  5635  	if m.HealthyTabletCount != 0 {
  5636  		n += 1 + sov(uint64(m.HealthyTabletCount))
  5637  	}
  5638  	if m.UnhealthyTabletCount != 0 {
  5639  		n += 1 + sov(uint64(m.UnhealthyTabletCount))
  5640  	}
  5641  	if m.ReplicationLagSecondsMin != 0 {
  5642  		n += 1 + sov(uint64(m.ReplicationLagSecondsMin))
  5643  	}
  5644  	if m.ReplicationLagSecondsMax != 0 {
  5645  		n += 1 + sov(uint64(m.ReplicationLagSecondsMax))
  5646  	}
  5647  	n += len(m.unknownFields)
  5648  	return n
  5649  }
  5650  
  5651  func (m *StreamHealthResponse) SizeVT() (n int) {
  5652  	if m == nil {
  5653  		return 0
  5654  	}
  5655  	var l int
  5656  	_ = l
  5657  	if m.Target != nil {
  5658  		l = m.Target.SizeVT()
  5659  		n += 1 + l + sov(uint64(l))
  5660  	}
  5661  	if m.Serving {
  5662  		n += 2
  5663  	}
  5664  	if m.TabletExternallyReparentedTimestamp != 0 {
  5665  		n += 1 + sov(uint64(m.TabletExternallyReparentedTimestamp))
  5666  	}
  5667  	if m.RealtimeStats != nil {
  5668  		l = m.RealtimeStats.SizeVT()
  5669  		n += 1 + l + sov(uint64(l))
  5670  	}
  5671  	if m.TabletAlias != nil {
  5672  		l = m.TabletAlias.SizeVT()
  5673  		n += 1 + l + sov(uint64(l))
  5674  	}
  5675  	n += len(m.unknownFields)
  5676  	return n
  5677  }
  5678  
  5679  func (m *TransactionMetadata) SizeVT() (n int) {
  5680  	if m == nil {
  5681  		return 0
  5682  	}
  5683  	var l int
  5684  	_ = l
  5685  	l = len(m.Dtid)
  5686  	if l > 0 {
  5687  		n += 1 + l + sov(uint64(l))
  5688  	}
  5689  	if m.State != 0 {
  5690  		n += 1 + sov(uint64(m.State))
  5691  	}
  5692  	if m.TimeCreated != 0 {
  5693  		n += 1 + sov(uint64(m.TimeCreated))
  5694  	}
  5695  	if len(m.Participants) > 0 {
  5696  		for _, e := range m.Participants {
  5697  			l = e.SizeVT()
  5698  			n += 1 + l + sov(uint64(l))
  5699  		}
  5700  	}
  5701  	n += len(m.unknownFields)
  5702  	return n
  5703  }
  5704  
  5705  func sov(x uint64) (n int) {
  5706  	return (bits.Len64(x|1) + 6) / 7
  5707  }
  5708  func soz(x uint64) (n int) {
  5709  	return sov(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  5710  }
  5711  func (m *Target) UnmarshalVT(dAtA []byte) error {
  5712  	l := len(dAtA)
  5713  	iNdEx := 0
  5714  	for iNdEx < l {
  5715  		preIndex := iNdEx
  5716  		var wire uint64
  5717  		for shift := uint(0); ; shift += 7 {
  5718  			if shift >= 64 {
  5719  				return ErrIntOverflow
  5720  			}
  5721  			if iNdEx >= l {
  5722  				return io.ErrUnexpectedEOF
  5723  			}
  5724  			b := dAtA[iNdEx]
  5725  			iNdEx++
  5726  			wire |= uint64(b&0x7F) << shift
  5727  			if b < 0x80 {
  5728  				break
  5729  			}
  5730  		}
  5731  		fieldNum := int32(wire >> 3)
  5732  		wireType := int(wire & 0x7)
  5733  		if wireType == 4 {
  5734  			return fmt.Errorf("proto: Target: wiretype end group for non-group")
  5735  		}
  5736  		if fieldNum <= 0 {
  5737  			return fmt.Errorf("proto: Target: illegal tag %d (wire type %d)", fieldNum, wire)
  5738  		}
  5739  		switch fieldNum {
  5740  		case 1:
  5741  			if wireType != 2 {
  5742  				return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType)
  5743  			}
  5744  			var stringLen uint64
  5745  			for shift := uint(0); ; shift += 7 {
  5746  				if shift >= 64 {
  5747  					return ErrIntOverflow
  5748  				}
  5749  				if iNdEx >= l {
  5750  					return io.ErrUnexpectedEOF
  5751  				}
  5752  				b := dAtA[iNdEx]
  5753  				iNdEx++
  5754  				stringLen |= uint64(b&0x7F) << shift
  5755  				if b < 0x80 {
  5756  					break
  5757  				}
  5758  			}
  5759  			intStringLen := int(stringLen)
  5760  			if intStringLen < 0 {
  5761  				return ErrInvalidLength
  5762  			}
  5763  			postIndex := iNdEx + intStringLen
  5764  			if postIndex < 0 {
  5765  				return ErrInvalidLength
  5766  			}
  5767  			if postIndex > l {
  5768  				return io.ErrUnexpectedEOF
  5769  			}
  5770  			m.Keyspace = string(dAtA[iNdEx:postIndex])
  5771  			iNdEx = postIndex
  5772  		case 2:
  5773  			if wireType != 2 {
  5774  				return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType)
  5775  			}
  5776  			var stringLen uint64
  5777  			for shift := uint(0); ; shift += 7 {
  5778  				if shift >= 64 {
  5779  					return ErrIntOverflow
  5780  				}
  5781  				if iNdEx >= l {
  5782  					return io.ErrUnexpectedEOF
  5783  				}
  5784  				b := dAtA[iNdEx]
  5785  				iNdEx++
  5786  				stringLen |= uint64(b&0x7F) << shift
  5787  				if b < 0x80 {
  5788  					break
  5789  				}
  5790  			}
  5791  			intStringLen := int(stringLen)
  5792  			if intStringLen < 0 {
  5793  				return ErrInvalidLength
  5794  			}
  5795  			postIndex := iNdEx + intStringLen
  5796  			if postIndex < 0 {
  5797  				return ErrInvalidLength
  5798  			}
  5799  			if postIndex > l {
  5800  				return io.ErrUnexpectedEOF
  5801  			}
  5802  			m.Shard = string(dAtA[iNdEx:postIndex])
  5803  			iNdEx = postIndex
  5804  		case 3:
  5805  			if wireType != 0 {
  5806  				return fmt.Errorf("proto: wrong wireType = %d for field TabletType", wireType)
  5807  			}
  5808  			m.TabletType = 0
  5809  			for shift := uint(0); ; shift += 7 {
  5810  				if shift >= 64 {
  5811  					return ErrIntOverflow
  5812  				}
  5813  				if iNdEx >= l {
  5814  					return io.ErrUnexpectedEOF
  5815  				}
  5816  				b := dAtA[iNdEx]
  5817  				iNdEx++
  5818  				m.TabletType |= topodata.TabletType(b&0x7F) << shift
  5819  				if b < 0x80 {
  5820  					break
  5821  				}
  5822  			}
  5823  		case 4:
  5824  			if wireType != 2 {
  5825  				return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType)
  5826  			}
  5827  			var stringLen uint64
  5828  			for shift := uint(0); ; shift += 7 {
  5829  				if shift >= 64 {
  5830  					return ErrIntOverflow
  5831  				}
  5832  				if iNdEx >= l {
  5833  					return io.ErrUnexpectedEOF
  5834  				}
  5835  				b := dAtA[iNdEx]
  5836  				iNdEx++
  5837  				stringLen |= uint64(b&0x7F) << shift
  5838  				if b < 0x80 {
  5839  					break
  5840  				}
  5841  			}
  5842  			intStringLen := int(stringLen)
  5843  			if intStringLen < 0 {
  5844  				return ErrInvalidLength
  5845  			}
  5846  			postIndex := iNdEx + intStringLen
  5847  			if postIndex < 0 {
  5848  				return ErrInvalidLength
  5849  			}
  5850  			if postIndex > l {
  5851  				return io.ErrUnexpectedEOF
  5852  			}
  5853  			m.Cell = string(dAtA[iNdEx:postIndex])
  5854  			iNdEx = postIndex
  5855  		default:
  5856  			iNdEx = preIndex
  5857  			skippy, err := skip(dAtA[iNdEx:])
  5858  			if err != nil {
  5859  				return err
  5860  			}
  5861  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5862  				return ErrInvalidLength
  5863  			}
  5864  			if (iNdEx + skippy) > l {
  5865  				return io.ErrUnexpectedEOF
  5866  			}
  5867  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  5868  			iNdEx += skippy
  5869  		}
  5870  	}
  5871  
  5872  	if iNdEx > l {
  5873  		return io.ErrUnexpectedEOF
  5874  	}
  5875  	return nil
  5876  }
  5877  func (m *VTGateCallerID) UnmarshalVT(dAtA []byte) error {
  5878  	l := len(dAtA)
  5879  	iNdEx := 0
  5880  	for iNdEx < l {
  5881  		preIndex := iNdEx
  5882  		var wire uint64
  5883  		for shift := uint(0); ; shift += 7 {
  5884  			if shift >= 64 {
  5885  				return ErrIntOverflow
  5886  			}
  5887  			if iNdEx >= l {
  5888  				return io.ErrUnexpectedEOF
  5889  			}
  5890  			b := dAtA[iNdEx]
  5891  			iNdEx++
  5892  			wire |= uint64(b&0x7F) << shift
  5893  			if b < 0x80 {
  5894  				break
  5895  			}
  5896  		}
  5897  		fieldNum := int32(wire >> 3)
  5898  		wireType := int(wire & 0x7)
  5899  		if wireType == 4 {
  5900  			return fmt.Errorf("proto: VTGateCallerID: wiretype end group for non-group")
  5901  		}
  5902  		if fieldNum <= 0 {
  5903  			return fmt.Errorf("proto: VTGateCallerID: illegal tag %d (wire type %d)", fieldNum, wire)
  5904  		}
  5905  		switch fieldNum {
  5906  		case 1:
  5907  			if wireType != 2 {
  5908  				return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
  5909  			}
  5910  			var stringLen uint64
  5911  			for shift := uint(0); ; shift += 7 {
  5912  				if shift >= 64 {
  5913  					return ErrIntOverflow
  5914  				}
  5915  				if iNdEx >= l {
  5916  					return io.ErrUnexpectedEOF
  5917  				}
  5918  				b := dAtA[iNdEx]
  5919  				iNdEx++
  5920  				stringLen |= uint64(b&0x7F) << shift
  5921  				if b < 0x80 {
  5922  					break
  5923  				}
  5924  			}
  5925  			intStringLen := int(stringLen)
  5926  			if intStringLen < 0 {
  5927  				return ErrInvalidLength
  5928  			}
  5929  			postIndex := iNdEx + intStringLen
  5930  			if postIndex < 0 {
  5931  				return ErrInvalidLength
  5932  			}
  5933  			if postIndex > l {
  5934  				return io.ErrUnexpectedEOF
  5935  			}
  5936  			m.Username = string(dAtA[iNdEx:postIndex])
  5937  			iNdEx = postIndex
  5938  		case 2:
  5939  			if wireType != 2 {
  5940  				return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
  5941  			}
  5942  			var stringLen uint64
  5943  			for shift := uint(0); ; shift += 7 {
  5944  				if shift >= 64 {
  5945  					return ErrIntOverflow
  5946  				}
  5947  				if iNdEx >= l {
  5948  					return io.ErrUnexpectedEOF
  5949  				}
  5950  				b := dAtA[iNdEx]
  5951  				iNdEx++
  5952  				stringLen |= uint64(b&0x7F) << shift
  5953  				if b < 0x80 {
  5954  					break
  5955  				}
  5956  			}
  5957  			intStringLen := int(stringLen)
  5958  			if intStringLen < 0 {
  5959  				return ErrInvalidLength
  5960  			}
  5961  			postIndex := iNdEx + intStringLen
  5962  			if postIndex < 0 {
  5963  				return ErrInvalidLength
  5964  			}
  5965  			if postIndex > l {
  5966  				return io.ErrUnexpectedEOF
  5967  			}
  5968  			m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex]))
  5969  			iNdEx = postIndex
  5970  		default:
  5971  			iNdEx = preIndex
  5972  			skippy, err := skip(dAtA[iNdEx:])
  5973  			if err != nil {
  5974  				return err
  5975  			}
  5976  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5977  				return ErrInvalidLength
  5978  			}
  5979  			if (iNdEx + skippy) > l {
  5980  				return io.ErrUnexpectedEOF
  5981  			}
  5982  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  5983  			iNdEx += skippy
  5984  		}
  5985  	}
  5986  
  5987  	if iNdEx > l {
  5988  		return io.ErrUnexpectedEOF
  5989  	}
  5990  	return nil
  5991  }
  5992  func (m *EventToken) UnmarshalVT(dAtA []byte) error {
  5993  	l := len(dAtA)
  5994  	iNdEx := 0
  5995  	for iNdEx < l {
  5996  		preIndex := iNdEx
  5997  		var wire uint64
  5998  		for shift := uint(0); ; shift += 7 {
  5999  			if shift >= 64 {
  6000  				return ErrIntOverflow
  6001  			}
  6002  			if iNdEx >= l {
  6003  				return io.ErrUnexpectedEOF
  6004  			}
  6005  			b := dAtA[iNdEx]
  6006  			iNdEx++
  6007  			wire |= uint64(b&0x7F) << shift
  6008  			if b < 0x80 {
  6009  				break
  6010  			}
  6011  		}
  6012  		fieldNum := int32(wire >> 3)
  6013  		wireType := int(wire & 0x7)
  6014  		if wireType == 4 {
  6015  			return fmt.Errorf("proto: EventToken: wiretype end group for non-group")
  6016  		}
  6017  		if fieldNum <= 0 {
  6018  			return fmt.Errorf("proto: EventToken: illegal tag %d (wire type %d)", fieldNum, wire)
  6019  		}
  6020  		switch fieldNum {
  6021  		case 1:
  6022  			if wireType != 0 {
  6023  				return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  6024  			}
  6025  			m.Timestamp = 0
  6026  			for shift := uint(0); ; shift += 7 {
  6027  				if shift >= 64 {
  6028  					return ErrIntOverflow
  6029  				}
  6030  				if iNdEx >= l {
  6031  					return io.ErrUnexpectedEOF
  6032  				}
  6033  				b := dAtA[iNdEx]
  6034  				iNdEx++
  6035  				m.Timestamp |= int64(b&0x7F) << shift
  6036  				if b < 0x80 {
  6037  					break
  6038  				}
  6039  			}
  6040  		case 2:
  6041  			if wireType != 2 {
  6042  				return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType)
  6043  			}
  6044  			var stringLen uint64
  6045  			for shift := uint(0); ; shift += 7 {
  6046  				if shift >= 64 {
  6047  					return ErrIntOverflow
  6048  				}
  6049  				if iNdEx >= l {
  6050  					return io.ErrUnexpectedEOF
  6051  				}
  6052  				b := dAtA[iNdEx]
  6053  				iNdEx++
  6054  				stringLen |= uint64(b&0x7F) << shift
  6055  				if b < 0x80 {
  6056  					break
  6057  				}
  6058  			}
  6059  			intStringLen := int(stringLen)
  6060  			if intStringLen < 0 {
  6061  				return ErrInvalidLength
  6062  			}
  6063  			postIndex := iNdEx + intStringLen
  6064  			if postIndex < 0 {
  6065  				return ErrInvalidLength
  6066  			}
  6067  			if postIndex > l {
  6068  				return io.ErrUnexpectedEOF
  6069  			}
  6070  			m.Shard = string(dAtA[iNdEx:postIndex])
  6071  			iNdEx = postIndex
  6072  		case 3:
  6073  			if wireType != 2 {
  6074  				return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType)
  6075  			}
  6076  			var stringLen uint64
  6077  			for shift := uint(0); ; shift += 7 {
  6078  				if shift >= 64 {
  6079  					return ErrIntOverflow
  6080  				}
  6081  				if iNdEx >= l {
  6082  					return io.ErrUnexpectedEOF
  6083  				}
  6084  				b := dAtA[iNdEx]
  6085  				iNdEx++
  6086  				stringLen |= uint64(b&0x7F) << shift
  6087  				if b < 0x80 {
  6088  					break
  6089  				}
  6090  			}
  6091  			intStringLen := int(stringLen)
  6092  			if intStringLen < 0 {
  6093  				return ErrInvalidLength
  6094  			}
  6095  			postIndex := iNdEx + intStringLen
  6096  			if postIndex < 0 {
  6097  				return ErrInvalidLength
  6098  			}
  6099  			if postIndex > l {
  6100  				return io.ErrUnexpectedEOF
  6101  			}
  6102  			m.Position = string(dAtA[iNdEx:postIndex])
  6103  			iNdEx = postIndex
  6104  		default:
  6105  			iNdEx = preIndex
  6106  			skippy, err := skip(dAtA[iNdEx:])
  6107  			if err != nil {
  6108  				return err
  6109  			}
  6110  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6111  				return ErrInvalidLength
  6112  			}
  6113  			if (iNdEx + skippy) > l {
  6114  				return io.ErrUnexpectedEOF
  6115  			}
  6116  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  6117  			iNdEx += skippy
  6118  		}
  6119  	}
  6120  
  6121  	if iNdEx > l {
  6122  		return io.ErrUnexpectedEOF
  6123  	}
  6124  	return nil
  6125  }
  6126  func (m *Value) UnmarshalVT(dAtA []byte) error {
  6127  	l := len(dAtA)
  6128  	iNdEx := 0
  6129  	for iNdEx < l {
  6130  		preIndex := iNdEx
  6131  		var wire uint64
  6132  		for shift := uint(0); ; shift += 7 {
  6133  			if shift >= 64 {
  6134  				return ErrIntOverflow
  6135  			}
  6136  			if iNdEx >= l {
  6137  				return io.ErrUnexpectedEOF
  6138  			}
  6139  			b := dAtA[iNdEx]
  6140  			iNdEx++
  6141  			wire |= uint64(b&0x7F) << shift
  6142  			if b < 0x80 {
  6143  				break
  6144  			}
  6145  		}
  6146  		fieldNum := int32(wire >> 3)
  6147  		wireType := int(wire & 0x7)
  6148  		if wireType == 4 {
  6149  			return fmt.Errorf("proto: Value: wiretype end group for non-group")
  6150  		}
  6151  		if fieldNum <= 0 {
  6152  			return fmt.Errorf("proto: Value: illegal tag %d (wire type %d)", fieldNum, wire)
  6153  		}
  6154  		switch fieldNum {
  6155  		case 1:
  6156  			if wireType != 0 {
  6157  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  6158  			}
  6159  			m.Type = 0
  6160  			for shift := uint(0); ; shift += 7 {
  6161  				if shift >= 64 {
  6162  					return ErrIntOverflow
  6163  				}
  6164  				if iNdEx >= l {
  6165  					return io.ErrUnexpectedEOF
  6166  				}
  6167  				b := dAtA[iNdEx]
  6168  				iNdEx++
  6169  				m.Type |= Type(b&0x7F) << shift
  6170  				if b < 0x80 {
  6171  					break
  6172  				}
  6173  			}
  6174  		case 2:
  6175  			if wireType != 2 {
  6176  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  6177  			}
  6178  			var byteLen int
  6179  			for shift := uint(0); ; shift += 7 {
  6180  				if shift >= 64 {
  6181  					return ErrIntOverflow
  6182  				}
  6183  				if iNdEx >= l {
  6184  					return io.ErrUnexpectedEOF
  6185  				}
  6186  				b := dAtA[iNdEx]
  6187  				iNdEx++
  6188  				byteLen |= int(b&0x7F) << shift
  6189  				if b < 0x80 {
  6190  					break
  6191  				}
  6192  			}
  6193  			if byteLen < 0 {
  6194  				return ErrInvalidLength
  6195  			}
  6196  			postIndex := iNdEx + byteLen
  6197  			if postIndex < 0 {
  6198  				return ErrInvalidLength
  6199  			}
  6200  			if postIndex > l {
  6201  				return io.ErrUnexpectedEOF
  6202  			}
  6203  			m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
  6204  			if m.Value == nil {
  6205  				m.Value = []byte{}
  6206  			}
  6207  			iNdEx = postIndex
  6208  		default:
  6209  			iNdEx = preIndex
  6210  			skippy, err := skip(dAtA[iNdEx:])
  6211  			if err != nil {
  6212  				return err
  6213  			}
  6214  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6215  				return ErrInvalidLength
  6216  			}
  6217  			if (iNdEx + skippy) > l {
  6218  				return io.ErrUnexpectedEOF
  6219  			}
  6220  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  6221  			iNdEx += skippy
  6222  		}
  6223  	}
  6224  
  6225  	if iNdEx > l {
  6226  		return io.ErrUnexpectedEOF
  6227  	}
  6228  	return nil
  6229  }
  6230  func (m *BindVariable) UnmarshalVT(dAtA []byte) error {
  6231  	l := len(dAtA)
  6232  	iNdEx := 0
  6233  	for iNdEx < l {
  6234  		preIndex := iNdEx
  6235  		var wire uint64
  6236  		for shift := uint(0); ; shift += 7 {
  6237  			if shift >= 64 {
  6238  				return ErrIntOverflow
  6239  			}
  6240  			if iNdEx >= l {
  6241  				return io.ErrUnexpectedEOF
  6242  			}
  6243  			b := dAtA[iNdEx]
  6244  			iNdEx++
  6245  			wire |= uint64(b&0x7F) << shift
  6246  			if b < 0x80 {
  6247  				break
  6248  			}
  6249  		}
  6250  		fieldNum := int32(wire >> 3)
  6251  		wireType := int(wire & 0x7)
  6252  		if wireType == 4 {
  6253  			return fmt.Errorf("proto: BindVariable: wiretype end group for non-group")
  6254  		}
  6255  		if fieldNum <= 0 {
  6256  			return fmt.Errorf("proto: BindVariable: illegal tag %d (wire type %d)", fieldNum, wire)
  6257  		}
  6258  		switch fieldNum {
  6259  		case 1:
  6260  			if wireType != 0 {
  6261  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  6262  			}
  6263  			m.Type = 0
  6264  			for shift := uint(0); ; shift += 7 {
  6265  				if shift >= 64 {
  6266  					return ErrIntOverflow
  6267  				}
  6268  				if iNdEx >= l {
  6269  					return io.ErrUnexpectedEOF
  6270  				}
  6271  				b := dAtA[iNdEx]
  6272  				iNdEx++
  6273  				m.Type |= Type(b&0x7F) << shift
  6274  				if b < 0x80 {
  6275  					break
  6276  				}
  6277  			}
  6278  		case 2:
  6279  			if wireType != 2 {
  6280  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  6281  			}
  6282  			var byteLen int
  6283  			for shift := uint(0); ; shift += 7 {
  6284  				if shift >= 64 {
  6285  					return ErrIntOverflow
  6286  				}
  6287  				if iNdEx >= l {
  6288  					return io.ErrUnexpectedEOF
  6289  				}
  6290  				b := dAtA[iNdEx]
  6291  				iNdEx++
  6292  				byteLen |= int(b&0x7F) << shift
  6293  				if b < 0x80 {
  6294  					break
  6295  				}
  6296  			}
  6297  			if byteLen < 0 {
  6298  				return ErrInvalidLength
  6299  			}
  6300  			postIndex := iNdEx + byteLen
  6301  			if postIndex < 0 {
  6302  				return ErrInvalidLength
  6303  			}
  6304  			if postIndex > l {
  6305  				return io.ErrUnexpectedEOF
  6306  			}
  6307  			m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
  6308  			if m.Value == nil {
  6309  				m.Value = []byte{}
  6310  			}
  6311  			iNdEx = postIndex
  6312  		case 3:
  6313  			if wireType != 2 {
  6314  				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
  6315  			}
  6316  			var msglen int
  6317  			for shift := uint(0); ; shift += 7 {
  6318  				if shift >= 64 {
  6319  					return ErrIntOverflow
  6320  				}
  6321  				if iNdEx >= l {
  6322  					return io.ErrUnexpectedEOF
  6323  				}
  6324  				b := dAtA[iNdEx]
  6325  				iNdEx++
  6326  				msglen |= int(b&0x7F) << shift
  6327  				if b < 0x80 {
  6328  					break
  6329  				}
  6330  			}
  6331  			if msglen < 0 {
  6332  				return ErrInvalidLength
  6333  			}
  6334  			postIndex := iNdEx + msglen
  6335  			if postIndex < 0 {
  6336  				return ErrInvalidLength
  6337  			}
  6338  			if postIndex > l {
  6339  				return io.ErrUnexpectedEOF
  6340  			}
  6341  			m.Values = append(m.Values, &Value{})
  6342  			if err := m.Values[len(m.Values)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  6343  				return err
  6344  			}
  6345  			iNdEx = postIndex
  6346  		default:
  6347  			iNdEx = preIndex
  6348  			skippy, err := skip(dAtA[iNdEx:])
  6349  			if err != nil {
  6350  				return err
  6351  			}
  6352  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6353  				return ErrInvalidLength
  6354  			}
  6355  			if (iNdEx + skippy) > l {
  6356  				return io.ErrUnexpectedEOF
  6357  			}
  6358  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  6359  			iNdEx += skippy
  6360  		}
  6361  	}
  6362  
  6363  	if iNdEx > l {
  6364  		return io.ErrUnexpectedEOF
  6365  	}
  6366  	return nil
  6367  }
  6368  func (m *BoundQuery) UnmarshalVT(dAtA []byte) error {
  6369  	l := len(dAtA)
  6370  	iNdEx := 0
  6371  	for iNdEx < l {
  6372  		preIndex := iNdEx
  6373  		var wire uint64
  6374  		for shift := uint(0); ; shift += 7 {
  6375  			if shift >= 64 {
  6376  				return ErrIntOverflow
  6377  			}
  6378  			if iNdEx >= l {
  6379  				return io.ErrUnexpectedEOF
  6380  			}
  6381  			b := dAtA[iNdEx]
  6382  			iNdEx++
  6383  			wire |= uint64(b&0x7F) << shift
  6384  			if b < 0x80 {
  6385  				break
  6386  			}
  6387  		}
  6388  		fieldNum := int32(wire >> 3)
  6389  		wireType := int(wire & 0x7)
  6390  		if wireType == 4 {
  6391  			return fmt.Errorf("proto: BoundQuery: wiretype end group for non-group")
  6392  		}
  6393  		if fieldNum <= 0 {
  6394  			return fmt.Errorf("proto: BoundQuery: illegal tag %d (wire type %d)", fieldNum, wire)
  6395  		}
  6396  		switch fieldNum {
  6397  		case 1:
  6398  			if wireType != 2 {
  6399  				return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType)
  6400  			}
  6401  			var stringLen uint64
  6402  			for shift := uint(0); ; shift += 7 {
  6403  				if shift >= 64 {
  6404  					return ErrIntOverflow
  6405  				}
  6406  				if iNdEx >= l {
  6407  					return io.ErrUnexpectedEOF
  6408  				}
  6409  				b := dAtA[iNdEx]
  6410  				iNdEx++
  6411  				stringLen |= uint64(b&0x7F) << shift
  6412  				if b < 0x80 {
  6413  					break
  6414  				}
  6415  			}
  6416  			intStringLen := int(stringLen)
  6417  			if intStringLen < 0 {
  6418  				return ErrInvalidLength
  6419  			}
  6420  			postIndex := iNdEx + intStringLen
  6421  			if postIndex < 0 {
  6422  				return ErrInvalidLength
  6423  			}
  6424  			if postIndex > l {
  6425  				return io.ErrUnexpectedEOF
  6426  			}
  6427  			m.Sql = string(dAtA[iNdEx:postIndex])
  6428  			iNdEx = postIndex
  6429  		case 2:
  6430  			if wireType != 2 {
  6431  				return fmt.Errorf("proto: wrong wireType = %d for field BindVariables", wireType)
  6432  			}
  6433  			var msglen int
  6434  			for shift := uint(0); ; shift += 7 {
  6435  				if shift >= 64 {
  6436  					return ErrIntOverflow
  6437  				}
  6438  				if iNdEx >= l {
  6439  					return io.ErrUnexpectedEOF
  6440  				}
  6441  				b := dAtA[iNdEx]
  6442  				iNdEx++
  6443  				msglen |= int(b&0x7F) << shift
  6444  				if b < 0x80 {
  6445  					break
  6446  				}
  6447  			}
  6448  			if msglen < 0 {
  6449  				return ErrInvalidLength
  6450  			}
  6451  			postIndex := iNdEx + msglen
  6452  			if postIndex < 0 {
  6453  				return ErrInvalidLength
  6454  			}
  6455  			if postIndex > l {
  6456  				return io.ErrUnexpectedEOF
  6457  			}
  6458  			if m.BindVariables == nil {
  6459  				m.BindVariables = make(map[string]*BindVariable)
  6460  			}
  6461  			var mapkey string
  6462  			var mapvalue *BindVariable
  6463  			for iNdEx < postIndex {
  6464  				entryPreIndex := iNdEx
  6465  				var wire uint64
  6466  				for shift := uint(0); ; shift += 7 {
  6467  					if shift >= 64 {
  6468  						return ErrIntOverflow
  6469  					}
  6470  					if iNdEx >= l {
  6471  						return io.ErrUnexpectedEOF
  6472  					}
  6473  					b := dAtA[iNdEx]
  6474  					iNdEx++
  6475  					wire |= uint64(b&0x7F) << shift
  6476  					if b < 0x80 {
  6477  						break
  6478  					}
  6479  				}
  6480  				fieldNum := int32(wire >> 3)
  6481  				if fieldNum == 1 {
  6482  					var stringLenmapkey uint64
  6483  					for shift := uint(0); ; shift += 7 {
  6484  						if shift >= 64 {
  6485  							return ErrIntOverflow
  6486  						}
  6487  						if iNdEx >= l {
  6488  							return io.ErrUnexpectedEOF
  6489  						}
  6490  						b := dAtA[iNdEx]
  6491  						iNdEx++
  6492  						stringLenmapkey |= uint64(b&0x7F) << shift
  6493  						if b < 0x80 {
  6494  							break
  6495  						}
  6496  					}
  6497  					intStringLenmapkey := int(stringLenmapkey)
  6498  					if intStringLenmapkey < 0 {
  6499  						return ErrInvalidLength
  6500  					}
  6501  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  6502  					if postStringIndexmapkey < 0 {
  6503  						return ErrInvalidLength
  6504  					}
  6505  					if postStringIndexmapkey > l {
  6506  						return io.ErrUnexpectedEOF
  6507  					}
  6508  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  6509  					iNdEx = postStringIndexmapkey
  6510  				} else if fieldNum == 2 {
  6511  					var mapmsglen int
  6512  					for shift := uint(0); ; shift += 7 {
  6513  						if shift >= 64 {
  6514  							return ErrIntOverflow
  6515  						}
  6516  						if iNdEx >= l {
  6517  							return io.ErrUnexpectedEOF
  6518  						}
  6519  						b := dAtA[iNdEx]
  6520  						iNdEx++
  6521  						mapmsglen |= int(b&0x7F) << shift
  6522  						if b < 0x80 {
  6523  							break
  6524  						}
  6525  					}
  6526  					if mapmsglen < 0 {
  6527  						return ErrInvalidLength
  6528  					}
  6529  					postmsgIndex := iNdEx + mapmsglen
  6530  					if postmsgIndex < 0 {
  6531  						return ErrInvalidLength
  6532  					}
  6533  					if postmsgIndex > l {
  6534  						return io.ErrUnexpectedEOF
  6535  					}
  6536  					mapvalue = &BindVariable{}
  6537  					if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil {
  6538  						return err
  6539  					}
  6540  					iNdEx = postmsgIndex
  6541  				} else {
  6542  					iNdEx = entryPreIndex
  6543  					skippy, err := skip(dAtA[iNdEx:])
  6544  					if err != nil {
  6545  						return err
  6546  					}
  6547  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  6548  						return ErrInvalidLength
  6549  					}
  6550  					if (iNdEx + skippy) > postIndex {
  6551  						return io.ErrUnexpectedEOF
  6552  					}
  6553  					iNdEx += skippy
  6554  				}
  6555  			}
  6556  			m.BindVariables[mapkey] = mapvalue
  6557  			iNdEx = postIndex
  6558  		default:
  6559  			iNdEx = preIndex
  6560  			skippy, err := skip(dAtA[iNdEx:])
  6561  			if err != nil {
  6562  				return err
  6563  			}
  6564  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6565  				return ErrInvalidLength
  6566  			}
  6567  			if (iNdEx + skippy) > l {
  6568  				return io.ErrUnexpectedEOF
  6569  			}
  6570  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  6571  			iNdEx += skippy
  6572  		}
  6573  	}
  6574  
  6575  	if iNdEx > l {
  6576  		return io.ErrUnexpectedEOF
  6577  	}
  6578  	return nil
  6579  }
  6580  func (m *ExecuteOptions) UnmarshalVT(dAtA []byte) error {
  6581  	l := len(dAtA)
  6582  	iNdEx := 0
  6583  	for iNdEx < l {
  6584  		preIndex := iNdEx
  6585  		var wire uint64
  6586  		for shift := uint(0); ; shift += 7 {
  6587  			if shift >= 64 {
  6588  				return ErrIntOverflow
  6589  			}
  6590  			if iNdEx >= l {
  6591  				return io.ErrUnexpectedEOF
  6592  			}
  6593  			b := dAtA[iNdEx]
  6594  			iNdEx++
  6595  			wire |= uint64(b&0x7F) << shift
  6596  			if b < 0x80 {
  6597  				break
  6598  			}
  6599  		}
  6600  		fieldNum := int32(wire >> 3)
  6601  		wireType := int(wire & 0x7)
  6602  		if wireType == 4 {
  6603  			return fmt.Errorf("proto: ExecuteOptions: wiretype end group for non-group")
  6604  		}
  6605  		if fieldNum <= 0 {
  6606  			return fmt.Errorf("proto: ExecuteOptions: illegal tag %d (wire type %d)", fieldNum, wire)
  6607  		}
  6608  		switch fieldNum {
  6609  		case 4:
  6610  			if wireType != 0 {
  6611  				return fmt.Errorf("proto: wrong wireType = %d for field IncludedFields", wireType)
  6612  			}
  6613  			m.IncludedFields = 0
  6614  			for shift := uint(0); ; shift += 7 {
  6615  				if shift >= 64 {
  6616  					return ErrIntOverflow
  6617  				}
  6618  				if iNdEx >= l {
  6619  					return io.ErrUnexpectedEOF
  6620  				}
  6621  				b := dAtA[iNdEx]
  6622  				iNdEx++
  6623  				m.IncludedFields |= ExecuteOptions_IncludedFields(b&0x7F) << shift
  6624  				if b < 0x80 {
  6625  					break
  6626  				}
  6627  			}
  6628  		case 5:
  6629  			if wireType != 0 {
  6630  				return fmt.Errorf("proto: wrong wireType = %d for field ClientFoundRows", wireType)
  6631  			}
  6632  			var v int
  6633  			for shift := uint(0); ; shift += 7 {
  6634  				if shift >= 64 {
  6635  					return ErrIntOverflow
  6636  				}
  6637  				if iNdEx >= l {
  6638  					return io.ErrUnexpectedEOF
  6639  				}
  6640  				b := dAtA[iNdEx]
  6641  				iNdEx++
  6642  				v |= int(b&0x7F) << shift
  6643  				if b < 0x80 {
  6644  					break
  6645  				}
  6646  			}
  6647  			m.ClientFoundRows = bool(v != 0)
  6648  		case 6:
  6649  			if wireType != 0 {
  6650  				return fmt.Errorf("proto: wrong wireType = %d for field Workload", wireType)
  6651  			}
  6652  			m.Workload = 0
  6653  			for shift := uint(0); ; shift += 7 {
  6654  				if shift >= 64 {
  6655  					return ErrIntOverflow
  6656  				}
  6657  				if iNdEx >= l {
  6658  					return io.ErrUnexpectedEOF
  6659  				}
  6660  				b := dAtA[iNdEx]
  6661  				iNdEx++
  6662  				m.Workload |= ExecuteOptions_Workload(b&0x7F) << shift
  6663  				if b < 0x80 {
  6664  					break
  6665  				}
  6666  			}
  6667  		case 8:
  6668  			if wireType != 0 {
  6669  				return fmt.Errorf("proto: wrong wireType = %d for field SqlSelectLimit", wireType)
  6670  			}
  6671  			m.SqlSelectLimit = 0
  6672  			for shift := uint(0); ; shift += 7 {
  6673  				if shift >= 64 {
  6674  					return ErrIntOverflow
  6675  				}
  6676  				if iNdEx >= l {
  6677  					return io.ErrUnexpectedEOF
  6678  				}
  6679  				b := dAtA[iNdEx]
  6680  				iNdEx++
  6681  				m.SqlSelectLimit |= int64(b&0x7F) << shift
  6682  				if b < 0x80 {
  6683  					break
  6684  				}
  6685  			}
  6686  		case 9:
  6687  			if wireType != 0 {
  6688  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionIsolation", wireType)
  6689  			}
  6690  			m.TransactionIsolation = 0
  6691  			for shift := uint(0); ; shift += 7 {
  6692  				if shift >= 64 {
  6693  					return ErrIntOverflow
  6694  				}
  6695  				if iNdEx >= l {
  6696  					return io.ErrUnexpectedEOF
  6697  				}
  6698  				b := dAtA[iNdEx]
  6699  				iNdEx++
  6700  				m.TransactionIsolation |= ExecuteOptions_TransactionIsolation(b&0x7F) << shift
  6701  				if b < 0x80 {
  6702  					break
  6703  				}
  6704  			}
  6705  		case 10:
  6706  			if wireType != 0 {
  6707  				return fmt.Errorf("proto: wrong wireType = %d for field SkipQueryPlanCache", wireType)
  6708  			}
  6709  			var v int
  6710  			for shift := uint(0); ; shift += 7 {
  6711  				if shift >= 64 {
  6712  					return ErrIntOverflow
  6713  				}
  6714  				if iNdEx >= l {
  6715  					return io.ErrUnexpectedEOF
  6716  				}
  6717  				b := dAtA[iNdEx]
  6718  				iNdEx++
  6719  				v |= int(b&0x7F) << shift
  6720  				if b < 0x80 {
  6721  					break
  6722  				}
  6723  			}
  6724  			m.SkipQueryPlanCache = bool(v != 0)
  6725  		case 11:
  6726  			if wireType != 0 {
  6727  				return fmt.Errorf("proto: wrong wireType = %d for field PlannerVersion", wireType)
  6728  			}
  6729  			m.PlannerVersion = 0
  6730  			for shift := uint(0); ; shift += 7 {
  6731  				if shift >= 64 {
  6732  					return ErrIntOverflow
  6733  				}
  6734  				if iNdEx >= l {
  6735  					return io.ErrUnexpectedEOF
  6736  				}
  6737  				b := dAtA[iNdEx]
  6738  				iNdEx++
  6739  				m.PlannerVersion |= ExecuteOptions_PlannerVersion(b&0x7F) << shift
  6740  				if b < 0x80 {
  6741  					break
  6742  				}
  6743  			}
  6744  		case 12:
  6745  			if wireType != 0 {
  6746  				return fmt.Errorf("proto: wrong wireType = %d for field HasCreatedTempTables", wireType)
  6747  			}
  6748  			var v int
  6749  			for shift := uint(0); ; shift += 7 {
  6750  				if shift >= 64 {
  6751  					return ErrIntOverflow
  6752  				}
  6753  				if iNdEx >= l {
  6754  					return io.ErrUnexpectedEOF
  6755  				}
  6756  				b := dAtA[iNdEx]
  6757  				iNdEx++
  6758  				v |= int(b&0x7F) << shift
  6759  				if b < 0x80 {
  6760  					break
  6761  				}
  6762  			}
  6763  			m.HasCreatedTempTables = bool(v != 0)
  6764  		case 13:
  6765  			if wireType != 0 {
  6766  				return fmt.Errorf("proto: wrong wireType = %d for field Consolidator", wireType)
  6767  			}
  6768  			m.Consolidator = 0
  6769  			for shift := uint(0); ; shift += 7 {
  6770  				if shift >= 64 {
  6771  					return ErrIntOverflow
  6772  				}
  6773  				if iNdEx >= l {
  6774  					return io.ErrUnexpectedEOF
  6775  				}
  6776  				b := dAtA[iNdEx]
  6777  				iNdEx++
  6778  				m.Consolidator |= ExecuteOptions_Consolidator(b&0x7F) << shift
  6779  				if b < 0x80 {
  6780  					break
  6781  				}
  6782  			}
  6783  		case 14:
  6784  			if wireType == 0 {
  6785  				var v ExecuteOptions_TransactionAccessMode
  6786  				for shift := uint(0); ; shift += 7 {
  6787  					if shift >= 64 {
  6788  						return ErrIntOverflow
  6789  					}
  6790  					if iNdEx >= l {
  6791  						return io.ErrUnexpectedEOF
  6792  					}
  6793  					b := dAtA[iNdEx]
  6794  					iNdEx++
  6795  					v |= ExecuteOptions_TransactionAccessMode(b&0x7F) << shift
  6796  					if b < 0x80 {
  6797  						break
  6798  					}
  6799  				}
  6800  				m.TransactionAccessMode = append(m.TransactionAccessMode, v)
  6801  			} else if wireType == 2 {
  6802  				var packedLen int
  6803  				for shift := uint(0); ; shift += 7 {
  6804  					if shift >= 64 {
  6805  						return ErrIntOverflow
  6806  					}
  6807  					if iNdEx >= l {
  6808  						return io.ErrUnexpectedEOF
  6809  					}
  6810  					b := dAtA[iNdEx]
  6811  					iNdEx++
  6812  					packedLen |= int(b&0x7F) << shift
  6813  					if b < 0x80 {
  6814  						break
  6815  					}
  6816  				}
  6817  				if packedLen < 0 {
  6818  					return ErrInvalidLength
  6819  				}
  6820  				postIndex := iNdEx + packedLen
  6821  				if postIndex < 0 {
  6822  					return ErrInvalidLength
  6823  				}
  6824  				if postIndex > l {
  6825  					return io.ErrUnexpectedEOF
  6826  				}
  6827  				var elementCount int
  6828  				if elementCount != 0 && len(m.TransactionAccessMode) == 0 {
  6829  					m.TransactionAccessMode = make([]ExecuteOptions_TransactionAccessMode, 0, elementCount)
  6830  				}
  6831  				for iNdEx < postIndex {
  6832  					var v ExecuteOptions_TransactionAccessMode
  6833  					for shift := uint(0); ; shift += 7 {
  6834  						if shift >= 64 {
  6835  							return ErrIntOverflow
  6836  						}
  6837  						if iNdEx >= l {
  6838  							return io.ErrUnexpectedEOF
  6839  						}
  6840  						b := dAtA[iNdEx]
  6841  						iNdEx++
  6842  						v |= ExecuteOptions_TransactionAccessMode(b&0x7F) << shift
  6843  						if b < 0x80 {
  6844  							break
  6845  						}
  6846  					}
  6847  					m.TransactionAccessMode = append(m.TransactionAccessMode, v)
  6848  				}
  6849  			} else {
  6850  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionAccessMode", wireType)
  6851  			}
  6852  		default:
  6853  			iNdEx = preIndex
  6854  			skippy, err := skip(dAtA[iNdEx:])
  6855  			if err != nil {
  6856  				return err
  6857  			}
  6858  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6859  				return ErrInvalidLength
  6860  			}
  6861  			if (iNdEx + skippy) > l {
  6862  				return io.ErrUnexpectedEOF
  6863  			}
  6864  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  6865  			iNdEx += skippy
  6866  		}
  6867  	}
  6868  
  6869  	if iNdEx > l {
  6870  		return io.ErrUnexpectedEOF
  6871  	}
  6872  	return nil
  6873  }
  6874  func (m *Field) UnmarshalVT(dAtA []byte) error {
  6875  	l := len(dAtA)
  6876  	iNdEx := 0
  6877  	for iNdEx < l {
  6878  		preIndex := iNdEx
  6879  		var wire uint64
  6880  		for shift := uint(0); ; shift += 7 {
  6881  			if shift >= 64 {
  6882  				return ErrIntOverflow
  6883  			}
  6884  			if iNdEx >= l {
  6885  				return io.ErrUnexpectedEOF
  6886  			}
  6887  			b := dAtA[iNdEx]
  6888  			iNdEx++
  6889  			wire |= uint64(b&0x7F) << shift
  6890  			if b < 0x80 {
  6891  				break
  6892  			}
  6893  		}
  6894  		fieldNum := int32(wire >> 3)
  6895  		wireType := int(wire & 0x7)
  6896  		if wireType == 4 {
  6897  			return fmt.Errorf("proto: Field: wiretype end group for non-group")
  6898  		}
  6899  		if fieldNum <= 0 {
  6900  			return fmt.Errorf("proto: Field: illegal tag %d (wire type %d)", fieldNum, wire)
  6901  		}
  6902  		switch fieldNum {
  6903  		case 1:
  6904  			if wireType != 2 {
  6905  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  6906  			}
  6907  			var stringLen uint64
  6908  			for shift := uint(0); ; shift += 7 {
  6909  				if shift >= 64 {
  6910  					return ErrIntOverflow
  6911  				}
  6912  				if iNdEx >= l {
  6913  					return io.ErrUnexpectedEOF
  6914  				}
  6915  				b := dAtA[iNdEx]
  6916  				iNdEx++
  6917  				stringLen |= uint64(b&0x7F) << shift
  6918  				if b < 0x80 {
  6919  					break
  6920  				}
  6921  			}
  6922  			intStringLen := int(stringLen)
  6923  			if intStringLen < 0 {
  6924  				return ErrInvalidLength
  6925  			}
  6926  			postIndex := iNdEx + intStringLen
  6927  			if postIndex < 0 {
  6928  				return ErrInvalidLength
  6929  			}
  6930  			if postIndex > l {
  6931  				return io.ErrUnexpectedEOF
  6932  			}
  6933  			m.Name = string(dAtA[iNdEx:postIndex])
  6934  			iNdEx = postIndex
  6935  		case 2:
  6936  			if wireType != 0 {
  6937  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  6938  			}
  6939  			m.Type = 0
  6940  			for shift := uint(0); ; shift += 7 {
  6941  				if shift >= 64 {
  6942  					return ErrIntOverflow
  6943  				}
  6944  				if iNdEx >= l {
  6945  					return io.ErrUnexpectedEOF
  6946  				}
  6947  				b := dAtA[iNdEx]
  6948  				iNdEx++
  6949  				m.Type |= Type(b&0x7F) << shift
  6950  				if b < 0x80 {
  6951  					break
  6952  				}
  6953  			}
  6954  		case 3:
  6955  			if wireType != 2 {
  6956  				return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType)
  6957  			}
  6958  			var stringLen uint64
  6959  			for shift := uint(0); ; shift += 7 {
  6960  				if shift >= 64 {
  6961  					return ErrIntOverflow
  6962  				}
  6963  				if iNdEx >= l {
  6964  					return io.ErrUnexpectedEOF
  6965  				}
  6966  				b := dAtA[iNdEx]
  6967  				iNdEx++
  6968  				stringLen |= uint64(b&0x7F) << shift
  6969  				if b < 0x80 {
  6970  					break
  6971  				}
  6972  			}
  6973  			intStringLen := int(stringLen)
  6974  			if intStringLen < 0 {
  6975  				return ErrInvalidLength
  6976  			}
  6977  			postIndex := iNdEx + intStringLen
  6978  			if postIndex < 0 {
  6979  				return ErrInvalidLength
  6980  			}
  6981  			if postIndex > l {
  6982  				return io.ErrUnexpectedEOF
  6983  			}
  6984  			m.Table = string(dAtA[iNdEx:postIndex])
  6985  			iNdEx = postIndex
  6986  		case 4:
  6987  			if wireType != 2 {
  6988  				return fmt.Errorf("proto: wrong wireType = %d for field OrgTable", wireType)
  6989  			}
  6990  			var stringLen uint64
  6991  			for shift := uint(0); ; shift += 7 {
  6992  				if shift >= 64 {
  6993  					return ErrIntOverflow
  6994  				}
  6995  				if iNdEx >= l {
  6996  					return io.ErrUnexpectedEOF
  6997  				}
  6998  				b := dAtA[iNdEx]
  6999  				iNdEx++
  7000  				stringLen |= uint64(b&0x7F) << shift
  7001  				if b < 0x80 {
  7002  					break
  7003  				}
  7004  			}
  7005  			intStringLen := int(stringLen)
  7006  			if intStringLen < 0 {
  7007  				return ErrInvalidLength
  7008  			}
  7009  			postIndex := iNdEx + intStringLen
  7010  			if postIndex < 0 {
  7011  				return ErrInvalidLength
  7012  			}
  7013  			if postIndex > l {
  7014  				return io.ErrUnexpectedEOF
  7015  			}
  7016  			m.OrgTable = string(dAtA[iNdEx:postIndex])
  7017  			iNdEx = postIndex
  7018  		case 5:
  7019  			if wireType != 2 {
  7020  				return fmt.Errorf("proto: wrong wireType = %d for field Database", wireType)
  7021  			}
  7022  			var stringLen uint64
  7023  			for shift := uint(0); ; shift += 7 {
  7024  				if shift >= 64 {
  7025  					return ErrIntOverflow
  7026  				}
  7027  				if iNdEx >= l {
  7028  					return io.ErrUnexpectedEOF
  7029  				}
  7030  				b := dAtA[iNdEx]
  7031  				iNdEx++
  7032  				stringLen |= uint64(b&0x7F) << shift
  7033  				if b < 0x80 {
  7034  					break
  7035  				}
  7036  			}
  7037  			intStringLen := int(stringLen)
  7038  			if intStringLen < 0 {
  7039  				return ErrInvalidLength
  7040  			}
  7041  			postIndex := iNdEx + intStringLen
  7042  			if postIndex < 0 {
  7043  				return ErrInvalidLength
  7044  			}
  7045  			if postIndex > l {
  7046  				return io.ErrUnexpectedEOF
  7047  			}
  7048  			m.Database = string(dAtA[iNdEx:postIndex])
  7049  			iNdEx = postIndex
  7050  		case 6:
  7051  			if wireType != 2 {
  7052  				return fmt.Errorf("proto: wrong wireType = %d for field OrgName", wireType)
  7053  			}
  7054  			var stringLen uint64
  7055  			for shift := uint(0); ; shift += 7 {
  7056  				if shift >= 64 {
  7057  					return ErrIntOverflow
  7058  				}
  7059  				if iNdEx >= l {
  7060  					return io.ErrUnexpectedEOF
  7061  				}
  7062  				b := dAtA[iNdEx]
  7063  				iNdEx++
  7064  				stringLen |= uint64(b&0x7F) << shift
  7065  				if b < 0x80 {
  7066  					break
  7067  				}
  7068  			}
  7069  			intStringLen := int(stringLen)
  7070  			if intStringLen < 0 {
  7071  				return ErrInvalidLength
  7072  			}
  7073  			postIndex := iNdEx + intStringLen
  7074  			if postIndex < 0 {
  7075  				return ErrInvalidLength
  7076  			}
  7077  			if postIndex > l {
  7078  				return io.ErrUnexpectedEOF
  7079  			}
  7080  			m.OrgName = string(dAtA[iNdEx:postIndex])
  7081  			iNdEx = postIndex
  7082  		case 7:
  7083  			if wireType != 0 {
  7084  				return fmt.Errorf("proto: wrong wireType = %d for field ColumnLength", wireType)
  7085  			}
  7086  			m.ColumnLength = 0
  7087  			for shift := uint(0); ; shift += 7 {
  7088  				if shift >= 64 {
  7089  					return ErrIntOverflow
  7090  				}
  7091  				if iNdEx >= l {
  7092  					return io.ErrUnexpectedEOF
  7093  				}
  7094  				b := dAtA[iNdEx]
  7095  				iNdEx++
  7096  				m.ColumnLength |= uint32(b&0x7F) << shift
  7097  				if b < 0x80 {
  7098  					break
  7099  				}
  7100  			}
  7101  		case 8:
  7102  			if wireType != 0 {
  7103  				return fmt.Errorf("proto: wrong wireType = %d for field Charset", wireType)
  7104  			}
  7105  			m.Charset = 0
  7106  			for shift := uint(0); ; shift += 7 {
  7107  				if shift >= 64 {
  7108  					return ErrIntOverflow
  7109  				}
  7110  				if iNdEx >= l {
  7111  					return io.ErrUnexpectedEOF
  7112  				}
  7113  				b := dAtA[iNdEx]
  7114  				iNdEx++
  7115  				m.Charset |= uint32(b&0x7F) << shift
  7116  				if b < 0x80 {
  7117  					break
  7118  				}
  7119  			}
  7120  		case 9:
  7121  			if wireType != 0 {
  7122  				return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType)
  7123  			}
  7124  			m.Decimals = 0
  7125  			for shift := uint(0); ; shift += 7 {
  7126  				if shift >= 64 {
  7127  					return ErrIntOverflow
  7128  				}
  7129  				if iNdEx >= l {
  7130  					return io.ErrUnexpectedEOF
  7131  				}
  7132  				b := dAtA[iNdEx]
  7133  				iNdEx++
  7134  				m.Decimals |= uint32(b&0x7F) << shift
  7135  				if b < 0x80 {
  7136  					break
  7137  				}
  7138  			}
  7139  		case 10:
  7140  			if wireType != 0 {
  7141  				return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType)
  7142  			}
  7143  			m.Flags = 0
  7144  			for shift := uint(0); ; shift += 7 {
  7145  				if shift >= 64 {
  7146  					return ErrIntOverflow
  7147  				}
  7148  				if iNdEx >= l {
  7149  					return io.ErrUnexpectedEOF
  7150  				}
  7151  				b := dAtA[iNdEx]
  7152  				iNdEx++
  7153  				m.Flags |= uint32(b&0x7F) << shift
  7154  				if b < 0x80 {
  7155  					break
  7156  				}
  7157  			}
  7158  		case 11:
  7159  			if wireType != 2 {
  7160  				return fmt.Errorf("proto: wrong wireType = %d for field ColumnType", wireType)
  7161  			}
  7162  			var stringLen uint64
  7163  			for shift := uint(0); ; shift += 7 {
  7164  				if shift >= 64 {
  7165  					return ErrIntOverflow
  7166  				}
  7167  				if iNdEx >= l {
  7168  					return io.ErrUnexpectedEOF
  7169  				}
  7170  				b := dAtA[iNdEx]
  7171  				iNdEx++
  7172  				stringLen |= uint64(b&0x7F) << shift
  7173  				if b < 0x80 {
  7174  					break
  7175  				}
  7176  			}
  7177  			intStringLen := int(stringLen)
  7178  			if intStringLen < 0 {
  7179  				return ErrInvalidLength
  7180  			}
  7181  			postIndex := iNdEx + intStringLen
  7182  			if postIndex < 0 {
  7183  				return ErrInvalidLength
  7184  			}
  7185  			if postIndex > l {
  7186  				return io.ErrUnexpectedEOF
  7187  			}
  7188  			m.ColumnType = string(dAtA[iNdEx:postIndex])
  7189  			iNdEx = postIndex
  7190  		default:
  7191  			iNdEx = preIndex
  7192  			skippy, err := skip(dAtA[iNdEx:])
  7193  			if err != nil {
  7194  				return err
  7195  			}
  7196  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7197  				return ErrInvalidLength
  7198  			}
  7199  			if (iNdEx + skippy) > l {
  7200  				return io.ErrUnexpectedEOF
  7201  			}
  7202  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  7203  			iNdEx += skippy
  7204  		}
  7205  	}
  7206  
  7207  	if iNdEx > l {
  7208  		return io.ErrUnexpectedEOF
  7209  	}
  7210  	return nil
  7211  }
  7212  func (m *Row) UnmarshalVT(dAtA []byte) error {
  7213  	l := len(dAtA)
  7214  	iNdEx := 0
  7215  	for iNdEx < l {
  7216  		preIndex := iNdEx
  7217  		var wire uint64
  7218  		for shift := uint(0); ; shift += 7 {
  7219  			if shift >= 64 {
  7220  				return ErrIntOverflow
  7221  			}
  7222  			if iNdEx >= l {
  7223  				return io.ErrUnexpectedEOF
  7224  			}
  7225  			b := dAtA[iNdEx]
  7226  			iNdEx++
  7227  			wire |= uint64(b&0x7F) << shift
  7228  			if b < 0x80 {
  7229  				break
  7230  			}
  7231  		}
  7232  		fieldNum := int32(wire >> 3)
  7233  		wireType := int(wire & 0x7)
  7234  		if wireType == 4 {
  7235  			return fmt.Errorf("proto: Row: wiretype end group for non-group")
  7236  		}
  7237  		if fieldNum <= 0 {
  7238  			return fmt.Errorf("proto: Row: illegal tag %d (wire type %d)", fieldNum, wire)
  7239  		}
  7240  		switch fieldNum {
  7241  		case 1:
  7242  			if wireType == 0 {
  7243  				var v uint64
  7244  				for shift := uint(0); ; shift += 7 {
  7245  					if shift >= 64 {
  7246  						return ErrIntOverflow
  7247  					}
  7248  					if iNdEx >= l {
  7249  						return io.ErrUnexpectedEOF
  7250  					}
  7251  					b := dAtA[iNdEx]
  7252  					iNdEx++
  7253  					v |= uint64(b&0x7F) << shift
  7254  					if b < 0x80 {
  7255  						break
  7256  					}
  7257  				}
  7258  				v = (v >> 1) ^ uint64((int64(v&1)<<63)>>63)
  7259  				m.Lengths = append(m.Lengths, int64(v))
  7260  			} else if wireType == 2 {
  7261  				var packedLen int
  7262  				for shift := uint(0); ; shift += 7 {
  7263  					if shift >= 64 {
  7264  						return ErrIntOverflow
  7265  					}
  7266  					if iNdEx >= l {
  7267  						return io.ErrUnexpectedEOF
  7268  					}
  7269  					b := dAtA[iNdEx]
  7270  					iNdEx++
  7271  					packedLen |= int(b&0x7F) << shift
  7272  					if b < 0x80 {
  7273  						break
  7274  					}
  7275  				}
  7276  				if packedLen < 0 {
  7277  					return ErrInvalidLength
  7278  				}
  7279  				postIndex := iNdEx + packedLen
  7280  				if postIndex < 0 {
  7281  					return ErrInvalidLength
  7282  				}
  7283  				if postIndex > l {
  7284  					return io.ErrUnexpectedEOF
  7285  				}
  7286  				var elementCount int
  7287  				var count int
  7288  				for _, integer := range dAtA[iNdEx:postIndex] {
  7289  					if integer < 128 {
  7290  						count++
  7291  					}
  7292  				}
  7293  				elementCount = count
  7294  				if elementCount != 0 && len(m.Lengths) == 0 && cap(m.Lengths) < elementCount {
  7295  					m.Lengths = make([]int64, 0, elementCount)
  7296  				}
  7297  				for iNdEx < postIndex {
  7298  					var v uint64
  7299  					for shift := uint(0); ; shift += 7 {
  7300  						if shift >= 64 {
  7301  							return ErrIntOverflow
  7302  						}
  7303  						if iNdEx >= l {
  7304  							return io.ErrUnexpectedEOF
  7305  						}
  7306  						b := dAtA[iNdEx]
  7307  						iNdEx++
  7308  						v |= uint64(b&0x7F) << shift
  7309  						if b < 0x80 {
  7310  							break
  7311  						}
  7312  					}
  7313  					v = (v >> 1) ^ uint64((int64(v&1)<<63)>>63)
  7314  					m.Lengths = append(m.Lengths, int64(v))
  7315  				}
  7316  			} else {
  7317  				return fmt.Errorf("proto: wrong wireType = %d for field Lengths", wireType)
  7318  			}
  7319  		case 2:
  7320  			if wireType != 2 {
  7321  				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
  7322  			}
  7323  			var byteLen int
  7324  			for shift := uint(0); ; shift += 7 {
  7325  				if shift >= 64 {
  7326  					return ErrIntOverflow
  7327  				}
  7328  				if iNdEx >= l {
  7329  					return io.ErrUnexpectedEOF
  7330  				}
  7331  				b := dAtA[iNdEx]
  7332  				iNdEx++
  7333  				byteLen |= int(b&0x7F) << shift
  7334  				if b < 0x80 {
  7335  					break
  7336  				}
  7337  			}
  7338  			if byteLen < 0 {
  7339  				return ErrInvalidLength
  7340  			}
  7341  			postIndex := iNdEx + byteLen
  7342  			if postIndex < 0 {
  7343  				return ErrInvalidLength
  7344  			}
  7345  			if postIndex > l {
  7346  				return io.ErrUnexpectedEOF
  7347  			}
  7348  			m.Values = append(m.Values[:0], dAtA[iNdEx:postIndex]...)
  7349  			if m.Values == nil {
  7350  				m.Values = []byte{}
  7351  			}
  7352  			iNdEx = postIndex
  7353  		default:
  7354  			iNdEx = preIndex
  7355  			skippy, err := skip(dAtA[iNdEx:])
  7356  			if err != nil {
  7357  				return err
  7358  			}
  7359  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7360  				return ErrInvalidLength
  7361  			}
  7362  			if (iNdEx + skippy) > l {
  7363  				return io.ErrUnexpectedEOF
  7364  			}
  7365  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  7366  			iNdEx += skippy
  7367  		}
  7368  	}
  7369  
  7370  	if iNdEx > l {
  7371  		return io.ErrUnexpectedEOF
  7372  	}
  7373  	return nil
  7374  }
  7375  func (m *QueryResult) UnmarshalVT(dAtA []byte) error {
  7376  	l := len(dAtA)
  7377  	iNdEx := 0
  7378  	for iNdEx < l {
  7379  		preIndex := iNdEx
  7380  		var wire uint64
  7381  		for shift := uint(0); ; shift += 7 {
  7382  			if shift >= 64 {
  7383  				return ErrIntOverflow
  7384  			}
  7385  			if iNdEx >= l {
  7386  				return io.ErrUnexpectedEOF
  7387  			}
  7388  			b := dAtA[iNdEx]
  7389  			iNdEx++
  7390  			wire |= uint64(b&0x7F) << shift
  7391  			if b < 0x80 {
  7392  				break
  7393  			}
  7394  		}
  7395  		fieldNum := int32(wire >> 3)
  7396  		wireType := int(wire & 0x7)
  7397  		if wireType == 4 {
  7398  			return fmt.Errorf("proto: QueryResult: wiretype end group for non-group")
  7399  		}
  7400  		if fieldNum <= 0 {
  7401  			return fmt.Errorf("proto: QueryResult: illegal tag %d (wire type %d)", fieldNum, wire)
  7402  		}
  7403  		switch fieldNum {
  7404  		case 1:
  7405  			if wireType != 2 {
  7406  				return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType)
  7407  			}
  7408  			var msglen int
  7409  			for shift := uint(0); ; shift += 7 {
  7410  				if shift >= 64 {
  7411  					return ErrIntOverflow
  7412  				}
  7413  				if iNdEx >= l {
  7414  					return io.ErrUnexpectedEOF
  7415  				}
  7416  				b := dAtA[iNdEx]
  7417  				iNdEx++
  7418  				msglen |= int(b&0x7F) << shift
  7419  				if b < 0x80 {
  7420  					break
  7421  				}
  7422  			}
  7423  			if msglen < 0 {
  7424  				return ErrInvalidLength
  7425  			}
  7426  			postIndex := iNdEx + msglen
  7427  			if postIndex < 0 {
  7428  				return ErrInvalidLength
  7429  			}
  7430  			if postIndex > l {
  7431  				return io.ErrUnexpectedEOF
  7432  			}
  7433  			m.Fields = append(m.Fields, &Field{})
  7434  			if err := m.Fields[len(m.Fields)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  7435  				return err
  7436  			}
  7437  			iNdEx = postIndex
  7438  		case 2:
  7439  			if wireType != 0 {
  7440  				return fmt.Errorf("proto: wrong wireType = %d for field RowsAffected", wireType)
  7441  			}
  7442  			m.RowsAffected = 0
  7443  			for shift := uint(0); ; shift += 7 {
  7444  				if shift >= 64 {
  7445  					return ErrIntOverflow
  7446  				}
  7447  				if iNdEx >= l {
  7448  					return io.ErrUnexpectedEOF
  7449  				}
  7450  				b := dAtA[iNdEx]
  7451  				iNdEx++
  7452  				m.RowsAffected |= uint64(b&0x7F) << shift
  7453  				if b < 0x80 {
  7454  					break
  7455  				}
  7456  			}
  7457  		case 3:
  7458  			if wireType != 0 {
  7459  				return fmt.Errorf("proto: wrong wireType = %d for field InsertId", wireType)
  7460  			}
  7461  			m.InsertId = 0
  7462  			for shift := uint(0); ; shift += 7 {
  7463  				if shift >= 64 {
  7464  					return ErrIntOverflow
  7465  				}
  7466  				if iNdEx >= l {
  7467  					return io.ErrUnexpectedEOF
  7468  				}
  7469  				b := dAtA[iNdEx]
  7470  				iNdEx++
  7471  				m.InsertId |= uint64(b&0x7F) << shift
  7472  				if b < 0x80 {
  7473  					break
  7474  				}
  7475  			}
  7476  		case 4:
  7477  			if wireType != 2 {
  7478  				return fmt.Errorf("proto: wrong wireType = %d for field Rows", wireType)
  7479  			}
  7480  			var msglen int
  7481  			for shift := uint(0); ; shift += 7 {
  7482  				if shift >= 64 {
  7483  					return ErrIntOverflow
  7484  				}
  7485  				if iNdEx >= l {
  7486  					return io.ErrUnexpectedEOF
  7487  				}
  7488  				b := dAtA[iNdEx]
  7489  				iNdEx++
  7490  				msglen |= int(b&0x7F) << shift
  7491  				if b < 0x80 {
  7492  					break
  7493  				}
  7494  			}
  7495  			if msglen < 0 {
  7496  				return ErrInvalidLength
  7497  			}
  7498  			postIndex := iNdEx + msglen
  7499  			if postIndex < 0 {
  7500  				return ErrInvalidLength
  7501  			}
  7502  			if postIndex > l {
  7503  				return io.ErrUnexpectedEOF
  7504  			}
  7505  			m.Rows = append(m.Rows, &Row{})
  7506  			if err := m.Rows[len(m.Rows)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  7507  				return err
  7508  			}
  7509  			iNdEx = postIndex
  7510  		case 6:
  7511  			if wireType != 2 {
  7512  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  7513  			}
  7514  			var stringLen uint64
  7515  			for shift := uint(0); ; shift += 7 {
  7516  				if shift >= 64 {
  7517  					return ErrIntOverflow
  7518  				}
  7519  				if iNdEx >= l {
  7520  					return io.ErrUnexpectedEOF
  7521  				}
  7522  				b := dAtA[iNdEx]
  7523  				iNdEx++
  7524  				stringLen |= uint64(b&0x7F) << shift
  7525  				if b < 0x80 {
  7526  					break
  7527  				}
  7528  			}
  7529  			intStringLen := int(stringLen)
  7530  			if intStringLen < 0 {
  7531  				return ErrInvalidLength
  7532  			}
  7533  			postIndex := iNdEx + intStringLen
  7534  			if postIndex < 0 {
  7535  				return ErrInvalidLength
  7536  			}
  7537  			if postIndex > l {
  7538  				return io.ErrUnexpectedEOF
  7539  			}
  7540  			m.Info = string(dAtA[iNdEx:postIndex])
  7541  			iNdEx = postIndex
  7542  		case 7:
  7543  			if wireType != 2 {
  7544  				return fmt.Errorf("proto: wrong wireType = %d for field SessionStateChanges", wireType)
  7545  			}
  7546  			var stringLen uint64
  7547  			for shift := uint(0); ; shift += 7 {
  7548  				if shift >= 64 {
  7549  					return ErrIntOverflow
  7550  				}
  7551  				if iNdEx >= l {
  7552  					return io.ErrUnexpectedEOF
  7553  				}
  7554  				b := dAtA[iNdEx]
  7555  				iNdEx++
  7556  				stringLen |= uint64(b&0x7F) << shift
  7557  				if b < 0x80 {
  7558  					break
  7559  				}
  7560  			}
  7561  			intStringLen := int(stringLen)
  7562  			if intStringLen < 0 {
  7563  				return ErrInvalidLength
  7564  			}
  7565  			postIndex := iNdEx + intStringLen
  7566  			if postIndex < 0 {
  7567  				return ErrInvalidLength
  7568  			}
  7569  			if postIndex > l {
  7570  				return io.ErrUnexpectedEOF
  7571  			}
  7572  			m.SessionStateChanges = string(dAtA[iNdEx:postIndex])
  7573  			iNdEx = postIndex
  7574  		default:
  7575  			iNdEx = preIndex
  7576  			skippy, err := skip(dAtA[iNdEx:])
  7577  			if err != nil {
  7578  				return err
  7579  			}
  7580  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7581  				return ErrInvalidLength
  7582  			}
  7583  			if (iNdEx + skippy) > l {
  7584  				return io.ErrUnexpectedEOF
  7585  			}
  7586  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  7587  			iNdEx += skippy
  7588  		}
  7589  	}
  7590  
  7591  	if iNdEx > l {
  7592  		return io.ErrUnexpectedEOF
  7593  	}
  7594  	return nil
  7595  }
  7596  func (m *QueryWarning) UnmarshalVT(dAtA []byte) error {
  7597  	l := len(dAtA)
  7598  	iNdEx := 0
  7599  	for iNdEx < l {
  7600  		preIndex := iNdEx
  7601  		var wire uint64
  7602  		for shift := uint(0); ; shift += 7 {
  7603  			if shift >= 64 {
  7604  				return ErrIntOverflow
  7605  			}
  7606  			if iNdEx >= l {
  7607  				return io.ErrUnexpectedEOF
  7608  			}
  7609  			b := dAtA[iNdEx]
  7610  			iNdEx++
  7611  			wire |= uint64(b&0x7F) << shift
  7612  			if b < 0x80 {
  7613  				break
  7614  			}
  7615  		}
  7616  		fieldNum := int32(wire >> 3)
  7617  		wireType := int(wire & 0x7)
  7618  		if wireType == 4 {
  7619  			return fmt.Errorf("proto: QueryWarning: wiretype end group for non-group")
  7620  		}
  7621  		if fieldNum <= 0 {
  7622  			return fmt.Errorf("proto: QueryWarning: illegal tag %d (wire type %d)", fieldNum, wire)
  7623  		}
  7624  		switch fieldNum {
  7625  		case 1:
  7626  			if wireType != 0 {
  7627  				return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  7628  			}
  7629  			m.Code = 0
  7630  			for shift := uint(0); ; shift += 7 {
  7631  				if shift >= 64 {
  7632  					return ErrIntOverflow
  7633  				}
  7634  				if iNdEx >= l {
  7635  					return io.ErrUnexpectedEOF
  7636  				}
  7637  				b := dAtA[iNdEx]
  7638  				iNdEx++
  7639  				m.Code |= uint32(b&0x7F) << shift
  7640  				if b < 0x80 {
  7641  					break
  7642  				}
  7643  			}
  7644  		case 2:
  7645  			if wireType != 2 {
  7646  				return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  7647  			}
  7648  			var stringLen uint64
  7649  			for shift := uint(0); ; shift += 7 {
  7650  				if shift >= 64 {
  7651  					return ErrIntOverflow
  7652  				}
  7653  				if iNdEx >= l {
  7654  					return io.ErrUnexpectedEOF
  7655  				}
  7656  				b := dAtA[iNdEx]
  7657  				iNdEx++
  7658  				stringLen |= uint64(b&0x7F) << shift
  7659  				if b < 0x80 {
  7660  					break
  7661  				}
  7662  			}
  7663  			intStringLen := int(stringLen)
  7664  			if intStringLen < 0 {
  7665  				return ErrInvalidLength
  7666  			}
  7667  			postIndex := iNdEx + intStringLen
  7668  			if postIndex < 0 {
  7669  				return ErrInvalidLength
  7670  			}
  7671  			if postIndex > l {
  7672  				return io.ErrUnexpectedEOF
  7673  			}
  7674  			m.Message = string(dAtA[iNdEx:postIndex])
  7675  			iNdEx = postIndex
  7676  		default:
  7677  			iNdEx = preIndex
  7678  			skippy, err := skip(dAtA[iNdEx:])
  7679  			if err != nil {
  7680  				return err
  7681  			}
  7682  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7683  				return ErrInvalidLength
  7684  			}
  7685  			if (iNdEx + skippy) > l {
  7686  				return io.ErrUnexpectedEOF
  7687  			}
  7688  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  7689  			iNdEx += skippy
  7690  		}
  7691  	}
  7692  
  7693  	if iNdEx > l {
  7694  		return io.ErrUnexpectedEOF
  7695  	}
  7696  	return nil
  7697  }
  7698  func (m *StreamEvent_Statement) UnmarshalVT(dAtA []byte) error {
  7699  	l := len(dAtA)
  7700  	iNdEx := 0
  7701  	for iNdEx < l {
  7702  		preIndex := iNdEx
  7703  		var wire uint64
  7704  		for shift := uint(0); ; shift += 7 {
  7705  			if shift >= 64 {
  7706  				return ErrIntOverflow
  7707  			}
  7708  			if iNdEx >= l {
  7709  				return io.ErrUnexpectedEOF
  7710  			}
  7711  			b := dAtA[iNdEx]
  7712  			iNdEx++
  7713  			wire |= uint64(b&0x7F) << shift
  7714  			if b < 0x80 {
  7715  				break
  7716  			}
  7717  		}
  7718  		fieldNum := int32(wire >> 3)
  7719  		wireType := int(wire & 0x7)
  7720  		if wireType == 4 {
  7721  			return fmt.Errorf("proto: StreamEvent_Statement: wiretype end group for non-group")
  7722  		}
  7723  		if fieldNum <= 0 {
  7724  			return fmt.Errorf("proto: StreamEvent_Statement: illegal tag %d (wire type %d)", fieldNum, wire)
  7725  		}
  7726  		switch fieldNum {
  7727  		case 1:
  7728  			if wireType != 0 {
  7729  				return fmt.Errorf("proto: wrong wireType = %d for field Category", wireType)
  7730  			}
  7731  			m.Category = 0
  7732  			for shift := uint(0); ; shift += 7 {
  7733  				if shift >= 64 {
  7734  					return ErrIntOverflow
  7735  				}
  7736  				if iNdEx >= l {
  7737  					return io.ErrUnexpectedEOF
  7738  				}
  7739  				b := dAtA[iNdEx]
  7740  				iNdEx++
  7741  				m.Category |= StreamEvent_Statement_Category(b&0x7F) << shift
  7742  				if b < 0x80 {
  7743  					break
  7744  				}
  7745  			}
  7746  		case 2:
  7747  			if wireType != 2 {
  7748  				return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType)
  7749  			}
  7750  			var stringLen uint64
  7751  			for shift := uint(0); ; shift += 7 {
  7752  				if shift >= 64 {
  7753  					return ErrIntOverflow
  7754  				}
  7755  				if iNdEx >= l {
  7756  					return io.ErrUnexpectedEOF
  7757  				}
  7758  				b := dAtA[iNdEx]
  7759  				iNdEx++
  7760  				stringLen |= uint64(b&0x7F) << shift
  7761  				if b < 0x80 {
  7762  					break
  7763  				}
  7764  			}
  7765  			intStringLen := int(stringLen)
  7766  			if intStringLen < 0 {
  7767  				return ErrInvalidLength
  7768  			}
  7769  			postIndex := iNdEx + intStringLen
  7770  			if postIndex < 0 {
  7771  				return ErrInvalidLength
  7772  			}
  7773  			if postIndex > l {
  7774  				return io.ErrUnexpectedEOF
  7775  			}
  7776  			m.TableName = string(dAtA[iNdEx:postIndex])
  7777  			iNdEx = postIndex
  7778  		case 3:
  7779  			if wireType != 2 {
  7780  				return fmt.Errorf("proto: wrong wireType = %d for field PrimaryKeyFields", wireType)
  7781  			}
  7782  			var msglen int
  7783  			for shift := uint(0); ; shift += 7 {
  7784  				if shift >= 64 {
  7785  					return ErrIntOverflow
  7786  				}
  7787  				if iNdEx >= l {
  7788  					return io.ErrUnexpectedEOF
  7789  				}
  7790  				b := dAtA[iNdEx]
  7791  				iNdEx++
  7792  				msglen |= int(b&0x7F) << shift
  7793  				if b < 0x80 {
  7794  					break
  7795  				}
  7796  			}
  7797  			if msglen < 0 {
  7798  				return ErrInvalidLength
  7799  			}
  7800  			postIndex := iNdEx + msglen
  7801  			if postIndex < 0 {
  7802  				return ErrInvalidLength
  7803  			}
  7804  			if postIndex > l {
  7805  				return io.ErrUnexpectedEOF
  7806  			}
  7807  			m.PrimaryKeyFields = append(m.PrimaryKeyFields, &Field{})
  7808  			if err := m.PrimaryKeyFields[len(m.PrimaryKeyFields)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  7809  				return err
  7810  			}
  7811  			iNdEx = postIndex
  7812  		case 4:
  7813  			if wireType != 2 {
  7814  				return fmt.Errorf("proto: wrong wireType = %d for field PrimaryKeyValues", wireType)
  7815  			}
  7816  			var msglen int
  7817  			for shift := uint(0); ; shift += 7 {
  7818  				if shift >= 64 {
  7819  					return ErrIntOverflow
  7820  				}
  7821  				if iNdEx >= l {
  7822  					return io.ErrUnexpectedEOF
  7823  				}
  7824  				b := dAtA[iNdEx]
  7825  				iNdEx++
  7826  				msglen |= int(b&0x7F) << shift
  7827  				if b < 0x80 {
  7828  					break
  7829  				}
  7830  			}
  7831  			if msglen < 0 {
  7832  				return ErrInvalidLength
  7833  			}
  7834  			postIndex := iNdEx + msglen
  7835  			if postIndex < 0 {
  7836  				return ErrInvalidLength
  7837  			}
  7838  			if postIndex > l {
  7839  				return io.ErrUnexpectedEOF
  7840  			}
  7841  			m.PrimaryKeyValues = append(m.PrimaryKeyValues, &Row{})
  7842  			if err := m.PrimaryKeyValues[len(m.PrimaryKeyValues)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  7843  				return err
  7844  			}
  7845  			iNdEx = postIndex
  7846  		case 5:
  7847  			if wireType != 2 {
  7848  				return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType)
  7849  			}
  7850  			var byteLen int
  7851  			for shift := uint(0); ; shift += 7 {
  7852  				if shift >= 64 {
  7853  					return ErrIntOverflow
  7854  				}
  7855  				if iNdEx >= l {
  7856  					return io.ErrUnexpectedEOF
  7857  				}
  7858  				b := dAtA[iNdEx]
  7859  				iNdEx++
  7860  				byteLen |= int(b&0x7F) << shift
  7861  				if b < 0x80 {
  7862  					break
  7863  				}
  7864  			}
  7865  			if byteLen < 0 {
  7866  				return ErrInvalidLength
  7867  			}
  7868  			postIndex := iNdEx + byteLen
  7869  			if postIndex < 0 {
  7870  				return ErrInvalidLength
  7871  			}
  7872  			if postIndex > l {
  7873  				return io.ErrUnexpectedEOF
  7874  			}
  7875  			m.Sql = append(m.Sql[:0], dAtA[iNdEx:postIndex]...)
  7876  			if m.Sql == nil {
  7877  				m.Sql = []byte{}
  7878  			}
  7879  			iNdEx = postIndex
  7880  		default:
  7881  			iNdEx = preIndex
  7882  			skippy, err := skip(dAtA[iNdEx:])
  7883  			if err != nil {
  7884  				return err
  7885  			}
  7886  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7887  				return ErrInvalidLength
  7888  			}
  7889  			if (iNdEx + skippy) > l {
  7890  				return io.ErrUnexpectedEOF
  7891  			}
  7892  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  7893  			iNdEx += skippy
  7894  		}
  7895  	}
  7896  
  7897  	if iNdEx > l {
  7898  		return io.ErrUnexpectedEOF
  7899  	}
  7900  	return nil
  7901  }
  7902  func (m *StreamEvent) UnmarshalVT(dAtA []byte) error {
  7903  	l := len(dAtA)
  7904  	iNdEx := 0
  7905  	for iNdEx < l {
  7906  		preIndex := iNdEx
  7907  		var wire uint64
  7908  		for shift := uint(0); ; shift += 7 {
  7909  			if shift >= 64 {
  7910  				return ErrIntOverflow
  7911  			}
  7912  			if iNdEx >= l {
  7913  				return io.ErrUnexpectedEOF
  7914  			}
  7915  			b := dAtA[iNdEx]
  7916  			iNdEx++
  7917  			wire |= uint64(b&0x7F) << shift
  7918  			if b < 0x80 {
  7919  				break
  7920  			}
  7921  		}
  7922  		fieldNum := int32(wire >> 3)
  7923  		wireType := int(wire & 0x7)
  7924  		if wireType == 4 {
  7925  			return fmt.Errorf("proto: StreamEvent: wiretype end group for non-group")
  7926  		}
  7927  		if fieldNum <= 0 {
  7928  			return fmt.Errorf("proto: StreamEvent: illegal tag %d (wire type %d)", fieldNum, wire)
  7929  		}
  7930  		switch fieldNum {
  7931  		case 1:
  7932  			if wireType != 2 {
  7933  				return fmt.Errorf("proto: wrong wireType = %d for field Statements", wireType)
  7934  			}
  7935  			var msglen int
  7936  			for shift := uint(0); ; shift += 7 {
  7937  				if shift >= 64 {
  7938  					return ErrIntOverflow
  7939  				}
  7940  				if iNdEx >= l {
  7941  					return io.ErrUnexpectedEOF
  7942  				}
  7943  				b := dAtA[iNdEx]
  7944  				iNdEx++
  7945  				msglen |= int(b&0x7F) << shift
  7946  				if b < 0x80 {
  7947  					break
  7948  				}
  7949  			}
  7950  			if msglen < 0 {
  7951  				return ErrInvalidLength
  7952  			}
  7953  			postIndex := iNdEx + msglen
  7954  			if postIndex < 0 {
  7955  				return ErrInvalidLength
  7956  			}
  7957  			if postIndex > l {
  7958  				return io.ErrUnexpectedEOF
  7959  			}
  7960  			m.Statements = append(m.Statements, &StreamEvent_Statement{})
  7961  			if err := m.Statements[len(m.Statements)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  7962  				return err
  7963  			}
  7964  			iNdEx = postIndex
  7965  		case 2:
  7966  			if wireType != 2 {
  7967  				return fmt.Errorf("proto: wrong wireType = %d for field EventToken", wireType)
  7968  			}
  7969  			var msglen int
  7970  			for shift := uint(0); ; shift += 7 {
  7971  				if shift >= 64 {
  7972  					return ErrIntOverflow
  7973  				}
  7974  				if iNdEx >= l {
  7975  					return io.ErrUnexpectedEOF
  7976  				}
  7977  				b := dAtA[iNdEx]
  7978  				iNdEx++
  7979  				msglen |= int(b&0x7F) << shift
  7980  				if b < 0x80 {
  7981  					break
  7982  				}
  7983  			}
  7984  			if msglen < 0 {
  7985  				return ErrInvalidLength
  7986  			}
  7987  			postIndex := iNdEx + msglen
  7988  			if postIndex < 0 {
  7989  				return ErrInvalidLength
  7990  			}
  7991  			if postIndex > l {
  7992  				return io.ErrUnexpectedEOF
  7993  			}
  7994  			if m.EventToken == nil {
  7995  				m.EventToken = &EventToken{}
  7996  			}
  7997  			if err := m.EventToken.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  7998  				return err
  7999  			}
  8000  			iNdEx = postIndex
  8001  		default:
  8002  			iNdEx = preIndex
  8003  			skippy, err := skip(dAtA[iNdEx:])
  8004  			if err != nil {
  8005  				return err
  8006  			}
  8007  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8008  				return ErrInvalidLength
  8009  			}
  8010  			if (iNdEx + skippy) > l {
  8011  				return io.ErrUnexpectedEOF
  8012  			}
  8013  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  8014  			iNdEx += skippy
  8015  		}
  8016  	}
  8017  
  8018  	if iNdEx > l {
  8019  		return io.ErrUnexpectedEOF
  8020  	}
  8021  	return nil
  8022  }
  8023  func (m *ExecuteRequest) UnmarshalVT(dAtA []byte) error {
  8024  	l := len(dAtA)
  8025  	iNdEx := 0
  8026  	for iNdEx < l {
  8027  		preIndex := iNdEx
  8028  		var wire uint64
  8029  		for shift := uint(0); ; shift += 7 {
  8030  			if shift >= 64 {
  8031  				return ErrIntOverflow
  8032  			}
  8033  			if iNdEx >= l {
  8034  				return io.ErrUnexpectedEOF
  8035  			}
  8036  			b := dAtA[iNdEx]
  8037  			iNdEx++
  8038  			wire |= uint64(b&0x7F) << shift
  8039  			if b < 0x80 {
  8040  				break
  8041  			}
  8042  		}
  8043  		fieldNum := int32(wire >> 3)
  8044  		wireType := int(wire & 0x7)
  8045  		if wireType == 4 {
  8046  			return fmt.Errorf("proto: ExecuteRequest: wiretype end group for non-group")
  8047  		}
  8048  		if fieldNum <= 0 {
  8049  			return fmt.Errorf("proto: ExecuteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8050  		}
  8051  		switch fieldNum {
  8052  		case 1:
  8053  			if wireType != 2 {
  8054  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
  8055  			}
  8056  			var msglen int
  8057  			for shift := uint(0); ; shift += 7 {
  8058  				if shift >= 64 {
  8059  					return ErrIntOverflow
  8060  				}
  8061  				if iNdEx >= l {
  8062  					return io.ErrUnexpectedEOF
  8063  				}
  8064  				b := dAtA[iNdEx]
  8065  				iNdEx++
  8066  				msglen |= int(b&0x7F) << shift
  8067  				if b < 0x80 {
  8068  					break
  8069  				}
  8070  			}
  8071  			if msglen < 0 {
  8072  				return ErrInvalidLength
  8073  			}
  8074  			postIndex := iNdEx + msglen
  8075  			if postIndex < 0 {
  8076  				return ErrInvalidLength
  8077  			}
  8078  			if postIndex > l {
  8079  				return io.ErrUnexpectedEOF
  8080  			}
  8081  			if m.EffectiveCallerId == nil {
  8082  				m.EffectiveCallerId = &vtrpc.CallerID{}
  8083  			}
  8084  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8085  				return err
  8086  			}
  8087  			iNdEx = postIndex
  8088  		case 2:
  8089  			if wireType != 2 {
  8090  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
  8091  			}
  8092  			var msglen int
  8093  			for shift := uint(0); ; shift += 7 {
  8094  				if shift >= 64 {
  8095  					return ErrIntOverflow
  8096  				}
  8097  				if iNdEx >= l {
  8098  					return io.ErrUnexpectedEOF
  8099  				}
  8100  				b := dAtA[iNdEx]
  8101  				iNdEx++
  8102  				msglen |= int(b&0x7F) << shift
  8103  				if b < 0x80 {
  8104  					break
  8105  				}
  8106  			}
  8107  			if msglen < 0 {
  8108  				return ErrInvalidLength
  8109  			}
  8110  			postIndex := iNdEx + msglen
  8111  			if postIndex < 0 {
  8112  				return ErrInvalidLength
  8113  			}
  8114  			if postIndex > l {
  8115  				return io.ErrUnexpectedEOF
  8116  			}
  8117  			if m.ImmediateCallerId == nil {
  8118  				m.ImmediateCallerId = &VTGateCallerID{}
  8119  			}
  8120  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8121  				return err
  8122  			}
  8123  			iNdEx = postIndex
  8124  		case 3:
  8125  			if wireType != 2 {
  8126  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
  8127  			}
  8128  			var msglen int
  8129  			for shift := uint(0); ; shift += 7 {
  8130  				if shift >= 64 {
  8131  					return ErrIntOverflow
  8132  				}
  8133  				if iNdEx >= l {
  8134  					return io.ErrUnexpectedEOF
  8135  				}
  8136  				b := dAtA[iNdEx]
  8137  				iNdEx++
  8138  				msglen |= int(b&0x7F) << shift
  8139  				if b < 0x80 {
  8140  					break
  8141  				}
  8142  			}
  8143  			if msglen < 0 {
  8144  				return ErrInvalidLength
  8145  			}
  8146  			postIndex := iNdEx + msglen
  8147  			if postIndex < 0 {
  8148  				return ErrInvalidLength
  8149  			}
  8150  			if postIndex > l {
  8151  				return io.ErrUnexpectedEOF
  8152  			}
  8153  			if m.Target == nil {
  8154  				m.Target = &Target{}
  8155  			}
  8156  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8157  				return err
  8158  			}
  8159  			iNdEx = postIndex
  8160  		case 4:
  8161  			if wireType != 2 {
  8162  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
  8163  			}
  8164  			var msglen int
  8165  			for shift := uint(0); ; shift += 7 {
  8166  				if shift >= 64 {
  8167  					return ErrIntOverflow
  8168  				}
  8169  				if iNdEx >= l {
  8170  					return io.ErrUnexpectedEOF
  8171  				}
  8172  				b := dAtA[iNdEx]
  8173  				iNdEx++
  8174  				msglen |= int(b&0x7F) << shift
  8175  				if b < 0x80 {
  8176  					break
  8177  				}
  8178  			}
  8179  			if msglen < 0 {
  8180  				return ErrInvalidLength
  8181  			}
  8182  			postIndex := iNdEx + msglen
  8183  			if postIndex < 0 {
  8184  				return ErrInvalidLength
  8185  			}
  8186  			if postIndex > l {
  8187  				return io.ErrUnexpectedEOF
  8188  			}
  8189  			if m.Query == nil {
  8190  				m.Query = &BoundQuery{}
  8191  			}
  8192  			if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8193  				return err
  8194  			}
  8195  			iNdEx = postIndex
  8196  		case 5:
  8197  			if wireType != 0 {
  8198  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
  8199  			}
  8200  			m.TransactionId = 0
  8201  			for shift := uint(0); ; shift += 7 {
  8202  				if shift >= 64 {
  8203  					return ErrIntOverflow
  8204  				}
  8205  				if iNdEx >= l {
  8206  					return io.ErrUnexpectedEOF
  8207  				}
  8208  				b := dAtA[iNdEx]
  8209  				iNdEx++
  8210  				m.TransactionId |= int64(b&0x7F) << shift
  8211  				if b < 0x80 {
  8212  					break
  8213  				}
  8214  			}
  8215  		case 6:
  8216  			if wireType != 2 {
  8217  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
  8218  			}
  8219  			var msglen int
  8220  			for shift := uint(0); ; shift += 7 {
  8221  				if shift >= 64 {
  8222  					return ErrIntOverflow
  8223  				}
  8224  				if iNdEx >= l {
  8225  					return io.ErrUnexpectedEOF
  8226  				}
  8227  				b := dAtA[iNdEx]
  8228  				iNdEx++
  8229  				msglen |= int(b&0x7F) << shift
  8230  				if b < 0x80 {
  8231  					break
  8232  				}
  8233  			}
  8234  			if msglen < 0 {
  8235  				return ErrInvalidLength
  8236  			}
  8237  			postIndex := iNdEx + msglen
  8238  			if postIndex < 0 {
  8239  				return ErrInvalidLength
  8240  			}
  8241  			if postIndex > l {
  8242  				return io.ErrUnexpectedEOF
  8243  			}
  8244  			if m.Options == nil {
  8245  				m.Options = &ExecuteOptions{}
  8246  			}
  8247  			if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8248  				return err
  8249  			}
  8250  			iNdEx = postIndex
  8251  		case 7:
  8252  			if wireType != 0 {
  8253  				return fmt.Errorf("proto: wrong wireType = %d for field ReservedId", wireType)
  8254  			}
  8255  			m.ReservedId = 0
  8256  			for shift := uint(0); ; shift += 7 {
  8257  				if shift >= 64 {
  8258  					return ErrIntOverflow
  8259  				}
  8260  				if iNdEx >= l {
  8261  					return io.ErrUnexpectedEOF
  8262  				}
  8263  				b := dAtA[iNdEx]
  8264  				iNdEx++
  8265  				m.ReservedId |= int64(b&0x7F) << shift
  8266  				if b < 0x80 {
  8267  					break
  8268  				}
  8269  			}
  8270  		default:
  8271  			iNdEx = preIndex
  8272  			skippy, err := skip(dAtA[iNdEx:])
  8273  			if err != nil {
  8274  				return err
  8275  			}
  8276  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8277  				return ErrInvalidLength
  8278  			}
  8279  			if (iNdEx + skippy) > l {
  8280  				return io.ErrUnexpectedEOF
  8281  			}
  8282  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  8283  			iNdEx += skippy
  8284  		}
  8285  	}
  8286  
  8287  	if iNdEx > l {
  8288  		return io.ErrUnexpectedEOF
  8289  	}
  8290  	return nil
  8291  }
  8292  func (m *ExecuteResponse) UnmarshalVT(dAtA []byte) error {
  8293  	l := len(dAtA)
  8294  	iNdEx := 0
  8295  	for iNdEx < l {
  8296  		preIndex := iNdEx
  8297  		var wire uint64
  8298  		for shift := uint(0); ; shift += 7 {
  8299  			if shift >= 64 {
  8300  				return ErrIntOverflow
  8301  			}
  8302  			if iNdEx >= l {
  8303  				return io.ErrUnexpectedEOF
  8304  			}
  8305  			b := dAtA[iNdEx]
  8306  			iNdEx++
  8307  			wire |= uint64(b&0x7F) << shift
  8308  			if b < 0x80 {
  8309  				break
  8310  			}
  8311  		}
  8312  		fieldNum := int32(wire >> 3)
  8313  		wireType := int(wire & 0x7)
  8314  		if wireType == 4 {
  8315  			return fmt.Errorf("proto: ExecuteResponse: wiretype end group for non-group")
  8316  		}
  8317  		if fieldNum <= 0 {
  8318  			return fmt.Errorf("proto: ExecuteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8319  		}
  8320  		switch fieldNum {
  8321  		case 1:
  8322  			if wireType != 2 {
  8323  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
  8324  			}
  8325  			var msglen int
  8326  			for shift := uint(0); ; shift += 7 {
  8327  				if shift >= 64 {
  8328  					return ErrIntOverflow
  8329  				}
  8330  				if iNdEx >= l {
  8331  					return io.ErrUnexpectedEOF
  8332  				}
  8333  				b := dAtA[iNdEx]
  8334  				iNdEx++
  8335  				msglen |= int(b&0x7F) << shift
  8336  				if b < 0x80 {
  8337  					break
  8338  				}
  8339  			}
  8340  			if msglen < 0 {
  8341  				return ErrInvalidLength
  8342  			}
  8343  			postIndex := iNdEx + msglen
  8344  			if postIndex < 0 {
  8345  				return ErrInvalidLength
  8346  			}
  8347  			if postIndex > l {
  8348  				return io.ErrUnexpectedEOF
  8349  			}
  8350  			if m.Result == nil {
  8351  				m.Result = &QueryResult{}
  8352  			}
  8353  			if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8354  				return err
  8355  			}
  8356  			iNdEx = postIndex
  8357  		default:
  8358  			iNdEx = preIndex
  8359  			skippy, err := skip(dAtA[iNdEx:])
  8360  			if err != nil {
  8361  				return err
  8362  			}
  8363  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8364  				return ErrInvalidLength
  8365  			}
  8366  			if (iNdEx + skippy) > l {
  8367  				return io.ErrUnexpectedEOF
  8368  			}
  8369  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  8370  			iNdEx += skippy
  8371  		}
  8372  	}
  8373  
  8374  	if iNdEx > l {
  8375  		return io.ErrUnexpectedEOF
  8376  	}
  8377  	return nil
  8378  }
  8379  func (m *ResultWithError) UnmarshalVT(dAtA []byte) error {
  8380  	l := len(dAtA)
  8381  	iNdEx := 0
  8382  	for iNdEx < l {
  8383  		preIndex := iNdEx
  8384  		var wire uint64
  8385  		for shift := uint(0); ; shift += 7 {
  8386  			if shift >= 64 {
  8387  				return ErrIntOverflow
  8388  			}
  8389  			if iNdEx >= l {
  8390  				return io.ErrUnexpectedEOF
  8391  			}
  8392  			b := dAtA[iNdEx]
  8393  			iNdEx++
  8394  			wire |= uint64(b&0x7F) << shift
  8395  			if b < 0x80 {
  8396  				break
  8397  			}
  8398  		}
  8399  		fieldNum := int32(wire >> 3)
  8400  		wireType := int(wire & 0x7)
  8401  		if wireType == 4 {
  8402  			return fmt.Errorf("proto: ResultWithError: wiretype end group for non-group")
  8403  		}
  8404  		if fieldNum <= 0 {
  8405  			return fmt.Errorf("proto: ResultWithError: illegal tag %d (wire type %d)", fieldNum, wire)
  8406  		}
  8407  		switch fieldNum {
  8408  		case 1:
  8409  			if wireType != 2 {
  8410  				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
  8411  			}
  8412  			var msglen int
  8413  			for shift := uint(0); ; shift += 7 {
  8414  				if shift >= 64 {
  8415  					return ErrIntOverflow
  8416  				}
  8417  				if iNdEx >= l {
  8418  					return io.ErrUnexpectedEOF
  8419  				}
  8420  				b := dAtA[iNdEx]
  8421  				iNdEx++
  8422  				msglen |= int(b&0x7F) << shift
  8423  				if b < 0x80 {
  8424  					break
  8425  				}
  8426  			}
  8427  			if msglen < 0 {
  8428  				return ErrInvalidLength
  8429  			}
  8430  			postIndex := iNdEx + msglen
  8431  			if postIndex < 0 {
  8432  				return ErrInvalidLength
  8433  			}
  8434  			if postIndex > l {
  8435  				return io.ErrUnexpectedEOF
  8436  			}
  8437  			if m.Error == nil {
  8438  				m.Error = &vtrpc.RPCError{}
  8439  			}
  8440  			if err := m.Error.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8441  				return err
  8442  			}
  8443  			iNdEx = postIndex
  8444  		case 2:
  8445  			if wireType != 2 {
  8446  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
  8447  			}
  8448  			var msglen int
  8449  			for shift := uint(0); ; shift += 7 {
  8450  				if shift >= 64 {
  8451  					return ErrIntOverflow
  8452  				}
  8453  				if iNdEx >= l {
  8454  					return io.ErrUnexpectedEOF
  8455  				}
  8456  				b := dAtA[iNdEx]
  8457  				iNdEx++
  8458  				msglen |= int(b&0x7F) << shift
  8459  				if b < 0x80 {
  8460  					break
  8461  				}
  8462  			}
  8463  			if msglen < 0 {
  8464  				return ErrInvalidLength
  8465  			}
  8466  			postIndex := iNdEx + msglen
  8467  			if postIndex < 0 {
  8468  				return ErrInvalidLength
  8469  			}
  8470  			if postIndex > l {
  8471  				return io.ErrUnexpectedEOF
  8472  			}
  8473  			if m.Result == nil {
  8474  				m.Result = &QueryResult{}
  8475  			}
  8476  			if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8477  				return err
  8478  			}
  8479  			iNdEx = postIndex
  8480  		default:
  8481  			iNdEx = preIndex
  8482  			skippy, err := skip(dAtA[iNdEx:])
  8483  			if err != nil {
  8484  				return err
  8485  			}
  8486  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8487  				return ErrInvalidLength
  8488  			}
  8489  			if (iNdEx + skippy) > l {
  8490  				return io.ErrUnexpectedEOF
  8491  			}
  8492  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  8493  			iNdEx += skippy
  8494  		}
  8495  	}
  8496  
  8497  	if iNdEx > l {
  8498  		return io.ErrUnexpectedEOF
  8499  	}
  8500  	return nil
  8501  }
  8502  func (m *StreamExecuteRequest) UnmarshalVT(dAtA []byte) error {
  8503  	l := len(dAtA)
  8504  	iNdEx := 0
  8505  	for iNdEx < l {
  8506  		preIndex := iNdEx
  8507  		var wire uint64
  8508  		for shift := uint(0); ; shift += 7 {
  8509  			if shift >= 64 {
  8510  				return ErrIntOverflow
  8511  			}
  8512  			if iNdEx >= l {
  8513  				return io.ErrUnexpectedEOF
  8514  			}
  8515  			b := dAtA[iNdEx]
  8516  			iNdEx++
  8517  			wire |= uint64(b&0x7F) << shift
  8518  			if b < 0x80 {
  8519  				break
  8520  			}
  8521  		}
  8522  		fieldNum := int32(wire >> 3)
  8523  		wireType := int(wire & 0x7)
  8524  		if wireType == 4 {
  8525  			return fmt.Errorf("proto: StreamExecuteRequest: wiretype end group for non-group")
  8526  		}
  8527  		if fieldNum <= 0 {
  8528  			return fmt.Errorf("proto: StreamExecuteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8529  		}
  8530  		switch fieldNum {
  8531  		case 1:
  8532  			if wireType != 2 {
  8533  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
  8534  			}
  8535  			var msglen int
  8536  			for shift := uint(0); ; shift += 7 {
  8537  				if shift >= 64 {
  8538  					return ErrIntOverflow
  8539  				}
  8540  				if iNdEx >= l {
  8541  					return io.ErrUnexpectedEOF
  8542  				}
  8543  				b := dAtA[iNdEx]
  8544  				iNdEx++
  8545  				msglen |= int(b&0x7F) << shift
  8546  				if b < 0x80 {
  8547  					break
  8548  				}
  8549  			}
  8550  			if msglen < 0 {
  8551  				return ErrInvalidLength
  8552  			}
  8553  			postIndex := iNdEx + msglen
  8554  			if postIndex < 0 {
  8555  				return ErrInvalidLength
  8556  			}
  8557  			if postIndex > l {
  8558  				return io.ErrUnexpectedEOF
  8559  			}
  8560  			if m.EffectiveCallerId == nil {
  8561  				m.EffectiveCallerId = &vtrpc.CallerID{}
  8562  			}
  8563  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8564  				return err
  8565  			}
  8566  			iNdEx = postIndex
  8567  		case 2:
  8568  			if wireType != 2 {
  8569  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
  8570  			}
  8571  			var msglen int
  8572  			for shift := uint(0); ; shift += 7 {
  8573  				if shift >= 64 {
  8574  					return ErrIntOverflow
  8575  				}
  8576  				if iNdEx >= l {
  8577  					return io.ErrUnexpectedEOF
  8578  				}
  8579  				b := dAtA[iNdEx]
  8580  				iNdEx++
  8581  				msglen |= int(b&0x7F) << shift
  8582  				if b < 0x80 {
  8583  					break
  8584  				}
  8585  			}
  8586  			if msglen < 0 {
  8587  				return ErrInvalidLength
  8588  			}
  8589  			postIndex := iNdEx + msglen
  8590  			if postIndex < 0 {
  8591  				return ErrInvalidLength
  8592  			}
  8593  			if postIndex > l {
  8594  				return io.ErrUnexpectedEOF
  8595  			}
  8596  			if m.ImmediateCallerId == nil {
  8597  				m.ImmediateCallerId = &VTGateCallerID{}
  8598  			}
  8599  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8600  				return err
  8601  			}
  8602  			iNdEx = postIndex
  8603  		case 3:
  8604  			if wireType != 2 {
  8605  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
  8606  			}
  8607  			var msglen int
  8608  			for shift := uint(0); ; shift += 7 {
  8609  				if shift >= 64 {
  8610  					return ErrIntOverflow
  8611  				}
  8612  				if iNdEx >= l {
  8613  					return io.ErrUnexpectedEOF
  8614  				}
  8615  				b := dAtA[iNdEx]
  8616  				iNdEx++
  8617  				msglen |= int(b&0x7F) << shift
  8618  				if b < 0x80 {
  8619  					break
  8620  				}
  8621  			}
  8622  			if msglen < 0 {
  8623  				return ErrInvalidLength
  8624  			}
  8625  			postIndex := iNdEx + msglen
  8626  			if postIndex < 0 {
  8627  				return ErrInvalidLength
  8628  			}
  8629  			if postIndex > l {
  8630  				return io.ErrUnexpectedEOF
  8631  			}
  8632  			if m.Target == nil {
  8633  				m.Target = &Target{}
  8634  			}
  8635  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8636  				return err
  8637  			}
  8638  			iNdEx = postIndex
  8639  		case 4:
  8640  			if wireType != 2 {
  8641  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
  8642  			}
  8643  			var msglen int
  8644  			for shift := uint(0); ; shift += 7 {
  8645  				if shift >= 64 {
  8646  					return ErrIntOverflow
  8647  				}
  8648  				if iNdEx >= l {
  8649  					return io.ErrUnexpectedEOF
  8650  				}
  8651  				b := dAtA[iNdEx]
  8652  				iNdEx++
  8653  				msglen |= int(b&0x7F) << shift
  8654  				if b < 0x80 {
  8655  					break
  8656  				}
  8657  			}
  8658  			if msglen < 0 {
  8659  				return ErrInvalidLength
  8660  			}
  8661  			postIndex := iNdEx + msglen
  8662  			if postIndex < 0 {
  8663  				return ErrInvalidLength
  8664  			}
  8665  			if postIndex > l {
  8666  				return io.ErrUnexpectedEOF
  8667  			}
  8668  			if m.Query == nil {
  8669  				m.Query = &BoundQuery{}
  8670  			}
  8671  			if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8672  				return err
  8673  			}
  8674  			iNdEx = postIndex
  8675  		case 5:
  8676  			if wireType != 2 {
  8677  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
  8678  			}
  8679  			var msglen int
  8680  			for shift := uint(0); ; shift += 7 {
  8681  				if shift >= 64 {
  8682  					return ErrIntOverflow
  8683  				}
  8684  				if iNdEx >= l {
  8685  					return io.ErrUnexpectedEOF
  8686  				}
  8687  				b := dAtA[iNdEx]
  8688  				iNdEx++
  8689  				msglen |= int(b&0x7F) << shift
  8690  				if b < 0x80 {
  8691  					break
  8692  				}
  8693  			}
  8694  			if msglen < 0 {
  8695  				return ErrInvalidLength
  8696  			}
  8697  			postIndex := iNdEx + msglen
  8698  			if postIndex < 0 {
  8699  				return ErrInvalidLength
  8700  			}
  8701  			if postIndex > l {
  8702  				return io.ErrUnexpectedEOF
  8703  			}
  8704  			if m.Options == nil {
  8705  				m.Options = &ExecuteOptions{}
  8706  			}
  8707  			if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8708  				return err
  8709  			}
  8710  			iNdEx = postIndex
  8711  		case 6:
  8712  			if wireType != 0 {
  8713  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
  8714  			}
  8715  			m.TransactionId = 0
  8716  			for shift := uint(0); ; shift += 7 {
  8717  				if shift >= 64 {
  8718  					return ErrIntOverflow
  8719  				}
  8720  				if iNdEx >= l {
  8721  					return io.ErrUnexpectedEOF
  8722  				}
  8723  				b := dAtA[iNdEx]
  8724  				iNdEx++
  8725  				m.TransactionId |= int64(b&0x7F) << shift
  8726  				if b < 0x80 {
  8727  					break
  8728  				}
  8729  			}
  8730  		case 7:
  8731  			if wireType != 0 {
  8732  				return fmt.Errorf("proto: wrong wireType = %d for field ReservedId", wireType)
  8733  			}
  8734  			m.ReservedId = 0
  8735  			for shift := uint(0); ; shift += 7 {
  8736  				if shift >= 64 {
  8737  					return ErrIntOverflow
  8738  				}
  8739  				if iNdEx >= l {
  8740  					return io.ErrUnexpectedEOF
  8741  				}
  8742  				b := dAtA[iNdEx]
  8743  				iNdEx++
  8744  				m.ReservedId |= int64(b&0x7F) << shift
  8745  				if b < 0x80 {
  8746  					break
  8747  				}
  8748  			}
  8749  		default:
  8750  			iNdEx = preIndex
  8751  			skippy, err := skip(dAtA[iNdEx:])
  8752  			if err != nil {
  8753  				return err
  8754  			}
  8755  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8756  				return ErrInvalidLength
  8757  			}
  8758  			if (iNdEx + skippy) > l {
  8759  				return io.ErrUnexpectedEOF
  8760  			}
  8761  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  8762  			iNdEx += skippy
  8763  		}
  8764  	}
  8765  
  8766  	if iNdEx > l {
  8767  		return io.ErrUnexpectedEOF
  8768  	}
  8769  	return nil
  8770  }
  8771  func (m *StreamExecuteResponse) UnmarshalVT(dAtA []byte) error {
  8772  	l := len(dAtA)
  8773  	iNdEx := 0
  8774  	for iNdEx < l {
  8775  		preIndex := iNdEx
  8776  		var wire uint64
  8777  		for shift := uint(0); ; shift += 7 {
  8778  			if shift >= 64 {
  8779  				return ErrIntOverflow
  8780  			}
  8781  			if iNdEx >= l {
  8782  				return io.ErrUnexpectedEOF
  8783  			}
  8784  			b := dAtA[iNdEx]
  8785  			iNdEx++
  8786  			wire |= uint64(b&0x7F) << shift
  8787  			if b < 0x80 {
  8788  				break
  8789  			}
  8790  		}
  8791  		fieldNum := int32(wire >> 3)
  8792  		wireType := int(wire & 0x7)
  8793  		if wireType == 4 {
  8794  			return fmt.Errorf("proto: StreamExecuteResponse: wiretype end group for non-group")
  8795  		}
  8796  		if fieldNum <= 0 {
  8797  			return fmt.Errorf("proto: StreamExecuteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8798  		}
  8799  		switch fieldNum {
  8800  		case 1:
  8801  			if wireType != 2 {
  8802  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
  8803  			}
  8804  			var msglen int
  8805  			for shift := uint(0); ; shift += 7 {
  8806  				if shift >= 64 {
  8807  					return ErrIntOverflow
  8808  				}
  8809  				if iNdEx >= l {
  8810  					return io.ErrUnexpectedEOF
  8811  				}
  8812  				b := dAtA[iNdEx]
  8813  				iNdEx++
  8814  				msglen |= int(b&0x7F) << shift
  8815  				if b < 0x80 {
  8816  					break
  8817  				}
  8818  			}
  8819  			if msglen < 0 {
  8820  				return ErrInvalidLength
  8821  			}
  8822  			postIndex := iNdEx + msglen
  8823  			if postIndex < 0 {
  8824  				return ErrInvalidLength
  8825  			}
  8826  			if postIndex > l {
  8827  				return io.ErrUnexpectedEOF
  8828  			}
  8829  			if m.Result == nil {
  8830  				m.Result = &QueryResult{}
  8831  			}
  8832  			if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8833  				return err
  8834  			}
  8835  			iNdEx = postIndex
  8836  		default:
  8837  			iNdEx = preIndex
  8838  			skippy, err := skip(dAtA[iNdEx:])
  8839  			if err != nil {
  8840  				return err
  8841  			}
  8842  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8843  				return ErrInvalidLength
  8844  			}
  8845  			if (iNdEx + skippy) > l {
  8846  				return io.ErrUnexpectedEOF
  8847  			}
  8848  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  8849  			iNdEx += skippy
  8850  		}
  8851  	}
  8852  
  8853  	if iNdEx > l {
  8854  		return io.ErrUnexpectedEOF
  8855  	}
  8856  	return nil
  8857  }
  8858  func (m *BeginRequest) UnmarshalVT(dAtA []byte) error {
  8859  	l := len(dAtA)
  8860  	iNdEx := 0
  8861  	for iNdEx < l {
  8862  		preIndex := iNdEx
  8863  		var wire uint64
  8864  		for shift := uint(0); ; shift += 7 {
  8865  			if shift >= 64 {
  8866  				return ErrIntOverflow
  8867  			}
  8868  			if iNdEx >= l {
  8869  				return io.ErrUnexpectedEOF
  8870  			}
  8871  			b := dAtA[iNdEx]
  8872  			iNdEx++
  8873  			wire |= uint64(b&0x7F) << shift
  8874  			if b < 0x80 {
  8875  				break
  8876  			}
  8877  		}
  8878  		fieldNum := int32(wire >> 3)
  8879  		wireType := int(wire & 0x7)
  8880  		if wireType == 4 {
  8881  			return fmt.Errorf("proto: BeginRequest: wiretype end group for non-group")
  8882  		}
  8883  		if fieldNum <= 0 {
  8884  			return fmt.Errorf("proto: BeginRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8885  		}
  8886  		switch fieldNum {
  8887  		case 1:
  8888  			if wireType != 2 {
  8889  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
  8890  			}
  8891  			var msglen int
  8892  			for shift := uint(0); ; shift += 7 {
  8893  				if shift >= 64 {
  8894  					return ErrIntOverflow
  8895  				}
  8896  				if iNdEx >= l {
  8897  					return io.ErrUnexpectedEOF
  8898  				}
  8899  				b := dAtA[iNdEx]
  8900  				iNdEx++
  8901  				msglen |= int(b&0x7F) << shift
  8902  				if b < 0x80 {
  8903  					break
  8904  				}
  8905  			}
  8906  			if msglen < 0 {
  8907  				return ErrInvalidLength
  8908  			}
  8909  			postIndex := iNdEx + msglen
  8910  			if postIndex < 0 {
  8911  				return ErrInvalidLength
  8912  			}
  8913  			if postIndex > l {
  8914  				return io.ErrUnexpectedEOF
  8915  			}
  8916  			if m.EffectiveCallerId == nil {
  8917  				m.EffectiveCallerId = &vtrpc.CallerID{}
  8918  			}
  8919  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8920  				return err
  8921  			}
  8922  			iNdEx = postIndex
  8923  		case 2:
  8924  			if wireType != 2 {
  8925  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
  8926  			}
  8927  			var msglen int
  8928  			for shift := uint(0); ; shift += 7 {
  8929  				if shift >= 64 {
  8930  					return ErrIntOverflow
  8931  				}
  8932  				if iNdEx >= l {
  8933  					return io.ErrUnexpectedEOF
  8934  				}
  8935  				b := dAtA[iNdEx]
  8936  				iNdEx++
  8937  				msglen |= int(b&0x7F) << shift
  8938  				if b < 0x80 {
  8939  					break
  8940  				}
  8941  			}
  8942  			if msglen < 0 {
  8943  				return ErrInvalidLength
  8944  			}
  8945  			postIndex := iNdEx + msglen
  8946  			if postIndex < 0 {
  8947  				return ErrInvalidLength
  8948  			}
  8949  			if postIndex > l {
  8950  				return io.ErrUnexpectedEOF
  8951  			}
  8952  			if m.ImmediateCallerId == nil {
  8953  				m.ImmediateCallerId = &VTGateCallerID{}
  8954  			}
  8955  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8956  				return err
  8957  			}
  8958  			iNdEx = postIndex
  8959  		case 3:
  8960  			if wireType != 2 {
  8961  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
  8962  			}
  8963  			var msglen int
  8964  			for shift := uint(0); ; shift += 7 {
  8965  				if shift >= 64 {
  8966  					return ErrIntOverflow
  8967  				}
  8968  				if iNdEx >= l {
  8969  					return io.ErrUnexpectedEOF
  8970  				}
  8971  				b := dAtA[iNdEx]
  8972  				iNdEx++
  8973  				msglen |= int(b&0x7F) << shift
  8974  				if b < 0x80 {
  8975  					break
  8976  				}
  8977  			}
  8978  			if msglen < 0 {
  8979  				return ErrInvalidLength
  8980  			}
  8981  			postIndex := iNdEx + msglen
  8982  			if postIndex < 0 {
  8983  				return ErrInvalidLength
  8984  			}
  8985  			if postIndex > l {
  8986  				return io.ErrUnexpectedEOF
  8987  			}
  8988  			if m.Target == nil {
  8989  				m.Target = &Target{}
  8990  			}
  8991  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  8992  				return err
  8993  			}
  8994  			iNdEx = postIndex
  8995  		case 4:
  8996  			if wireType != 2 {
  8997  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
  8998  			}
  8999  			var msglen int
  9000  			for shift := uint(0); ; shift += 7 {
  9001  				if shift >= 64 {
  9002  					return ErrIntOverflow
  9003  				}
  9004  				if iNdEx >= l {
  9005  					return io.ErrUnexpectedEOF
  9006  				}
  9007  				b := dAtA[iNdEx]
  9008  				iNdEx++
  9009  				msglen |= int(b&0x7F) << shift
  9010  				if b < 0x80 {
  9011  					break
  9012  				}
  9013  			}
  9014  			if msglen < 0 {
  9015  				return ErrInvalidLength
  9016  			}
  9017  			postIndex := iNdEx + msglen
  9018  			if postIndex < 0 {
  9019  				return ErrInvalidLength
  9020  			}
  9021  			if postIndex > l {
  9022  				return io.ErrUnexpectedEOF
  9023  			}
  9024  			if m.Options == nil {
  9025  				m.Options = &ExecuteOptions{}
  9026  			}
  9027  			if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  9028  				return err
  9029  			}
  9030  			iNdEx = postIndex
  9031  		default:
  9032  			iNdEx = preIndex
  9033  			skippy, err := skip(dAtA[iNdEx:])
  9034  			if err != nil {
  9035  				return err
  9036  			}
  9037  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9038  				return ErrInvalidLength
  9039  			}
  9040  			if (iNdEx + skippy) > l {
  9041  				return io.ErrUnexpectedEOF
  9042  			}
  9043  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  9044  			iNdEx += skippy
  9045  		}
  9046  	}
  9047  
  9048  	if iNdEx > l {
  9049  		return io.ErrUnexpectedEOF
  9050  	}
  9051  	return nil
  9052  }
  9053  func (m *BeginResponse) UnmarshalVT(dAtA []byte) error {
  9054  	l := len(dAtA)
  9055  	iNdEx := 0
  9056  	for iNdEx < l {
  9057  		preIndex := iNdEx
  9058  		var wire uint64
  9059  		for shift := uint(0); ; shift += 7 {
  9060  			if shift >= 64 {
  9061  				return ErrIntOverflow
  9062  			}
  9063  			if iNdEx >= l {
  9064  				return io.ErrUnexpectedEOF
  9065  			}
  9066  			b := dAtA[iNdEx]
  9067  			iNdEx++
  9068  			wire |= uint64(b&0x7F) << shift
  9069  			if b < 0x80 {
  9070  				break
  9071  			}
  9072  		}
  9073  		fieldNum := int32(wire >> 3)
  9074  		wireType := int(wire & 0x7)
  9075  		if wireType == 4 {
  9076  			return fmt.Errorf("proto: BeginResponse: wiretype end group for non-group")
  9077  		}
  9078  		if fieldNum <= 0 {
  9079  			return fmt.Errorf("proto: BeginResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  9080  		}
  9081  		switch fieldNum {
  9082  		case 1:
  9083  			if wireType != 0 {
  9084  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
  9085  			}
  9086  			m.TransactionId = 0
  9087  			for shift := uint(0); ; shift += 7 {
  9088  				if shift >= 64 {
  9089  					return ErrIntOverflow
  9090  				}
  9091  				if iNdEx >= l {
  9092  					return io.ErrUnexpectedEOF
  9093  				}
  9094  				b := dAtA[iNdEx]
  9095  				iNdEx++
  9096  				m.TransactionId |= int64(b&0x7F) << shift
  9097  				if b < 0x80 {
  9098  					break
  9099  				}
  9100  			}
  9101  		case 2:
  9102  			if wireType != 2 {
  9103  				return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType)
  9104  			}
  9105  			var msglen int
  9106  			for shift := uint(0); ; shift += 7 {
  9107  				if shift >= 64 {
  9108  					return ErrIntOverflow
  9109  				}
  9110  				if iNdEx >= l {
  9111  					return io.ErrUnexpectedEOF
  9112  				}
  9113  				b := dAtA[iNdEx]
  9114  				iNdEx++
  9115  				msglen |= int(b&0x7F) << shift
  9116  				if b < 0x80 {
  9117  					break
  9118  				}
  9119  			}
  9120  			if msglen < 0 {
  9121  				return ErrInvalidLength
  9122  			}
  9123  			postIndex := iNdEx + msglen
  9124  			if postIndex < 0 {
  9125  				return ErrInvalidLength
  9126  			}
  9127  			if postIndex > l {
  9128  				return io.ErrUnexpectedEOF
  9129  			}
  9130  			if m.TabletAlias == nil {
  9131  				m.TabletAlias = &topodata.TabletAlias{}
  9132  			}
  9133  			if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  9134  				return err
  9135  			}
  9136  			iNdEx = postIndex
  9137  		case 3:
  9138  			if wireType != 2 {
  9139  				return fmt.Errorf("proto: wrong wireType = %d for field SessionStateChanges", wireType)
  9140  			}
  9141  			var stringLen uint64
  9142  			for shift := uint(0); ; shift += 7 {
  9143  				if shift >= 64 {
  9144  					return ErrIntOverflow
  9145  				}
  9146  				if iNdEx >= l {
  9147  					return io.ErrUnexpectedEOF
  9148  				}
  9149  				b := dAtA[iNdEx]
  9150  				iNdEx++
  9151  				stringLen |= uint64(b&0x7F) << shift
  9152  				if b < 0x80 {
  9153  					break
  9154  				}
  9155  			}
  9156  			intStringLen := int(stringLen)
  9157  			if intStringLen < 0 {
  9158  				return ErrInvalidLength
  9159  			}
  9160  			postIndex := iNdEx + intStringLen
  9161  			if postIndex < 0 {
  9162  				return ErrInvalidLength
  9163  			}
  9164  			if postIndex > l {
  9165  				return io.ErrUnexpectedEOF
  9166  			}
  9167  			m.SessionStateChanges = string(dAtA[iNdEx:postIndex])
  9168  			iNdEx = postIndex
  9169  		default:
  9170  			iNdEx = preIndex
  9171  			skippy, err := skip(dAtA[iNdEx:])
  9172  			if err != nil {
  9173  				return err
  9174  			}
  9175  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9176  				return ErrInvalidLength
  9177  			}
  9178  			if (iNdEx + skippy) > l {
  9179  				return io.ErrUnexpectedEOF
  9180  			}
  9181  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  9182  			iNdEx += skippy
  9183  		}
  9184  	}
  9185  
  9186  	if iNdEx > l {
  9187  		return io.ErrUnexpectedEOF
  9188  	}
  9189  	return nil
  9190  }
  9191  func (m *CommitRequest) UnmarshalVT(dAtA []byte) error {
  9192  	l := len(dAtA)
  9193  	iNdEx := 0
  9194  	for iNdEx < l {
  9195  		preIndex := iNdEx
  9196  		var wire uint64
  9197  		for shift := uint(0); ; shift += 7 {
  9198  			if shift >= 64 {
  9199  				return ErrIntOverflow
  9200  			}
  9201  			if iNdEx >= l {
  9202  				return io.ErrUnexpectedEOF
  9203  			}
  9204  			b := dAtA[iNdEx]
  9205  			iNdEx++
  9206  			wire |= uint64(b&0x7F) << shift
  9207  			if b < 0x80 {
  9208  				break
  9209  			}
  9210  		}
  9211  		fieldNum := int32(wire >> 3)
  9212  		wireType := int(wire & 0x7)
  9213  		if wireType == 4 {
  9214  			return fmt.Errorf("proto: CommitRequest: wiretype end group for non-group")
  9215  		}
  9216  		if fieldNum <= 0 {
  9217  			return fmt.Errorf("proto: CommitRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  9218  		}
  9219  		switch fieldNum {
  9220  		case 1:
  9221  			if wireType != 2 {
  9222  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
  9223  			}
  9224  			var msglen int
  9225  			for shift := uint(0); ; shift += 7 {
  9226  				if shift >= 64 {
  9227  					return ErrIntOverflow
  9228  				}
  9229  				if iNdEx >= l {
  9230  					return io.ErrUnexpectedEOF
  9231  				}
  9232  				b := dAtA[iNdEx]
  9233  				iNdEx++
  9234  				msglen |= int(b&0x7F) << shift
  9235  				if b < 0x80 {
  9236  					break
  9237  				}
  9238  			}
  9239  			if msglen < 0 {
  9240  				return ErrInvalidLength
  9241  			}
  9242  			postIndex := iNdEx + msglen
  9243  			if postIndex < 0 {
  9244  				return ErrInvalidLength
  9245  			}
  9246  			if postIndex > l {
  9247  				return io.ErrUnexpectedEOF
  9248  			}
  9249  			if m.EffectiveCallerId == nil {
  9250  				m.EffectiveCallerId = &vtrpc.CallerID{}
  9251  			}
  9252  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  9253  				return err
  9254  			}
  9255  			iNdEx = postIndex
  9256  		case 2:
  9257  			if wireType != 2 {
  9258  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
  9259  			}
  9260  			var msglen int
  9261  			for shift := uint(0); ; shift += 7 {
  9262  				if shift >= 64 {
  9263  					return ErrIntOverflow
  9264  				}
  9265  				if iNdEx >= l {
  9266  					return io.ErrUnexpectedEOF
  9267  				}
  9268  				b := dAtA[iNdEx]
  9269  				iNdEx++
  9270  				msglen |= int(b&0x7F) << shift
  9271  				if b < 0x80 {
  9272  					break
  9273  				}
  9274  			}
  9275  			if msglen < 0 {
  9276  				return ErrInvalidLength
  9277  			}
  9278  			postIndex := iNdEx + msglen
  9279  			if postIndex < 0 {
  9280  				return ErrInvalidLength
  9281  			}
  9282  			if postIndex > l {
  9283  				return io.ErrUnexpectedEOF
  9284  			}
  9285  			if m.ImmediateCallerId == nil {
  9286  				m.ImmediateCallerId = &VTGateCallerID{}
  9287  			}
  9288  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  9289  				return err
  9290  			}
  9291  			iNdEx = postIndex
  9292  		case 3:
  9293  			if wireType != 2 {
  9294  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
  9295  			}
  9296  			var msglen int
  9297  			for shift := uint(0); ; shift += 7 {
  9298  				if shift >= 64 {
  9299  					return ErrIntOverflow
  9300  				}
  9301  				if iNdEx >= l {
  9302  					return io.ErrUnexpectedEOF
  9303  				}
  9304  				b := dAtA[iNdEx]
  9305  				iNdEx++
  9306  				msglen |= int(b&0x7F) << shift
  9307  				if b < 0x80 {
  9308  					break
  9309  				}
  9310  			}
  9311  			if msglen < 0 {
  9312  				return ErrInvalidLength
  9313  			}
  9314  			postIndex := iNdEx + msglen
  9315  			if postIndex < 0 {
  9316  				return ErrInvalidLength
  9317  			}
  9318  			if postIndex > l {
  9319  				return io.ErrUnexpectedEOF
  9320  			}
  9321  			if m.Target == nil {
  9322  				m.Target = &Target{}
  9323  			}
  9324  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  9325  				return err
  9326  			}
  9327  			iNdEx = postIndex
  9328  		case 4:
  9329  			if wireType != 0 {
  9330  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
  9331  			}
  9332  			m.TransactionId = 0
  9333  			for shift := uint(0); ; shift += 7 {
  9334  				if shift >= 64 {
  9335  					return ErrIntOverflow
  9336  				}
  9337  				if iNdEx >= l {
  9338  					return io.ErrUnexpectedEOF
  9339  				}
  9340  				b := dAtA[iNdEx]
  9341  				iNdEx++
  9342  				m.TransactionId |= int64(b&0x7F) << shift
  9343  				if b < 0x80 {
  9344  					break
  9345  				}
  9346  			}
  9347  		default:
  9348  			iNdEx = preIndex
  9349  			skippy, err := skip(dAtA[iNdEx:])
  9350  			if err != nil {
  9351  				return err
  9352  			}
  9353  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9354  				return ErrInvalidLength
  9355  			}
  9356  			if (iNdEx + skippy) > l {
  9357  				return io.ErrUnexpectedEOF
  9358  			}
  9359  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  9360  			iNdEx += skippy
  9361  		}
  9362  	}
  9363  
  9364  	if iNdEx > l {
  9365  		return io.ErrUnexpectedEOF
  9366  	}
  9367  	return nil
  9368  }
  9369  func (m *CommitResponse) UnmarshalVT(dAtA []byte) error {
  9370  	l := len(dAtA)
  9371  	iNdEx := 0
  9372  	for iNdEx < l {
  9373  		preIndex := iNdEx
  9374  		var wire uint64
  9375  		for shift := uint(0); ; shift += 7 {
  9376  			if shift >= 64 {
  9377  				return ErrIntOverflow
  9378  			}
  9379  			if iNdEx >= l {
  9380  				return io.ErrUnexpectedEOF
  9381  			}
  9382  			b := dAtA[iNdEx]
  9383  			iNdEx++
  9384  			wire |= uint64(b&0x7F) << shift
  9385  			if b < 0x80 {
  9386  				break
  9387  			}
  9388  		}
  9389  		fieldNum := int32(wire >> 3)
  9390  		wireType := int(wire & 0x7)
  9391  		if wireType == 4 {
  9392  			return fmt.Errorf("proto: CommitResponse: wiretype end group for non-group")
  9393  		}
  9394  		if fieldNum <= 0 {
  9395  			return fmt.Errorf("proto: CommitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  9396  		}
  9397  		switch fieldNum {
  9398  		case 1:
  9399  			if wireType != 0 {
  9400  				return fmt.Errorf("proto: wrong wireType = %d for field ReservedId", wireType)
  9401  			}
  9402  			m.ReservedId = 0
  9403  			for shift := uint(0); ; shift += 7 {
  9404  				if shift >= 64 {
  9405  					return ErrIntOverflow
  9406  				}
  9407  				if iNdEx >= l {
  9408  					return io.ErrUnexpectedEOF
  9409  				}
  9410  				b := dAtA[iNdEx]
  9411  				iNdEx++
  9412  				m.ReservedId |= int64(b&0x7F) << shift
  9413  				if b < 0x80 {
  9414  					break
  9415  				}
  9416  			}
  9417  		default:
  9418  			iNdEx = preIndex
  9419  			skippy, err := skip(dAtA[iNdEx:])
  9420  			if err != nil {
  9421  				return err
  9422  			}
  9423  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9424  				return ErrInvalidLength
  9425  			}
  9426  			if (iNdEx + skippy) > l {
  9427  				return io.ErrUnexpectedEOF
  9428  			}
  9429  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  9430  			iNdEx += skippy
  9431  		}
  9432  	}
  9433  
  9434  	if iNdEx > l {
  9435  		return io.ErrUnexpectedEOF
  9436  	}
  9437  	return nil
  9438  }
  9439  func (m *RollbackRequest) UnmarshalVT(dAtA []byte) error {
  9440  	l := len(dAtA)
  9441  	iNdEx := 0
  9442  	for iNdEx < l {
  9443  		preIndex := iNdEx
  9444  		var wire uint64
  9445  		for shift := uint(0); ; shift += 7 {
  9446  			if shift >= 64 {
  9447  				return ErrIntOverflow
  9448  			}
  9449  			if iNdEx >= l {
  9450  				return io.ErrUnexpectedEOF
  9451  			}
  9452  			b := dAtA[iNdEx]
  9453  			iNdEx++
  9454  			wire |= uint64(b&0x7F) << shift
  9455  			if b < 0x80 {
  9456  				break
  9457  			}
  9458  		}
  9459  		fieldNum := int32(wire >> 3)
  9460  		wireType := int(wire & 0x7)
  9461  		if wireType == 4 {
  9462  			return fmt.Errorf("proto: RollbackRequest: wiretype end group for non-group")
  9463  		}
  9464  		if fieldNum <= 0 {
  9465  			return fmt.Errorf("proto: RollbackRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  9466  		}
  9467  		switch fieldNum {
  9468  		case 1:
  9469  			if wireType != 2 {
  9470  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
  9471  			}
  9472  			var msglen int
  9473  			for shift := uint(0); ; shift += 7 {
  9474  				if shift >= 64 {
  9475  					return ErrIntOverflow
  9476  				}
  9477  				if iNdEx >= l {
  9478  					return io.ErrUnexpectedEOF
  9479  				}
  9480  				b := dAtA[iNdEx]
  9481  				iNdEx++
  9482  				msglen |= int(b&0x7F) << shift
  9483  				if b < 0x80 {
  9484  					break
  9485  				}
  9486  			}
  9487  			if msglen < 0 {
  9488  				return ErrInvalidLength
  9489  			}
  9490  			postIndex := iNdEx + msglen
  9491  			if postIndex < 0 {
  9492  				return ErrInvalidLength
  9493  			}
  9494  			if postIndex > l {
  9495  				return io.ErrUnexpectedEOF
  9496  			}
  9497  			if m.EffectiveCallerId == nil {
  9498  				m.EffectiveCallerId = &vtrpc.CallerID{}
  9499  			}
  9500  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  9501  				return err
  9502  			}
  9503  			iNdEx = postIndex
  9504  		case 2:
  9505  			if wireType != 2 {
  9506  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
  9507  			}
  9508  			var msglen int
  9509  			for shift := uint(0); ; shift += 7 {
  9510  				if shift >= 64 {
  9511  					return ErrIntOverflow
  9512  				}
  9513  				if iNdEx >= l {
  9514  					return io.ErrUnexpectedEOF
  9515  				}
  9516  				b := dAtA[iNdEx]
  9517  				iNdEx++
  9518  				msglen |= int(b&0x7F) << shift
  9519  				if b < 0x80 {
  9520  					break
  9521  				}
  9522  			}
  9523  			if msglen < 0 {
  9524  				return ErrInvalidLength
  9525  			}
  9526  			postIndex := iNdEx + msglen
  9527  			if postIndex < 0 {
  9528  				return ErrInvalidLength
  9529  			}
  9530  			if postIndex > l {
  9531  				return io.ErrUnexpectedEOF
  9532  			}
  9533  			if m.ImmediateCallerId == nil {
  9534  				m.ImmediateCallerId = &VTGateCallerID{}
  9535  			}
  9536  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  9537  				return err
  9538  			}
  9539  			iNdEx = postIndex
  9540  		case 3:
  9541  			if wireType != 2 {
  9542  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
  9543  			}
  9544  			var msglen int
  9545  			for shift := uint(0); ; shift += 7 {
  9546  				if shift >= 64 {
  9547  					return ErrIntOverflow
  9548  				}
  9549  				if iNdEx >= l {
  9550  					return io.ErrUnexpectedEOF
  9551  				}
  9552  				b := dAtA[iNdEx]
  9553  				iNdEx++
  9554  				msglen |= int(b&0x7F) << shift
  9555  				if b < 0x80 {
  9556  					break
  9557  				}
  9558  			}
  9559  			if msglen < 0 {
  9560  				return ErrInvalidLength
  9561  			}
  9562  			postIndex := iNdEx + msglen
  9563  			if postIndex < 0 {
  9564  				return ErrInvalidLength
  9565  			}
  9566  			if postIndex > l {
  9567  				return io.ErrUnexpectedEOF
  9568  			}
  9569  			if m.Target == nil {
  9570  				m.Target = &Target{}
  9571  			}
  9572  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  9573  				return err
  9574  			}
  9575  			iNdEx = postIndex
  9576  		case 4:
  9577  			if wireType != 0 {
  9578  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
  9579  			}
  9580  			m.TransactionId = 0
  9581  			for shift := uint(0); ; shift += 7 {
  9582  				if shift >= 64 {
  9583  					return ErrIntOverflow
  9584  				}
  9585  				if iNdEx >= l {
  9586  					return io.ErrUnexpectedEOF
  9587  				}
  9588  				b := dAtA[iNdEx]
  9589  				iNdEx++
  9590  				m.TransactionId |= int64(b&0x7F) << shift
  9591  				if b < 0x80 {
  9592  					break
  9593  				}
  9594  			}
  9595  		default:
  9596  			iNdEx = preIndex
  9597  			skippy, err := skip(dAtA[iNdEx:])
  9598  			if err != nil {
  9599  				return err
  9600  			}
  9601  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9602  				return ErrInvalidLength
  9603  			}
  9604  			if (iNdEx + skippy) > l {
  9605  				return io.ErrUnexpectedEOF
  9606  			}
  9607  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  9608  			iNdEx += skippy
  9609  		}
  9610  	}
  9611  
  9612  	if iNdEx > l {
  9613  		return io.ErrUnexpectedEOF
  9614  	}
  9615  	return nil
  9616  }
  9617  func (m *RollbackResponse) UnmarshalVT(dAtA []byte) error {
  9618  	l := len(dAtA)
  9619  	iNdEx := 0
  9620  	for iNdEx < l {
  9621  		preIndex := iNdEx
  9622  		var wire uint64
  9623  		for shift := uint(0); ; shift += 7 {
  9624  			if shift >= 64 {
  9625  				return ErrIntOverflow
  9626  			}
  9627  			if iNdEx >= l {
  9628  				return io.ErrUnexpectedEOF
  9629  			}
  9630  			b := dAtA[iNdEx]
  9631  			iNdEx++
  9632  			wire |= uint64(b&0x7F) << shift
  9633  			if b < 0x80 {
  9634  				break
  9635  			}
  9636  		}
  9637  		fieldNum := int32(wire >> 3)
  9638  		wireType := int(wire & 0x7)
  9639  		if wireType == 4 {
  9640  			return fmt.Errorf("proto: RollbackResponse: wiretype end group for non-group")
  9641  		}
  9642  		if fieldNum <= 0 {
  9643  			return fmt.Errorf("proto: RollbackResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  9644  		}
  9645  		switch fieldNum {
  9646  		case 1:
  9647  			if wireType != 0 {
  9648  				return fmt.Errorf("proto: wrong wireType = %d for field ReservedId", wireType)
  9649  			}
  9650  			m.ReservedId = 0
  9651  			for shift := uint(0); ; shift += 7 {
  9652  				if shift >= 64 {
  9653  					return ErrIntOverflow
  9654  				}
  9655  				if iNdEx >= l {
  9656  					return io.ErrUnexpectedEOF
  9657  				}
  9658  				b := dAtA[iNdEx]
  9659  				iNdEx++
  9660  				m.ReservedId |= int64(b&0x7F) << shift
  9661  				if b < 0x80 {
  9662  					break
  9663  				}
  9664  			}
  9665  		default:
  9666  			iNdEx = preIndex
  9667  			skippy, err := skip(dAtA[iNdEx:])
  9668  			if err != nil {
  9669  				return err
  9670  			}
  9671  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9672  				return ErrInvalidLength
  9673  			}
  9674  			if (iNdEx + skippy) > l {
  9675  				return io.ErrUnexpectedEOF
  9676  			}
  9677  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  9678  			iNdEx += skippy
  9679  		}
  9680  	}
  9681  
  9682  	if iNdEx > l {
  9683  		return io.ErrUnexpectedEOF
  9684  	}
  9685  	return nil
  9686  }
  9687  func (m *PrepareRequest) UnmarshalVT(dAtA []byte) error {
  9688  	l := len(dAtA)
  9689  	iNdEx := 0
  9690  	for iNdEx < l {
  9691  		preIndex := iNdEx
  9692  		var wire uint64
  9693  		for shift := uint(0); ; shift += 7 {
  9694  			if shift >= 64 {
  9695  				return ErrIntOverflow
  9696  			}
  9697  			if iNdEx >= l {
  9698  				return io.ErrUnexpectedEOF
  9699  			}
  9700  			b := dAtA[iNdEx]
  9701  			iNdEx++
  9702  			wire |= uint64(b&0x7F) << shift
  9703  			if b < 0x80 {
  9704  				break
  9705  			}
  9706  		}
  9707  		fieldNum := int32(wire >> 3)
  9708  		wireType := int(wire & 0x7)
  9709  		if wireType == 4 {
  9710  			return fmt.Errorf("proto: PrepareRequest: wiretype end group for non-group")
  9711  		}
  9712  		if fieldNum <= 0 {
  9713  			return fmt.Errorf("proto: PrepareRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  9714  		}
  9715  		switch fieldNum {
  9716  		case 1:
  9717  			if wireType != 2 {
  9718  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
  9719  			}
  9720  			var msglen int
  9721  			for shift := uint(0); ; shift += 7 {
  9722  				if shift >= 64 {
  9723  					return ErrIntOverflow
  9724  				}
  9725  				if iNdEx >= l {
  9726  					return io.ErrUnexpectedEOF
  9727  				}
  9728  				b := dAtA[iNdEx]
  9729  				iNdEx++
  9730  				msglen |= int(b&0x7F) << shift
  9731  				if b < 0x80 {
  9732  					break
  9733  				}
  9734  			}
  9735  			if msglen < 0 {
  9736  				return ErrInvalidLength
  9737  			}
  9738  			postIndex := iNdEx + msglen
  9739  			if postIndex < 0 {
  9740  				return ErrInvalidLength
  9741  			}
  9742  			if postIndex > l {
  9743  				return io.ErrUnexpectedEOF
  9744  			}
  9745  			if m.EffectiveCallerId == nil {
  9746  				m.EffectiveCallerId = &vtrpc.CallerID{}
  9747  			}
  9748  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  9749  				return err
  9750  			}
  9751  			iNdEx = postIndex
  9752  		case 2:
  9753  			if wireType != 2 {
  9754  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
  9755  			}
  9756  			var msglen int
  9757  			for shift := uint(0); ; shift += 7 {
  9758  				if shift >= 64 {
  9759  					return ErrIntOverflow
  9760  				}
  9761  				if iNdEx >= l {
  9762  					return io.ErrUnexpectedEOF
  9763  				}
  9764  				b := dAtA[iNdEx]
  9765  				iNdEx++
  9766  				msglen |= int(b&0x7F) << shift
  9767  				if b < 0x80 {
  9768  					break
  9769  				}
  9770  			}
  9771  			if msglen < 0 {
  9772  				return ErrInvalidLength
  9773  			}
  9774  			postIndex := iNdEx + msglen
  9775  			if postIndex < 0 {
  9776  				return ErrInvalidLength
  9777  			}
  9778  			if postIndex > l {
  9779  				return io.ErrUnexpectedEOF
  9780  			}
  9781  			if m.ImmediateCallerId == nil {
  9782  				m.ImmediateCallerId = &VTGateCallerID{}
  9783  			}
  9784  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  9785  				return err
  9786  			}
  9787  			iNdEx = postIndex
  9788  		case 3:
  9789  			if wireType != 2 {
  9790  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
  9791  			}
  9792  			var msglen int
  9793  			for shift := uint(0); ; shift += 7 {
  9794  				if shift >= 64 {
  9795  					return ErrIntOverflow
  9796  				}
  9797  				if iNdEx >= l {
  9798  					return io.ErrUnexpectedEOF
  9799  				}
  9800  				b := dAtA[iNdEx]
  9801  				iNdEx++
  9802  				msglen |= int(b&0x7F) << shift
  9803  				if b < 0x80 {
  9804  					break
  9805  				}
  9806  			}
  9807  			if msglen < 0 {
  9808  				return ErrInvalidLength
  9809  			}
  9810  			postIndex := iNdEx + msglen
  9811  			if postIndex < 0 {
  9812  				return ErrInvalidLength
  9813  			}
  9814  			if postIndex > l {
  9815  				return io.ErrUnexpectedEOF
  9816  			}
  9817  			if m.Target == nil {
  9818  				m.Target = &Target{}
  9819  			}
  9820  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
  9821  				return err
  9822  			}
  9823  			iNdEx = postIndex
  9824  		case 4:
  9825  			if wireType != 0 {
  9826  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
  9827  			}
  9828  			m.TransactionId = 0
  9829  			for shift := uint(0); ; shift += 7 {
  9830  				if shift >= 64 {
  9831  					return ErrIntOverflow
  9832  				}
  9833  				if iNdEx >= l {
  9834  					return io.ErrUnexpectedEOF
  9835  				}
  9836  				b := dAtA[iNdEx]
  9837  				iNdEx++
  9838  				m.TransactionId |= int64(b&0x7F) << shift
  9839  				if b < 0x80 {
  9840  					break
  9841  				}
  9842  			}
  9843  		case 5:
  9844  			if wireType != 2 {
  9845  				return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType)
  9846  			}
  9847  			var stringLen uint64
  9848  			for shift := uint(0); ; shift += 7 {
  9849  				if shift >= 64 {
  9850  					return ErrIntOverflow
  9851  				}
  9852  				if iNdEx >= l {
  9853  					return io.ErrUnexpectedEOF
  9854  				}
  9855  				b := dAtA[iNdEx]
  9856  				iNdEx++
  9857  				stringLen |= uint64(b&0x7F) << shift
  9858  				if b < 0x80 {
  9859  					break
  9860  				}
  9861  			}
  9862  			intStringLen := int(stringLen)
  9863  			if intStringLen < 0 {
  9864  				return ErrInvalidLength
  9865  			}
  9866  			postIndex := iNdEx + intStringLen
  9867  			if postIndex < 0 {
  9868  				return ErrInvalidLength
  9869  			}
  9870  			if postIndex > l {
  9871  				return io.ErrUnexpectedEOF
  9872  			}
  9873  			m.Dtid = string(dAtA[iNdEx:postIndex])
  9874  			iNdEx = postIndex
  9875  		default:
  9876  			iNdEx = preIndex
  9877  			skippy, err := skip(dAtA[iNdEx:])
  9878  			if err != nil {
  9879  				return err
  9880  			}
  9881  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9882  				return ErrInvalidLength
  9883  			}
  9884  			if (iNdEx + skippy) > l {
  9885  				return io.ErrUnexpectedEOF
  9886  			}
  9887  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  9888  			iNdEx += skippy
  9889  		}
  9890  	}
  9891  
  9892  	if iNdEx > l {
  9893  		return io.ErrUnexpectedEOF
  9894  	}
  9895  	return nil
  9896  }
  9897  func (m *PrepareResponse) UnmarshalVT(dAtA []byte) error {
  9898  	l := len(dAtA)
  9899  	iNdEx := 0
  9900  	for iNdEx < l {
  9901  		preIndex := iNdEx
  9902  		var wire uint64
  9903  		for shift := uint(0); ; shift += 7 {
  9904  			if shift >= 64 {
  9905  				return ErrIntOverflow
  9906  			}
  9907  			if iNdEx >= l {
  9908  				return io.ErrUnexpectedEOF
  9909  			}
  9910  			b := dAtA[iNdEx]
  9911  			iNdEx++
  9912  			wire |= uint64(b&0x7F) << shift
  9913  			if b < 0x80 {
  9914  				break
  9915  			}
  9916  		}
  9917  		fieldNum := int32(wire >> 3)
  9918  		wireType := int(wire & 0x7)
  9919  		if wireType == 4 {
  9920  			return fmt.Errorf("proto: PrepareResponse: wiretype end group for non-group")
  9921  		}
  9922  		if fieldNum <= 0 {
  9923  			return fmt.Errorf("proto: PrepareResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  9924  		}
  9925  		switch fieldNum {
  9926  		default:
  9927  			iNdEx = preIndex
  9928  			skippy, err := skip(dAtA[iNdEx:])
  9929  			if err != nil {
  9930  				return err
  9931  			}
  9932  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9933  				return ErrInvalidLength
  9934  			}
  9935  			if (iNdEx + skippy) > l {
  9936  				return io.ErrUnexpectedEOF
  9937  			}
  9938  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
  9939  			iNdEx += skippy
  9940  		}
  9941  	}
  9942  
  9943  	if iNdEx > l {
  9944  		return io.ErrUnexpectedEOF
  9945  	}
  9946  	return nil
  9947  }
  9948  func (m *CommitPreparedRequest) UnmarshalVT(dAtA []byte) error {
  9949  	l := len(dAtA)
  9950  	iNdEx := 0
  9951  	for iNdEx < l {
  9952  		preIndex := iNdEx
  9953  		var wire uint64
  9954  		for shift := uint(0); ; shift += 7 {
  9955  			if shift >= 64 {
  9956  				return ErrIntOverflow
  9957  			}
  9958  			if iNdEx >= l {
  9959  				return io.ErrUnexpectedEOF
  9960  			}
  9961  			b := dAtA[iNdEx]
  9962  			iNdEx++
  9963  			wire |= uint64(b&0x7F) << shift
  9964  			if b < 0x80 {
  9965  				break
  9966  			}
  9967  		}
  9968  		fieldNum := int32(wire >> 3)
  9969  		wireType := int(wire & 0x7)
  9970  		if wireType == 4 {
  9971  			return fmt.Errorf("proto: CommitPreparedRequest: wiretype end group for non-group")
  9972  		}
  9973  		if fieldNum <= 0 {
  9974  			return fmt.Errorf("proto: CommitPreparedRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  9975  		}
  9976  		switch fieldNum {
  9977  		case 1:
  9978  			if wireType != 2 {
  9979  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
  9980  			}
  9981  			var msglen int
  9982  			for shift := uint(0); ; shift += 7 {
  9983  				if shift >= 64 {
  9984  					return ErrIntOverflow
  9985  				}
  9986  				if iNdEx >= l {
  9987  					return io.ErrUnexpectedEOF
  9988  				}
  9989  				b := dAtA[iNdEx]
  9990  				iNdEx++
  9991  				msglen |= int(b&0x7F) << shift
  9992  				if b < 0x80 {
  9993  					break
  9994  				}
  9995  			}
  9996  			if msglen < 0 {
  9997  				return ErrInvalidLength
  9998  			}
  9999  			postIndex := iNdEx + msglen
 10000  			if postIndex < 0 {
 10001  				return ErrInvalidLength
 10002  			}
 10003  			if postIndex > l {
 10004  				return io.ErrUnexpectedEOF
 10005  			}
 10006  			if m.EffectiveCallerId == nil {
 10007  				m.EffectiveCallerId = &vtrpc.CallerID{}
 10008  			}
 10009  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10010  				return err
 10011  			}
 10012  			iNdEx = postIndex
 10013  		case 2:
 10014  			if wireType != 2 {
 10015  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 10016  			}
 10017  			var msglen int
 10018  			for shift := uint(0); ; shift += 7 {
 10019  				if shift >= 64 {
 10020  					return ErrIntOverflow
 10021  				}
 10022  				if iNdEx >= l {
 10023  					return io.ErrUnexpectedEOF
 10024  				}
 10025  				b := dAtA[iNdEx]
 10026  				iNdEx++
 10027  				msglen |= int(b&0x7F) << shift
 10028  				if b < 0x80 {
 10029  					break
 10030  				}
 10031  			}
 10032  			if msglen < 0 {
 10033  				return ErrInvalidLength
 10034  			}
 10035  			postIndex := iNdEx + msglen
 10036  			if postIndex < 0 {
 10037  				return ErrInvalidLength
 10038  			}
 10039  			if postIndex > l {
 10040  				return io.ErrUnexpectedEOF
 10041  			}
 10042  			if m.ImmediateCallerId == nil {
 10043  				m.ImmediateCallerId = &VTGateCallerID{}
 10044  			}
 10045  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10046  				return err
 10047  			}
 10048  			iNdEx = postIndex
 10049  		case 3:
 10050  			if wireType != 2 {
 10051  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 10052  			}
 10053  			var msglen int
 10054  			for shift := uint(0); ; shift += 7 {
 10055  				if shift >= 64 {
 10056  					return ErrIntOverflow
 10057  				}
 10058  				if iNdEx >= l {
 10059  					return io.ErrUnexpectedEOF
 10060  				}
 10061  				b := dAtA[iNdEx]
 10062  				iNdEx++
 10063  				msglen |= int(b&0x7F) << shift
 10064  				if b < 0x80 {
 10065  					break
 10066  				}
 10067  			}
 10068  			if msglen < 0 {
 10069  				return ErrInvalidLength
 10070  			}
 10071  			postIndex := iNdEx + msglen
 10072  			if postIndex < 0 {
 10073  				return ErrInvalidLength
 10074  			}
 10075  			if postIndex > l {
 10076  				return io.ErrUnexpectedEOF
 10077  			}
 10078  			if m.Target == nil {
 10079  				m.Target = &Target{}
 10080  			}
 10081  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10082  				return err
 10083  			}
 10084  			iNdEx = postIndex
 10085  		case 4:
 10086  			if wireType != 2 {
 10087  				return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType)
 10088  			}
 10089  			var stringLen uint64
 10090  			for shift := uint(0); ; shift += 7 {
 10091  				if shift >= 64 {
 10092  					return ErrIntOverflow
 10093  				}
 10094  				if iNdEx >= l {
 10095  					return io.ErrUnexpectedEOF
 10096  				}
 10097  				b := dAtA[iNdEx]
 10098  				iNdEx++
 10099  				stringLen |= uint64(b&0x7F) << shift
 10100  				if b < 0x80 {
 10101  					break
 10102  				}
 10103  			}
 10104  			intStringLen := int(stringLen)
 10105  			if intStringLen < 0 {
 10106  				return ErrInvalidLength
 10107  			}
 10108  			postIndex := iNdEx + intStringLen
 10109  			if postIndex < 0 {
 10110  				return ErrInvalidLength
 10111  			}
 10112  			if postIndex > l {
 10113  				return io.ErrUnexpectedEOF
 10114  			}
 10115  			m.Dtid = string(dAtA[iNdEx:postIndex])
 10116  			iNdEx = postIndex
 10117  		default:
 10118  			iNdEx = preIndex
 10119  			skippy, err := skip(dAtA[iNdEx:])
 10120  			if err != nil {
 10121  				return err
 10122  			}
 10123  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10124  				return ErrInvalidLength
 10125  			}
 10126  			if (iNdEx + skippy) > l {
 10127  				return io.ErrUnexpectedEOF
 10128  			}
 10129  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 10130  			iNdEx += skippy
 10131  		}
 10132  	}
 10133  
 10134  	if iNdEx > l {
 10135  		return io.ErrUnexpectedEOF
 10136  	}
 10137  	return nil
 10138  }
 10139  func (m *CommitPreparedResponse) UnmarshalVT(dAtA []byte) error {
 10140  	l := len(dAtA)
 10141  	iNdEx := 0
 10142  	for iNdEx < l {
 10143  		preIndex := iNdEx
 10144  		var wire uint64
 10145  		for shift := uint(0); ; shift += 7 {
 10146  			if shift >= 64 {
 10147  				return ErrIntOverflow
 10148  			}
 10149  			if iNdEx >= l {
 10150  				return io.ErrUnexpectedEOF
 10151  			}
 10152  			b := dAtA[iNdEx]
 10153  			iNdEx++
 10154  			wire |= uint64(b&0x7F) << shift
 10155  			if b < 0x80 {
 10156  				break
 10157  			}
 10158  		}
 10159  		fieldNum := int32(wire >> 3)
 10160  		wireType := int(wire & 0x7)
 10161  		if wireType == 4 {
 10162  			return fmt.Errorf("proto: CommitPreparedResponse: wiretype end group for non-group")
 10163  		}
 10164  		if fieldNum <= 0 {
 10165  			return fmt.Errorf("proto: CommitPreparedResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 10166  		}
 10167  		switch fieldNum {
 10168  		default:
 10169  			iNdEx = preIndex
 10170  			skippy, err := skip(dAtA[iNdEx:])
 10171  			if err != nil {
 10172  				return err
 10173  			}
 10174  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10175  				return ErrInvalidLength
 10176  			}
 10177  			if (iNdEx + skippy) > l {
 10178  				return io.ErrUnexpectedEOF
 10179  			}
 10180  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 10181  			iNdEx += skippy
 10182  		}
 10183  	}
 10184  
 10185  	if iNdEx > l {
 10186  		return io.ErrUnexpectedEOF
 10187  	}
 10188  	return nil
 10189  }
 10190  func (m *RollbackPreparedRequest) UnmarshalVT(dAtA []byte) error {
 10191  	l := len(dAtA)
 10192  	iNdEx := 0
 10193  	for iNdEx < l {
 10194  		preIndex := iNdEx
 10195  		var wire uint64
 10196  		for shift := uint(0); ; shift += 7 {
 10197  			if shift >= 64 {
 10198  				return ErrIntOverflow
 10199  			}
 10200  			if iNdEx >= l {
 10201  				return io.ErrUnexpectedEOF
 10202  			}
 10203  			b := dAtA[iNdEx]
 10204  			iNdEx++
 10205  			wire |= uint64(b&0x7F) << shift
 10206  			if b < 0x80 {
 10207  				break
 10208  			}
 10209  		}
 10210  		fieldNum := int32(wire >> 3)
 10211  		wireType := int(wire & 0x7)
 10212  		if wireType == 4 {
 10213  			return fmt.Errorf("proto: RollbackPreparedRequest: wiretype end group for non-group")
 10214  		}
 10215  		if fieldNum <= 0 {
 10216  			return fmt.Errorf("proto: RollbackPreparedRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 10217  		}
 10218  		switch fieldNum {
 10219  		case 1:
 10220  			if wireType != 2 {
 10221  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 10222  			}
 10223  			var msglen int
 10224  			for shift := uint(0); ; shift += 7 {
 10225  				if shift >= 64 {
 10226  					return ErrIntOverflow
 10227  				}
 10228  				if iNdEx >= l {
 10229  					return io.ErrUnexpectedEOF
 10230  				}
 10231  				b := dAtA[iNdEx]
 10232  				iNdEx++
 10233  				msglen |= int(b&0x7F) << shift
 10234  				if b < 0x80 {
 10235  					break
 10236  				}
 10237  			}
 10238  			if msglen < 0 {
 10239  				return ErrInvalidLength
 10240  			}
 10241  			postIndex := iNdEx + msglen
 10242  			if postIndex < 0 {
 10243  				return ErrInvalidLength
 10244  			}
 10245  			if postIndex > l {
 10246  				return io.ErrUnexpectedEOF
 10247  			}
 10248  			if m.EffectiveCallerId == nil {
 10249  				m.EffectiveCallerId = &vtrpc.CallerID{}
 10250  			}
 10251  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10252  				return err
 10253  			}
 10254  			iNdEx = postIndex
 10255  		case 2:
 10256  			if wireType != 2 {
 10257  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 10258  			}
 10259  			var msglen int
 10260  			for shift := uint(0); ; shift += 7 {
 10261  				if shift >= 64 {
 10262  					return ErrIntOverflow
 10263  				}
 10264  				if iNdEx >= l {
 10265  					return io.ErrUnexpectedEOF
 10266  				}
 10267  				b := dAtA[iNdEx]
 10268  				iNdEx++
 10269  				msglen |= int(b&0x7F) << shift
 10270  				if b < 0x80 {
 10271  					break
 10272  				}
 10273  			}
 10274  			if msglen < 0 {
 10275  				return ErrInvalidLength
 10276  			}
 10277  			postIndex := iNdEx + msglen
 10278  			if postIndex < 0 {
 10279  				return ErrInvalidLength
 10280  			}
 10281  			if postIndex > l {
 10282  				return io.ErrUnexpectedEOF
 10283  			}
 10284  			if m.ImmediateCallerId == nil {
 10285  				m.ImmediateCallerId = &VTGateCallerID{}
 10286  			}
 10287  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10288  				return err
 10289  			}
 10290  			iNdEx = postIndex
 10291  		case 3:
 10292  			if wireType != 2 {
 10293  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 10294  			}
 10295  			var msglen int
 10296  			for shift := uint(0); ; shift += 7 {
 10297  				if shift >= 64 {
 10298  					return ErrIntOverflow
 10299  				}
 10300  				if iNdEx >= l {
 10301  					return io.ErrUnexpectedEOF
 10302  				}
 10303  				b := dAtA[iNdEx]
 10304  				iNdEx++
 10305  				msglen |= int(b&0x7F) << shift
 10306  				if b < 0x80 {
 10307  					break
 10308  				}
 10309  			}
 10310  			if msglen < 0 {
 10311  				return ErrInvalidLength
 10312  			}
 10313  			postIndex := iNdEx + msglen
 10314  			if postIndex < 0 {
 10315  				return ErrInvalidLength
 10316  			}
 10317  			if postIndex > l {
 10318  				return io.ErrUnexpectedEOF
 10319  			}
 10320  			if m.Target == nil {
 10321  				m.Target = &Target{}
 10322  			}
 10323  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10324  				return err
 10325  			}
 10326  			iNdEx = postIndex
 10327  		case 4:
 10328  			if wireType != 0 {
 10329  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
 10330  			}
 10331  			m.TransactionId = 0
 10332  			for shift := uint(0); ; shift += 7 {
 10333  				if shift >= 64 {
 10334  					return ErrIntOverflow
 10335  				}
 10336  				if iNdEx >= l {
 10337  					return io.ErrUnexpectedEOF
 10338  				}
 10339  				b := dAtA[iNdEx]
 10340  				iNdEx++
 10341  				m.TransactionId |= int64(b&0x7F) << shift
 10342  				if b < 0x80 {
 10343  					break
 10344  				}
 10345  			}
 10346  		case 5:
 10347  			if wireType != 2 {
 10348  				return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType)
 10349  			}
 10350  			var stringLen uint64
 10351  			for shift := uint(0); ; shift += 7 {
 10352  				if shift >= 64 {
 10353  					return ErrIntOverflow
 10354  				}
 10355  				if iNdEx >= l {
 10356  					return io.ErrUnexpectedEOF
 10357  				}
 10358  				b := dAtA[iNdEx]
 10359  				iNdEx++
 10360  				stringLen |= uint64(b&0x7F) << shift
 10361  				if b < 0x80 {
 10362  					break
 10363  				}
 10364  			}
 10365  			intStringLen := int(stringLen)
 10366  			if intStringLen < 0 {
 10367  				return ErrInvalidLength
 10368  			}
 10369  			postIndex := iNdEx + intStringLen
 10370  			if postIndex < 0 {
 10371  				return ErrInvalidLength
 10372  			}
 10373  			if postIndex > l {
 10374  				return io.ErrUnexpectedEOF
 10375  			}
 10376  			m.Dtid = string(dAtA[iNdEx:postIndex])
 10377  			iNdEx = postIndex
 10378  		default:
 10379  			iNdEx = preIndex
 10380  			skippy, err := skip(dAtA[iNdEx:])
 10381  			if err != nil {
 10382  				return err
 10383  			}
 10384  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10385  				return ErrInvalidLength
 10386  			}
 10387  			if (iNdEx + skippy) > l {
 10388  				return io.ErrUnexpectedEOF
 10389  			}
 10390  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 10391  			iNdEx += skippy
 10392  		}
 10393  	}
 10394  
 10395  	if iNdEx > l {
 10396  		return io.ErrUnexpectedEOF
 10397  	}
 10398  	return nil
 10399  }
 10400  func (m *RollbackPreparedResponse) UnmarshalVT(dAtA []byte) error {
 10401  	l := len(dAtA)
 10402  	iNdEx := 0
 10403  	for iNdEx < l {
 10404  		preIndex := iNdEx
 10405  		var wire uint64
 10406  		for shift := uint(0); ; shift += 7 {
 10407  			if shift >= 64 {
 10408  				return ErrIntOverflow
 10409  			}
 10410  			if iNdEx >= l {
 10411  				return io.ErrUnexpectedEOF
 10412  			}
 10413  			b := dAtA[iNdEx]
 10414  			iNdEx++
 10415  			wire |= uint64(b&0x7F) << shift
 10416  			if b < 0x80 {
 10417  				break
 10418  			}
 10419  		}
 10420  		fieldNum := int32(wire >> 3)
 10421  		wireType := int(wire & 0x7)
 10422  		if wireType == 4 {
 10423  			return fmt.Errorf("proto: RollbackPreparedResponse: wiretype end group for non-group")
 10424  		}
 10425  		if fieldNum <= 0 {
 10426  			return fmt.Errorf("proto: RollbackPreparedResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 10427  		}
 10428  		switch fieldNum {
 10429  		default:
 10430  			iNdEx = preIndex
 10431  			skippy, err := skip(dAtA[iNdEx:])
 10432  			if err != nil {
 10433  				return err
 10434  			}
 10435  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10436  				return ErrInvalidLength
 10437  			}
 10438  			if (iNdEx + skippy) > l {
 10439  				return io.ErrUnexpectedEOF
 10440  			}
 10441  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 10442  			iNdEx += skippy
 10443  		}
 10444  	}
 10445  
 10446  	if iNdEx > l {
 10447  		return io.ErrUnexpectedEOF
 10448  	}
 10449  	return nil
 10450  }
 10451  func (m *CreateTransactionRequest) UnmarshalVT(dAtA []byte) error {
 10452  	l := len(dAtA)
 10453  	iNdEx := 0
 10454  	for iNdEx < l {
 10455  		preIndex := iNdEx
 10456  		var wire uint64
 10457  		for shift := uint(0); ; shift += 7 {
 10458  			if shift >= 64 {
 10459  				return ErrIntOverflow
 10460  			}
 10461  			if iNdEx >= l {
 10462  				return io.ErrUnexpectedEOF
 10463  			}
 10464  			b := dAtA[iNdEx]
 10465  			iNdEx++
 10466  			wire |= uint64(b&0x7F) << shift
 10467  			if b < 0x80 {
 10468  				break
 10469  			}
 10470  		}
 10471  		fieldNum := int32(wire >> 3)
 10472  		wireType := int(wire & 0x7)
 10473  		if wireType == 4 {
 10474  			return fmt.Errorf("proto: CreateTransactionRequest: wiretype end group for non-group")
 10475  		}
 10476  		if fieldNum <= 0 {
 10477  			return fmt.Errorf("proto: CreateTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 10478  		}
 10479  		switch fieldNum {
 10480  		case 1:
 10481  			if wireType != 2 {
 10482  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 10483  			}
 10484  			var msglen int
 10485  			for shift := uint(0); ; shift += 7 {
 10486  				if shift >= 64 {
 10487  					return ErrIntOverflow
 10488  				}
 10489  				if iNdEx >= l {
 10490  					return io.ErrUnexpectedEOF
 10491  				}
 10492  				b := dAtA[iNdEx]
 10493  				iNdEx++
 10494  				msglen |= int(b&0x7F) << shift
 10495  				if b < 0x80 {
 10496  					break
 10497  				}
 10498  			}
 10499  			if msglen < 0 {
 10500  				return ErrInvalidLength
 10501  			}
 10502  			postIndex := iNdEx + msglen
 10503  			if postIndex < 0 {
 10504  				return ErrInvalidLength
 10505  			}
 10506  			if postIndex > l {
 10507  				return io.ErrUnexpectedEOF
 10508  			}
 10509  			if m.EffectiveCallerId == nil {
 10510  				m.EffectiveCallerId = &vtrpc.CallerID{}
 10511  			}
 10512  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10513  				return err
 10514  			}
 10515  			iNdEx = postIndex
 10516  		case 2:
 10517  			if wireType != 2 {
 10518  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 10519  			}
 10520  			var msglen int
 10521  			for shift := uint(0); ; shift += 7 {
 10522  				if shift >= 64 {
 10523  					return ErrIntOverflow
 10524  				}
 10525  				if iNdEx >= l {
 10526  					return io.ErrUnexpectedEOF
 10527  				}
 10528  				b := dAtA[iNdEx]
 10529  				iNdEx++
 10530  				msglen |= int(b&0x7F) << shift
 10531  				if b < 0x80 {
 10532  					break
 10533  				}
 10534  			}
 10535  			if msglen < 0 {
 10536  				return ErrInvalidLength
 10537  			}
 10538  			postIndex := iNdEx + msglen
 10539  			if postIndex < 0 {
 10540  				return ErrInvalidLength
 10541  			}
 10542  			if postIndex > l {
 10543  				return io.ErrUnexpectedEOF
 10544  			}
 10545  			if m.ImmediateCallerId == nil {
 10546  				m.ImmediateCallerId = &VTGateCallerID{}
 10547  			}
 10548  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10549  				return err
 10550  			}
 10551  			iNdEx = postIndex
 10552  		case 3:
 10553  			if wireType != 2 {
 10554  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 10555  			}
 10556  			var msglen int
 10557  			for shift := uint(0); ; shift += 7 {
 10558  				if shift >= 64 {
 10559  					return ErrIntOverflow
 10560  				}
 10561  				if iNdEx >= l {
 10562  					return io.ErrUnexpectedEOF
 10563  				}
 10564  				b := dAtA[iNdEx]
 10565  				iNdEx++
 10566  				msglen |= int(b&0x7F) << shift
 10567  				if b < 0x80 {
 10568  					break
 10569  				}
 10570  			}
 10571  			if msglen < 0 {
 10572  				return ErrInvalidLength
 10573  			}
 10574  			postIndex := iNdEx + msglen
 10575  			if postIndex < 0 {
 10576  				return ErrInvalidLength
 10577  			}
 10578  			if postIndex > l {
 10579  				return io.ErrUnexpectedEOF
 10580  			}
 10581  			if m.Target == nil {
 10582  				m.Target = &Target{}
 10583  			}
 10584  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10585  				return err
 10586  			}
 10587  			iNdEx = postIndex
 10588  		case 4:
 10589  			if wireType != 2 {
 10590  				return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType)
 10591  			}
 10592  			var stringLen uint64
 10593  			for shift := uint(0); ; shift += 7 {
 10594  				if shift >= 64 {
 10595  					return ErrIntOverflow
 10596  				}
 10597  				if iNdEx >= l {
 10598  					return io.ErrUnexpectedEOF
 10599  				}
 10600  				b := dAtA[iNdEx]
 10601  				iNdEx++
 10602  				stringLen |= uint64(b&0x7F) << shift
 10603  				if b < 0x80 {
 10604  					break
 10605  				}
 10606  			}
 10607  			intStringLen := int(stringLen)
 10608  			if intStringLen < 0 {
 10609  				return ErrInvalidLength
 10610  			}
 10611  			postIndex := iNdEx + intStringLen
 10612  			if postIndex < 0 {
 10613  				return ErrInvalidLength
 10614  			}
 10615  			if postIndex > l {
 10616  				return io.ErrUnexpectedEOF
 10617  			}
 10618  			m.Dtid = string(dAtA[iNdEx:postIndex])
 10619  			iNdEx = postIndex
 10620  		case 5:
 10621  			if wireType != 2 {
 10622  				return fmt.Errorf("proto: wrong wireType = %d for field Participants", wireType)
 10623  			}
 10624  			var msglen int
 10625  			for shift := uint(0); ; shift += 7 {
 10626  				if shift >= 64 {
 10627  					return ErrIntOverflow
 10628  				}
 10629  				if iNdEx >= l {
 10630  					return io.ErrUnexpectedEOF
 10631  				}
 10632  				b := dAtA[iNdEx]
 10633  				iNdEx++
 10634  				msglen |= int(b&0x7F) << shift
 10635  				if b < 0x80 {
 10636  					break
 10637  				}
 10638  			}
 10639  			if msglen < 0 {
 10640  				return ErrInvalidLength
 10641  			}
 10642  			postIndex := iNdEx + msglen
 10643  			if postIndex < 0 {
 10644  				return ErrInvalidLength
 10645  			}
 10646  			if postIndex > l {
 10647  				return io.ErrUnexpectedEOF
 10648  			}
 10649  			m.Participants = append(m.Participants, &Target{})
 10650  			if err := m.Participants[len(m.Participants)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10651  				return err
 10652  			}
 10653  			iNdEx = postIndex
 10654  		default:
 10655  			iNdEx = preIndex
 10656  			skippy, err := skip(dAtA[iNdEx:])
 10657  			if err != nil {
 10658  				return err
 10659  			}
 10660  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10661  				return ErrInvalidLength
 10662  			}
 10663  			if (iNdEx + skippy) > l {
 10664  				return io.ErrUnexpectedEOF
 10665  			}
 10666  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 10667  			iNdEx += skippy
 10668  		}
 10669  	}
 10670  
 10671  	if iNdEx > l {
 10672  		return io.ErrUnexpectedEOF
 10673  	}
 10674  	return nil
 10675  }
 10676  func (m *CreateTransactionResponse) UnmarshalVT(dAtA []byte) error {
 10677  	l := len(dAtA)
 10678  	iNdEx := 0
 10679  	for iNdEx < l {
 10680  		preIndex := iNdEx
 10681  		var wire uint64
 10682  		for shift := uint(0); ; shift += 7 {
 10683  			if shift >= 64 {
 10684  				return ErrIntOverflow
 10685  			}
 10686  			if iNdEx >= l {
 10687  				return io.ErrUnexpectedEOF
 10688  			}
 10689  			b := dAtA[iNdEx]
 10690  			iNdEx++
 10691  			wire |= uint64(b&0x7F) << shift
 10692  			if b < 0x80 {
 10693  				break
 10694  			}
 10695  		}
 10696  		fieldNum := int32(wire >> 3)
 10697  		wireType := int(wire & 0x7)
 10698  		if wireType == 4 {
 10699  			return fmt.Errorf("proto: CreateTransactionResponse: wiretype end group for non-group")
 10700  		}
 10701  		if fieldNum <= 0 {
 10702  			return fmt.Errorf("proto: CreateTransactionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 10703  		}
 10704  		switch fieldNum {
 10705  		default:
 10706  			iNdEx = preIndex
 10707  			skippy, err := skip(dAtA[iNdEx:])
 10708  			if err != nil {
 10709  				return err
 10710  			}
 10711  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10712  				return ErrInvalidLength
 10713  			}
 10714  			if (iNdEx + skippy) > l {
 10715  				return io.ErrUnexpectedEOF
 10716  			}
 10717  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 10718  			iNdEx += skippy
 10719  		}
 10720  	}
 10721  
 10722  	if iNdEx > l {
 10723  		return io.ErrUnexpectedEOF
 10724  	}
 10725  	return nil
 10726  }
 10727  func (m *StartCommitRequest) UnmarshalVT(dAtA []byte) error {
 10728  	l := len(dAtA)
 10729  	iNdEx := 0
 10730  	for iNdEx < l {
 10731  		preIndex := iNdEx
 10732  		var wire uint64
 10733  		for shift := uint(0); ; shift += 7 {
 10734  			if shift >= 64 {
 10735  				return ErrIntOverflow
 10736  			}
 10737  			if iNdEx >= l {
 10738  				return io.ErrUnexpectedEOF
 10739  			}
 10740  			b := dAtA[iNdEx]
 10741  			iNdEx++
 10742  			wire |= uint64(b&0x7F) << shift
 10743  			if b < 0x80 {
 10744  				break
 10745  			}
 10746  		}
 10747  		fieldNum := int32(wire >> 3)
 10748  		wireType := int(wire & 0x7)
 10749  		if wireType == 4 {
 10750  			return fmt.Errorf("proto: StartCommitRequest: wiretype end group for non-group")
 10751  		}
 10752  		if fieldNum <= 0 {
 10753  			return fmt.Errorf("proto: StartCommitRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 10754  		}
 10755  		switch fieldNum {
 10756  		case 1:
 10757  			if wireType != 2 {
 10758  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 10759  			}
 10760  			var msglen int
 10761  			for shift := uint(0); ; shift += 7 {
 10762  				if shift >= 64 {
 10763  					return ErrIntOverflow
 10764  				}
 10765  				if iNdEx >= l {
 10766  					return io.ErrUnexpectedEOF
 10767  				}
 10768  				b := dAtA[iNdEx]
 10769  				iNdEx++
 10770  				msglen |= int(b&0x7F) << shift
 10771  				if b < 0x80 {
 10772  					break
 10773  				}
 10774  			}
 10775  			if msglen < 0 {
 10776  				return ErrInvalidLength
 10777  			}
 10778  			postIndex := iNdEx + msglen
 10779  			if postIndex < 0 {
 10780  				return ErrInvalidLength
 10781  			}
 10782  			if postIndex > l {
 10783  				return io.ErrUnexpectedEOF
 10784  			}
 10785  			if m.EffectiveCallerId == nil {
 10786  				m.EffectiveCallerId = &vtrpc.CallerID{}
 10787  			}
 10788  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10789  				return err
 10790  			}
 10791  			iNdEx = postIndex
 10792  		case 2:
 10793  			if wireType != 2 {
 10794  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 10795  			}
 10796  			var msglen int
 10797  			for shift := uint(0); ; shift += 7 {
 10798  				if shift >= 64 {
 10799  					return ErrIntOverflow
 10800  				}
 10801  				if iNdEx >= l {
 10802  					return io.ErrUnexpectedEOF
 10803  				}
 10804  				b := dAtA[iNdEx]
 10805  				iNdEx++
 10806  				msglen |= int(b&0x7F) << shift
 10807  				if b < 0x80 {
 10808  					break
 10809  				}
 10810  			}
 10811  			if msglen < 0 {
 10812  				return ErrInvalidLength
 10813  			}
 10814  			postIndex := iNdEx + msglen
 10815  			if postIndex < 0 {
 10816  				return ErrInvalidLength
 10817  			}
 10818  			if postIndex > l {
 10819  				return io.ErrUnexpectedEOF
 10820  			}
 10821  			if m.ImmediateCallerId == nil {
 10822  				m.ImmediateCallerId = &VTGateCallerID{}
 10823  			}
 10824  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10825  				return err
 10826  			}
 10827  			iNdEx = postIndex
 10828  		case 3:
 10829  			if wireType != 2 {
 10830  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 10831  			}
 10832  			var msglen int
 10833  			for shift := uint(0); ; shift += 7 {
 10834  				if shift >= 64 {
 10835  					return ErrIntOverflow
 10836  				}
 10837  				if iNdEx >= l {
 10838  					return io.ErrUnexpectedEOF
 10839  				}
 10840  				b := dAtA[iNdEx]
 10841  				iNdEx++
 10842  				msglen |= int(b&0x7F) << shift
 10843  				if b < 0x80 {
 10844  					break
 10845  				}
 10846  			}
 10847  			if msglen < 0 {
 10848  				return ErrInvalidLength
 10849  			}
 10850  			postIndex := iNdEx + msglen
 10851  			if postIndex < 0 {
 10852  				return ErrInvalidLength
 10853  			}
 10854  			if postIndex > l {
 10855  				return io.ErrUnexpectedEOF
 10856  			}
 10857  			if m.Target == nil {
 10858  				m.Target = &Target{}
 10859  			}
 10860  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 10861  				return err
 10862  			}
 10863  			iNdEx = postIndex
 10864  		case 4:
 10865  			if wireType != 0 {
 10866  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
 10867  			}
 10868  			m.TransactionId = 0
 10869  			for shift := uint(0); ; shift += 7 {
 10870  				if shift >= 64 {
 10871  					return ErrIntOverflow
 10872  				}
 10873  				if iNdEx >= l {
 10874  					return io.ErrUnexpectedEOF
 10875  				}
 10876  				b := dAtA[iNdEx]
 10877  				iNdEx++
 10878  				m.TransactionId |= int64(b&0x7F) << shift
 10879  				if b < 0x80 {
 10880  					break
 10881  				}
 10882  			}
 10883  		case 5:
 10884  			if wireType != 2 {
 10885  				return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType)
 10886  			}
 10887  			var stringLen uint64
 10888  			for shift := uint(0); ; shift += 7 {
 10889  				if shift >= 64 {
 10890  					return ErrIntOverflow
 10891  				}
 10892  				if iNdEx >= l {
 10893  					return io.ErrUnexpectedEOF
 10894  				}
 10895  				b := dAtA[iNdEx]
 10896  				iNdEx++
 10897  				stringLen |= uint64(b&0x7F) << shift
 10898  				if b < 0x80 {
 10899  					break
 10900  				}
 10901  			}
 10902  			intStringLen := int(stringLen)
 10903  			if intStringLen < 0 {
 10904  				return ErrInvalidLength
 10905  			}
 10906  			postIndex := iNdEx + intStringLen
 10907  			if postIndex < 0 {
 10908  				return ErrInvalidLength
 10909  			}
 10910  			if postIndex > l {
 10911  				return io.ErrUnexpectedEOF
 10912  			}
 10913  			m.Dtid = string(dAtA[iNdEx:postIndex])
 10914  			iNdEx = postIndex
 10915  		default:
 10916  			iNdEx = preIndex
 10917  			skippy, err := skip(dAtA[iNdEx:])
 10918  			if err != nil {
 10919  				return err
 10920  			}
 10921  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10922  				return ErrInvalidLength
 10923  			}
 10924  			if (iNdEx + skippy) > l {
 10925  				return io.ErrUnexpectedEOF
 10926  			}
 10927  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 10928  			iNdEx += skippy
 10929  		}
 10930  	}
 10931  
 10932  	if iNdEx > l {
 10933  		return io.ErrUnexpectedEOF
 10934  	}
 10935  	return nil
 10936  }
 10937  func (m *StartCommitResponse) UnmarshalVT(dAtA []byte) error {
 10938  	l := len(dAtA)
 10939  	iNdEx := 0
 10940  	for iNdEx < l {
 10941  		preIndex := iNdEx
 10942  		var wire uint64
 10943  		for shift := uint(0); ; shift += 7 {
 10944  			if shift >= 64 {
 10945  				return ErrIntOverflow
 10946  			}
 10947  			if iNdEx >= l {
 10948  				return io.ErrUnexpectedEOF
 10949  			}
 10950  			b := dAtA[iNdEx]
 10951  			iNdEx++
 10952  			wire |= uint64(b&0x7F) << shift
 10953  			if b < 0x80 {
 10954  				break
 10955  			}
 10956  		}
 10957  		fieldNum := int32(wire >> 3)
 10958  		wireType := int(wire & 0x7)
 10959  		if wireType == 4 {
 10960  			return fmt.Errorf("proto: StartCommitResponse: wiretype end group for non-group")
 10961  		}
 10962  		if fieldNum <= 0 {
 10963  			return fmt.Errorf("proto: StartCommitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 10964  		}
 10965  		switch fieldNum {
 10966  		default:
 10967  			iNdEx = preIndex
 10968  			skippy, err := skip(dAtA[iNdEx:])
 10969  			if err != nil {
 10970  				return err
 10971  			}
 10972  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10973  				return ErrInvalidLength
 10974  			}
 10975  			if (iNdEx + skippy) > l {
 10976  				return io.ErrUnexpectedEOF
 10977  			}
 10978  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 10979  			iNdEx += skippy
 10980  		}
 10981  	}
 10982  
 10983  	if iNdEx > l {
 10984  		return io.ErrUnexpectedEOF
 10985  	}
 10986  	return nil
 10987  }
 10988  func (m *SetRollbackRequest) UnmarshalVT(dAtA []byte) error {
 10989  	l := len(dAtA)
 10990  	iNdEx := 0
 10991  	for iNdEx < l {
 10992  		preIndex := iNdEx
 10993  		var wire uint64
 10994  		for shift := uint(0); ; shift += 7 {
 10995  			if shift >= 64 {
 10996  				return ErrIntOverflow
 10997  			}
 10998  			if iNdEx >= l {
 10999  				return io.ErrUnexpectedEOF
 11000  			}
 11001  			b := dAtA[iNdEx]
 11002  			iNdEx++
 11003  			wire |= uint64(b&0x7F) << shift
 11004  			if b < 0x80 {
 11005  				break
 11006  			}
 11007  		}
 11008  		fieldNum := int32(wire >> 3)
 11009  		wireType := int(wire & 0x7)
 11010  		if wireType == 4 {
 11011  			return fmt.Errorf("proto: SetRollbackRequest: wiretype end group for non-group")
 11012  		}
 11013  		if fieldNum <= 0 {
 11014  			return fmt.Errorf("proto: SetRollbackRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 11015  		}
 11016  		switch fieldNum {
 11017  		case 1:
 11018  			if wireType != 2 {
 11019  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 11020  			}
 11021  			var msglen int
 11022  			for shift := uint(0); ; shift += 7 {
 11023  				if shift >= 64 {
 11024  					return ErrIntOverflow
 11025  				}
 11026  				if iNdEx >= l {
 11027  					return io.ErrUnexpectedEOF
 11028  				}
 11029  				b := dAtA[iNdEx]
 11030  				iNdEx++
 11031  				msglen |= int(b&0x7F) << shift
 11032  				if b < 0x80 {
 11033  					break
 11034  				}
 11035  			}
 11036  			if msglen < 0 {
 11037  				return ErrInvalidLength
 11038  			}
 11039  			postIndex := iNdEx + msglen
 11040  			if postIndex < 0 {
 11041  				return ErrInvalidLength
 11042  			}
 11043  			if postIndex > l {
 11044  				return io.ErrUnexpectedEOF
 11045  			}
 11046  			if m.EffectiveCallerId == nil {
 11047  				m.EffectiveCallerId = &vtrpc.CallerID{}
 11048  			}
 11049  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11050  				return err
 11051  			}
 11052  			iNdEx = postIndex
 11053  		case 2:
 11054  			if wireType != 2 {
 11055  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 11056  			}
 11057  			var msglen int
 11058  			for shift := uint(0); ; shift += 7 {
 11059  				if shift >= 64 {
 11060  					return ErrIntOverflow
 11061  				}
 11062  				if iNdEx >= l {
 11063  					return io.ErrUnexpectedEOF
 11064  				}
 11065  				b := dAtA[iNdEx]
 11066  				iNdEx++
 11067  				msglen |= int(b&0x7F) << shift
 11068  				if b < 0x80 {
 11069  					break
 11070  				}
 11071  			}
 11072  			if msglen < 0 {
 11073  				return ErrInvalidLength
 11074  			}
 11075  			postIndex := iNdEx + msglen
 11076  			if postIndex < 0 {
 11077  				return ErrInvalidLength
 11078  			}
 11079  			if postIndex > l {
 11080  				return io.ErrUnexpectedEOF
 11081  			}
 11082  			if m.ImmediateCallerId == nil {
 11083  				m.ImmediateCallerId = &VTGateCallerID{}
 11084  			}
 11085  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11086  				return err
 11087  			}
 11088  			iNdEx = postIndex
 11089  		case 3:
 11090  			if wireType != 2 {
 11091  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 11092  			}
 11093  			var msglen int
 11094  			for shift := uint(0); ; shift += 7 {
 11095  				if shift >= 64 {
 11096  					return ErrIntOverflow
 11097  				}
 11098  				if iNdEx >= l {
 11099  					return io.ErrUnexpectedEOF
 11100  				}
 11101  				b := dAtA[iNdEx]
 11102  				iNdEx++
 11103  				msglen |= int(b&0x7F) << shift
 11104  				if b < 0x80 {
 11105  					break
 11106  				}
 11107  			}
 11108  			if msglen < 0 {
 11109  				return ErrInvalidLength
 11110  			}
 11111  			postIndex := iNdEx + msglen
 11112  			if postIndex < 0 {
 11113  				return ErrInvalidLength
 11114  			}
 11115  			if postIndex > l {
 11116  				return io.ErrUnexpectedEOF
 11117  			}
 11118  			if m.Target == nil {
 11119  				m.Target = &Target{}
 11120  			}
 11121  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11122  				return err
 11123  			}
 11124  			iNdEx = postIndex
 11125  		case 4:
 11126  			if wireType != 0 {
 11127  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
 11128  			}
 11129  			m.TransactionId = 0
 11130  			for shift := uint(0); ; shift += 7 {
 11131  				if shift >= 64 {
 11132  					return ErrIntOverflow
 11133  				}
 11134  				if iNdEx >= l {
 11135  					return io.ErrUnexpectedEOF
 11136  				}
 11137  				b := dAtA[iNdEx]
 11138  				iNdEx++
 11139  				m.TransactionId |= int64(b&0x7F) << shift
 11140  				if b < 0x80 {
 11141  					break
 11142  				}
 11143  			}
 11144  		case 5:
 11145  			if wireType != 2 {
 11146  				return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType)
 11147  			}
 11148  			var stringLen uint64
 11149  			for shift := uint(0); ; shift += 7 {
 11150  				if shift >= 64 {
 11151  					return ErrIntOverflow
 11152  				}
 11153  				if iNdEx >= l {
 11154  					return io.ErrUnexpectedEOF
 11155  				}
 11156  				b := dAtA[iNdEx]
 11157  				iNdEx++
 11158  				stringLen |= uint64(b&0x7F) << shift
 11159  				if b < 0x80 {
 11160  					break
 11161  				}
 11162  			}
 11163  			intStringLen := int(stringLen)
 11164  			if intStringLen < 0 {
 11165  				return ErrInvalidLength
 11166  			}
 11167  			postIndex := iNdEx + intStringLen
 11168  			if postIndex < 0 {
 11169  				return ErrInvalidLength
 11170  			}
 11171  			if postIndex > l {
 11172  				return io.ErrUnexpectedEOF
 11173  			}
 11174  			m.Dtid = string(dAtA[iNdEx:postIndex])
 11175  			iNdEx = postIndex
 11176  		default:
 11177  			iNdEx = preIndex
 11178  			skippy, err := skip(dAtA[iNdEx:])
 11179  			if err != nil {
 11180  				return err
 11181  			}
 11182  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11183  				return ErrInvalidLength
 11184  			}
 11185  			if (iNdEx + skippy) > l {
 11186  				return io.ErrUnexpectedEOF
 11187  			}
 11188  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 11189  			iNdEx += skippy
 11190  		}
 11191  	}
 11192  
 11193  	if iNdEx > l {
 11194  		return io.ErrUnexpectedEOF
 11195  	}
 11196  	return nil
 11197  }
 11198  func (m *SetRollbackResponse) UnmarshalVT(dAtA []byte) error {
 11199  	l := len(dAtA)
 11200  	iNdEx := 0
 11201  	for iNdEx < l {
 11202  		preIndex := iNdEx
 11203  		var wire uint64
 11204  		for shift := uint(0); ; shift += 7 {
 11205  			if shift >= 64 {
 11206  				return ErrIntOverflow
 11207  			}
 11208  			if iNdEx >= l {
 11209  				return io.ErrUnexpectedEOF
 11210  			}
 11211  			b := dAtA[iNdEx]
 11212  			iNdEx++
 11213  			wire |= uint64(b&0x7F) << shift
 11214  			if b < 0x80 {
 11215  				break
 11216  			}
 11217  		}
 11218  		fieldNum := int32(wire >> 3)
 11219  		wireType := int(wire & 0x7)
 11220  		if wireType == 4 {
 11221  			return fmt.Errorf("proto: SetRollbackResponse: wiretype end group for non-group")
 11222  		}
 11223  		if fieldNum <= 0 {
 11224  			return fmt.Errorf("proto: SetRollbackResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 11225  		}
 11226  		switch fieldNum {
 11227  		default:
 11228  			iNdEx = preIndex
 11229  			skippy, err := skip(dAtA[iNdEx:])
 11230  			if err != nil {
 11231  				return err
 11232  			}
 11233  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11234  				return ErrInvalidLength
 11235  			}
 11236  			if (iNdEx + skippy) > l {
 11237  				return io.ErrUnexpectedEOF
 11238  			}
 11239  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 11240  			iNdEx += skippy
 11241  		}
 11242  	}
 11243  
 11244  	if iNdEx > l {
 11245  		return io.ErrUnexpectedEOF
 11246  	}
 11247  	return nil
 11248  }
 11249  func (m *ConcludeTransactionRequest) UnmarshalVT(dAtA []byte) error {
 11250  	l := len(dAtA)
 11251  	iNdEx := 0
 11252  	for iNdEx < l {
 11253  		preIndex := iNdEx
 11254  		var wire uint64
 11255  		for shift := uint(0); ; shift += 7 {
 11256  			if shift >= 64 {
 11257  				return ErrIntOverflow
 11258  			}
 11259  			if iNdEx >= l {
 11260  				return io.ErrUnexpectedEOF
 11261  			}
 11262  			b := dAtA[iNdEx]
 11263  			iNdEx++
 11264  			wire |= uint64(b&0x7F) << shift
 11265  			if b < 0x80 {
 11266  				break
 11267  			}
 11268  		}
 11269  		fieldNum := int32(wire >> 3)
 11270  		wireType := int(wire & 0x7)
 11271  		if wireType == 4 {
 11272  			return fmt.Errorf("proto: ConcludeTransactionRequest: wiretype end group for non-group")
 11273  		}
 11274  		if fieldNum <= 0 {
 11275  			return fmt.Errorf("proto: ConcludeTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 11276  		}
 11277  		switch fieldNum {
 11278  		case 1:
 11279  			if wireType != 2 {
 11280  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 11281  			}
 11282  			var msglen int
 11283  			for shift := uint(0); ; shift += 7 {
 11284  				if shift >= 64 {
 11285  					return ErrIntOverflow
 11286  				}
 11287  				if iNdEx >= l {
 11288  					return io.ErrUnexpectedEOF
 11289  				}
 11290  				b := dAtA[iNdEx]
 11291  				iNdEx++
 11292  				msglen |= int(b&0x7F) << shift
 11293  				if b < 0x80 {
 11294  					break
 11295  				}
 11296  			}
 11297  			if msglen < 0 {
 11298  				return ErrInvalidLength
 11299  			}
 11300  			postIndex := iNdEx + msglen
 11301  			if postIndex < 0 {
 11302  				return ErrInvalidLength
 11303  			}
 11304  			if postIndex > l {
 11305  				return io.ErrUnexpectedEOF
 11306  			}
 11307  			if m.EffectiveCallerId == nil {
 11308  				m.EffectiveCallerId = &vtrpc.CallerID{}
 11309  			}
 11310  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11311  				return err
 11312  			}
 11313  			iNdEx = postIndex
 11314  		case 2:
 11315  			if wireType != 2 {
 11316  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 11317  			}
 11318  			var msglen int
 11319  			for shift := uint(0); ; shift += 7 {
 11320  				if shift >= 64 {
 11321  					return ErrIntOverflow
 11322  				}
 11323  				if iNdEx >= l {
 11324  					return io.ErrUnexpectedEOF
 11325  				}
 11326  				b := dAtA[iNdEx]
 11327  				iNdEx++
 11328  				msglen |= int(b&0x7F) << shift
 11329  				if b < 0x80 {
 11330  					break
 11331  				}
 11332  			}
 11333  			if msglen < 0 {
 11334  				return ErrInvalidLength
 11335  			}
 11336  			postIndex := iNdEx + msglen
 11337  			if postIndex < 0 {
 11338  				return ErrInvalidLength
 11339  			}
 11340  			if postIndex > l {
 11341  				return io.ErrUnexpectedEOF
 11342  			}
 11343  			if m.ImmediateCallerId == nil {
 11344  				m.ImmediateCallerId = &VTGateCallerID{}
 11345  			}
 11346  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11347  				return err
 11348  			}
 11349  			iNdEx = postIndex
 11350  		case 3:
 11351  			if wireType != 2 {
 11352  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 11353  			}
 11354  			var msglen int
 11355  			for shift := uint(0); ; shift += 7 {
 11356  				if shift >= 64 {
 11357  					return ErrIntOverflow
 11358  				}
 11359  				if iNdEx >= l {
 11360  					return io.ErrUnexpectedEOF
 11361  				}
 11362  				b := dAtA[iNdEx]
 11363  				iNdEx++
 11364  				msglen |= int(b&0x7F) << shift
 11365  				if b < 0x80 {
 11366  					break
 11367  				}
 11368  			}
 11369  			if msglen < 0 {
 11370  				return ErrInvalidLength
 11371  			}
 11372  			postIndex := iNdEx + msglen
 11373  			if postIndex < 0 {
 11374  				return ErrInvalidLength
 11375  			}
 11376  			if postIndex > l {
 11377  				return io.ErrUnexpectedEOF
 11378  			}
 11379  			if m.Target == nil {
 11380  				m.Target = &Target{}
 11381  			}
 11382  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11383  				return err
 11384  			}
 11385  			iNdEx = postIndex
 11386  		case 4:
 11387  			if wireType != 2 {
 11388  				return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType)
 11389  			}
 11390  			var stringLen uint64
 11391  			for shift := uint(0); ; shift += 7 {
 11392  				if shift >= 64 {
 11393  					return ErrIntOverflow
 11394  				}
 11395  				if iNdEx >= l {
 11396  					return io.ErrUnexpectedEOF
 11397  				}
 11398  				b := dAtA[iNdEx]
 11399  				iNdEx++
 11400  				stringLen |= uint64(b&0x7F) << shift
 11401  				if b < 0x80 {
 11402  					break
 11403  				}
 11404  			}
 11405  			intStringLen := int(stringLen)
 11406  			if intStringLen < 0 {
 11407  				return ErrInvalidLength
 11408  			}
 11409  			postIndex := iNdEx + intStringLen
 11410  			if postIndex < 0 {
 11411  				return ErrInvalidLength
 11412  			}
 11413  			if postIndex > l {
 11414  				return io.ErrUnexpectedEOF
 11415  			}
 11416  			m.Dtid = string(dAtA[iNdEx:postIndex])
 11417  			iNdEx = postIndex
 11418  		default:
 11419  			iNdEx = preIndex
 11420  			skippy, err := skip(dAtA[iNdEx:])
 11421  			if err != nil {
 11422  				return err
 11423  			}
 11424  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11425  				return ErrInvalidLength
 11426  			}
 11427  			if (iNdEx + skippy) > l {
 11428  				return io.ErrUnexpectedEOF
 11429  			}
 11430  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 11431  			iNdEx += skippy
 11432  		}
 11433  	}
 11434  
 11435  	if iNdEx > l {
 11436  		return io.ErrUnexpectedEOF
 11437  	}
 11438  	return nil
 11439  }
 11440  func (m *ConcludeTransactionResponse) UnmarshalVT(dAtA []byte) error {
 11441  	l := len(dAtA)
 11442  	iNdEx := 0
 11443  	for iNdEx < l {
 11444  		preIndex := iNdEx
 11445  		var wire uint64
 11446  		for shift := uint(0); ; shift += 7 {
 11447  			if shift >= 64 {
 11448  				return ErrIntOverflow
 11449  			}
 11450  			if iNdEx >= l {
 11451  				return io.ErrUnexpectedEOF
 11452  			}
 11453  			b := dAtA[iNdEx]
 11454  			iNdEx++
 11455  			wire |= uint64(b&0x7F) << shift
 11456  			if b < 0x80 {
 11457  				break
 11458  			}
 11459  		}
 11460  		fieldNum := int32(wire >> 3)
 11461  		wireType := int(wire & 0x7)
 11462  		if wireType == 4 {
 11463  			return fmt.Errorf("proto: ConcludeTransactionResponse: wiretype end group for non-group")
 11464  		}
 11465  		if fieldNum <= 0 {
 11466  			return fmt.Errorf("proto: ConcludeTransactionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 11467  		}
 11468  		switch fieldNum {
 11469  		default:
 11470  			iNdEx = preIndex
 11471  			skippy, err := skip(dAtA[iNdEx:])
 11472  			if err != nil {
 11473  				return err
 11474  			}
 11475  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11476  				return ErrInvalidLength
 11477  			}
 11478  			if (iNdEx + skippy) > l {
 11479  				return io.ErrUnexpectedEOF
 11480  			}
 11481  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 11482  			iNdEx += skippy
 11483  		}
 11484  	}
 11485  
 11486  	if iNdEx > l {
 11487  		return io.ErrUnexpectedEOF
 11488  	}
 11489  	return nil
 11490  }
 11491  func (m *ReadTransactionRequest) UnmarshalVT(dAtA []byte) error {
 11492  	l := len(dAtA)
 11493  	iNdEx := 0
 11494  	for iNdEx < l {
 11495  		preIndex := iNdEx
 11496  		var wire uint64
 11497  		for shift := uint(0); ; shift += 7 {
 11498  			if shift >= 64 {
 11499  				return ErrIntOverflow
 11500  			}
 11501  			if iNdEx >= l {
 11502  				return io.ErrUnexpectedEOF
 11503  			}
 11504  			b := dAtA[iNdEx]
 11505  			iNdEx++
 11506  			wire |= uint64(b&0x7F) << shift
 11507  			if b < 0x80 {
 11508  				break
 11509  			}
 11510  		}
 11511  		fieldNum := int32(wire >> 3)
 11512  		wireType := int(wire & 0x7)
 11513  		if wireType == 4 {
 11514  			return fmt.Errorf("proto: ReadTransactionRequest: wiretype end group for non-group")
 11515  		}
 11516  		if fieldNum <= 0 {
 11517  			return fmt.Errorf("proto: ReadTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 11518  		}
 11519  		switch fieldNum {
 11520  		case 1:
 11521  			if wireType != 2 {
 11522  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 11523  			}
 11524  			var msglen int
 11525  			for shift := uint(0); ; shift += 7 {
 11526  				if shift >= 64 {
 11527  					return ErrIntOverflow
 11528  				}
 11529  				if iNdEx >= l {
 11530  					return io.ErrUnexpectedEOF
 11531  				}
 11532  				b := dAtA[iNdEx]
 11533  				iNdEx++
 11534  				msglen |= int(b&0x7F) << shift
 11535  				if b < 0x80 {
 11536  					break
 11537  				}
 11538  			}
 11539  			if msglen < 0 {
 11540  				return ErrInvalidLength
 11541  			}
 11542  			postIndex := iNdEx + msglen
 11543  			if postIndex < 0 {
 11544  				return ErrInvalidLength
 11545  			}
 11546  			if postIndex > l {
 11547  				return io.ErrUnexpectedEOF
 11548  			}
 11549  			if m.EffectiveCallerId == nil {
 11550  				m.EffectiveCallerId = &vtrpc.CallerID{}
 11551  			}
 11552  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11553  				return err
 11554  			}
 11555  			iNdEx = postIndex
 11556  		case 2:
 11557  			if wireType != 2 {
 11558  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 11559  			}
 11560  			var msglen int
 11561  			for shift := uint(0); ; shift += 7 {
 11562  				if shift >= 64 {
 11563  					return ErrIntOverflow
 11564  				}
 11565  				if iNdEx >= l {
 11566  					return io.ErrUnexpectedEOF
 11567  				}
 11568  				b := dAtA[iNdEx]
 11569  				iNdEx++
 11570  				msglen |= int(b&0x7F) << shift
 11571  				if b < 0x80 {
 11572  					break
 11573  				}
 11574  			}
 11575  			if msglen < 0 {
 11576  				return ErrInvalidLength
 11577  			}
 11578  			postIndex := iNdEx + msglen
 11579  			if postIndex < 0 {
 11580  				return ErrInvalidLength
 11581  			}
 11582  			if postIndex > l {
 11583  				return io.ErrUnexpectedEOF
 11584  			}
 11585  			if m.ImmediateCallerId == nil {
 11586  				m.ImmediateCallerId = &VTGateCallerID{}
 11587  			}
 11588  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11589  				return err
 11590  			}
 11591  			iNdEx = postIndex
 11592  		case 3:
 11593  			if wireType != 2 {
 11594  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 11595  			}
 11596  			var msglen int
 11597  			for shift := uint(0); ; shift += 7 {
 11598  				if shift >= 64 {
 11599  					return ErrIntOverflow
 11600  				}
 11601  				if iNdEx >= l {
 11602  					return io.ErrUnexpectedEOF
 11603  				}
 11604  				b := dAtA[iNdEx]
 11605  				iNdEx++
 11606  				msglen |= int(b&0x7F) << shift
 11607  				if b < 0x80 {
 11608  					break
 11609  				}
 11610  			}
 11611  			if msglen < 0 {
 11612  				return ErrInvalidLength
 11613  			}
 11614  			postIndex := iNdEx + msglen
 11615  			if postIndex < 0 {
 11616  				return ErrInvalidLength
 11617  			}
 11618  			if postIndex > l {
 11619  				return io.ErrUnexpectedEOF
 11620  			}
 11621  			if m.Target == nil {
 11622  				m.Target = &Target{}
 11623  			}
 11624  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11625  				return err
 11626  			}
 11627  			iNdEx = postIndex
 11628  		case 4:
 11629  			if wireType != 2 {
 11630  				return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType)
 11631  			}
 11632  			var stringLen uint64
 11633  			for shift := uint(0); ; shift += 7 {
 11634  				if shift >= 64 {
 11635  					return ErrIntOverflow
 11636  				}
 11637  				if iNdEx >= l {
 11638  					return io.ErrUnexpectedEOF
 11639  				}
 11640  				b := dAtA[iNdEx]
 11641  				iNdEx++
 11642  				stringLen |= uint64(b&0x7F) << shift
 11643  				if b < 0x80 {
 11644  					break
 11645  				}
 11646  			}
 11647  			intStringLen := int(stringLen)
 11648  			if intStringLen < 0 {
 11649  				return ErrInvalidLength
 11650  			}
 11651  			postIndex := iNdEx + intStringLen
 11652  			if postIndex < 0 {
 11653  				return ErrInvalidLength
 11654  			}
 11655  			if postIndex > l {
 11656  				return io.ErrUnexpectedEOF
 11657  			}
 11658  			m.Dtid = string(dAtA[iNdEx:postIndex])
 11659  			iNdEx = postIndex
 11660  		default:
 11661  			iNdEx = preIndex
 11662  			skippy, err := skip(dAtA[iNdEx:])
 11663  			if err != nil {
 11664  				return err
 11665  			}
 11666  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11667  				return ErrInvalidLength
 11668  			}
 11669  			if (iNdEx + skippy) > l {
 11670  				return io.ErrUnexpectedEOF
 11671  			}
 11672  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 11673  			iNdEx += skippy
 11674  		}
 11675  	}
 11676  
 11677  	if iNdEx > l {
 11678  		return io.ErrUnexpectedEOF
 11679  	}
 11680  	return nil
 11681  }
 11682  func (m *ReadTransactionResponse) UnmarshalVT(dAtA []byte) error {
 11683  	l := len(dAtA)
 11684  	iNdEx := 0
 11685  	for iNdEx < l {
 11686  		preIndex := iNdEx
 11687  		var wire uint64
 11688  		for shift := uint(0); ; shift += 7 {
 11689  			if shift >= 64 {
 11690  				return ErrIntOverflow
 11691  			}
 11692  			if iNdEx >= l {
 11693  				return io.ErrUnexpectedEOF
 11694  			}
 11695  			b := dAtA[iNdEx]
 11696  			iNdEx++
 11697  			wire |= uint64(b&0x7F) << shift
 11698  			if b < 0x80 {
 11699  				break
 11700  			}
 11701  		}
 11702  		fieldNum := int32(wire >> 3)
 11703  		wireType := int(wire & 0x7)
 11704  		if wireType == 4 {
 11705  			return fmt.Errorf("proto: ReadTransactionResponse: wiretype end group for non-group")
 11706  		}
 11707  		if fieldNum <= 0 {
 11708  			return fmt.Errorf("proto: ReadTransactionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 11709  		}
 11710  		switch fieldNum {
 11711  		case 1:
 11712  			if wireType != 2 {
 11713  				return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
 11714  			}
 11715  			var msglen int
 11716  			for shift := uint(0); ; shift += 7 {
 11717  				if shift >= 64 {
 11718  					return ErrIntOverflow
 11719  				}
 11720  				if iNdEx >= l {
 11721  					return io.ErrUnexpectedEOF
 11722  				}
 11723  				b := dAtA[iNdEx]
 11724  				iNdEx++
 11725  				msglen |= int(b&0x7F) << shift
 11726  				if b < 0x80 {
 11727  					break
 11728  				}
 11729  			}
 11730  			if msglen < 0 {
 11731  				return ErrInvalidLength
 11732  			}
 11733  			postIndex := iNdEx + msglen
 11734  			if postIndex < 0 {
 11735  				return ErrInvalidLength
 11736  			}
 11737  			if postIndex > l {
 11738  				return io.ErrUnexpectedEOF
 11739  			}
 11740  			if m.Metadata == nil {
 11741  				m.Metadata = &TransactionMetadata{}
 11742  			}
 11743  			if err := m.Metadata.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11744  				return err
 11745  			}
 11746  			iNdEx = postIndex
 11747  		default:
 11748  			iNdEx = preIndex
 11749  			skippy, err := skip(dAtA[iNdEx:])
 11750  			if err != nil {
 11751  				return err
 11752  			}
 11753  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11754  				return ErrInvalidLength
 11755  			}
 11756  			if (iNdEx + skippy) > l {
 11757  				return io.ErrUnexpectedEOF
 11758  			}
 11759  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 11760  			iNdEx += skippy
 11761  		}
 11762  	}
 11763  
 11764  	if iNdEx > l {
 11765  		return io.ErrUnexpectedEOF
 11766  	}
 11767  	return nil
 11768  }
 11769  func (m *BeginExecuteRequest) UnmarshalVT(dAtA []byte) error {
 11770  	l := len(dAtA)
 11771  	iNdEx := 0
 11772  	for iNdEx < l {
 11773  		preIndex := iNdEx
 11774  		var wire uint64
 11775  		for shift := uint(0); ; shift += 7 {
 11776  			if shift >= 64 {
 11777  				return ErrIntOverflow
 11778  			}
 11779  			if iNdEx >= l {
 11780  				return io.ErrUnexpectedEOF
 11781  			}
 11782  			b := dAtA[iNdEx]
 11783  			iNdEx++
 11784  			wire |= uint64(b&0x7F) << shift
 11785  			if b < 0x80 {
 11786  				break
 11787  			}
 11788  		}
 11789  		fieldNum := int32(wire >> 3)
 11790  		wireType := int(wire & 0x7)
 11791  		if wireType == 4 {
 11792  			return fmt.Errorf("proto: BeginExecuteRequest: wiretype end group for non-group")
 11793  		}
 11794  		if fieldNum <= 0 {
 11795  			return fmt.Errorf("proto: BeginExecuteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 11796  		}
 11797  		switch fieldNum {
 11798  		case 1:
 11799  			if wireType != 2 {
 11800  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 11801  			}
 11802  			var msglen int
 11803  			for shift := uint(0); ; shift += 7 {
 11804  				if shift >= 64 {
 11805  					return ErrIntOverflow
 11806  				}
 11807  				if iNdEx >= l {
 11808  					return io.ErrUnexpectedEOF
 11809  				}
 11810  				b := dAtA[iNdEx]
 11811  				iNdEx++
 11812  				msglen |= int(b&0x7F) << shift
 11813  				if b < 0x80 {
 11814  					break
 11815  				}
 11816  			}
 11817  			if msglen < 0 {
 11818  				return ErrInvalidLength
 11819  			}
 11820  			postIndex := iNdEx + msglen
 11821  			if postIndex < 0 {
 11822  				return ErrInvalidLength
 11823  			}
 11824  			if postIndex > l {
 11825  				return io.ErrUnexpectedEOF
 11826  			}
 11827  			if m.EffectiveCallerId == nil {
 11828  				m.EffectiveCallerId = &vtrpc.CallerID{}
 11829  			}
 11830  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11831  				return err
 11832  			}
 11833  			iNdEx = postIndex
 11834  		case 2:
 11835  			if wireType != 2 {
 11836  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 11837  			}
 11838  			var msglen int
 11839  			for shift := uint(0); ; shift += 7 {
 11840  				if shift >= 64 {
 11841  					return ErrIntOverflow
 11842  				}
 11843  				if iNdEx >= l {
 11844  					return io.ErrUnexpectedEOF
 11845  				}
 11846  				b := dAtA[iNdEx]
 11847  				iNdEx++
 11848  				msglen |= int(b&0x7F) << shift
 11849  				if b < 0x80 {
 11850  					break
 11851  				}
 11852  			}
 11853  			if msglen < 0 {
 11854  				return ErrInvalidLength
 11855  			}
 11856  			postIndex := iNdEx + msglen
 11857  			if postIndex < 0 {
 11858  				return ErrInvalidLength
 11859  			}
 11860  			if postIndex > l {
 11861  				return io.ErrUnexpectedEOF
 11862  			}
 11863  			if m.ImmediateCallerId == nil {
 11864  				m.ImmediateCallerId = &VTGateCallerID{}
 11865  			}
 11866  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11867  				return err
 11868  			}
 11869  			iNdEx = postIndex
 11870  		case 3:
 11871  			if wireType != 2 {
 11872  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 11873  			}
 11874  			var msglen int
 11875  			for shift := uint(0); ; shift += 7 {
 11876  				if shift >= 64 {
 11877  					return ErrIntOverflow
 11878  				}
 11879  				if iNdEx >= l {
 11880  					return io.ErrUnexpectedEOF
 11881  				}
 11882  				b := dAtA[iNdEx]
 11883  				iNdEx++
 11884  				msglen |= int(b&0x7F) << shift
 11885  				if b < 0x80 {
 11886  					break
 11887  				}
 11888  			}
 11889  			if msglen < 0 {
 11890  				return ErrInvalidLength
 11891  			}
 11892  			postIndex := iNdEx + msglen
 11893  			if postIndex < 0 {
 11894  				return ErrInvalidLength
 11895  			}
 11896  			if postIndex > l {
 11897  				return io.ErrUnexpectedEOF
 11898  			}
 11899  			if m.Target == nil {
 11900  				m.Target = &Target{}
 11901  			}
 11902  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11903  				return err
 11904  			}
 11905  			iNdEx = postIndex
 11906  		case 4:
 11907  			if wireType != 2 {
 11908  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
 11909  			}
 11910  			var msglen int
 11911  			for shift := uint(0); ; shift += 7 {
 11912  				if shift >= 64 {
 11913  					return ErrIntOverflow
 11914  				}
 11915  				if iNdEx >= l {
 11916  					return io.ErrUnexpectedEOF
 11917  				}
 11918  				b := dAtA[iNdEx]
 11919  				iNdEx++
 11920  				msglen |= int(b&0x7F) << shift
 11921  				if b < 0x80 {
 11922  					break
 11923  				}
 11924  			}
 11925  			if msglen < 0 {
 11926  				return ErrInvalidLength
 11927  			}
 11928  			postIndex := iNdEx + msglen
 11929  			if postIndex < 0 {
 11930  				return ErrInvalidLength
 11931  			}
 11932  			if postIndex > l {
 11933  				return io.ErrUnexpectedEOF
 11934  			}
 11935  			if m.Query == nil {
 11936  				m.Query = &BoundQuery{}
 11937  			}
 11938  			if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11939  				return err
 11940  			}
 11941  			iNdEx = postIndex
 11942  		case 5:
 11943  			if wireType != 2 {
 11944  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
 11945  			}
 11946  			var msglen int
 11947  			for shift := uint(0); ; shift += 7 {
 11948  				if shift >= 64 {
 11949  					return ErrIntOverflow
 11950  				}
 11951  				if iNdEx >= l {
 11952  					return io.ErrUnexpectedEOF
 11953  				}
 11954  				b := dAtA[iNdEx]
 11955  				iNdEx++
 11956  				msglen |= int(b&0x7F) << shift
 11957  				if b < 0x80 {
 11958  					break
 11959  				}
 11960  			}
 11961  			if msglen < 0 {
 11962  				return ErrInvalidLength
 11963  			}
 11964  			postIndex := iNdEx + msglen
 11965  			if postIndex < 0 {
 11966  				return ErrInvalidLength
 11967  			}
 11968  			if postIndex > l {
 11969  				return io.ErrUnexpectedEOF
 11970  			}
 11971  			if m.Options == nil {
 11972  				m.Options = &ExecuteOptions{}
 11973  			}
 11974  			if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 11975  				return err
 11976  			}
 11977  			iNdEx = postIndex
 11978  		case 6:
 11979  			if wireType != 0 {
 11980  				return fmt.Errorf("proto: wrong wireType = %d for field ReservedId", wireType)
 11981  			}
 11982  			m.ReservedId = 0
 11983  			for shift := uint(0); ; shift += 7 {
 11984  				if shift >= 64 {
 11985  					return ErrIntOverflow
 11986  				}
 11987  				if iNdEx >= l {
 11988  					return io.ErrUnexpectedEOF
 11989  				}
 11990  				b := dAtA[iNdEx]
 11991  				iNdEx++
 11992  				m.ReservedId |= int64(b&0x7F) << shift
 11993  				if b < 0x80 {
 11994  					break
 11995  				}
 11996  			}
 11997  		case 7:
 11998  			if wireType != 2 {
 11999  				return fmt.Errorf("proto: wrong wireType = %d for field PreQueries", wireType)
 12000  			}
 12001  			var stringLen uint64
 12002  			for shift := uint(0); ; shift += 7 {
 12003  				if shift >= 64 {
 12004  					return ErrIntOverflow
 12005  				}
 12006  				if iNdEx >= l {
 12007  					return io.ErrUnexpectedEOF
 12008  				}
 12009  				b := dAtA[iNdEx]
 12010  				iNdEx++
 12011  				stringLen |= uint64(b&0x7F) << shift
 12012  				if b < 0x80 {
 12013  					break
 12014  				}
 12015  			}
 12016  			intStringLen := int(stringLen)
 12017  			if intStringLen < 0 {
 12018  				return ErrInvalidLength
 12019  			}
 12020  			postIndex := iNdEx + intStringLen
 12021  			if postIndex < 0 {
 12022  				return ErrInvalidLength
 12023  			}
 12024  			if postIndex > l {
 12025  				return io.ErrUnexpectedEOF
 12026  			}
 12027  			m.PreQueries = append(m.PreQueries, string(dAtA[iNdEx:postIndex]))
 12028  			iNdEx = postIndex
 12029  		default:
 12030  			iNdEx = preIndex
 12031  			skippy, err := skip(dAtA[iNdEx:])
 12032  			if err != nil {
 12033  				return err
 12034  			}
 12035  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12036  				return ErrInvalidLength
 12037  			}
 12038  			if (iNdEx + skippy) > l {
 12039  				return io.ErrUnexpectedEOF
 12040  			}
 12041  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 12042  			iNdEx += skippy
 12043  		}
 12044  	}
 12045  
 12046  	if iNdEx > l {
 12047  		return io.ErrUnexpectedEOF
 12048  	}
 12049  	return nil
 12050  }
 12051  func (m *BeginExecuteResponse) UnmarshalVT(dAtA []byte) error {
 12052  	l := len(dAtA)
 12053  	iNdEx := 0
 12054  	for iNdEx < l {
 12055  		preIndex := iNdEx
 12056  		var wire uint64
 12057  		for shift := uint(0); ; shift += 7 {
 12058  			if shift >= 64 {
 12059  				return ErrIntOverflow
 12060  			}
 12061  			if iNdEx >= l {
 12062  				return io.ErrUnexpectedEOF
 12063  			}
 12064  			b := dAtA[iNdEx]
 12065  			iNdEx++
 12066  			wire |= uint64(b&0x7F) << shift
 12067  			if b < 0x80 {
 12068  				break
 12069  			}
 12070  		}
 12071  		fieldNum := int32(wire >> 3)
 12072  		wireType := int(wire & 0x7)
 12073  		if wireType == 4 {
 12074  			return fmt.Errorf("proto: BeginExecuteResponse: wiretype end group for non-group")
 12075  		}
 12076  		if fieldNum <= 0 {
 12077  			return fmt.Errorf("proto: BeginExecuteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 12078  		}
 12079  		switch fieldNum {
 12080  		case 1:
 12081  			if wireType != 2 {
 12082  				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
 12083  			}
 12084  			var msglen int
 12085  			for shift := uint(0); ; shift += 7 {
 12086  				if shift >= 64 {
 12087  					return ErrIntOverflow
 12088  				}
 12089  				if iNdEx >= l {
 12090  					return io.ErrUnexpectedEOF
 12091  				}
 12092  				b := dAtA[iNdEx]
 12093  				iNdEx++
 12094  				msglen |= int(b&0x7F) << shift
 12095  				if b < 0x80 {
 12096  					break
 12097  				}
 12098  			}
 12099  			if msglen < 0 {
 12100  				return ErrInvalidLength
 12101  			}
 12102  			postIndex := iNdEx + msglen
 12103  			if postIndex < 0 {
 12104  				return ErrInvalidLength
 12105  			}
 12106  			if postIndex > l {
 12107  				return io.ErrUnexpectedEOF
 12108  			}
 12109  			if m.Error == nil {
 12110  				m.Error = &vtrpc.RPCError{}
 12111  			}
 12112  			if err := m.Error.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12113  				return err
 12114  			}
 12115  			iNdEx = postIndex
 12116  		case 2:
 12117  			if wireType != 2 {
 12118  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
 12119  			}
 12120  			var msglen int
 12121  			for shift := uint(0); ; shift += 7 {
 12122  				if shift >= 64 {
 12123  					return ErrIntOverflow
 12124  				}
 12125  				if iNdEx >= l {
 12126  					return io.ErrUnexpectedEOF
 12127  				}
 12128  				b := dAtA[iNdEx]
 12129  				iNdEx++
 12130  				msglen |= int(b&0x7F) << shift
 12131  				if b < 0x80 {
 12132  					break
 12133  				}
 12134  			}
 12135  			if msglen < 0 {
 12136  				return ErrInvalidLength
 12137  			}
 12138  			postIndex := iNdEx + msglen
 12139  			if postIndex < 0 {
 12140  				return ErrInvalidLength
 12141  			}
 12142  			if postIndex > l {
 12143  				return io.ErrUnexpectedEOF
 12144  			}
 12145  			if m.Result == nil {
 12146  				m.Result = &QueryResult{}
 12147  			}
 12148  			if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12149  				return err
 12150  			}
 12151  			iNdEx = postIndex
 12152  		case 3:
 12153  			if wireType != 0 {
 12154  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
 12155  			}
 12156  			m.TransactionId = 0
 12157  			for shift := uint(0); ; shift += 7 {
 12158  				if shift >= 64 {
 12159  					return ErrIntOverflow
 12160  				}
 12161  				if iNdEx >= l {
 12162  					return io.ErrUnexpectedEOF
 12163  				}
 12164  				b := dAtA[iNdEx]
 12165  				iNdEx++
 12166  				m.TransactionId |= int64(b&0x7F) << shift
 12167  				if b < 0x80 {
 12168  					break
 12169  				}
 12170  			}
 12171  		case 4:
 12172  			if wireType != 2 {
 12173  				return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType)
 12174  			}
 12175  			var msglen int
 12176  			for shift := uint(0); ; shift += 7 {
 12177  				if shift >= 64 {
 12178  					return ErrIntOverflow
 12179  				}
 12180  				if iNdEx >= l {
 12181  					return io.ErrUnexpectedEOF
 12182  				}
 12183  				b := dAtA[iNdEx]
 12184  				iNdEx++
 12185  				msglen |= int(b&0x7F) << shift
 12186  				if b < 0x80 {
 12187  					break
 12188  				}
 12189  			}
 12190  			if msglen < 0 {
 12191  				return ErrInvalidLength
 12192  			}
 12193  			postIndex := iNdEx + msglen
 12194  			if postIndex < 0 {
 12195  				return ErrInvalidLength
 12196  			}
 12197  			if postIndex > l {
 12198  				return io.ErrUnexpectedEOF
 12199  			}
 12200  			if m.TabletAlias == nil {
 12201  				m.TabletAlias = &topodata.TabletAlias{}
 12202  			}
 12203  			if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12204  				return err
 12205  			}
 12206  			iNdEx = postIndex
 12207  		case 5:
 12208  			if wireType != 2 {
 12209  				return fmt.Errorf("proto: wrong wireType = %d for field SessionStateChanges", wireType)
 12210  			}
 12211  			var stringLen uint64
 12212  			for shift := uint(0); ; shift += 7 {
 12213  				if shift >= 64 {
 12214  					return ErrIntOverflow
 12215  				}
 12216  				if iNdEx >= l {
 12217  					return io.ErrUnexpectedEOF
 12218  				}
 12219  				b := dAtA[iNdEx]
 12220  				iNdEx++
 12221  				stringLen |= uint64(b&0x7F) << shift
 12222  				if b < 0x80 {
 12223  					break
 12224  				}
 12225  			}
 12226  			intStringLen := int(stringLen)
 12227  			if intStringLen < 0 {
 12228  				return ErrInvalidLength
 12229  			}
 12230  			postIndex := iNdEx + intStringLen
 12231  			if postIndex < 0 {
 12232  				return ErrInvalidLength
 12233  			}
 12234  			if postIndex > l {
 12235  				return io.ErrUnexpectedEOF
 12236  			}
 12237  			m.SessionStateChanges = string(dAtA[iNdEx:postIndex])
 12238  			iNdEx = postIndex
 12239  		default:
 12240  			iNdEx = preIndex
 12241  			skippy, err := skip(dAtA[iNdEx:])
 12242  			if err != nil {
 12243  				return err
 12244  			}
 12245  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12246  				return ErrInvalidLength
 12247  			}
 12248  			if (iNdEx + skippy) > l {
 12249  				return io.ErrUnexpectedEOF
 12250  			}
 12251  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 12252  			iNdEx += skippy
 12253  		}
 12254  	}
 12255  
 12256  	if iNdEx > l {
 12257  		return io.ErrUnexpectedEOF
 12258  	}
 12259  	return nil
 12260  }
 12261  func (m *BeginStreamExecuteRequest) UnmarshalVT(dAtA []byte) error {
 12262  	l := len(dAtA)
 12263  	iNdEx := 0
 12264  	for iNdEx < l {
 12265  		preIndex := iNdEx
 12266  		var wire uint64
 12267  		for shift := uint(0); ; shift += 7 {
 12268  			if shift >= 64 {
 12269  				return ErrIntOverflow
 12270  			}
 12271  			if iNdEx >= l {
 12272  				return io.ErrUnexpectedEOF
 12273  			}
 12274  			b := dAtA[iNdEx]
 12275  			iNdEx++
 12276  			wire |= uint64(b&0x7F) << shift
 12277  			if b < 0x80 {
 12278  				break
 12279  			}
 12280  		}
 12281  		fieldNum := int32(wire >> 3)
 12282  		wireType := int(wire & 0x7)
 12283  		if wireType == 4 {
 12284  			return fmt.Errorf("proto: BeginStreamExecuteRequest: wiretype end group for non-group")
 12285  		}
 12286  		if fieldNum <= 0 {
 12287  			return fmt.Errorf("proto: BeginStreamExecuteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 12288  		}
 12289  		switch fieldNum {
 12290  		case 1:
 12291  			if wireType != 2 {
 12292  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 12293  			}
 12294  			var msglen int
 12295  			for shift := uint(0); ; shift += 7 {
 12296  				if shift >= 64 {
 12297  					return ErrIntOverflow
 12298  				}
 12299  				if iNdEx >= l {
 12300  					return io.ErrUnexpectedEOF
 12301  				}
 12302  				b := dAtA[iNdEx]
 12303  				iNdEx++
 12304  				msglen |= int(b&0x7F) << shift
 12305  				if b < 0x80 {
 12306  					break
 12307  				}
 12308  			}
 12309  			if msglen < 0 {
 12310  				return ErrInvalidLength
 12311  			}
 12312  			postIndex := iNdEx + msglen
 12313  			if postIndex < 0 {
 12314  				return ErrInvalidLength
 12315  			}
 12316  			if postIndex > l {
 12317  				return io.ErrUnexpectedEOF
 12318  			}
 12319  			if m.EffectiveCallerId == nil {
 12320  				m.EffectiveCallerId = &vtrpc.CallerID{}
 12321  			}
 12322  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12323  				return err
 12324  			}
 12325  			iNdEx = postIndex
 12326  		case 2:
 12327  			if wireType != 2 {
 12328  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 12329  			}
 12330  			var msglen int
 12331  			for shift := uint(0); ; shift += 7 {
 12332  				if shift >= 64 {
 12333  					return ErrIntOverflow
 12334  				}
 12335  				if iNdEx >= l {
 12336  					return io.ErrUnexpectedEOF
 12337  				}
 12338  				b := dAtA[iNdEx]
 12339  				iNdEx++
 12340  				msglen |= int(b&0x7F) << shift
 12341  				if b < 0x80 {
 12342  					break
 12343  				}
 12344  			}
 12345  			if msglen < 0 {
 12346  				return ErrInvalidLength
 12347  			}
 12348  			postIndex := iNdEx + msglen
 12349  			if postIndex < 0 {
 12350  				return ErrInvalidLength
 12351  			}
 12352  			if postIndex > l {
 12353  				return io.ErrUnexpectedEOF
 12354  			}
 12355  			if m.ImmediateCallerId == nil {
 12356  				m.ImmediateCallerId = &VTGateCallerID{}
 12357  			}
 12358  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12359  				return err
 12360  			}
 12361  			iNdEx = postIndex
 12362  		case 3:
 12363  			if wireType != 2 {
 12364  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 12365  			}
 12366  			var msglen int
 12367  			for shift := uint(0); ; shift += 7 {
 12368  				if shift >= 64 {
 12369  					return ErrIntOverflow
 12370  				}
 12371  				if iNdEx >= l {
 12372  					return io.ErrUnexpectedEOF
 12373  				}
 12374  				b := dAtA[iNdEx]
 12375  				iNdEx++
 12376  				msglen |= int(b&0x7F) << shift
 12377  				if b < 0x80 {
 12378  					break
 12379  				}
 12380  			}
 12381  			if msglen < 0 {
 12382  				return ErrInvalidLength
 12383  			}
 12384  			postIndex := iNdEx + msglen
 12385  			if postIndex < 0 {
 12386  				return ErrInvalidLength
 12387  			}
 12388  			if postIndex > l {
 12389  				return io.ErrUnexpectedEOF
 12390  			}
 12391  			if m.Target == nil {
 12392  				m.Target = &Target{}
 12393  			}
 12394  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12395  				return err
 12396  			}
 12397  			iNdEx = postIndex
 12398  		case 4:
 12399  			if wireType != 2 {
 12400  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
 12401  			}
 12402  			var msglen int
 12403  			for shift := uint(0); ; shift += 7 {
 12404  				if shift >= 64 {
 12405  					return ErrIntOverflow
 12406  				}
 12407  				if iNdEx >= l {
 12408  					return io.ErrUnexpectedEOF
 12409  				}
 12410  				b := dAtA[iNdEx]
 12411  				iNdEx++
 12412  				msglen |= int(b&0x7F) << shift
 12413  				if b < 0x80 {
 12414  					break
 12415  				}
 12416  			}
 12417  			if msglen < 0 {
 12418  				return ErrInvalidLength
 12419  			}
 12420  			postIndex := iNdEx + msglen
 12421  			if postIndex < 0 {
 12422  				return ErrInvalidLength
 12423  			}
 12424  			if postIndex > l {
 12425  				return io.ErrUnexpectedEOF
 12426  			}
 12427  			if m.Query == nil {
 12428  				m.Query = &BoundQuery{}
 12429  			}
 12430  			if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12431  				return err
 12432  			}
 12433  			iNdEx = postIndex
 12434  		case 5:
 12435  			if wireType != 2 {
 12436  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
 12437  			}
 12438  			var msglen int
 12439  			for shift := uint(0); ; shift += 7 {
 12440  				if shift >= 64 {
 12441  					return ErrIntOverflow
 12442  				}
 12443  				if iNdEx >= l {
 12444  					return io.ErrUnexpectedEOF
 12445  				}
 12446  				b := dAtA[iNdEx]
 12447  				iNdEx++
 12448  				msglen |= int(b&0x7F) << shift
 12449  				if b < 0x80 {
 12450  					break
 12451  				}
 12452  			}
 12453  			if msglen < 0 {
 12454  				return ErrInvalidLength
 12455  			}
 12456  			postIndex := iNdEx + msglen
 12457  			if postIndex < 0 {
 12458  				return ErrInvalidLength
 12459  			}
 12460  			if postIndex > l {
 12461  				return io.ErrUnexpectedEOF
 12462  			}
 12463  			if m.Options == nil {
 12464  				m.Options = &ExecuteOptions{}
 12465  			}
 12466  			if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12467  				return err
 12468  			}
 12469  			iNdEx = postIndex
 12470  		case 6:
 12471  			if wireType != 2 {
 12472  				return fmt.Errorf("proto: wrong wireType = %d for field PreQueries", wireType)
 12473  			}
 12474  			var stringLen uint64
 12475  			for shift := uint(0); ; shift += 7 {
 12476  				if shift >= 64 {
 12477  					return ErrIntOverflow
 12478  				}
 12479  				if iNdEx >= l {
 12480  					return io.ErrUnexpectedEOF
 12481  				}
 12482  				b := dAtA[iNdEx]
 12483  				iNdEx++
 12484  				stringLen |= uint64(b&0x7F) << shift
 12485  				if b < 0x80 {
 12486  					break
 12487  				}
 12488  			}
 12489  			intStringLen := int(stringLen)
 12490  			if intStringLen < 0 {
 12491  				return ErrInvalidLength
 12492  			}
 12493  			postIndex := iNdEx + intStringLen
 12494  			if postIndex < 0 {
 12495  				return ErrInvalidLength
 12496  			}
 12497  			if postIndex > l {
 12498  				return io.ErrUnexpectedEOF
 12499  			}
 12500  			m.PreQueries = append(m.PreQueries, string(dAtA[iNdEx:postIndex]))
 12501  			iNdEx = postIndex
 12502  		case 7:
 12503  			if wireType != 0 {
 12504  				return fmt.Errorf("proto: wrong wireType = %d for field ReservedId", wireType)
 12505  			}
 12506  			m.ReservedId = 0
 12507  			for shift := uint(0); ; shift += 7 {
 12508  				if shift >= 64 {
 12509  					return ErrIntOverflow
 12510  				}
 12511  				if iNdEx >= l {
 12512  					return io.ErrUnexpectedEOF
 12513  				}
 12514  				b := dAtA[iNdEx]
 12515  				iNdEx++
 12516  				m.ReservedId |= int64(b&0x7F) << shift
 12517  				if b < 0x80 {
 12518  					break
 12519  				}
 12520  			}
 12521  		default:
 12522  			iNdEx = preIndex
 12523  			skippy, err := skip(dAtA[iNdEx:])
 12524  			if err != nil {
 12525  				return err
 12526  			}
 12527  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12528  				return ErrInvalidLength
 12529  			}
 12530  			if (iNdEx + skippy) > l {
 12531  				return io.ErrUnexpectedEOF
 12532  			}
 12533  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 12534  			iNdEx += skippy
 12535  		}
 12536  	}
 12537  
 12538  	if iNdEx > l {
 12539  		return io.ErrUnexpectedEOF
 12540  	}
 12541  	return nil
 12542  }
 12543  func (m *BeginStreamExecuteResponse) UnmarshalVT(dAtA []byte) error {
 12544  	l := len(dAtA)
 12545  	iNdEx := 0
 12546  	for iNdEx < l {
 12547  		preIndex := iNdEx
 12548  		var wire uint64
 12549  		for shift := uint(0); ; shift += 7 {
 12550  			if shift >= 64 {
 12551  				return ErrIntOverflow
 12552  			}
 12553  			if iNdEx >= l {
 12554  				return io.ErrUnexpectedEOF
 12555  			}
 12556  			b := dAtA[iNdEx]
 12557  			iNdEx++
 12558  			wire |= uint64(b&0x7F) << shift
 12559  			if b < 0x80 {
 12560  				break
 12561  			}
 12562  		}
 12563  		fieldNum := int32(wire >> 3)
 12564  		wireType := int(wire & 0x7)
 12565  		if wireType == 4 {
 12566  			return fmt.Errorf("proto: BeginStreamExecuteResponse: wiretype end group for non-group")
 12567  		}
 12568  		if fieldNum <= 0 {
 12569  			return fmt.Errorf("proto: BeginStreamExecuteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 12570  		}
 12571  		switch fieldNum {
 12572  		case 1:
 12573  			if wireType != 2 {
 12574  				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
 12575  			}
 12576  			var msglen int
 12577  			for shift := uint(0); ; shift += 7 {
 12578  				if shift >= 64 {
 12579  					return ErrIntOverflow
 12580  				}
 12581  				if iNdEx >= l {
 12582  					return io.ErrUnexpectedEOF
 12583  				}
 12584  				b := dAtA[iNdEx]
 12585  				iNdEx++
 12586  				msglen |= int(b&0x7F) << shift
 12587  				if b < 0x80 {
 12588  					break
 12589  				}
 12590  			}
 12591  			if msglen < 0 {
 12592  				return ErrInvalidLength
 12593  			}
 12594  			postIndex := iNdEx + msglen
 12595  			if postIndex < 0 {
 12596  				return ErrInvalidLength
 12597  			}
 12598  			if postIndex > l {
 12599  				return io.ErrUnexpectedEOF
 12600  			}
 12601  			if m.Error == nil {
 12602  				m.Error = &vtrpc.RPCError{}
 12603  			}
 12604  			if err := m.Error.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12605  				return err
 12606  			}
 12607  			iNdEx = postIndex
 12608  		case 2:
 12609  			if wireType != 2 {
 12610  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
 12611  			}
 12612  			var msglen int
 12613  			for shift := uint(0); ; shift += 7 {
 12614  				if shift >= 64 {
 12615  					return ErrIntOverflow
 12616  				}
 12617  				if iNdEx >= l {
 12618  					return io.ErrUnexpectedEOF
 12619  				}
 12620  				b := dAtA[iNdEx]
 12621  				iNdEx++
 12622  				msglen |= int(b&0x7F) << shift
 12623  				if b < 0x80 {
 12624  					break
 12625  				}
 12626  			}
 12627  			if msglen < 0 {
 12628  				return ErrInvalidLength
 12629  			}
 12630  			postIndex := iNdEx + msglen
 12631  			if postIndex < 0 {
 12632  				return ErrInvalidLength
 12633  			}
 12634  			if postIndex > l {
 12635  				return io.ErrUnexpectedEOF
 12636  			}
 12637  			if m.Result == nil {
 12638  				m.Result = &QueryResult{}
 12639  			}
 12640  			if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12641  				return err
 12642  			}
 12643  			iNdEx = postIndex
 12644  		case 3:
 12645  			if wireType != 0 {
 12646  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
 12647  			}
 12648  			m.TransactionId = 0
 12649  			for shift := uint(0); ; shift += 7 {
 12650  				if shift >= 64 {
 12651  					return ErrIntOverflow
 12652  				}
 12653  				if iNdEx >= l {
 12654  					return io.ErrUnexpectedEOF
 12655  				}
 12656  				b := dAtA[iNdEx]
 12657  				iNdEx++
 12658  				m.TransactionId |= int64(b&0x7F) << shift
 12659  				if b < 0x80 {
 12660  					break
 12661  				}
 12662  			}
 12663  		case 4:
 12664  			if wireType != 2 {
 12665  				return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType)
 12666  			}
 12667  			var msglen int
 12668  			for shift := uint(0); ; shift += 7 {
 12669  				if shift >= 64 {
 12670  					return ErrIntOverflow
 12671  				}
 12672  				if iNdEx >= l {
 12673  					return io.ErrUnexpectedEOF
 12674  				}
 12675  				b := dAtA[iNdEx]
 12676  				iNdEx++
 12677  				msglen |= int(b&0x7F) << shift
 12678  				if b < 0x80 {
 12679  					break
 12680  				}
 12681  			}
 12682  			if msglen < 0 {
 12683  				return ErrInvalidLength
 12684  			}
 12685  			postIndex := iNdEx + msglen
 12686  			if postIndex < 0 {
 12687  				return ErrInvalidLength
 12688  			}
 12689  			if postIndex > l {
 12690  				return io.ErrUnexpectedEOF
 12691  			}
 12692  			if m.TabletAlias == nil {
 12693  				m.TabletAlias = &topodata.TabletAlias{}
 12694  			}
 12695  			if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12696  				return err
 12697  			}
 12698  			iNdEx = postIndex
 12699  		case 5:
 12700  			if wireType != 2 {
 12701  				return fmt.Errorf("proto: wrong wireType = %d for field SessionStateChanges", wireType)
 12702  			}
 12703  			var stringLen uint64
 12704  			for shift := uint(0); ; shift += 7 {
 12705  				if shift >= 64 {
 12706  					return ErrIntOverflow
 12707  				}
 12708  				if iNdEx >= l {
 12709  					return io.ErrUnexpectedEOF
 12710  				}
 12711  				b := dAtA[iNdEx]
 12712  				iNdEx++
 12713  				stringLen |= uint64(b&0x7F) << shift
 12714  				if b < 0x80 {
 12715  					break
 12716  				}
 12717  			}
 12718  			intStringLen := int(stringLen)
 12719  			if intStringLen < 0 {
 12720  				return ErrInvalidLength
 12721  			}
 12722  			postIndex := iNdEx + intStringLen
 12723  			if postIndex < 0 {
 12724  				return ErrInvalidLength
 12725  			}
 12726  			if postIndex > l {
 12727  				return io.ErrUnexpectedEOF
 12728  			}
 12729  			m.SessionStateChanges = string(dAtA[iNdEx:postIndex])
 12730  			iNdEx = postIndex
 12731  		default:
 12732  			iNdEx = preIndex
 12733  			skippy, err := skip(dAtA[iNdEx:])
 12734  			if err != nil {
 12735  				return err
 12736  			}
 12737  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12738  				return ErrInvalidLength
 12739  			}
 12740  			if (iNdEx + skippy) > l {
 12741  				return io.ErrUnexpectedEOF
 12742  			}
 12743  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 12744  			iNdEx += skippy
 12745  		}
 12746  	}
 12747  
 12748  	if iNdEx > l {
 12749  		return io.ErrUnexpectedEOF
 12750  	}
 12751  	return nil
 12752  }
 12753  func (m *MessageStreamRequest) UnmarshalVT(dAtA []byte) error {
 12754  	l := len(dAtA)
 12755  	iNdEx := 0
 12756  	for iNdEx < l {
 12757  		preIndex := iNdEx
 12758  		var wire uint64
 12759  		for shift := uint(0); ; shift += 7 {
 12760  			if shift >= 64 {
 12761  				return ErrIntOverflow
 12762  			}
 12763  			if iNdEx >= l {
 12764  				return io.ErrUnexpectedEOF
 12765  			}
 12766  			b := dAtA[iNdEx]
 12767  			iNdEx++
 12768  			wire |= uint64(b&0x7F) << shift
 12769  			if b < 0x80 {
 12770  				break
 12771  			}
 12772  		}
 12773  		fieldNum := int32(wire >> 3)
 12774  		wireType := int(wire & 0x7)
 12775  		if wireType == 4 {
 12776  			return fmt.Errorf("proto: MessageStreamRequest: wiretype end group for non-group")
 12777  		}
 12778  		if fieldNum <= 0 {
 12779  			return fmt.Errorf("proto: MessageStreamRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 12780  		}
 12781  		switch fieldNum {
 12782  		case 1:
 12783  			if wireType != 2 {
 12784  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 12785  			}
 12786  			var msglen int
 12787  			for shift := uint(0); ; shift += 7 {
 12788  				if shift >= 64 {
 12789  					return ErrIntOverflow
 12790  				}
 12791  				if iNdEx >= l {
 12792  					return io.ErrUnexpectedEOF
 12793  				}
 12794  				b := dAtA[iNdEx]
 12795  				iNdEx++
 12796  				msglen |= int(b&0x7F) << shift
 12797  				if b < 0x80 {
 12798  					break
 12799  				}
 12800  			}
 12801  			if msglen < 0 {
 12802  				return ErrInvalidLength
 12803  			}
 12804  			postIndex := iNdEx + msglen
 12805  			if postIndex < 0 {
 12806  				return ErrInvalidLength
 12807  			}
 12808  			if postIndex > l {
 12809  				return io.ErrUnexpectedEOF
 12810  			}
 12811  			if m.EffectiveCallerId == nil {
 12812  				m.EffectiveCallerId = &vtrpc.CallerID{}
 12813  			}
 12814  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12815  				return err
 12816  			}
 12817  			iNdEx = postIndex
 12818  		case 2:
 12819  			if wireType != 2 {
 12820  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 12821  			}
 12822  			var msglen int
 12823  			for shift := uint(0); ; shift += 7 {
 12824  				if shift >= 64 {
 12825  					return ErrIntOverflow
 12826  				}
 12827  				if iNdEx >= l {
 12828  					return io.ErrUnexpectedEOF
 12829  				}
 12830  				b := dAtA[iNdEx]
 12831  				iNdEx++
 12832  				msglen |= int(b&0x7F) << shift
 12833  				if b < 0x80 {
 12834  					break
 12835  				}
 12836  			}
 12837  			if msglen < 0 {
 12838  				return ErrInvalidLength
 12839  			}
 12840  			postIndex := iNdEx + msglen
 12841  			if postIndex < 0 {
 12842  				return ErrInvalidLength
 12843  			}
 12844  			if postIndex > l {
 12845  				return io.ErrUnexpectedEOF
 12846  			}
 12847  			if m.ImmediateCallerId == nil {
 12848  				m.ImmediateCallerId = &VTGateCallerID{}
 12849  			}
 12850  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12851  				return err
 12852  			}
 12853  			iNdEx = postIndex
 12854  		case 3:
 12855  			if wireType != 2 {
 12856  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 12857  			}
 12858  			var msglen int
 12859  			for shift := uint(0); ; shift += 7 {
 12860  				if shift >= 64 {
 12861  					return ErrIntOverflow
 12862  				}
 12863  				if iNdEx >= l {
 12864  					return io.ErrUnexpectedEOF
 12865  				}
 12866  				b := dAtA[iNdEx]
 12867  				iNdEx++
 12868  				msglen |= int(b&0x7F) << shift
 12869  				if b < 0x80 {
 12870  					break
 12871  				}
 12872  			}
 12873  			if msglen < 0 {
 12874  				return ErrInvalidLength
 12875  			}
 12876  			postIndex := iNdEx + msglen
 12877  			if postIndex < 0 {
 12878  				return ErrInvalidLength
 12879  			}
 12880  			if postIndex > l {
 12881  				return io.ErrUnexpectedEOF
 12882  			}
 12883  			if m.Target == nil {
 12884  				m.Target = &Target{}
 12885  			}
 12886  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 12887  				return err
 12888  			}
 12889  			iNdEx = postIndex
 12890  		case 4:
 12891  			if wireType != 2 {
 12892  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
 12893  			}
 12894  			var stringLen uint64
 12895  			for shift := uint(0); ; shift += 7 {
 12896  				if shift >= 64 {
 12897  					return ErrIntOverflow
 12898  				}
 12899  				if iNdEx >= l {
 12900  					return io.ErrUnexpectedEOF
 12901  				}
 12902  				b := dAtA[iNdEx]
 12903  				iNdEx++
 12904  				stringLen |= uint64(b&0x7F) << shift
 12905  				if b < 0x80 {
 12906  					break
 12907  				}
 12908  			}
 12909  			intStringLen := int(stringLen)
 12910  			if intStringLen < 0 {
 12911  				return ErrInvalidLength
 12912  			}
 12913  			postIndex := iNdEx + intStringLen
 12914  			if postIndex < 0 {
 12915  				return ErrInvalidLength
 12916  			}
 12917  			if postIndex > l {
 12918  				return io.ErrUnexpectedEOF
 12919  			}
 12920  			m.Name = string(dAtA[iNdEx:postIndex])
 12921  			iNdEx = postIndex
 12922  		default:
 12923  			iNdEx = preIndex
 12924  			skippy, err := skip(dAtA[iNdEx:])
 12925  			if err != nil {
 12926  				return err
 12927  			}
 12928  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12929  				return ErrInvalidLength
 12930  			}
 12931  			if (iNdEx + skippy) > l {
 12932  				return io.ErrUnexpectedEOF
 12933  			}
 12934  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 12935  			iNdEx += skippy
 12936  		}
 12937  	}
 12938  
 12939  	if iNdEx > l {
 12940  		return io.ErrUnexpectedEOF
 12941  	}
 12942  	return nil
 12943  }
 12944  func (m *MessageStreamResponse) UnmarshalVT(dAtA []byte) error {
 12945  	l := len(dAtA)
 12946  	iNdEx := 0
 12947  	for iNdEx < l {
 12948  		preIndex := iNdEx
 12949  		var wire uint64
 12950  		for shift := uint(0); ; shift += 7 {
 12951  			if shift >= 64 {
 12952  				return ErrIntOverflow
 12953  			}
 12954  			if iNdEx >= l {
 12955  				return io.ErrUnexpectedEOF
 12956  			}
 12957  			b := dAtA[iNdEx]
 12958  			iNdEx++
 12959  			wire |= uint64(b&0x7F) << shift
 12960  			if b < 0x80 {
 12961  				break
 12962  			}
 12963  		}
 12964  		fieldNum := int32(wire >> 3)
 12965  		wireType := int(wire & 0x7)
 12966  		if wireType == 4 {
 12967  			return fmt.Errorf("proto: MessageStreamResponse: wiretype end group for non-group")
 12968  		}
 12969  		if fieldNum <= 0 {
 12970  			return fmt.Errorf("proto: MessageStreamResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 12971  		}
 12972  		switch fieldNum {
 12973  		case 1:
 12974  			if wireType != 2 {
 12975  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
 12976  			}
 12977  			var msglen int
 12978  			for shift := uint(0); ; shift += 7 {
 12979  				if shift >= 64 {
 12980  					return ErrIntOverflow
 12981  				}
 12982  				if iNdEx >= l {
 12983  					return io.ErrUnexpectedEOF
 12984  				}
 12985  				b := dAtA[iNdEx]
 12986  				iNdEx++
 12987  				msglen |= int(b&0x7F) << shift
 12988  				if b < 0x80 {
 12989  					break
 12990  				}
 12991  			}
 12992  			if msglen < 0 {
 12993  				return ErrInvalidLength
 12994  			}
 12995  			postIndex := iNdEx + msglen
 12996  			if postIndex < 0 {
 12997  				return ErrInvalidLength
 12998  			}
 12999  			if postIndex > l {
 13000  				return io.ErrUnexpectedEOF
 13001  			}
 13002  			if m.Result == nil {
 13003  				m.Result = &QueryResult{}
 13004  			}
 13005  			if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13006  				return err
 13007  			}
 13008  			iNdEx = postIndex
 13009  		default:
 13010  			iNdEx = preIndex
 13011  			skippy, err := skip(dAtA[iNdEx:])
 13012  			if err != nil {
 13013  				return err
 13014  			}
 13015  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13016  				return ErrInvalidLength
 13017  			}
 13018  			if (iNdEx + skippy) > l {
 13019  				return io.ErrUnexpectedEOF
 13020  			}
 13021  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 13022  			iNdEx += skippy
 13023  		}
 13024  	}
 13025  
 13026  	if iNdEx > l {
 13027  		return io.ErrUnexpectedEOF
 13028  	}
 13029  	return nil
 13030  }
 13031  func (m *MessageAckRequest) UnmarshalVT(dAtA []byte) error {
 13032  	l := len(dAtA)
 13033  	iNdEx := 0
 13034  	for iNdEx < l {
 13035  		preIndex := iNdEx
 13036  		var wire uint64
 13037  		for shift := uint(0); ; shift += 7 {
 13038  			if shift >= 64 {
 13039  				return ErrIntOverflow
 13040  			}
 13041  			if iNdEx >= l {
 13042  				return io.ErrUnexpectedEOF
 13043  			}
 13044  			b := dAtA[iNdEx]
 13045  			iNdEx++
 13046  			wire |= uint64(b&0x7F) << shift
 13047  			if b < 0x80 {
 13048  				break
 13049  			}
 13050  		}
 13051  		fieldNum := int32(wire >> 3)
 13052  		wireType := int(wire & 0x7)
 13053  		if wireType == 4 {
 13054  			return fmt.Errorf("proto: MessageAckRequest: wiretype end group for non-group")
 13055  		}
 13056  		if fieldNum <= 0 {
 13057  			return fmt.Errorf("proto: MessageAckRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 13058  		}
 13059  		switch fieldNum {
 13060  		case 1:
 13061  			if wireType != 2 {
 13062  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 13063  			}
 13064  			var msglen int
 13065  			for shift := uint(0); ; shift += 7 {
 13066  				if shift >= 64 {
 13067  					return ErrIntOverflow
 13068  				}
 13069  				if iNdEx >= l {
 13070  					return io.ErrUnexpectedEOF
 13071  				}
 13072  				b := dAtA[iNdEx]
 13073  				iNdEx++
 13074  				msglen |= int(b&0x7F) << shift
 13075  				if b < 0x80 {
 13076  					break
 13077  				}
 13078  			}
 13079  			if msglen < 0 {
 13080  				return ErrInvalidLength
 13081  			}
 13082  			postIndex := iNdEx + msglen
 13083  			if postIndex < 0 {
 13084  				return ErrInvalidLength
 13085  			}
 13086  			if postIndex > l {
 13087  				return io.ErrUnexpectedEOF
 13088  			}
 13089  			if m.EffectiveCallerId == nil {
 13090  				m.EffectiveCallerId = &vtrpc.CallerID{}
 13091  			}
 13092  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13093  				return err
 13094  			}
 13095  			iNdEx = postIndex
 13096  		case 2:
 13097  			if wireType != 2 {
 13098  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 13099  			}
 13100  			var msglen int
 13101  			for shift := uint(0); ; shift += 7 {
 13102  				if shift >= 64 {
 13103  					return ErrIntOverflow
 13104  				}
 13105  				if iNdEx >= l {
 13106  					return io.ErrUnexpectedEOF
 13107  				}
 13108  				b := dAtA[iNdEx]
 13109  				iNdEx++
 13110  				msglen |= int(b&0x7F) << shift
 13111  				if b < 0x80 {
 13112  					break
 13113  				}
 13114  			}
 13115  			if msglen < 0 {
 13116  				return ErrInvalidLength
 13117  			}
 13118  			postIndex := iNdEx + msglen
 13119  			if postIndex < 0 {
 13120  				return ErrInvalidLength
 13121  			}
 13122  			if postIndex > l {
 13123  				return io.ErrUnexpectedEOF
 13124  			}
 13125  			if m.ImmediateCallerId == nil {
 13126  				m.ImmediateCallerId = &VTGateCallerID{}
 13127  			}
 13128  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13129  				return err
 13130  			}
 13131  			iNdEx = postIndex
 13132  		case 3:
 13133  			if wireType != 2 {
 13134  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 13135  			}
 13136  			var msglen int
 13137  			for shift := uint(0); ; shift += 7 {
 13138  				if shift >= 64 {
 13139  					return ErrIntOverflow
 13140  				}
 13141  				if iNdEx >= l {
 13142  					return io.ErrUnexpectedEOF
 13143  				}
 13144  				b := dAtA[iNdEx]
 13145  				iNdEx++
 13146  				msglen |= int(b&0x7F) << shift
 13147  				if b < 0x80 {
 13148  					break
 13149  				}
 13150  			}
 13151  			if msglen < 0 {
 13152  				return ErrInvalidLength
 13153  			}
 13154  			postIndex := iNdEx + msglen
 13155  			if postIndex < 0 {
 13156  				return ErrInvalidLength
 13157  			}
 13158  			if postIndex > l {
 13159  				return io.ErrUnexpectedEOF
 13160  			}
 13161  			if m.Target == nil {
 13162  				m.Target = &Target{}
 13163  			}
 13164  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13165  				return err
 13166  			}
 13167  			iNdEx = postIndex
 13168  		case 4:
 13169  			if wireType != 2 {
 13170  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
 13171  			}
 13172  			var stringLen uint64
 13173  			for shift := uint(0); ; shift += 7 {
 13174  				if shift >= 64 {
 13175  					return ErrIntOverflow
 13176  				}
 13177  				if iNdEx >= l {
 13178  					return io.ErrUnexpectedEOF
 13179  				}
 13180  				b := dAtA[iNdEx]
 13181  				iNdEx++
 13182  				stringLen |= uint64(b&0x7F) << shift
 13183  				if b < 0x80 {
 13184  					break
 13185  				}
 13186  			}
 13187  			intStringLen := int(stringLen)
 13188  			if intStringLen < 0 {
 13189  				return ErrInvalidLength
 13190  			}
 13191  			postIndex := iNdEx + intStringLen
 13192  			if postIndex < 0 {
 13193  				return ErrInvalidLength
 13194  			}
 13195  			if postIndex > l {
 13196  				return io.ErrUnexpectedEOF
 13197  			}
 13198  			m.Name = string(dAtA[iNdEx:postIndex])
 13199  			iNdEx = postIndex
 13200  		case 5:
 13201  			if wireType != 2 {
 13202  				return fmt.Errorf("proto: wrong wireType = %d for field Ids", wireType)
 13203  			}
 13204  			var msglen int
 13205  			for shift := uint(0); ; shift += 7 {
 13206  				if shift >= 64 {
 13207  					return ErrIntOverflow
 13208  				}
 13209  				if iNdEx >= l {
 13210  					return io.ErrUnexpectedEOF
 13211  				}
 13212  				b := dAtA[iNdEx]
 13213  				iNdEx++
 13214  				msglen |= int(b&0x7F) << shift
 13215  				if b < 0x80 {
 13216  					break
 13217  				}
 13218  			}
 13219  			if msglen < 0 {
 13220  				return ErrInvalidLength
 13221  			}
 13222  			postIndex := iNdEx + msglen
 13223  			if postIndex < 0 {
 13224  				return ErrInvalidLength
 13225  			}
 13226  			if postIndex > l {
 13227  				return io.ErrUnexpectedEOF
 13228  			}
 13229  			m.Ids = append(m.Ids, &Value{})
 13230  			if err := m.Ids[len(m.Ids)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13231  				return err
 13232  			}
 13233  			iNdEx = postIndex
 13234  		default:
 13235  			iNdEx = preIndex
 13236  			skippy, err := skip(dAtA[iNdEx:])
 13237  			if err != nil {
 13238  				return err
 13239  			}
 13240  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13241  				return ErrInvalidLength
 13242  			}
 13243  			if (iNdEx + skippy) > l {
 13244  				return io.ErrUnexpectedEOF
 13245  			}
 13246  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 13247  			iNdEx += skippy
 13248  		}
 13249  	}
 13250  
 13251  	if iNdEx > l {
 13252  		return io.ErrUnexpectedEOF
 13253  	}
 13254  	return nil
 13255  }
 13256  func (m *MessageAckResponse) UnmarshalVT(dAtA []byte) error {
 13257  	l := len(dAtA)
 13258  	iNdEx := 0
 13259  	for iNdEx < l {
 13260  		preIndex := iNdEx
 13261  		var wire uint64
 13262  		for shift := uint(0); ; shift += 7 {
 13263  			if shift >= 64 {
 13264  				return ErrIntOverflow
 13265  			}
 13266  			if iNdEx >= l {
 13267  				return io.ErrUnexpectedEOF
 13268  			}
 13269  			b := dAtA[iNdEx]
 13270  			iNdEx++
 13271  			wire |= uint64(b&0x7F) << shift
 13272  			if b < 0x80 {
 13273  				break
 13274  			}
 13275  		}
 13276  		fieldNum := int32(wire >> 3)
 13277  		wireType := int(wire & 0x7)
 13278  		if wireType == 4 {
 13279  			return fmt.Errorf("proto: MessageAckResponse: wiretype end group for non-group")
 13280  		}
 13281  		if fieldNum <= 0 {
 13282  			return fmt.Errorf("proto: MessageAckResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 13283  		}
 13284  		switch fieldNum {
 13285  		case 1:
 13286  			if wireType != 2 {
 13287  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
 13288  			}
 13289  			var msglen int
 13290  			for shift := uint(0); ; shift += 7 {
 13291  				if shift >= 64 {
 13292  					return ErrIntOverflow
 13293  				}
 13294  				if iNdEx >= l {
 13295  					return io.ErrUnexpectedEOF
 13296  				}
 13297  				b := dAtA[iNdEx]
 13298  				iNdEx++
 13299  				msglen |= int(b&0x7F) << shift
 13300  				if b < 0x80 {
 13301  					break
 13302  				}
 13303  			}
 13304  			if msglen < 0 {
 13305  				return ErrInvalidLength
 13306  			}
 13307  			postIndex := iNdEx + msglen
 13308  			if postIndex < 0 {
 13309  				return ErrInvalidLength
 13310  			}
 13311  			if postIndex > l {
 13312  				return io.ErrUnexpectedEOF
 13313  			}
 13314  			if m.Result == nil {
 13315  				m.Result = &QueryResult{}
 13316  			}
 13317  			if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13318  				return err
 13319  			}
 13320  			iNdEx = postIndex
 13321  		default:
 13322  			iNdEx = preIndex
 13323  			skippy, err := skip(dAtA[iNdEx:])
 13324  			if err != nil {
 13325  				return err
 13326  			}
 13327  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13328  				return ErrInvalidLength
 13329  			}
 13330  			if (iNdEx + skippy) > l {
 13331  				return io.ErrUnexpectedEOF
 13332  			}
 13333  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 13334  			iNdEx += skippy
 13335  		}
 13336  	}
 13337  
 13338  	if iNdEx > l {
 13339  		return io.ErrUnexpectedEOF
 13340  	}
 13341  	return nil
 13342  }
 13343  func (m *ReserveExecuteRequest) UnmarshalVT(dAtA []byte) error {
 13344  	l := len(dAtA)
 13345  	iNdEx := 0
 13346  	for iNdEx < l {
 13347  		preIndex := iNdEx
 13348  		var wire uint64
 13349  		for shift := uint(0); ; shift += 7 {
 13350  			if shift >= 64 {
 13351  				return ErrIntOverflow
 13352  			}
 13353  			if iNdEx >= l {
 13354  				return io.ErrUnexpectedEOF
 13355  			}
 13356  			b := dAtA[iNdEx]
 13357  			iNdEx++
 13358  			wire |= uint64(b&0x7F) << shift
 13359  			if b < 0x80 {
 13360  				break
 13361  			}
 13362  		}
 13363  		fieldNum := int32(wire >> 3)
 13364  		wireType := int(wire & 0x7)
 13365  		if wireType == 4 {
 13366  			return fmt.Errorf("proto: ReserveExecuteRequest: wiretype end group for non-group")
 13367  		}
 13368  		if fieldNum <= 0 {
 13369  			return fmt.Errorf("proto: ReserveExecuteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 13370  		}
 13371  		switch fieldNum {
 13372  		case 1:
 13373  			if wireType != 2 {
 13374  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 13375  			}
 13376  			var msglen int
 13377  			for shift := uint(0); ; shift += 7 {
 13378  				if shift >= 64 {
 13379  					return ErrIntOverflow
 13380  				}
 13381  				if iNdEx >= l {
 13382  					return io.ErrUnexpectedEOF
 13383  				}
 13384  				b := dAtA[iNdEx]
 13385  				iNdEx++
 13386  				msglen |= int(b&0x7F) << shift
 13387  				if b < 0x80 {
 13388  					break
 13389  				}
 13390  			}
 13391  			if msglen < 0 {
 13392  				return ErrInvalidLength
 13393  			}
 13394  			postIndex := iNdEx + msglen
 13395  			if postIndex < 0 {
 13396  				return ErrInvalidLength
 13397  			}
 13398  			if postIndex > l {
 13399  				return io.ErrUnexpectedEOF
 13400  			}
 13401  			if m.EffectiveCallerId == nil {
 13402  				m.EffectiveCallerId = &vtrpc.CallerID{}
 13403  			}
 13404  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13405  				return err
 13406  			}
 13407  			iNdEx = postIndex
 13408  		case 2:
 13409  			if wireType != 2 {
 13410  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 13411  			}
 13412  			var msglen int
 13413  			for shift := uint(0); ; shift += 7 {
 13414  				if shift >= 64 {
 13415  					return ErrIntOverflow
 13416  				}
 13417  				if iNdEx >= l {
 13418  					return io.ErrUnexpectedEOF
 13419  				}
 13420  				b := dAtA[iNdEx]
 13421  				iNdEx++
 13422  				msglen |= int(b&0x7F) << shift
 13423  				if b < 0x80 {
 13424  					break
 13425  				}
 13426  			}
 13427  			if msglen < 0 {
 13428  				return ErrInvalidLength
 13429  			}
 13430  			postIndex := iNdEx + msglen
 13431  			if postIndex < 0 {
 13432  				return ErrInvalidLength
 13433  			}
 13434  			if postIndex > l {
 13435  				return io.ErrUnexpectedEOF
 13436  			}
 13437  			if m.ImmediateCallerId == nil {
 13438  				m.ImmediateCallerId = &VTGateCallerID{}
 13439  			}
 13440  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13441  				return err
 13442  			}
 13443  			iNdEx = postIndex
 13444  		case 3:
 13445  			if wireType != 2 {
 13446  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 13447  			}
 13448  			var msglen int
 13449  			for shift := uint(0); ; shift += 7 {
 13450  				if shift >= 64 {
 13451  					return ErrIntOverflow
 13452  				}
 13453  				if iNdEx >= l {
 13454  					return io.ErrUnexpectedEOF
 13455  				}
 13456  				b := dAtA[iNdEx]
 13457  				iNdEx++
 13458  				msglen |= int(b&0x7F) << shift
 13459  				if b < 0x80 {
 13460  					break
 13461  				}
 13462  			}
 13463  			if msglen < 0 {
 13464  				return ErrInvalidLength
 13465  			}
 13466  			postIndex := iNdEx + msglen
 13467  			if postIndex < 0 {
 13468  				return ErrInvalidLength
 13469  			}
 13470  			if postIndex > l {
 13471  				return io.ErrUnexpectedEOF
 13472  			}
 13473  			if m.Target == nil {
 13474  				m.Target = &Target{}
 13475  			}
 13476  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13477  				return err
 13478  			}
 13479  			iNdEx = postIndex
 13480  		case 4:
 13481  			if wireType != 2 {
 13482  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
 13483  			}
 13484  			var msglen int
 13485  			for shift := uint(0); ; shift += 7 {
 13486  				if shift >= 64 {
 13487  					return ErrIntOverflow
 13488  				}
 13489  				if iNdEx >= l {
 13490  					return io.ErrUnexpectedEOF
 13491  				}
 13492  				b := dAtA[iNdEx]
 13493  				iNdEx++
 13494  				msglen |= int(b&0x7F) << shift
 13495  				if b < 0x80 {
 13496  					break
 13497  				}
 13498  			}
 13499  			if msglen < 0 {
 13500  				return ErrInvalidLength
 13501  			}
 13502  			postIndex := iNdEx + msglen
 13503  			if postIndex < 0 {
 13504  				return ErrInvalidLength
 13505  			}
 13506  			if postIndex > l {
 13507  				return io.ErrUnexpectedEOF
 13508  			}
 13509  			if m.Query == nil {
 13510  				m.Query = &BoundQuery{}
 13511  			}
 13512  			if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13513  				return err
 13514  			}
 13515  			iNdEx = postIndex
 13516  		case 5:
 13517  			if wireType != 0 {
 13518  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
 13519  			}
 13520  			m.TransactionId = 0
 13521  			for shift := uint(0); ; shift += 7 {
 13522  				if shift >= 64 {
 13523  					return ErrIntOverflow
 13524  				}
 13525  				if iNdEx >= l {
 13526  					return io.ErrUnexpectedEOF
 13527  				}
 13528  				b := dAtA[iNdEx]
 13529  				iNdEx++
 13530  				m.TransactionId |= int64(b&0x7F) << shift
 13531  				if b < 0x80 {
 13532  					break
 13533  				}
 13534  			}
 13535  		case 6:
 13536  			if wireType != 2 {
 13537  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
 13538  			}
 13539  			var msglen int
 13540  			for shift := uint(0); ; shift += 7 {
 13541  				if shift >= 64 {
 13542  					return ErrIntOverflow
 13543  				}
 13544  				if iNdEx >= l {
 13545  					return io.ErrUnexpectedEOF
 13546  				}
 13547  				b := dAtA[iNdEx]
 13548  				iNdEx++
 13549  				msglen |= int(b&0x7F) << shift
 13550  				if b < 0x80 {
 13551  					break
 13552  				}
 13553  			}
 13554  			if msglen < 0 {
 13555  				return ErrInvalidLength
 13556  			}
 13557  			postIndex := iNdEx + msglen
 13558  			if postIndex < 0 {
 13559  				return ErrInvalidLength
 13560  			}
 13561  			if postIndex > l {
 13562  				return io.ErrUnexpectedEOF
 13563  			}
 13564  			if m.Options == nil {
 13565  				m.Options = &ExecuteOptions{}
 13566  			}
 13567  			if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13568  				return err
 13569  			}
 13570  			iNdEx = postIndex
 13571  		case 7:
 13572  			if wireType != 2 {
 13573  				return fmt.Errorf("proto: wrong wireType = %d for field PreQueries", wireType)
 13574  			}
 13575  			var stringLen uint64
 13576  			for shift := uint(0); ; shift += 7 {
 13577  				if shift >= 64 {
 13578  					return ErrIntOverflow
 13579  				}
 13580  				if iNdEx >= l {
 13581  					return io.ErrUnexpectedEOF
 13582  				}
 13583  				b := dAtA[iNdEx]
 13584  				iNdEx++
 13585  				stringLen |= uint64(b&0x7F) << shift
 13586  				if b < 0x80 {
 13587  					break
 13588  				}
 13589  			}
 13590  			intStringLen := int(stringLen)
 13591  			if intStringLen < 0 {
 13592  				return ErrInvalidLength
 13593  			}
 13594  			postIndex := iNdEx + intStringLen
 13595  			if postIndex < 0 {
 13596  				return ErrInvalidLength
 13597  			}
 13598  			if postIndex > l {
 13599  				return io.ErrUnexpectedEOF
 13600  			}
 13601  			m.PreQueries = append(m.PreQueries, string(dAtA[iNdEx:postIndex]))
 13602  			iNdEx = postIndex
 13603  		default:
 13604  			iNdEx = preIndex
 13605  			skippy, err := skip(dAtA[iNdEx:])
 13606  			if err != nil {
 13607  				return err
 13608  			}
 13609  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13610  				return ErrInvalidLength
 13611  			}
 13612  			if (iNdEx + skippy) > l {
 13613  				return io.ErrUnexpectedEOF
 13614  			}
 13615  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 13616  			iNdEx += skippy
 13617  		}
 13618  	}
 13619  
 13620  	if iNdEx > l {
 13621  		return io.ErrUnexpectedEOF
 13622  	}
 13623  	return nil
 13624  }
 13625  func (m *ReserveExecuteResponse) UnmarshalVT(dAtA []byte) error {
 13626  	l := len(dAtA)
 13627  	iNdEx := 0
 13628  	for iNdEx < l {
 13629  		preIndex := iNdEx
 13630  		var wire uint64
 13631  		for shift := uint(0); ; shift += 7 {
 13632  			if shift >= 64 {
 13633  				return ErrIntOverflow
 13634  			}
 13635  			if iNdEx >= l {
 13636  				return io.ErrUnexpectedEOF
 13637  			}
 13638  			b := dAtA[iNdEx]
 13639  			iNdEx++
 13640  			wire |= uint64(b&0x7F) << shift
 13641  			if b < 0x80 {
 13642  				break
 13643  			}
 13644  		}
 13645  		fieldNum := int32(wire >> 3)
 13646  		wireType := int(wire & 0x7)
 13647  		if wireType == 4 {
 13648  			return fmt.Errorf("proto: ReserveExecuteResponse: wiretype end group for non-group")
 13649  		}
 13650  		if fieldNum <= 0 {
 13651  			return fmt.Errorf("proto: ReserveExecuteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 13652  		}
 13653  		switch fieldNum {
 13654  		case 1:
 13655  			if wireType != 2 {
 13656  				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
 13657  			}
 13658  			var msglen int
 13659  			for shift := uint(0); ; shift += 7 {
 13660  				if shift >= 64 {
 13661  					return ErrIntOverflow
 13662  				}
 13663  				if iNdEx >= l {
 13664  					return io.ErrUnexpectedEOF
 13665  				}
 13666  				b := dAtA[iNdEx]
 13667  				iNdEx++
 13668  				msglen |= int(b&0x7F) << shift
 13669  				if b < 0x80 {
 13670  					break
 13671  				}
 13672  			}
 13673  			if msglen < 0 {
 13674  				return ErrInvalidLength
 13675  			}
 13676  			postIndex := iNdEx + msglen
 13677  			if postIndex < 0 {
 13678  				return ErrInvalidLength
 13679  			}
 13680  			if postIndex > l {
 13681  				return io.ErrUnexpectedEOF
 13682  			}
 13683  			if m.Error == nil {
 13684  				m.Error = &vtrpc.RPCError{}
 13685  			}
 13686  			if err := m.Error.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13687  				return err
 13688  			}
 13689  			iNdEx = postIndex
 13690  		case 2:
 13691  			if wireType != 2 {
 13692  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
 13693  			}
 13694  			var msglen int
 13695  			for shift := uint(0); ; shift += 7 {
 13696  				if shift >= 64 {
 13697  					return ErrIntOverflow
 13698  				}
 13699  				if iNdEx >= l {
 13700  					return io.ErrUnexpectedEOF
 13701  				}
 13702  				b := dAtA[iNdEx]
 13703  				iNdEx++
 13704  				msglen |= int(b&0x7F) << shift
 13705  				if b < 0x80 {
 13706  					break
 13707  				}
 13708  			}
 13709  			if msglen < 0 {
 13710  				return ErrInvalidLength
 13711  			}
 13712  			postIndex := iNdEx + msglen
 13713  			if postIndex < 0 {
 13714  				return ErrInvalidLength
 13715  			}
 13716  			if postIndex > l {
 13717  				return io.ErrUnexpectedEOF
 13718  			}
 13719  			if m.Result == nil {
 13720  				m.Result = &QueryResult{}
 13721  			}
 13722  			if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13723  				return err
 13724  			}
 13725  			iNdEx = postIndex
 13726  		case 3:
 13727  			if wireType != 0 {
 13728  				return fmt.Errorf("proto: wrong wireType = %d for field ReservedId", wireType)
 13729  			}
 13730  			m.ReservedId = 0
 13731  			for shift := uint(0); ; shift += 7 {
 13732  				if shift >= 64 {
 13733  					return ErrIntOverflow
 13734  				}
 13735  				if iNdEx >= l {
 13736  					return io.ErrUnexpectedEOF
 13737  				}
 13738  				b := dAtA[iNdEx]
 13739  				iNdEx++
 13740  				m.ReservedId |= int64(b&0x7F) << shift
 13741  				if b < 0x80 {
 13742  					break
 13743  				}
 13744  			}
 13745  		case 4:
 13746  			if wireType != 2 {
 13747  				return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType)
 13748  			}
 13749  			var msglen int
 13750  			for shift := uint(0); ; shift += 7 {
 13751  				if shift >= 64 {
 13752  					return ErrIntOverflow
 13753  				}
 13754  				if iNdEx >= l {
 13755  					return io.ErrUnexpectedEOF
 13756  				}
 13757  				b := dAtA[iNdEx]
 13758  				iNdEx++
 13759  				msglen |= int(b&0x7F) << shift
 13760  				if b < 0x80 {
 13761  					break
 13762  				}
 13763  			}
 13764  			if msglen < 0 {
 13765  				return ErrInvalidLength
 13766  			}
 13767  			postIndex := iNdEx + msglen
 13768  			if postIndex < 0 {
 13769  				return ErrInvalidLength
 13770  			}
 13771  			if postIndex > l {
 13772  				return io.ErrUnexpectedEOF
 13773  			}
 13774  			if m.TabletAlias == nil {
 13775  				m.TabletAlias = &topodata.TabletAlias{}
 13776  			}
 13777  			if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13778  				return err
 13779  			}
 13780  			iNdEx = postIndex
 13781  		default:
 13782  			iNdEx = preIndex
 13783  			skippy, err := skip(dAtA[iNdEx:])
 13784  			if err != nil {
 13785  				return err
 13786  			}
 13787  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13788  				return ErrInvalidLength
 13789  			}
 13790  			if (iNdEx + skippy) > l {
 13791  				return io.ErrUnexpectedEOF
 13792  			}
 13793  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 13794  			iNdEx += skippy
 13795  		}
 13796  	}
 13797  
 13798  	if iNdEx > l {
 13799  		return io.ErrUnexpectedEOF
 13800  	}
 13801  	return nil
 13802  }
 13803  func (m *ReserveStreamExecuteRequest) UnmarshalVT(dAtA []byte) error {
 13804  	l := len(dAtA)
 13805  	iNdEx := 0
 13806  	for iNdEx < l {
 13807  		preIndex := iNdEx
 13808  		var wire uint64
 13809  		for shift := uint(0); ; shift += 7 {
 13810  			if shift >= 64 {
 13811  				return ErrIntOverflow
 13812  			}
 13813  			if iNdEx >= l {
 13814  				return io.ErrUnexpectedEOF
 13815  			}
 13816  			b := dAtA[iNdEx]
 13817  			iNdEx++
 13818  			wire |= uint64(b&0x7F) << shift
 13819  			if b < 0x80 {
 13820  				break
 13821  			}
 13822  		}
 13823  		fieldNum := int32(wire >> 3)
 13824  		wireType := int(wire & 0x7)
 13825  		if wireType == 4 {
 13826  			return fmt.Errorf("proto: ReserveStreamExecuteRequest: wiretype end group for non-group")
 13827  		}
 13828  		if fieldNum <= 0 {
 13829  			return fmt.Errorf("proto: ReserveStreamExecuteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 13830  		}
 13831  		switch fieldNum {
 13832  		case 1:
 13833  			if wireType != 2 {
 13834  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 13835  			}
 13836  			var msglen int
 13837  			for shift := uint(0); ; shift += 7 {
 13838  				if shift >= 64 {
 13839  					return ErrIntOverflow
 13840  				}
 13841  				if iNdEx >= l {
 13842  					return io.ErrUnexpectedEOF
 13843  				}
 13844  				b := dAtA[iNdEx]
 13845  				iNdEx++
 13846  				msglen |= int(b&0x7F) << shift
 13847  				if b < 0x80 {
 13848  					break
 13849  				}
 13850  			}
 13851  			if msglen < 0 {
 13852  				return ErrInvalidLength
 13853  			}
 13854  			postIndex := iNdEx + msglen
 13855  			if postIndex < 0 {
 13856  				return ErrInvalidLength
 13857  			}
 13858  			if postIndex > l {
 13859  				return io.ErrUnexpectedEOF
 13860  			}
 13861  			if m.EffectiveCallerId == nil {
 13862  				m.EffectiveCallerId = &vtrpc.CallerID{}
 13863  			}
 13864  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13865  				return err
 13866  			}
 13867  			iNdEx = postIndex
 13868  		case 2:
 13869  			if wireType != 2 {
 13870  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 13871  			}
 13872  			var msglen int
 13873  			for shift := uint(0); ; shift += 7 {
 13874  				if shift >= 64 {
 13875  					return ErrIntOverflow
 13876  				}
 13877  				if iNdEx >= l {
 13878  					return io.ErrUnexpectedEOF
 13879  				}
 13880  				b := dAtA[iNdEx]
 13881  				iNdEx++
 13882  				msglen |= int(b&0x7F) << shift
 13883  				if b < 0x80 {
 13884  					break
 13885  				}
 13886  			}
 13887  			if msglen < 0 {
 13888  				return ErrInvalidLength
 13889  			}
 13890  			postIndex := iNdEx + msglen
 13891  			if postIndex < 0 {
 13892  				return ErrInvalidLength
 13893  			}
 13894  			if postIndex > l {
 13895  				return io.ErrUnexpectedEOF
 13896  			}
 13897  			if m.ImmediateCallerId == nil {
 13898  				m.ImmediateCallerId = &VTGateCallerID{}
 13899  			}
 13900  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13901  				return err
 13902  			}
 13903  			iNdEx = postIndex
 13904  		case 3:
 13905  			if wireType != 2 {
 13906  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 13907  			}
 13908  			var msglen int
 13909  			for shift := uint(0); ; shift += 7 {
 13910  				if shift >= 64 {
 13911  					return ErrIntOverflow
 13912  				}
 13913  				if iNdEx >= l {
 13914  					return io.ErrUnexpectedEOF
 13915  				}
 13916  				b := dAtA[iNdEx]
 13917  				iNdEx++
 13918  				msglen |= int(b&0x7F) << shift
 13919  				if b < 0x80 {
 13920  					break
 13921  				}
 13922  			}
 13923  			if msglen < 0 {
 13924  				return ErrInvalidLength
 13925  			}
 13926  			postIndex := iNdEx + msglen
 13927  			if postIndex < 0 {
 13928  				return ErrInvalidLength
 13929  			}
 13930  			if postIndex > l {
 13931  				return io.ErrUnexpectedEOF
 13932  			}
 13933  			if m.Target == nil {
 13934  				m.Target = &Target{}
 13935  			}
 13936  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13937  				return err
 13938  			}
 13939  			iNdEx = postIndex
 13940  		case 4:
 13941  			if wireType != 2 {
 13942  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
 13943  			}
 13944  			var msglen int
 13945  			for shift := uint(0); ; shift += 7 {
 13946  				if shift >= 64 {
 13947  					return ErrIntOverflow
 13948  				}
 13949  				if iNdEx >= l {
 13950  					return io.ErrUnexpectedEOF
 13951  				}
 13952  				b := dAtA[iNdEx]
 13953  				iNdEx++
 13954  				msglen |= int(b&0x7F) << shift
 13955  				if b < 0x80 {
 13956  					break
 13957  				}
 13958  			}
 13959  			if msglen < 0 {
 13960  				return ErrInvalidLength
 13961  			}
 13962  			postIndex := iNdEx + msglen
 13963  			if postIndex < 0 {
 13964  				return ErrInvalidLength
 13965  			}
 13966  			if postIndex > l {
 13967  				return io.ErrUnexpectedEOF
 13968  			}
 13969  			if m.Query == nil {
 13970  				m.Query = &BoundQuery{}
 13971  			}
 13972  			if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 13973  				return err
 13974  			}
 13975  			iNdEx = postIndex
 13976  		case 5:
 13977  			if wireType != 2 {
 13978  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
 13979  			}
 13980  			var msglen int
 13981  			for shift := uint(0); ; shift += 7 {
 13982  				if shift >= 64 {
 13983  					return ErrIntOverflow
 13984  				}
 13985  				if iNdEx >= l {
 13986  					return io.ErrUnexpectedEOF
 13987  				}
 13988  				b := dAtA[iNdEx]
 13989  				iNdEx++
 13990  				msglen |= int(b&0x7F) << shift
 13991  				if b < 0x80 {
 13992  					break
 13993  				}
 13994  			}
 13995  			if msglen < 0 {
 13996  				return ErrInvalidLength
 13997  			}
 13998  			postIndex := iNdEx + msglen
 13999  			if postIndex < 0 {
 14000  				return ErrInvalidLength
 14001  			}
 14002  			if postIndex > l {
 14003  				return io.ErrUnexpectedEOF
 14004  			}
 14005  			if m.Options == nil {
 14006  				m.Options = &ExecuteOptions{}
 14007  			}
 14008  			if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14009  				return err
 14010  			}
 14011  			iNdEx = postIndex
 14012  		case 6:
 14013  			if wireType != 0 {
 14014  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
 14015  			}
 14016  			m.TransactionId = 0
 14017  			for shift := uint(0); ; shift += 7 {
 14018  				if shift >= 64 {
 14019  					return ErrIntOverflow
 14020  				}
 14021  				if iNdEx >= l {
 14022  					return io.ErrUnexpectedEOF
 14023  				}
 14024  				b := dAtA[iNdEx]
 14025  				iNdEx++
 14026  				m.TransactionId |= int64(b&0x7F) << shift
 14027  				if b < 0x80 {
 14028  					break
 14029  				}
 14030  			}
 14031  		case 7:
 14032  			if wireType != 2 {
 14033  				return fmt.Errorf("proto: wrong wireType = %d for field PreQueries", wireType)
 14034  			}
 14035  			var stringLen uint64
 14036  			for shift := uint(0); ; shift += 7 {
 14037  				if shift >= 64 {
 14038  					return ErrIntOverflow
 14039  				}
 14040  				if iNdEx >= l {
 14041  					return io.ErrUnexpectedEOF
 14042  				}
 14043  				b := dAtA[iNdEx]
 14044  				iNdEx++
 14045  				stringLen |= uint64(b&0x7F) << shift
 14046  				if b < 0x80 {
 14047  					break
 14048  				}
 14049  			}
 14050  			intStringLen := int(stringLen)
 14051  			if intStringLen < 0 {
 14052  				return ErrInvalidLength
 14053  			}
 14054  			postIndex := iNdEx + intStringLen
 14055  			if postIndex < 0 {
 14056  				return ErrInvalidLength
 14057  			}
 14058  			if postIndex > l {
 14059  				return io.ErrUnexpectedEOF
 14060  			}
 14061  			m.PreQueries = append(m.PreQueries, string(dAtA[iNdEx:postIndex]))
 14062  			iNdEx = postIndex
 14063  		default:
 14064  			iNdEx = preIndex
 14065  			skippy, err := skip(dAtA[iNdEx:])
 14066  			if err != nil {
 14067  				return err
 14068  			}
 14069  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 14070  				return ErrInvalidLength
 14071  			}
 14072  			if (iNdEx + skippy) > l {
 14073  				return io.ErrUnexpectedEOF
 14074  			}
 14075  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 14076  			iNdEx += skippy
 14077  		}
 14078  	}
 14079  
 14080  	if iNdEx > l {
 14081  		return io.ErrUnexpectedEOF
 14082  	}
 14083  	return nil
 14084  }
 14085  func (m *ReserveStreamExecuteResponse) UnmarshalVT(dAtA []byte) error {
 14086  	l := len(dAtA)
 14087  	iNdEx := 0
 14088  	for iNdEx < l {
 14089  		preIndex := iNdEx
 14090  		var wire uint64
 14091  		for shift := uint(0); ; shift += 7 {
 14092  			if shift >= 64 {
 14093  				return ErrIntOverflow
 14094  			}
 14095  			if iNdEx >= l {
 14096  				return io.ErrUnexpectedEOF
 14097  			}
 14098  			b := dAtA[iNdEx]
 14099  			iNdEx++
 14100  			wire |= uint64(b&0x7F) << shift
 14101  			if b < 0x80 {
 14102  				break
 14103  			}
 14104  		}
 14105  		fieldNum := int32(wire >> 3)
 14106  		wireType := int(wire & 0x7)
 14107  		if wireType == 4 {
 14108  			return fmt.Errorf("proto: ReserveStreamExecuteResponse: wiretype end group for non-group")
 14109  		}
 14110  		if fieldNum <= 0 {
 14111  			return fmt.Errorf("proto: ReserveStreamExecuteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 14112  		}
 14113  		switch fieldNum {
 14114  		case 1:
 14115  			if wireType != 2 {
 14116  				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
 14117  			}
 14118  			var msglen int
 14119  			for shift := uint(0); ; shift += 7 {
 14120  				if shift >= 64 {
 14121  					return ErrIntOverflow
 14122  				}
 14123  				if iNdEx >= l {
 14124  					return io.ErrUnexpectedEOF
 14125  				}
 14126  				b := dAtA[iNdEx]
 14127  				iNdEx++
 14128  				msglen |= int(b&0x7F) << shift
 14129  				if b < 0x80 {
 14130  					break
 14131  				}
 14132  			}
 14133  			if msglen < 0 {
 14134  				return ErrInvalidLength
 14135  			}
 14136  			postIndex := iNdEx + msglen
 14137  			if postIndex < 0 {
 14138  				return ErrInvalidLength
 14139  			}
 14140  			if postIndex > l {
 14141  				return io.ErrUnexpectedEOF
 14142  			}
 14143  			if m.Error == nil {
 14144  				m.Error = &vtrpc.RPCError{}
 14145  			}
 14146  			if err := m.Error.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14147  				return err
 14148  			}
 14149  			iNdEx = postIndex
 14150  		case 2:
 14151  			if wireType != 2 {
 14152  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
 14153  			}
 14154  			var msglen int
 14155  			for shift := uint(0); ; shift += 7 {
 14156  				if shift >= 64 {
 14157  					return ErrIntOverflow
 14158  				}
 14159  				if iNdEx >= l {
 14160  					return io.ErrUnexpectedEOF
 14161  				}
 14162  				b := dAtA[iNdEx]
 14163  				iNdEx++
 14164  				msglen |= int(b&0x7F) << shift
 14165  				if b < 0x80 {
 14166  					break
 14167  				}
 14168  			}
 14169  			if msglen < 0 {
 14170  				return ErrInvalidLength
 14171  			}
 14172  			postIndex := iNdEx + msglen
 14173  			if postIndex < 0 {
 14174  				return ErrInvalidLength
 14175  			}
 14176  			if postIndex > l {
 14177  				return io.ErrUnexpectedEOF
 14178  			}
 14179  			if m.Result == nil {
 14180  				m.Result = &QueryResult{}
 14181  			}
 14182  			if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14183  				return err
 14184  			}
 14185  			iNdEx = postIndex
 14186  		case 3:
 14187  			if wireType != 0 {
 14188  				return fmt.Errorf("proto: wrong wireType = %d for field ReservedId", wireType)
 14189  			}
 14190  			m.ReservedId = 0
 14191  			for shift := uint(0); ; shift += 7 {
 14192  				if shift >= 64 {
 14193  					return ErrIntOverflow
 14194  				}
 14195  				if iNdEx >= l {
 14196  					return io.ErrUnexpectedEOF
 14197  				}
 14198  				b := dAtA[iNdEx]
 14199  				iNdEx++
 14200  				m.ReservedId |= int64(b&0x7F) << shift
 14201  				if b < 0x80 {
 14202  					break
 14203  				}
 14204  			}
 14205  		case 4:
 14206  			if wireType != 2 {
 14207  				return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType)
 14208  			}
 14209  			var msglen int
 14210  			for shift := uint(0); ; shift += 7 {
 14211  				if shift >= 64 {
 14212  					return ErrIntOverflow
 14213  				}
 14214  				if iNdEx >= l {
 14215  					return io.ErrUnexpectedEOF
 14216  				}
 14217  				b := dAtA[iNdEx]
 14218  				iNdEx++
 14219  				msglen |= int(b&0x7F) << shift
 14220  				if b < 0x80 {
 14221  					break
 14222  				}
 14223  			}
 14224  			if msglen < 0 {
 14225  				return ErrInvalidLength
 14226  			}
 14227  			postIndex := iNdEx + msglen
 14228  			if postIndex < 0 {
 14229  				return ErrInvalidLength
 14230  			}
 14231  			if postIndex > l {
 14232  				return io.ErrUnexpectedEOF
 14233  			}
 14234  			if m.TabletAlias == nil {
 14235  				m.TabletAlias = &topodata.TabletAlias{}
 14236  			}
 14237  			if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14238  				return err
 14239  			}
 14240  			iNdEx = postIndex
 14241  		default:
 14242  			iNdEx = preIndex
 14243  			skippy, err := skip(dAtA[iNdEx:])
 14244  			if err != nil {
 14245  				return err
 14246  			}
 14247  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 14248  				return ErrInvalidLength
 14249  			}
 14250  			if (iNdEx + skippy) > l {
 14251  				return io.ErrUnexpectedEOF
 14252  			}
 14253  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 14254  			iNdEx += skippy
 14255  		}
 14256  	}
 14257  
 14258  	if iNdEx > l {
 14259  		return io.ErrUnexpectedEOF
 14260  	}
 14261  	return nil
 14262  }
 14263  func (m *ReserveBeginExecuteRequest) UnmarshalVT(dAtA []byte) error {
 14264  	l := len(dAtA)
 14265  	iNdEx := 0
 14266  	for iNdEx < l {
 14267  		preIndex := iNdEx
 14268  		var wire uint64
 14269  		for shift := uint(0); ; shift += 7 {
 14270  			if shift >= 64 {
 14271  				return ErrIntOverflow
 14272  			}
 14273  			if iNdEx >= l {
 14274  				return io.ErrUnexpectedEOF
 14275  			}
 14276  			b := dAtA[iNdEx]
 14277  			iNdEx++
 14278  			wire |= uint64(b&0x7F) << shift
 14279  			if b < 0x80 {
 14280  				break
 14281  			}
 14282  		}
 14283  		fieldNum := int32(wire >> 3)
 14284  		wireType := int(wire & 0x7)
 14285  		if wireType == 4 {
 14286  			return fmt.Errorf("proto: ReserveBeginExecuteRequest: wiretype end group for non-group")
 14287  		}
 14288  		if fieldNum <= 0 {
 14289  			return fmt.Errorf("proto: ReserveBeginExecuteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 14290  		}
 14291  		switch fieldNum {
 14292  		case 1:
 14293  			if wireType != 2 {
 14294  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 14295  			}
 14296  			var msglen int
 14297  			for shift := uint(0); ; shift += 7 {
 14298  				if shift >= 64 {
 14299  					return ErrIntOverflow
 14300  				}
 14301  				if iNdEx >= l {
 14302  					return io.ErrUnexpectedEOF
 14303  				}
 14304  				b := dAtA[iNdEx]
 14305  				iNdEx++
 14306  				msglen |= int(b&0x7F) << shift
 14307  				if b < 0x80 {
 14308  					break
 14309  				}
 14310  			}
 14311  			if msglen < 0 {
 14312  				return ErrInvalidLength
 14313  			}
 14314  			postIndex := iNdEx + msglen
 14315  			if postIndex < 0 {
 14316  				return ErrInvalidLength
 14317  			}
 14318  			if postIndex > l {
 14319  				return io.ErrUnexpectedEOF
 14320  			}
 14321  			if m.EffectiveCallerId == nil {
 14322  				m.EffectiveCallerId = &vtrpc.CallerID{}
 14323  			}
 14324  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14325  				return err
 14326  			}
 14327  			iNdEx = postIndex
 14328  		case 2:
 14329  			if wireType != 2 {
 14330  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 14331  			}
 14332  			var msglen int
 14333  			for shift := uint(0); ; shift += 7 {
 14334  				if shift >= 64 {
 14335  					return ErrIntOverflow
 14336  				}
 14337  				if iNdEx >= l {
 14338  					return io.ErrUnexpectedEOF
 14339  				}
 14340  				b := dAtA[iNdEx]
 14341  				iNdEx++
 14342  				msglen |= int(b&0x7F) << shift
 14343  				if b < 0x80 {
 14344  					break
 14345  				}
 14346  			}
 14347  			if msglen < 0 {
 14348  				return ErrInvalidLength
 14349  			}
 14350  			postIndex := iNdEx + msglen
 14351  			if postIndex < 0 {
 14352  				return ErrInvalidLength
 14353  			}
 14354  			if postIndex > l {
 14355  				return io.ErrUnexpectedEOF
 14356  			}
 14357  			if m.ImmediateCallerId == nil {
 14358  				m.ImmediateCallerId = &VTGateCallerID{}
 14359  			}
 14360  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14361  				return err
 14362  			}
 14363  			iNdEx = postIndex
 14364  		case 3:
 14365  			if wireType != 2 {
 14366  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 14367  			}
 14368  			var msglen int
 14369  			for shift := uint(0); ; shift += 7 {
 14370  				if shift >= 64 {
 14371  					return ErrIntOverflow
 14372  				}
 14373  				if iNdEx >= l {
 14374  					return io.ErrUnexpectedEOF
 14375  				}
 14376  				b := dAtA[iNdEx]
 14377  				iNdEx++
 14378  				msglen |= int(b&0x7F) << shift
 14379  				if b < 0x80 {
 14380  					break
 14381  				}
 14382  			}
 14383  			if msglen < 0 {
 14384  				return ErrInvalidLength
 14385  			}
 14386  			postIndex := iNdEx + msglen
 14387  			if postIndex < 0 {
 14388  				return ErrInvalidLength
 14389  			}
 14390  			if postIndex > l {
 14391  				return io.ErrUnexpectedEOF
 14392  			}
 14393  			if m.Target == nil {
 14394  				m.Target = &Target{}
 14395  			}
 14396  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14397  				return err
 14398  			}
 14399  			iNdEx = postIndex
 14400  		case 4:
 14401  			if wireType != 2 {
 14402  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
 14403  			}
 14404  			var msglen int
 14405  			for shift := uint(0); ; shift += 7 {
 14406  				if shift >= 64 {
 14407  					return ErrIntOverflow
 14408  				}
 14409  				if iNdEx >= l {
 14410  					return io.ErrUnexpectedEOF
 14411  				}
 14412  				b := dAtA[iNdEx]
 14413  				iNdEx++
 14414  				msglen |= int(b&0x7F) << shift
 14415  				if b < 0x80 {
 14416  					break
 14417  				}
 14418  			}
 14419  			if msglen < 0 {
 14420  				return ErrInvalidLength
 14421  			}
 14422  			postIndex := iNdEx + msglen
 14423  			if postIndex < 0 {
 14424  				return ErrInvalidLength
 14425  			}
 14426  			if postIndex > l {
 14427  				return io.ErrUnexpectedEOF
 14428  			}
 14429  			if m.Query == nil {
 14430  				m.Query = &BoundQuery{}
 14431  			}
 14432  			if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14433  				return err
 14434  			}
 14435  			iNdEx = postIndex
 14436  		case 5:
 14437  			if wireType != 2 {
 14438  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
 14439  			}
 14440  			var msglen int
 14441  			for shift := uint(0); ; shift += 7 {
 14442  				if shift >= 64 {
 14443  					return ErrIntOverflow
 14444  				}
 14445  				if iNdEx >= l {
 14446  					return io.ErrUnexpectedEOF
 14447  				}
 14448  				b := dAtA[iNdEx]
 14449  				iNdEx++
 14450  				msglen |= int(b&0x7F) << shift
 14451  				if b < 0x80 {
 14452  					break
 14453  				}
 14454  			}
 14455  			if msglen < 0 {
 14456  				return ErrInvalidLength
 14457  			}
 14458  			postIndex := iNdEx + msglen
 14459  			if postIndex < 0 {
 14460  				return ErrInvalidLength
 14461  			}
 14462  			if postIndex > l {
 14463  				return io.ErrUnexpectedEOF
 14464  			}
 14465  			if m.Options == nil {
 14466  				m.Options = &ExecuteOptions{}
 14467  			}
 14468  			if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14469  				return err
 14470  			}
 14471  			iNdEx = postIndex
 14472  		case 6:
 14473  			if wireType != 2 {
 14474  				return fmt.Errorf("proto: wrong wireType = %d for field PreQueries", wireType)
 14475  			}
 14476  			var stringLen uint64
 14477  			for shift := uint(0); ; shift += 7 {
 14478  				if shift >= 64 {
 14479  					return ErrIntOverflow
 14480  				}
 14481  				if iNdEx >= l {
 14482  					return io.ErrUnexpectedEOF
 14483  				}
 14484  				b := dAtA[iNdEx]
 14485  				iNdEx++
 14486  				stringLen |= uint64(b&0x7F) << shift
 14487  				if b < 0x80 {
 14488  					break
 14489  				}
 14490  			}
 14491  			intStringLen := int(stringLen)
 14492  			if intStringLen < 0 {
 14493  				return ErrInvalidLength
 14494  			}
 14495  			postIndex := iNdEx + intStringLen
 14496  			if postIndex < 0 {
 14497  				return ErrInvalidLength
 14498  			}
 14499  			if postIndex > l {
 14500  				return io.ErrUnexpectedEOF
 14501  			}
 14502  			m.PreQueries = append(m.PreQueries, string(dAtA[iNdEx:postIndex]))
 14503  			iNdEx = postIndex
 14504  		case 7:
 14505  			if wireType != 2 {
 14506  				return fmt.Errorf("proto: wrong wireType = %d for field PostBeginQueries", wireType)
 14507  			}
 14508  			var stringLen uint64
 14509  			for shift := uint(0); ; shift += 7 {
 14510  				if shift >= 64 {
 14511  					return ErrIntOverflow
 14512  				}
 14513  				if iNdEx >= l {
 14514  					return io.ErrUnexpectedEOF
 14515  				}
 14516  				b := dAtA[iNdEx]
 14517  				iNdEx++
 14518  				stringLen |= uint64(b&0x7F) << shift
 14519  				if b < 0x80 {
 14520  					break
 14521  				}
 14522  			}
 14523  			intStringLen := int(stringLen)
 14524  			if intStringLen < 0 {
 14525  				return ErrInvalidLength
 14526  			}
 14527  			postIndex := iNdEx + intStringLen
 14528  			if postIndex < 0 {
 14529  				return ErrInvalidLength
 14530  			}
 14531  			if postIndex > l {
 14532  				return io.ErrUnexpectedEOF
 14533  			}
 14534  			m.PostBeginQueries = append(m.PostBeginQueries, string(dAtA[iNdEx:postIndex]))
 14535  			iNdEx = postIndex
 14536  		default:
 14537  			iNdEx = preIndex
 14538  			skippy, err := skip(dAtA[iNdEx:])
 14539  			if err != nil {
 14540  				return err
 14541  			}
 14542  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 14543  				return ErrInvalidLength
 14544  			}
 14545  			if (iNdEx + skippy) > l {
 14546  				return io.ErrUnexpectedEOF
 14547  			}
 14548  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 14549  			iNdEx += skippy
 14550  		}
 14551  	}
 14552  
 14553  	if iNdEx > l {
 14554  		return io.ErrUnexpectedEOF
 14555  	}
 14556  	return nil
 14557  }
 14558  func (m *ReserveBeginExecuteResponse) UnmarshalVT(dAtA []byte) error {
 14559  	l := len(dAtA)
 14560  	iNdEx := 0
 14561  	for iNdEx < l {
 14562  		preIndex := iNdEx
 14563  		var wire uint64
 14564  		for shift := uint(0); ; shift += 7 {
 14565  			if shift >= 64 {
 14566  				return ErrIntOverflow
 14567  			}
 14568  			if iNdEx >= l {
 14569  				return io.ErrUnexpectedEOF
 14570  			}
 14571  			b := dAtA[iNdEx]
 14572  			iNdEx++
 14573  			wire |= uint64(b&0x7F) << shift
 14574  			if b < 0x80 {
 14575  				break
 14576  			}
 14577  		}
 14578  		fieldNum := int32(wire >> 3)
 14579  		wireType := int(wire & 0x7)
 14580  		if wireType == 4 {
 14581  			return fmt.Errorf("proto: ReserveBeginExecuteResponse: wiretype end group for non-group")
 14582  		}
 14583  		if fieldNum <= 0 {
 14584  			return fmt.Errorf("proto: ReserveBeginExecuteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 14585  		}
 14586  		switch fieldNum {
 14587  		case 1:
 14588  			if wireType != 2 {
 14589  				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
 14590  			}
 14591  			var msglen int
 14592  			for shift := uint(0); ; shift += 7 {
 14593  				if shift >= 64 {
 14594  					return ErrIntOverflow
 14595  				}
 14596  				if iNdEx >= l {
 14597  					return io.ErrUnexpectedEOF
 14598  				}
 14599  				b := dAtA[iNdEx]
 14600  				iNdEx++
 14601  				msglen |= int(b&0x7F) << shift
 14602  				if b < 0x80 {
 14603  					break
 14604  				}
 14605  			}
 14606  			if msglen < 0 {
 14607  				return ErrInvalidLength
 14608  			}
 14609  			postIndex := iNdEx + msglen
 14610  			if postIndex < 0 {
 14611  				return ErrInvalidLength
 14612  			}
 14613  			if postIndex > l {
 14614  				return io.ErrUnexpectedEOF
 14615  			}
 14616  			if m.Error == nil {
 14617  				m.Error = &vtrpc.RPCError{}
 14618  			}
 14619  			if err := m.Error.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14620  				return err
 14621  			}
 14622  			iNdEx = postIndex
 14623  		case 2:
 14624  			if wireType != 2 {
 14625  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
 14626  			}
 14627  			var msglen int
 14628  			for shift := uint(0); ; shift += 7 {
 14629  				if shift >= 64 {
 14630  					return ErrIntOverflow
 14631  				}
 14632  				if iNdEx >= l {
 14633  					return io.ErrUnexpectedEOF
 14634  				}
 14635  				b := dAtA[iNdEx]
 14636  				iNdEx++
 14637  				msglen |= int(b&0x7F) << shift
 14638  				if b < 0x80 {
 14639  					break
 14640  				}
 14641  			}
 14642  			if msglen < 0 {
 14643  				return ErrInvalidLength
 14644  			}
 14645  			postIndex := iNdEx + msglen
 14646  			if postIndex < 0 {
 14647  				return ErrInvalidLength
 14648  			}
 14649  			if postIndex > l {
 14650  				return io.ErrUnexpectedEOF
 14651  			}
 14652  			if m.Result == nil {
 14653  				m.Result = &QueryResult{}
 14654  			}
 14655  			if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14656  				return err
 14657  			}
 14658  			iNdEx = postIndex
 14659  		case 3:
 14660  			if wireType != 0 {
 14661  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
 14662  			}
 14663  			m.TransactionId = 0
 14664  			for shift := uint(0); ; shift += 7 {
 14665  				if shift >= 64 {
 14666  					return ErrIntOverflow
 14667  				}
 14668  				if iNdEx >= l {
 14669  					return io.ErrUnexpectedEOF
 14670  				}
 14671  				b := dAtA[iNdEx]
 14672  				iNdEx++
 14673  				m.TransactionId |= int64(b&0x7F) << shift
 14674  				if b < 0x80 {
 14675  					break
 14676  				}
 14677  			}
 14678  		case 4:
 14679  			if wireType != 0 {
 14680  				return fmt.Errorf("proto: wrong wireType = %d for field ReservedId", wireType)
 14681  			}
 14682  			m.ReservedId = 0
 14683  			for shift := uint(0); ; shift += 7 {
 14684  				if shift >= 64 {
 14685  					return ErrIntOverflow
 14686  				}
 14687  				if iNdEx >= l {
 14688  					return io.ErrUnexpectedEOF
 14689  				}
 14690  				b := dAtA[iNdEx]
 14691  				iNdEx++
 14692  				m.ReservedId |= int64(b&0x7F) << shift
 14693  				if b < 0x80 {
 14694  					break
 14695  				}
 14696  			}
 14697  		case 5:
 14698  			if wireType != 2 {
 14699  				return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType)
 14700  			}
 14701  			var msglen int
 14702  			for shift := uint(0); ; shift += 7 {
 14703  				if shift >= 64 {
 14704  					return ErrIntOverflow
 14705  				}
 14706  				if iNdEx >= l {
 14707  					return io.ErrUnexpectedEOF
 14708  				}
 14709  				b := dAtA[iNdEx]
 14710  				iNdEx++
 14711  				msglen |= int(b&0x7F) << shift
 14712  				if b < 0x80 {
 14713  					break
 14714  				}
 14715  			}
 14716  			if msglen < 0 {
 14717  				return ErrInvalidLength
 14718  			}
 14719  			postIndex := iNdEx + msglen
 14720  			if postIndex < 0 {
 14721  				return ErrInvalidLength
 14722  			}
 14723  			if postIndex > l {
 14724  				return io.ErrUnexpectedEOF
 14725  			}
 14726  			if m.TabletAlias == nil {
 14727  				m.TabletAlias = &topodata.TabletAlias{}
 14728  			}
 14729  			if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14730  				return err
 14731  			}
 14732  			iNdEx = postIndex
 14733  		case 6:
 14734  			if wireType != 2 {
 14735  				return fmt.Errorf("proto: wrong wireType = %d for field SessionStateChanges", wireType)
 14736  			}
 14737  			var stringLen uint64
 14738  			for shift := uint(0); ; shift += 7 {
 14739  				if shift >= 64 {
 14740  					return ErrIntOverflow
 14741  				}
 14742  				if iNdEx >= l {
 14743  					return io.ErrUnexpectedEOF
 14744  				}
 14745  				b := dAtA[iNdEx]
 14746  				iNdEx++
 14747  				stringLen |= uint64(b&0x7F) << shift
 14748  				if b < 0x80 {
 14749  					break
 14750  				}
 14751  			}
 14752  			intStringLen := int(stringLen)
 14753  			if intStringLen < 0 {
 14754  				return ErrInvalidLength
 14755  			}
 14756  			postIndex := iNdEx + intStringLen
 14757  			if postIndex < 0 {
 14758  				return ErrInvalidLength
 14759  			}
 14760  			if postIndex > l {
 14761  				return io.ErrUnexpectedEOF
 14762  			}
 14763  			m.SessionStateChanges = string(dAtA[iNdEx:postIndex])
 14764  			iNdEx = postIndex
 14765  		default:
 14766  			iNdEx = preIndex
 14767  			skippy, err := skip(dAtA[iNdEx:])
 14768  			if err != nil {
 14769  				return err
 14770  			}
 14771  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 14772  				return ErrInvalidLength
 14773  			}
 14774  			if (iNdEx + skippy) > l {
 14775  				return io.ErrUnexpectedEOF
 14776  			}
 14777  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 14778  			iNdEx += skippy
 14779  		}
 14780  	}
 14781  
 14782  	if iNdEx > l {
 14783  		return io.ErrUnexpectedEOF
 14784  	}
 14785  	return nil
 14786  }
 14787  func (m *ReserveBeginStreamExecuteRequest) UnmarshalVT(dAtA []byte) error {
 14788  	l := len(dAtA)
 14789  	iNdEx := 0
 14790  	for iNdEx < l {
 14791  		preIndex := iNdEx
 14792  		var wire uint64
 14793  		for shift := uint(0); ; shift += 7 {
 14794  			if shift >= 64 {
 14795  				return ErrIntOverflow
 14796  			}
 14797  			if iNdEx >= l {
 14798  				return io.ErrUnexpectedEOF
 14799  			}
 14800  			b := dAtA[iNdEx]
 14801  			iNdEx++
 14802  			wire |= uint64(b&0x7F) << shift
 14803  			if b < 0x80 {
 14804  				break
 14805  			}
 14806  		}
 14807  		fieldNum := int32(wire >> 3)
 14808  		wireType := int(wire & 0x7)
 14809  		if wireType == 4 {
 14810  			return fmt.Errorf("proto: ReserveBeginStreamExecuteRequest: wiretype end group for non-group")
 14811  		}
 14812  		if fieldNum <= 0 {
 14813  			return fmt.Errorf("proto: ReserveBeginStreamExecuteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 14814  		}
 14815  		switch fieldNum {
 14816  		case 1:
 14817  			if wireType != 2 {
 14818  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 14819  			}
 14820  			var msglen int
 14821  			for shift := uint(0); ; shift += 7 {
 14822  				if shift >= 64 {
 14823  					return ErrIntOverflow
 14824  				}
 14825  				if iNdEx >= l {
 14826  					return io.ErrUnexpectedEOF
 14827  				}
 14828  				b := dAtA[iNdEx]
 14829  				iNdEx++
 14830  				msglen |= int(b&0x7F) << shift
 14831  				if b < 0x80 {
 14832  					break
 14833  				}
 14834  			}
 14835  			if msglen < 0 {
 14836  				return ErrInvalidLength
 14837  			}
 14838  			postIndex := iNdEx + msglen
 14839  			if postIndex < 0 {
 14840  				return ErrInvalidLength
 14841  			}
 14842  			if postIndex > l {
 14843  				return io.ErrUnexpectedEOF
 14844  			}
 14845  			if m.EffectiveCallerId == nil {
 14846  				m.EffectiveCallerId = &vtrpc.CallerID{}
 14847  			}
 14848  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14849  				return err
 14850  			}
 14851  			iNdEx = postIndex
 14852  		case 2:
 14853  			if wireType != 2 {
 14854  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 14855  			}
 14856  			var msglen int
 14857  			for shift := uint(0); ; shift += 7 {
 14858  				if shift >= 64 {
 14859  					return ErrIntOverflow
 14860  				}
 14861  				if iNdEx >= l {
 14862  					return io.ErrUnexpectedEOF
 14863  				}
 14864  				b := dAtA[iNdEx]
 14865  				iNdEx++
 14866  				msglen |= int(b&0x7F) << shift
 14867  				if b < 0x80 {
 14868  					break
 14869  				}
 14870  			}
 14871  			if msglen < 0 {
 14872  				return ErrInvalidLength
 14873  			}
 14874  			postIndex := iNdEx + msglen
 14875  			if postIndex < 0 {
 14876  				return ErrInvalidLength
 14877  			}
 14878  			if postIndex > l {
 14879  				return io.ErrUnexpectedEOF
 14880  			}
 14881  			if m.ImmediateCallerId == nil {
 14882  				m.ImmediateCallerId = &VTGateCallerID{}
 14883  			}
 14884  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14885  				return err
 14886  			}
 14887  			iNdEx = postIndex
 14888  		case 3:
 14889  			if wireType != 2 {
 14890  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 14891  			}
 14892  			var msglen int
 14893  			for shift := uint(0); ; shift += 7 {
 14894  				if shift >= 64 {
 14895  					return ErrIntOverflow
 14896  				}
 14897  				if iNdEx >= l {
 14898  					return io.ErrUnexpectedEOF
 14899  				}
 14900  				b := dAtA[iNdEx]
 14901  				iNdEx++
 14902  				msglen |= int(b&0x7F) << shift
 14903  				if b < 0x80 {
 14904  					break
 14905  				}
 14906  			}
 14907  			if msglen < 0 {
 14908  				return ErrInvalidLength
 14909  			}
 14910  			postIndex := iNdEx + msglen
 14911  			if postIndex < 0 {
 14912  				return ErrInvalidLength
 14913  			}
 14914  			if postIndex > l {
 14915  				return io.ErrUnexpectedEOF
 14916  			}
 14917  			if m.Target == nil {
 14918  				m.Target = &Target{}
 14919  			}
 14920  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14921  				return err
 14922  			}
 14923  			iNdEx = postIndex
 14924  		case 4:
 14925  			if wireType != 2 {
 14926  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
 14927  			}
 14928  			var msglen int
 14929  			for shift := uint(0); ; shift += 7 {
 14930  				if shift >= 64 {
 14931  					return ErrIntOverflow
 14932  				}
 14933  				if iNdEx >= l {
 14934  					return io.ErrUnexpectedEOF
 14935  				}
 14936  				b := dAtA[iNdEx]
 14937  				iNdEx++
 14938  				msglen |= int(b&0x7F) << shift
 14939  				if b < 0x80 {
 14940  					break
 14941  				}
 14942  			}
 14943  			if msglen < 0 {
 14944  				return ErrInvalidLength
 14945  			}
 14946  			postIndex := iNdEx + msglen
 14947  			if postIndex < 0 {
 14948  				return ErrInvalidLength
 14949  			}
 14950  			if postIndex > l {
 14951  				return io.ErrUnexpectedEOF
 14952  			}
 14953  			if m.Query == nil {
 14954  				m.Query = &BoundQuery{}
 14955  			}
 14956  			if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14957  				return err
 14958  			}
 14959  			iNdEx = postIndex
 14960  		case 5:
 14961  			if wireType != 2 {
 14962  				return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
 14963  			}
 14964  			var msglen int
 14965  			for shift := uint(0); ; shift += 7 {
 14966  				if shift >= 64 {
 14967  					return ErrIntOverflow
 14968  				}
 14969  				if iNdEx >= l {
 14970  					return io.ErrUnexpectedEOF
 14971  				}
 14972  				b := dAtA[iNdEx]
 14973  				iNdEx++
 14974  				msglen |= int(b&0x7F) << shift
 14975  				if b < 0x80 {
 14976  					break
 14977  				}
 14978  			}
 14979  			if msglen < 0 {
 14980  				return ErrInvalidLength
 14981  			}
 14982  			postIndex := iNdEx + msglen
 14983  			if postIndex < 0 {
 14984  				return ErrInvalidLength
 14985  			}
 14986  			if postIndex > l {
 14987  				return io.ErrUnexpectedEOF
 14988  			}
 14989  			if m.Options == nil {
 14990  				m.Options = &ExecuteOptions{}
 14991  			}
 14992  			if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 14993  				return err
 14994  			}
 14995  			iNdEx = postIndex
 14996  		case 6:
 14997  			if wireType != 2 {
 14998  				return fmt.Errorf("proto: wrong wireType = %d for field PreQueries", wireType)
 14999  			}
 15000  			var stringLen uint64
 15001  			for shift := uint(0); ; shift += 7 {
 15002  				if shift >= 64 {
 15003  					return ErrIntOverflow
 15004  				}
 15005  				if iNdEx >= l {
 15006  					return io.ErrUnexpectedEOF
 15007  				}
 15008  				b := dAtA[iNdEx]
 15009  				iNdEx++
 15010  				stringLen |= uint64(b&0x7F) << shift
 15011  				if b < 0x80 {
 15012  					break
 15013  				}
 15014  			}
 15015  			intStringLen := int(stringLen)
 15016  			if intStringLen < 0 {
 15017  				return ErrInvalidLength
 15018  			}
 15019  			postIndex := iNdEx + intStringLen
 15020  			if postIndex < 0 {
 15021  				return ErrInvalidLength
 15022  			}
 15023  			if postIndex > l {
 15024  				return io.ErrUnexpectedEOF
 15025  			}
 15026  			m.PreQueries = append(m.PreQueries, string(dAtA[iNdEx:postIndex]))
 15027  			iNdEx = postIndex
 15028  		case 7:
 15029  			if wireType != 2 {
 15030  				return fmt.Errorf("proto: wrong wireType = %d for field PostBeginQueries", wireType)
 15031  			}
 15032  			var stringLen uint64
 15033  			for shift := uint(0); ; shift += 7 {
 15034  				if shift >= 64 {
 15035  					return ErrIntOverflow
 15036  				}
 15037  				if iNdEx >= l {
 15038  					return io.ErrUnexpectedEOF
 15039  				}
 15040  				b := dAtA[iNdEx]
 15041  				iNdEx++
 15042  				stringLen |= uint64(b&0x7F) << shift
 15043  				if b < 0x80 {
 15044  					break
 15045  				}
 15046  			}
 15047  			intStringLen := int(stringLen)
 15048  			if intStringLen < 0 {
 15049  				return ErrInvalidLength
 15050  			}
 15051  			postIndex := iNdEx + intStringLen
 15052  			if postIndex < 0 {
 15053  				return ErrInvalidLength
 15054  			}
 15055  			if postIndex > l {
 15056  				return io.ErrUnexpectedEOF
 15057  			}
 15058  			m.PostBeginQueries = append(m.PostBeginQueries, string(dAtA[iNdEx:postIndex]))
 15059  			iNdEx = postIndex
 15060  		default:
 15061  			iNdEx = preIndex
 15062  			skippy, err := skip(dAtA[iNdEx:])
 15063  			if err != nil {
 15064  				return err
 15065  			}
 15066  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15067  				return ErrInvalidLength
 15068  			}
 15069  			if (iNdEx + skippy) > l {
 15070  				return io.ErrUnexpectedEOF
 15071  			}
 15072  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 15073  			iNdEx += skippy
 15074  		}
 15075  	}
 15076  
 15077  	if iNdEx > l {
 15078  		return io.ErrUnexpectedEOF
 15079  	}
 15080  	return nil
 15081  }
 15082  func (m *ReserveBeginStreamExecuteResponse) UnmarshalVT(dAtA []byte) error {
 15083  	l := len(dAtA)
 15084  	iNdEx := 0
 15085  	for iNdEx < l {
 15086  		preIndex := iNdEx
 15087  		var wire uint64
 15088  		for shift := uint(0); ; shift += 7 {
 15089  			if shift >= 64 {
 15090  				return ErrIntOverflow
 15091  			}
 15092  			if iNdEx >= l {
 15093  				return io.ErrUnexpectedEOF
 15094  			}
 15095  			b := dAtA[iNdEx]
 15096  			iNdEx++
 15097  			wire |= uint64(b&0x7F) << shift
 15098  			if b < 0x80 {
 15099  				break
 15100  			}
 15101  		}
 15102  		fieldNum := int32(wire >> 3)
 15103  		wireType := int(wire & 0x7)
 15104  		if wireType == 4 {
 15105  			return fmt.Errorf("proto: ReserveBeginStreamExecuteResponse: wiretype end group for non-group")
 15106  		}
 15107  		if fieldNum <= 0 {
 15108  			return fmt.Errorf("proto: ReserveBeginStreamExecuteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 15109  		}
 15110  		switch fieldNum {
 15111  		case 1:
 15112  			if wireType != 2 {
 15113  				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
 15114  			}
 15115  			var msglen int
 15116  			for shift := uint(0); ; shift += 7 {
 15117  				if shift >= 64 {
 15118  					return ErrIntOverflow
 15119  				}
 15120  				if iNdEx >= l {
 15121  					return io.ErrUnexpectedEOF
 15122  				}
 15123  				b := dAtA[iNdEx]
 15124  				iNdEx++
 15125  				msglen |= int(b&0x7F) << shift
 15126  				if b < 0x80 {
 15127  					break
 15128  				}
 15129  			}
 15130  			if msglen < 0 {
 15131  				return ErrInvalidLength
 15132  			}
 15133  			postIndex := iNdEx + msglen
 15134  			if postIndex < 0 {
 15135  				return ErrInvalidLength
 15136  			}
 15137  			if postIndex > l {
 15138  				return io.ErrUnexpectedEOF
 15139  			}
 15140  			if m.Error == nil {
 15141  				m.Error = &vtrpc.RPCError{}
 15142  			}
 15143  			if err := m.Error.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 15144  				return err
 15145  			}
 15146  			iNdEx = postIndex
 15147  		case 2:
 15148  			if wireType != 2 {
 15149  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
 15150  			}
 15151  			var msglen int
 15152  			for shift := uint(0); ; shift += 7 {
 15153  				if shift >= 64 {
 15154  					return ErrIntOverflow
 15155  				}
 15156  				if iNdEx >= l {
 15157  					return io.ErrUnexpectedEOF
 15158  				}
 15159  				b := dAtA[iNdEx]
 15160  				iNdEx++
 15161  				msglen |= int(b&0x7F) << shift
 15162  				if b < 0x80 {
 15163  					break
 15164  				}
 15165  			}
 15166  			if msglen < 0 {
 15167  				return ErrInvalidLength
 15168  			}
 15169  			postIndex := iNdEx + msglen
 15170  			if postIndex < 0 {
 15171  				return ErrInvalidLength
 15172  			}
 15173  			if postIndex > l {
 15174  				return io.ErrUnexpectedEOF
 15175  			}
 15176  			if m.Result == nil {
 15177  				m.Result = &QueryResult{}
 15178  			}
 15179  			if err := m.Result.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 15180  				return err
 15181  			}
 15182  			iNdEx = postIndex
 15183  		case 3:
 15184  			if wireType != 0 {
 15185  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
 15186  			}
 15187  			m.TransactionId = 0
 15188  			for shift := uint(0); ; shift += 7 {
 15189  				if shift >= 64 {
 15190  					return ErrIntOverflow
 15191  				}
 15192  				if iNdEx >= l {
 15193  					return io.ErrUnexpectedEOF
 15194  				}
 15195  				b := dAtA[iNdEx]
 15196  				iNdEx++
 15197  				m.TransactionId |= int64(b&0x7F) << shift
 15198  				if b < 0x80 {
 15199  					break
 15200  				}
 15201  			}
 15202  		case 4:
 15203  			if wireType != 0 {
 15204  				return fmt.Errorf("proto: wrong wireType = %d for field ReservedId", wireType)
 15205  			}
 15206  			m.ReservedId = 0
 15207  			for shift := uint(0); ; shift += 7 {
 15208  				if shift >= 64 {
 15209  					return ErrIntOverflow
 15210  				}
 15211  				if iNdEx >= l {
 15212  					return io.ErrUnexpectedEOF
 15213  				}
 15214  				b := dAtA[iNdEx]
 15215  				iNdEx++
 15216  				m.ReservedId |= int64(b&0x7F) << shift
 15217  				if b < 0x80 {
 15218  					break
 15219  				}
 15220  			}
 15221  		case 5:
 15222  			if wireType != 2 {
 15223  				return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType)
 15224  			}
 15225  			var msglen int
 15226  			for shift := uint(0); ; shift += 7 {
 15227  				if shift >= 64 {
 15228  					return ErrIntOverflow
 15229  				}
 15230  				if iNdEx >= l {
 15231  					return io.ErrUnexpectedEOF
 15232  				}
 15233  				b := dAtA[iNdEx]
 15234  				iNdEx++
 15235  				msglen |= int(b&0x7F) << shift
 15236  				if b < 0x80 {
 15237  					break
 15238  				}
 15239  			}
 15240  			if msglen < 0 {
 15241  				return ErrInvalidLength
 15242  			}
 15243  			postIndex := iNdEx + msglen
 15244  			if postIndex < 0 {
 15245  				return ErrInvalidLength
 15246  			}
 15247  			if postIndex > l {
 15248  				return io.ErrUnexpectedEOF
 15249  			}
 15250  			if m.TabletAlias == nil {
 15251  				m.TabletAlias = &topodata.TabletAlias{}
 15252  			}
 15253  			if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 15254  				return err
 15255  			}
 15256  			iNdEx = postIndex
 15257  		case 6:
 15258  			if wireType != 2 {
 15259  				return fmt.Errorf("proto: wrong wireType = %d for field SessionStateChanges", wireType)
 15260  			}
 15261  			var stringLen uint64
 15262  			for shift := uint(0); ; shift += 7 {
 15263  				if shift >= 64 {
 15264  					return ErrIntOverflow
 15265  				}
 15266  				if iNdEx >= l {
 15267  					return io.ErrUnexpectedEOF
 15268  				}
 15269  				b := dAtA[iNdEx]
 15270  				iNdEx++
 15271  				stringLen |= uint64(b&0x7F) << shift
 15272  				if b < 0x80 {
 15273  					break
 15274  				}
 15275  			}
 15276  			intStringLen := int(stringLen)
 15277  			if intStringLen < 0 {
 15278  				return ErrInvalidLength
 15279  			}
 15280  			postIndex := iNdEx + intStringLen
 15281  			if postIndex < 0 {
 15282  				return ErrInvalidLength
 15283  			}
 15284  			if postIndex > l {
 15285  				return io.ErrUnexpectedEOF
 15286  			}
 15287  			m.SessionStateChanges = string(dAtA[iNdEx:postIndex])
 15288  			iNdEx = postIndex
 15289  		default:
 15290  			iNdEx = preIndex
 15291  			skippy, err := skip(dAtA[iNdEx:])
 15292  			if err != nil {
 15293  				return err
 15294  			}
 15295  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15296  				return ErrInvalidLength
 15297  			}
 15298  			if (iNdEx + skippy) > l {
 15299  				return io.ErrUnexpectedEOF
 15300  			}
 15301  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 15302  			iNdEx += skippy
 15303  		}
 15304  	}
 15305  
 15306  	if iNdEx > l {
 15307  		return io.ErrUnexpectedEOF
 15308  	}
 15309  	return nil
 15310  }
 15311  func (m *ReleaseRequest) UnmarshalVT(dAtA []byte) error {
 15312  	l := len(dAtA)
 15313  	iNdEx := 0
 15314  	for iNdEx < l {
 15315  		preIndex := iNdEx
 15316  		var wire uint64
 15317  		for shift := uint(0); ; shift += 7 {
 15318  			if shift >= 64 {
 15319  				return ErrIntOverflow
 15320  			}
 15321  			if iNdEx >= l {
 15322  				return io.ErrUnexpectedEOF
 15323  			}
 15324  			b := dAtA[iNdEx]
 15325  			iNdEx++
 15326  			wire |= uint64(b&0x7F) << shift
 15327  			if b < 0x80 {
 15328  				break
 15329  			}
 15330  		}
 15331  		fieldNum := int32(wire >> 3)
 15332  		wireType := int(wire & 0x7)
 15333  		if wireType == 4 {
 15334  			return fmt.Errorf("proto: ReleaseRequest: wiretype end group for non-group")
 15335  		}
 15336  		if fieldNum <= 0 {
 15337  			return fmt.Errorf("proto: ReleaseRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 15338  		}
 15339  		switch fieldNum {
 15340  		case 1:
 15341  			if wireType != 2 {
 15342  				return fmt.Errorf("proto: wrong wireType = %d for field EffectiveCallerId", wireType)
 15343  			}
 15344  			var msglen int
 15345  			for shift := uint(0); ; shift += 7 {
 15346  				if shift >= 64 {
 15347  					return ErrIntOverflow
 15348  				}
 15349  				if iNdEx >= l {
 15350  					return io.ErrUnexpectedEOF
 15351  				}
 15352  				b := dAtA[iNdEx]
 15353  				iNdEx++
 15354  				msglen |= int(b&0x7F) << shift
 15355  				if b < 0x80 {
 15356  					break
 15357  				}
 15358  			}
 15359  			if msglen < 0 {
 15360  				return ErrInvalidLength
 15361  			}
 15362  			postIndex := iNdEx + msglen
 15363  			if postIndex < 0 {
 15364  				return ErrInvalidLength
 15365  			}
 15366  			if postIndex > l {
 15367  				return io.ErrUnexpectedEOF
 15368  			}
 15369  			if m.EffectiveCallerId == nil {
 15370  				m.EffectiveCallerId = &vtrpc.CallerID{}
 15371  			}
 15372  			if err := m.EffectiveCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 15373  				return err
 15374  			}
 15375  			iNdEx = postIndex
 15376  		case 2:
 15377  			if wireType != 2 {
 15378  				return fmt.Errorf("proto: wrong wireType = %d for field ImmediateCallerId", wireType)
 15379  			}
 15380  			var msglen int
 15381  			for shift := uint(0); ; shift += 7 {
 15382  				if shift >= 64 {
 15383  					return ErrIntOverflow
 15384  				}
 15385  				if iNdEx >= l {
 15386  					return io.ErrUnexpectedEOF
 15387  				}
 15388  				b := dAtA[iNdEx]
 15389  				iNdEx++
 15390  				msglen |= int(b&0x7F) << shift
 15391  				if b < 0x80 {
 15392  					break
 15393  				}
 15394  			}
 15395  			if msglen < 0 {
 15396  				return ErrInvalidLength
 15397  			}
 15398  			postIndex := iNdEx + msglen
 15399  			if postIndex < 0 {
 15400  				return ErrInvalidLength
 15401  			}
 15402  			if postIndex > l {
 15403  				return io.ErrUnexpectedEOF
 15404  			}
 15405  			if m.ImmediateCallerId == nil {
 15406  				m.ImmediateCallerId = &VTGateCallerID{}
 15407  			}
 15408  			if err := m.ImmediateCallerId.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 15409  				return err
 15410  			}
 15411  			iNdEx = postIndex
 15412  		case 3:
 15413  			if wireType != 2 {
 15414  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 15415  			}
 15416  			var msglen int
 15417  			for shift := uint(0); ; shift += 7 {
 15418  				if shift >= 64 {
 15419  					return ErrIntOverflow
 15420  				}
 15421  				if iNdEx >= l {
 15422  					return io.ErrUnexpectedEOF
 15423  				}
 15424  				b := dAtA[iNdEx]
 15425  				iNdEx++
 15426  				msglen |= int(b&0x7F) << shift
 15427  				if b < 0x80 {
 15428  					break
 15429  				}
 15430  			}
 15431  			if msglen < 0 {
 15432  				return ErrInvalidLength
 15433  			}
 15434  			postIndex := iNdEx + msglen
 15435  			if postIndex < 0 {
 15436  				return ErrInvalidLength
 15437  			}
 15438  			if postIndex > l {
 15439  				return io.ErrUnexpectedEOF
 15440  			}
 15441  			if m.Target == nil {
 15442  				m.Target = &Target{}
 15443  			}
 15444  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 15445  				return err
 15446  			}
 15447  			iNdEx = postIndex
 15448  		case 4:
 15449  			if wireType != 0 {
 15450  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType)
 15451  			}
 15452  			m.TransactionId = 0
 15453  			for shift := uint(0); ; shift += 7 {
 15454  				if shift >= 64 {
 15455  					return ErrIntOverflow
 15456  				}
 15457  				if iNdEx >= l {
 15458  					return io.ErrUnexpectedEOF
 15459  				}
 15460  				b := dAtA[iNdEx]
 15461  				iNdEx++
 15462  				m.TransactionId |= int64(b&0x7F) << shift
 15463  				if b < 0x80 {
 15464  					break
 15465  				}
 15466  			}
 15467  		case 5:
 15468  			if wireType != 0 {
 15469  				return fmt.Errorf("proto: wrong wireType = %d for field ReservedId", wireType)
 15470  			}
 15471  			m.ReservedId = 0
 15472  			for shift := uint(0); ; shift += 7 {
 15473  				if shift >= 64 {
 15474  					return ErrIntOverflow
 15475  				}
 15476  				if iNdEx >= l {
 15477  					return io.ErrUnexpectedEOF
 15478  				}
 15479  				b := dAtA[iNdEx]
 15480  				iNdEx++
 15481  				m.ReservedId |= int64(b&0x7F) << shift
 15482  				if b < 0x80 {
 15483  					break
 15484  				}
 15485  			}
 15486  		default:
 15487  			iNdEx = preIndex
 15488  			skippy, err := skip(dAtA[iNdEx:])
 15489  			if err != nil {
 15490  				return err
 15491  			}
 15492  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15493  				return ErrInvalidLength
 15494  			}
 15495  			if (iNdEx + skippy) > l {
 15496  				return io.ErrUnexpectedEOF
 15497  			}
 15498  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 15499  			iNdEx += skippy
 15500  		}
 15501  	}
 15502  
 15503  	if iNdEx > l {
 15504  		return io.ErrUnexpectedEOF
 15505  	}
 15506  	return nil
 15507  }
 15508  func (m *ReleaseResponse) UnmarshalVT(dAtA []byte) error {
 15509  	l := len(dAtA)
 15510  	iNdEx := 0
 15511  	for iNdEx < l {
 15512  		preIndex := iNdEx
 15513  		var wire uint64
 15514  		for shift := uint(0); ; shift += 7 {
 15515  			if shift >= 64 {
 15516  				return ErrIntOverflow
 15517  			}
 15518  			if iNdEx >= l {
 15519  				return io.ErrUnexpectedEOF
 15520  			}
 15521  			b := dAtA[iNdEx]
 15522  			iNdEx++
 15523  			wire |= uint64(b&0x7F) << shift
 15524  			if b < 0x80 {
 15525  				break
 15526  			}
 15527  		}
 15528  		fieldNum := int32(wire >> 3)
 15529  		wireType := int(wire & 0x7)
 15530  		if wireType == 4 {
 15531  			return fmt.Errorf("proto: ReleaseResponse: wiretype end group for non-group")
 15532  		}
 15533  		if fieldNum <= 0 {
 15534  			return fmt.Errorf("proto: ReleaseResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 15535  		}
 15536  		switch fieldNum {
 15537  		default:
 15538  			iNdEx = preIndex
 15539  			skippy, err := skip(dAtA[iNdEx:])
 15540  			if err != nil {
 15541  				return err
 15542  			}
 15543  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15544  				return ErrInvalidLength
 15545  			}
 15546  			if (iNdEx + skippy) > l {
 15547  				return io.ErrUnexpectedEOF
 15548  			}
 15549  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 15550  			iNdEx += skippy
 15551  		}
 15552  	}
 15553  
 15554  	if iNdEx > l {
 15555  		return io.ErrUnexpectedEOF
 15556  	}
 15557  	return nil
 15558  }
 15559  func (m *StreamHealthRequest) UnmarshalVT(dAtA []byte) error {
 15560  	l := len(dAtA)
 15561  	iNdEx := 0
 15562  	for iNdEx < l {
 15563  		preIndex := iNdEx
 15564  		var wire uint64
 15565  		for shift := uint(0); ; shift += 7 {
 15566  			if shift >= 64 {
 15567  				return ErrIntOverflow
 15568  			}
 15569  			if iNdEx >= l {
 15570  				return io.ErrUnexpectedEOF
 15571  			}
 15572  			b := dAtA[iNdEx]
 15573  			iNdEx++
 15574  			wire |= uint64(b&0x7F) << shift
 15575  			if b < 0x80 {
 15576  				break
 15577  			}
 15578  		}
 15579  		fieldNum := int32(wire >> 3)
 15580  		wireType := int(wire & 0x7)
 15581  		if wireType == 4 {
 15582  			return fmt.Errorf("proto: StreamHealthRequest: wiretype end group for non-group")
 15583  		}
 15584  		if fieldNum <= 0 {
 15585  			return fmt.Errorf("proto: StreamHealthRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 15586  		}
 15587  		switch fieldNum {
 15588  		default:
 15589  			iNdEx = preIndex
 15590  			skippy, err := skip(dAtA[iNdEx:])
 15591  			if err != nil {
 15592  				return err
 15593  			}
 15594  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15595  				return ErrInvalidLength
 15596  			}
 15597  			if (iNdEx + skippy) > l {
 15598  				return io.ErrUnexpectedEOF
 15599  			}
 15600  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 15601  			iNdEx += skippy
 15602  		}
 15603  	}
 15604  
 15605  	if iNdEx > l {
 15606  		return io.ErrUnexpectedEOF
 15607  	}
 15608  	return nil
 15609  }
 15610  func (m *RealtimeStats) UnmarshalVT(dAtA []byte) error {
 15611  	l := len(dAtA)
 15612  	iNdEx := 0
 15613  	for iNdEx < l {
 15614  		preIndex := iNdEx
 15615  		var wire uint64
 15616  		for shift := uint(0); ; shift += 7 {
 15617  			if shift >= 64 {
 15618  				return ErrIntOverflow
 15619  			}
 15620  			if iNdEx >= l {
 15621  				return io.ErrUnexpectedEOF
 15622  			}
 15623  			b := dAtA[iNdEx]
 15624  			iNdEx++
 15625  			wire |= uint64(b&0x7F) << shift
 15626  			if b < 0x80 {
 15627  				break
 15628  			}
 15629  		}
 15630  		fieldNum := int32(wire >> 3)
 15631  		wireType := int(wire & 0x7)
 15632  		if wireType == 4 {
 15633  			return fmt.Errorf("proto: RealtimeStats: wiretype end group for non-group")
 15634  		}
 15635  		if fieldNum <= 0 {
 15636  			return fmt.Errorf("proto: RealtimeStats: illegal tag %d (wire type %d)", fieldNum, wire)
 15637  		}
 15638  		switch fieldNum {
 15639  		case 1:
 15640  			if wireType != 2 {
 15641  				return fmt.Errorf("proto: wrong wireType = %d for field HealthError", wireType)
 15642  			}
 15643  			var stringLen uint64
 15644  			for shift := uint(0); ; shift += 7 {
 15645  				if shift >= 64 {
 15646  					return ErrIntOverflow
 15647  				}
 15648  				if iNdEx >= l {
 15649  					return io.ErrUnexpectedEOF
 15650  				}
 15651  				b := dAtA[iNdEx]
 15652  				iNdEx++
 15653  				stringLen |= uint64(b&0x7F) << shift
 15654  				if b < 0x80 {
 15655  					break
 15656  				}
 15657  			}
 15658  			intStringLen := int(stringLen)
 15659  			if intStringLen < 0 {
 15660  				return ErrInvalidLength
 15661  			}
 15662  			postIndex := iNdEx + intStringLen
 15663  			if postIndex < 0 {
 15664  				return ErrInvalidLength
 15665  			}
 15666  			if postIndex > l {
 15667  				return io.ErrUnexpectedEOF
 15668  			}
 15669  			m.HealthError = string(dAtA[iNdEx:postIndex])
 15670  			iNdEx = postIndex
 15671  		case 2:
 15672  			if wireType != 0 {
 15673  				return fmt.Errorf("proto: wrong wireType = %d for field ReplicationLagSeconds", wireType)
 15674  			}
 15675  			m.ReplicationLagSeconds = 0
 15676  			for shift := uint(0); ; shift += 7 {
 15677  				if shift >= 64 {
 15678  					return ErrIntOverflow
 15679  				}
 15680  				if iNdEx >= l {
 15681  					return io.ErrUnexpectedEOF
 15682  				}
 15683  				b := dAtA[iNdEx]
 15684  				iNdEx++
 15685  				m.ReplicationLagSeconds |= uint32(b&0x7F) << shift
 15686  				if b < 0x80 {
 15687  					break
 15688  				}
 15689  			}
 15690  		case 3:
 15691  			if wireType != 0 {
 15692  				return fmt.Errorf("proto: wrong wireType = %d for field BinlogPlayersCount", wireType)
 15693  			}
 15694  			m.BinlogPlayersCount = 0
 15695  			for shift := uint(0); ; shift += 7 {
 15696  				if shift >= 64 {
 15697  					return ErrIntOverflow
 15698  				}
 15699  				if iNdEx >= l {
 15700  					return io.ErrUnexpectedEOF
 15701  				}
 15702  				b := dAtA[iNdEx]
 15703  				iNdEx++
 15704  				m.BinlogPlayersCount |= int32(b&0x7F) << shift
 15705  				if b < 0x80 {
 15706  					break
 15707  				}
 15708  			}
 15709  		case 4:
 15710  			if wireType != 0 {
 15711  				return fmt.Errorf("proto: wrong wireType = %d for field FilteredReplicationLagSeconds", wireType)
 15712  			}
 15713  			m.FilteredReplicationLagSeconds = 0
 15714  			for shift := uint(0); ; shift += 7 {
 15715  				if shift >= 64 {
 15716  					return ErrIntOverflow
 15717  				}
 15718  				if iNdEx >= l {
 15719  					return io.ErrUnexpectedEOF
 15720  				}
 15721  				b := dAtA[iNdEx]
 15722  				iNdEx++
 15723  				m.FilteredReplicationLagSeconds |= int64(b&0x7F) << shift
 15724  				if b < 0x80 {
 15725  					break
 15726  				}
 15727  			}
 15728  		case 5:
 15729  			if wireType != 1 {
 15730  				return fmt.Errorf("proto: wrong wireType = %d for field CpuUsage", wireType)
 15731  			}
 15732  			var v uint64
 15733  			if (iNdEx + 8) > l {
 15734  				return io.ErrUnexpectedEOF
 15735  			}
 15736  			v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
 15737  			iNdEx += 8
 15738  			m.CpuUsage = float64(math.Float64frombits(v))
 15739  		case 6:
 15740  			if wireType != 1 {
 15741  				return fmt.Errorf("proto: wrong wireType = %d for field Qps", wireType)
 15742  			}
 15743  			var v uint64
 15744  			if (iNdEx + 8) > l {
 15745  				return io.ErrUnexpectedEOF
 15746  			}
 15747  			v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
 15748  			iNdEx += 8
 15749  			m.Qps = float64(math.Float64frombits(v))
 15750  		case 7:
 15751  			if wireType != 2 {
 15752  				return fmt.Errorf("proto: wrong wireType = %d for field TableSchemaChanged", wireType)
 15753  			}
 15754  			var stringLen uint64
 15755  			for shift := uint(0); ; shift += 7 {
 15756  				if shift >= 64 {
 15757  					return ErrIntOverflow
 15758  				}
 15759  				if iNdEx >= l {
 15760  					return io.ErrUnexpectedEOF
 15761  				}
 15762  				b := dAtA[iNdEx]
 15763  				iNdEx++
 15764  				stringLen |= uint64(b&0x7F) << shift
 15765  				if b < 0x80 {
 15766  					break
 15767  				}
 15768  			}
 15769  			intStringLen := int(stringLen)
 15770  			if intStringLen < 0 {
 15771  				return ErrInvalidLength
 15772  			}
 15773  			postIndex := iNdEx + intStringLen
 15774  			if postIndex < 0 {
 15775  				return ErrInvalidLength
 15776  			}
 15777  			if postIndex > l {
 15778  				return io.ErrUnexpectedEOF
 15779  			}
 15780  			m.TableSchemaChanged = append(m.TableSchemaChanged, string(dAtA[iNdEx:postIndex]))
 15781  			iNdEx = postIndex
 15782  		case 8:
 15783  			if wireType != 2 {
 15784  				return fmt.Errorf("proto: wrong wireType = %d for field ViewSchemaChanged", wireType)
 15785  			}
 15786  			var stringLen uint64
 15787  			for shift := uint(0); ; shift += 7 {
 15788  				if shift >= 64 {
 15789  					return ErrIntOverflow
 15790  				}
 15791  				if iNdEx >= l {
 15792  					return io.ErrUnexpectedEOF
 15793  				}
 15794  				b := dAtA[iNdEx]
 15795  				iNdEx++
 15796  				stringLen |= uint64(b&0x7F) << shift
 15797  				if b < 0x80 {
 15798  					break
 15799  				}
 15800  			}
 15801  			intStringLen := int(stringLen)
 15802  			if intStringLen < 0 {
 15803  				return ErrInvalidLength
 15804  			}
 15805  			postIndex := iNdEx + intStringLen
 15806  			if postIndex < 0 {
 15807  				return ErrInvalidLength
 15808  			}
 15809  			if postIndex > l {
 15810  				return io.ErrUnexpectedEOF
 15811  			}
 15812  			m.ViewSchemaChanged = append(m.ViewSchemaChanged, string(dAtA[iNdEx:postIndex]))
 15813  			iNdEx = postIndex
 15814  		default:
 15815  			iNdEx = preIndex
 15816  			skippy, err := skip(dAtA[iNdEx:])
 15817  			if err != nil {
 15818  				return err
 15819  			}
 15820  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15821  				return ErrInvalidLength
 15822  			}
 15823  			if (iNdEx + skippy) > l {
 15824  				return io.ErrUnexpectedEOF
 15825  			}
 15826  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 15827  			iNdEx += skippy
 15828  		}
 15829  	}
 15830  
 15831  	if iNdEx > l {
 15832  		return io.ErrUnexpectedEOF
 15833  	}
 15834  	return nil
 15835  }
 15836  func (m *AggregateStats) UnmarshalVT(dAtA []byte) error {
 15837  	l := len(dAtA)
 15838  	iNdEx := 0
 15839  	for iNdEx < l {
 15840  		preIndex := iNdEx
 15841  		var wire uint64
 15842  		for shift := uint(0); ; shift += 7 {
 15843  			if shift >= 64 {
 15844  				return ErrIntOverflow
 15845  			}
 15846  			if iNdEx >= l {
 15847  				return io.ErrUnexpectedEOF
 15848  			}
 15849  			b := dAtA[iNdEx]
 15850  			iNdEx++
 15851  			wire |= uint64(b&0x7F) << shift
 15852  			if b < 0x80 {
 15853  				break
 15854  			}
 15855  		}
 15856  		fieldNum := int32(wire >> 3)
 15857  		wireType := int(wire & 0x7)
 15858  		if wireType == 4 {
 15859  			return fmt.Errorf("proto: AggregateStats: wiretype end group for non-group")
 15860  		}
 15861  		if fieldNum <= 0 {
 15862  			return fmt.Errorf("proto: AggregateStats: illegal tag %d (wire type %d)", fieldNum, wire)
 15863  		}
 15864  		switch fieldNum {
 15865  		case 1:
 15866  			if wireType != 0 {
 15867  				return fmt.Errorf("proto: wrong wireType = %d for field HealthyTabletCount", wireType)
 15868  			}
 15869  			m.HealthyTabletCount = 0
 15870  			for shift := uint(0); ; shift += 7 {
 15871  				if shift >= 64 {
 15872  					return ErrIntOverflow
 15873  				}
 15874  				if iNdEx >= l {
 15875  					return io.ErrUnexpectedEOF
 15876  				}
 15877  				b := dAtA[iNdEx]
 15878  				iNdEx++
 15879  				m.HealthyTabletCount |= int32(b&0x7F) << shift
 15880  				if b < 0x80 {
 15881  					break
 15882  				}
 15883  			}
 15884  		case 2:
 15885  			if wireType != 0 {
 15886  				return fmt.Errorf("proto: wrong wireType = %d for field UnhealthyTabletCount", wireType)
 15887  			}
 15888  			m.UnhealthyTabletCount = 0
 15889  			for shift := uint(0); ; shift += 7 {
 15890  				if shift >= 64 {
 15891  					return ErrIntOverflow
 15892  				}
 15893  				if iNdEx >= l {
 15894  					return io.ErrUnexpectedEOF
 15895  				}
 15896  				b := dAtA[iNdEx]
 15897  				iNdEx++
 15898  				m.UnhealthyTabletCount |= int32(b&0x7F) << shift
 15899  				if b < 0x80 {
 15900  					break
 15901  				}
 15902  			}
 15903  		case 3:
 15904  			if wireType != 0 {
 15905  				return fmt.Errorf("proto: wrong wireType = %d for field ReplicationLagSecondsMin", wireType)
 15906  			}
 15907  			m.ReplicationLagSecondsMin = 0
 15908  			for shift := uint(0); ; shift += 7 {
 15909  				if shift >= 64 {
 15910  					return ErrIntOverflow
 15911  				}
 15912  				if iNdEx >= l {
 15913  					return io.ErrUnexpectedEOF
 15914  				}
 15915  				b := dAtA[iNdEx]
 15916  				iNdEx++
 15917  				m.ReplicationLagSecondsMin |= uint32(b&0x7F) << shift
 15918  				if b < 0x80 {
 15919  					break
 15920  				}
 15921  			}
 15922  		case 4:
 15923  			if wireType != 0 {
 15924  				return fmt.Errorf("proto: wrong wireType = %d for field ReplicationLagSecondsMax", wireType)
 15925  			}
 15926  			m.ReplicationLagSecondsMax = 0
 15927  			for shift := uint(0); ; shift += 7 {
 15928  				if shift >= 64 {
 15929  					return ErrIntOverflow
 15930  				}
 15931  				if iNdEx >= l {
 15932  					return io.ErrUnexpectedEOF
 15933  				}
 15934  				b := dAtA[iNdEx]
 15935  				iNdEx++
 15936  				m.ReplicationLagSecondsMax |= uint32(b&0x7F) << shift
 15937  				if b < 0x80 {
 15938  					break
 15939  				}
 15940  			}
 15941  		default:
 15942  			iNdEx = preIndex
 15943  			skippy, err := skip(dAtA[iNdEx:])
 15944  			if err != nil {
 15945  				return err
 15946  			}
 15947  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15948  				return ErrInvalidLength
 15949  			}
 15950  			if (iNdEx + skippy) > l {
 15951  				return io.ErrUnexpectedEOF
 15952  			}
 15953  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 15954  			iNdEx += skippy
 15955  		}
 15956  	}
 15957  
 15958  	if iNdEx > l {
 15959  		return io.ErrUnexpectedEOF
 15960  	}
 15961  	return nil
 15962  }
 15963  func (m *StreamHealthResponse) UnmarshalVT(dAtA []byte) error {
 15964  	l := len(dAtA)
 15965  	iNdEx := 0
 15966  	for iNdEx < l {
 15967  		preIndex := iNdEx
 15968  		var wire uint64
 15969  		for shift := uint(0); ; shift += 7 {
 15970  			if shift >= 64 {
 15971  				return ErrIntOverflow
 15972  			}
 15973  			if iNdEx >= l {
 15974  				return io.ErrUnexpectedEOF
 15975  			}
 15976  			b := dAtA[iNdEx]
 15977  			iNdEx++
 15978  			wire |= uint64(b&0x7F) << shift
 15979  			if b < 0x80 {
 15980  				break
 15981  			}
 15982  		}
 15983  		fieldNum := int32(wire >> 3)
 15984  		wireType := int(wire & 0x7)
 15985  		if wireType == 4 {
 15986  			return fmt.Errorf("proto: StreamHealthResponse: wiretype end group for non-group")
 15987  		}
 15988  		if fieldNum <= 0 {
 15989  			return fmt.Errorf("proto: StreamHealthResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 15990  		}
 15991  		switch fieldNum {
 15992  		case 1:
 15993  			if wireType != 2 {
 15994  				return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
 15995  			}
 15996  			var msglen int
 15997  			for shift := uint(0); ; shift += 7 {
 15998  				if shift >= 64 {
 15999  					return ErrIntOverflow
 16000  				}
 16001  				if iNdEx >= l {
 16002  					return io.ErrUnexpectedEOF
 16003  				}
 16004  				b := dAtA[iNdEx]
 16005  				iNdEx++
 16006  				msglen |= int(b&0x7F) << shift
 16007  				if b < 0x80 {
 16008  					break
 16009  				}
 16010  			}
 16011  			if msglen < 0 {
 16012  				return ErrInvalidLength
 16013  			}
 16014  			postIndex := iNdEx + msglen
 16015  			if postIndex < 0 {
 16016  				return ErrInvalidLength
 16017  			}
 16018  			if postIndex > l {
 16019  				return io.ErrUnexpectedEOF
 16020  			}
 16021  			if m.Target == nil {
 16022  				m.Target = &Target{}
 16023  			}
 16024  			if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 16025  				return err
 16026  			}
 16027  			iNdEx = postIndex
 16028  		case 2:
 16029  			if wireType != 0 {
 16030  				return fmt.Errorf("proto: wrong wireType = %d for field Serving", wireType)
 16031  			}
 16032  			var v int
 16033  			for shift := uint(0); ; shift += 7 {
 16034  				if shift >= 64 {
 16035  					return ErrIntOverflow
 16036  				}
 16037  				if iNdEx >= l {
 16038  					return io.ErrUnexpectedEOF
 16039  				}
 16040  				b := dAtA[iNdEx]
 16041  				iNdEx++
 16042  				v |= int(b&0x7F) << shift
 16043  				if b < 0x80 {
 16044  					break
 16045  				}
 16046  			}
 16047  			m.Serving = bool(v != 0)
 16048  		case 3:
 16049  			if wireType != 0 {
 16050  				return fmt.Errorf("proto: wrong wireType = %d for field TabletExternallyReparentedTimestamp", wireType)
 16051  			}
 16052  			m.TabletExternallyReparentedTimestamp = 0
 16053  			for shift := uint(0); ; shift += 7 {
 16054  				if shift >= 64 {
 16055  					return ErrIntOverflow
 16056  				}
 16057  				if iNdEx >= l {
 16058  					return io.ErrUnexpectedEOF
 16059  				}
 16060  				b := dAtA[iNdEx]
 16061  				iNdEx++
 16062  				m.TabletExternallyReparentedTimestamp |= int64(b&0x7F) << shift
 16063  				if b < 0x80 {
 16064  					break
 16065  				}
 16066  			}
 16067  		case 4:
 16068  			if wireType != 2 {
 16069  				return fmt.Errorf("proto: wrong wireType = %d for field RealtimeStats", wireType)
 16070  			}
 16071  			var msglen int
 16072  			for shift := uint(0); ; shift += 7 {
 16073  				if shift >= 64 {
 16074  					return ErrIntOverflow
 16075  				}
 16076  				if iNdEx >= l {
 16077  					return io.ErrUnexpectedEOF
 16078  				}
 16079  				b := dAtA[iNdEx]
 16080  				iNdEx++
 16081  				msglen |= int(b&0x7F) << shift
 16082  				if b < 0x80 {
 16083  					break
 16084  				}
 16085  			}
 16086  			if msglen < 0 {
 16087  				return ErrInvalidLength
 16088  			}
 16089  			postIndex := iNdEx + msglen
 16090  			if postIndex < 0 {
 16091  				return ErrInvalidLength
 16092  			}
 16093  			if postIndex > l {
 16094  				return io.ErrUnexpectedEOF
 16095  			}
 16096  			if m.RealtimeStats == nil {
 16097  				m.RealtimeStats = &RealtimeStats{}
 16098  			}
 16099  			if err := m.RealtimeStats.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 16100  				return err
 16101  			}
 16102  			iNdEx = postIndex
 16103  		case 5:
 16104  			if wireType != 2 {
 16105  				return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType)
 16106  			}
 16107  			var msglen int
 16108  			for shift := uint(0); ; shift += 7 {
 16109  				if shift >= 64 {
 16110  					return ErrIntOverflow
 16111  				}
 16112  				if iNdEx >= l {
 16113  					return io.ErrUnexpectedEOF
 16114  				}
 16115  				b := dAtA[iNdEx]
 16116  				iNdEx++
 16117  				msglen |= int(b&0x7F) << shift
 16118  				if b < 0x80 {
 16119  					break
 16120  				}
 16121  			}
 16122  			if msglen < 0 {
 16123  				return ErrInvalidLength
 16124  			}
 16125  			postIndex := iNdEx + msglen
 16126  			if postIndex < 0 {
 16127  				return ErrInvalidLength
 16128  			}
 16129  			if postIndex > l {
 16130  				return io.ErrUnexpectedEOF
 16131  			}
 16132  			if m.TabletAlias == nil {
 16133  				m.TabletAlias = &topodata.TabletAlias{}
 16134  			}
 16135  			if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 16136  				return err
 16137  			}
 16138  			iNdEx = postIndex
 16139  		default:
 16140  			iNdEx = preIndex
 16141  			skippy, err := skip(dAtA[iNdEx:])
 16142  			if err != nil {
 16143  				return err
 16144  			}
 16145  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 16146  				return ErrInvalidLength
 16147  			}
 16148  			if (iNdEx + skippy) > l {
 16149  				return io.ErrUnexpectedEOF
 16150  			}
 16151  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 16152  			iNdEx += skippy
 16153  		}
 16154  	}
 16155  
 16156  	if iNdEx > l {
 16157  		return io.ErrUnexpectedEOF
 16158  	}
 16159  	return nil
 16160  }
 16161  func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error {
 16162  	l := len(dAtA)
 16163  	iNdEx := 0
 16164  	for iNdEx < l {
 16165  		preIndex := iNdEx
 16166  		var wire uint64
 16167  		for shift := uint(0); ; shift += 7 {
 16168  			if shift >= 64 {
 16169  				return ErrIntOverflow
 16170  			}
 16171  			if iNdEx >= l {
 16172  				return io.ErrUnexpectedEOF
 16173  			}
 16174  			b := dAtA[iNdEx]
 16175  			iNdEx++
 16176  			wire |= uint64(b&0x7F) << shift
 16177  			if b < 0x80 {
 16178  				break
 16179  			}
 16180  		}
 16181  		fieldNum := int32(wire >> 3)
 16182  		wireType := int(wire & 0x7)
 16183  		if wireType == 4 {
 16184  			return fmt.Errorf("proto: TransactionMetadata: wiretype end group for non-group")
 16185  		}
 16186  		if fieldNum <= 0 {
 16187  			return fmt.Errorf("proto: TransactionMetadata: illegal tag %d (wire type %d)", fieldNum, wire)
 16188  		}
 16189  		switch fieldNum {
 16190  		case 1:
 16191  			if wireType != 2 {
 16192  				return fmt.Errorf("proto: wrong wireType = %d for field Dtid", wireType)
 16193  			}
 16194  			var stringLen uint64
 16195  			for shift := uint(0); ; shift += 7 {
 16196  				if shift >= 64 {
 16197  					return ErrIntOverflow
 16198  				}
 16199  				if iNdEx >= l {
 16200  					return io.ErrUnexpectedEOF
 16201  				}
 16202  				b := dAtA[iNdEx]
 16203  				iNdEx++
 16204  				stringLen |= uint64(b&0x7F) << shift
 16205  				if b < 0x80 {
 16206  					break
 16207  				}
 16208  			}
 16209  			intStringLen := int(stringLen)
 16210  			if intStringLen < 0 {
 16211  				return ErrInvalidLength
 16212  			}
 16213  			postIndex := iNdEx + intStringLen
 16214  			if postIndex < 0 {
 16215  				return ErrInvalidLength
 16216  			}
 16217  			if postIndex > l {
 16218  				return io.ErrUnexpectedEOF
 16219  			}
 16220  			m.Dtid = string(dAtA[iNdEx:postIndex])
 16221  			iNdEx = postIndex
 16222  		case 2:
 16223  			if wireType != 0 {
 16224  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
 16225  			}
 16226  			m.State = 0
 16227  			for shift := uint(0); ; shift += 7 {
 16228  				if shift >= 64 {
 16229  					return ErrIntOverflow
 16230  				}
 16231  				if iNdEx >= l {
 16232  					return io.ErrUnexpectedEOF
 16233  				}
 16234  				b := dAtA[iNdEx]
 16235  				iNdEx++
 16236  				m.State |= TransactionState(b&0x7F) << shift
 16237  				if b < 0x80 {
 16238  					break
 16239  				}
 16240  			}
 16241  		case 3:
 16242  			if wireType != 0 {
 16243  				return fmt.Errorf("proto: wrong wireType = %d for field TimeCreated", wireType)
 16244  			}
 16245  			m.TimeCreated = 0
 16246  			for shift := uint(0); ; shift += 7 {
 16247  				if shift >= 64 {
 16248  					return ErrIntOverflow
 16249  				}
 16250  				if iNdEx >= l {
 16251  					return io.ErrUnexpectedEOF
 16252  				}
 16253  				b := dAtA[iNdEx]
 16254  				iNdEx++
 16255  				m.TimeCreated |= int64(b&0x7F) << shift
 16256  				if b < 0x80 {
 16257  					break
 16258  				}
 16259  			}
 16260  		case 4:
 16261  			if wireType != 2 {
 16262  				return fmt.Errorf("proto: wrong wireType = %d for field Participants", wireType)
 16263  			}
 16264  			var msglen int
 16265  			for shift := uint(0); ; shift += 7 {
 16266  				if shift >= 64 {
 16267  					return ErrIntOverflow
 16268  				}
 16269  				if iNdEx >= l {
 16270  					return io.ErrUnexpectedEOF
 16271  				}
 16272  				b := dAtA[iNdEx]
 16273  				iNdEx++
 16274  				msglen |= int(b&0x7F) << shift
 16275  				if b < 0x80 {
 16276  					break
 16277  				}
 16278  			}
 16279  			if msglen < 0 {
 16280  				return ErrInvalidLength
 16281  			}
 16282  			postIndex := iNdEx + msglen
 16283  			if postIndex < 0 {
 16284  				return ErrInvalidLength
 16285  			}
 16286  			if postIndex > l {
 16287  				return io.ErrUnexpectedEOF
 16288  			}
 16289  			m.Participants = append(m.Participants, &Target{})
 16290  			if err := m.Participants[len(m.Participants)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
 16291  				return err
 16292  			}
 16293  			iNdEx = postIndex
 16294  		default:
 16295  			iNdEx = preIndex
 16296  			skippy, err := skip(dAtA[iNdEx:])
 16297  			if err != nil {
 16298  				return err
 16299  			}
 16300  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 16301  				return ErrInvalidLength
 16302  			}
 16303  			if (iNdEx + skippy) > l {
 16304  				return io.ErrUnexpectedEOF
 16305  			}
 16306  			m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 16307  			iNdEx += skippy
 16308  		}
 16309  	}
 16310  
 16311  	if iNdEx > l {
 16312  		return io.ErrUnexpectedEOF
 16313  	}
 16314  	return nil
 16315  }
 16316  
 16317  func skip(dAtA []byte) (n int, err error) {
 16318  	l := len(dAtA)
 16319  	iNdEx := 0
 16320  	depth := 0
 16321  	for iNdEx < l {
 16322  		var wire uint64
 16323  		for shift := uint(0); ; shift += 7 {
 16324  			if shift >= 64 {
 16325  				return 0, ErrIntOverflow
 16326  			}
 16327  			if iNdEx >= l {
 16328  				return 0, io.ErrUnexpectedEOF
 16329  			}
 16330  			b := dAtA[iNdEx]
 16331  			iNdEx++
 16332  			wire |= (uint64(b) & 0x7F) << shift
 16333  			if b < 0x80 {
 16334  				break
 16335  			}
 16336  		}
 16337  		wireType := int(wire & 0x7)
 16338  		switch wireType {
 16339  		case 0:
 16340  			for shift := uint(0); ; shift += 7 {
 16341  				if shift >= 64 {
 16342  					return 0, ErrIntOverflow
 16343  				}
 16344  				if iNdEx >= l {
 16345  					return 0, io.ErrUnexpectedEOF
 16346  				}
 16347  				iNdEx++
 16348  				if dAtA[iNdEx-1] < 0x80 {
 16349  					break
 16350  				}
 16351  			}
 16352  		case 1:
 16353  			iNdEx += 8
 16354  		case 2:
 16355  			var length int
 16356  			for shift := uint(0); ; shift += 7 {
 16357  				if shift >= 64 {
 16358  					return 0, ErrIntOverflow
 16359  				}
 16360  				if iNdEx >= l {
 16361  					return 0, io.ErrUnexpectedEOF
 16362  				}
 16363  				b := dAtA[iNdEx]
 16364  				iNdEx++
 16365  				length |= (int(b) & 0x7F) << shift
 16366  				if b < 0x80 {
 16367  					break
 16368  				}
 16369  			}
 16370  			if length < 0 {
 16371  				return 0, ErrInvalidLength
 16372  			}
 16373  			iNdEx += length
 16374  		case 3:
 16375  			depth++
 16376  		case 4:
 16377  			if depth == 0 {
 16378  				return 0, ErrUnexpectedEndOfGroup
 16379  			}
 16380  			depth--
 16381  		case 5:
 16382  			iNdEx += 4
 16383  		default:
 16384  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
 16385  		}
 16386  		if iNdEx < 0 {
 16387  			return 0, ErrInvalidLength
 16388  		}
 16389  		if depth == 0 {
 16390  			return iNdEx, nil
 16391  		}
 16392  	}
 16393  	return 0, io.ErrUnexpectedEOF
 16394  }
 16395  
 16396  var (
 16397  	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
 16398  	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
 16399  	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
 16400  )